mirror of
https://github.com/crash-utility/crash
synced 2025-02-23 00:46:48 +00:00
Fix for the "runq" command on kernels that are configured with
CONFIG_RT_GROUP_SCHED=n. Without the patch, real-time tasks queued on a per-cpu rt_rq.rt_prio_array will not be displayed under the "RT PRIO_ARRAY" header. (mty.shibata@gmail.com)
This commit is contained in:
parent
93074413f3
commit
02086663bc
8
task.c
8
task.c
@ -8715,9 +8715,13 @@ dump_RT_prio_array(ulong k_prio_array, char *u_prio_array)
|
||||
&rt_rq_buf[OFFSET(rt_rq_active)]);
|
||||
FREEBUF(rt_rq_buf);
|
||||
continue;
|
||||
} else
|
||||
task_addr -= OFFSET(task_struct_rt);
|
||||
}
|
||||
}
|
||||
if (VALID_MEMBER(task_struct_rt))
|
||||
task_addr -= OFFSET(task_struct_rt);
|
||||
else
|
||||
task_addr -= OFFSET(task_struct_run_list);
|
||||
|
||||
if (!(tc = task_to_context(task_addr)))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user