diff options
| author | Nathan Lynch <[email protected]> | 2021-05-14 11:24:20 -0500 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-05-23 20:51:35 +1000 |
| commit | 2cec178e35baf57d307c0982fd2e53055bd1e9bb (patch) | |
| tree | 53e4e84b1babe9e06b57fc23cb67e23ff37eedd3 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | b73c8cccd72ac28beaf262fd6ef4b91411fc8335 (diff) | |
powerpc/xmon: make dumping log buffer contents more reliable
Log buffer entries that are too long for dump_log_buf()'s small
local buffer are:
* silently discarded when a single-line entry is too long;
kmsg_dump_get_line() returns true but sets &len to 0.
* silently truncated to the last fitting new line when a multi-line
entry is too long, e.g. register dumps from __show_regs(); this
seems undetectable via the kmsg_dump API.
xmon_printf()'s internal buffer is already 1KB; enlarge
dump_log_buf()'s own buffer to match and make it statically
allocated. Verified that this allows complete printing of register
dumps on ppc64le with both CONFIG_PRINTK_TIME=y and
CONFIG_PRINTK_CALLER=y.
Signed-off-by: Nathan Lynch <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions