]> git.baikalelectronics.ru Git - kernel.git/commit
sched/debug: Fix the alignment of the show-state debug output
authorLibing Zhou <libing.zhou@nokia-sbell.com>
Fri, 14 Aug 2020 03:02:36 +0000 (11:02 +0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 14 Aug 2020 10:36:18 +0000 (12:36 +0200)
commiteab84735d55778b16cb4bce2615fc3bbeb051b71
treea252cef5b659263862cee4173bd5b118e7b5e128
parentb05eecb71e1a1fb0ad18a4d6b917479db1ee49bc
sched/debug: Fix the alignment of the show-state debug output

Current sysrq(t) output task fields name are not aligned with
actual task fields value, e.g.:

kernel: sysrq: Show State
kernel:  task                        PC stack   pid father
kernel: systemd         S12456     1      0 0x00000000
kernel: Call Trace:
kernel: ? __schedule+0x240/0x740

To make it more readable, print fields name together with task fields
value in the same line, with fixed width:

kernel: sysrq: Show State
kernel: task:systemd         state:S stack:12920 pid:    1 ppid:     0 flags:0x00000000
kernel: Call Trace:
kernel: __schedule+0x282/0x620

Signed-off-by: Libing Zhou <libing.zhou@nokia-sbell.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200814030236.37835-1-libing.zhou@nokia-sbell.com
kernel/sched/core.c