aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2024-02-07 14:47:02 +0106
committerPetr Mladek <[email protected]>2024-02-07 17:23:19 +0100
commitd988d9a9b9d180bfd5c1d353b3b176cb90d6861b (patch)
tree43bbd87a3eec9deb5e486ec315a952afe8cbbcbb /tools/perf/util/trace-event-scripting.c
parent779dbc2e78d746250f07c463e13ac603b349f6f3 (diff)
panic: Flush kernel log buffer at the end
If the kernel crashes in a context where printk() calls always defer printing (such as in NMI or inside a printk_safe section) then the final panic messages will be deferred to irq_work. But if irq_work is not available, the messages will not get printed unless explicitly flushed. The result is that the final "end Kernel panic" banner does not get printed. Add one final flush after the last printk() call to make sure the final panic messages make it out as well. Signed-off-by: John Ogness <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions