Commit cc172ff
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.com1 parent a1bd068 commit cc172ff
1 file changed
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6387 | 6387 | | |
6388 | 6388 | | |
6389 | 6389 | | |
6390 | | - | |
| 6390 | + | |
6391 | 6391 | | |
6392 | 6392 | | |
6393 | | - | |
| 6393 | + | |
6394 | 6394 | | |
6395 | 6395 | | |
6396 | 6396 | | |
| |||
6399 | 6399 | | |
6400 | 6400 | | |
6401 | 6401 | | |
6402 | | - | |
6403 | | - | |
| 6402 | + | |
| 6403 | + | |
6404 | 6404 | | |
6405 | 6405 | | |
6406 | 6406 | | |
| |||
6435 | 6435 | | |
6436 | 6436 | | |
6437 | 6437 | | |
6438 | | - | |
6439 | | - | |
6440 | | - | |
6441 | | - | |
6442 | | - | |
6443 | | - | |
6444 | | - | |
6445 | 6438 | | |
6446 | 6439 | | |
6447 | 6440 | | |
| |||
0 commit comments