sched/debug: Print 'tgid' in sched_show_task()
authorYajun Deng <yajun.deng@linux.dev>
Thu, 20 Jul 2023 08:05:16 +0000 (16:05 +0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 7 Oct 2023 09:33:28 +0000 (11:33 +0200)
commitbc87127a45928de5fdf0ec39d7a86e1edd0e179e
tree5e0498200d34806ca504f9139bb7fae818e5f37d
parentaa1567a7e6440b8c3af4b0d8a8219d8fc5028c5f
sched/debug: Print 'tgid' in sched_show_task()

Multiple blocked tasks are printed when the system hangs. They may have
the same parent pid, but belong to different task groups.

Printing tgid lets users better know whether these tasks are from the same
task group or not.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230720080516.1515297-1-yajun.deng@linux.dev
kernel/sched/core.c