]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Make the space reserved for the pid wider
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 4 Sep 2020 08:23:31 +0000 (10:23 +0200)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 18 Sep 2020 16:42:11 +0000 (12:42 -0400)
commit387a8be4db5e49a714807ace2300cf0dc35cb9ec
tree932780dab8e917190e3a20b39b1114429f551652
parente98e86cd3573183e29ea11065e4e1ef65b649522
tracing: Make the space reserved for the pid wider

For 64bit CONFIG_BASE_SMALL=0 systems PID_MAX_LIMIT is set by default to
4194304. During boot the kernel sets a new value based on number of CPUs
but no lower than 32768. It is 1024 per CPU so with 128 CPUs the default
becomes 131072 which needs six digits.
This value can be increased during run time but must not exceed the
initial upper limit.

Systemd sometime after v241 sets it to the upper limit during boot. The
result is that when the pid exceeds five digits, the trace output is a
little hard to read because it is no longer properly padded (same like
on big iron with 98+ CPUs).

Increase the pid padding to seven digits.

Link: https://lkml.kernel.org/r/20200904082331.dcdkrr3bkn3e4qlg@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace_output.c