[Crash-utility] [PATCH] fix missing RT PRIO_ARRAY table with CONFIG_RT_GROUP_SCHED=n
Dave Anderson
anderson at redhat.com
Fri Jan 23 19:34:26 UTC 2015
----- Original Message -----
> On the kernel with CONFIG_RT_GROUP_SCHED=n, the "RT PRIO_ARRAY" table of runq
> command always empty, nevertheless exists "rt_sched_class" task.
>
> This cause to substract offset "task_struct->rt - task_struct" only if there is
> my_q member (ie. CONFIG_RT_GROUP_SCHED=y). Therefore dump_RT_prio_array()
> passes the address of "rt member of task_struct" to task_to_context().
>
> This patch ensure to pass the address of "task_struct" to task_to_context().
Mitsuya,
I adjusted your patch to also maintain compatibility with 2.6.24 and earlier kernels,
and have queued it for crash-7.1.0:
https://github.com/crash-utility/crash/commit/02086663bcc4fa9fd0fbec89f83e7fa82f17c2cd
Thanks,
Dave
More information about the Crash-utility
mailing list