Skip to content

printk: Introduce loglevel bypass for pstore console

Tzung-Bi Shih lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2printk: Introduce CON_BYPASS_LOGLEVEL flaginclude/linux/console.h kernel/printk/nbcon.c kernel/printk/printk.c+13 -40 replies
2/2pstore: Bypass loglevel suppression for pstore consolefs/pstore/platform.c fs/pstore/ram.c include/linux/pstore.h+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] printk: Introduce loglevel bypass for pstore console

Currently, offline consoles (e.g., pstore_console backed by ramoops) inherit the system's global console_loglevel.

In production environments, physical serial consoles (UARTs) are often heavily rate-limited to prevent verbose messages from causing severe execution bottlenecks. Unfortunately, this identically silences the pstore console. When a kernel panic or lockup occurs, engineers are left inspecting a crash dump that has been stripped of the verbose logs that could have identified the root cause.

This series introduces CON_BYPASS_LOGLEVEL, a simple flag that allows specialized offline consoles to request unsuppressed logs directly.

Patch 1 introduces the CON_BYPASS_LOGLEVEL flag.
Patch 2 adopts the flag in pstore_console.

Tzung-Bi Shih (2):
printk: Introduce CON_BYPASS_LOGLEVEL flag
pstore: Bypass loglevel suppression for pstore console

 fs/pstore/platform.c    | 4 ++++
 fs/pstore/ram.c         | 3 ++-
 include/linux/console.h | 4 ++++
 include/linux/pstore.h  | 2 ++
 kernel/printk/nbcon.c   | 7 +++++--
 kernel/printk/printk.c  | 6 ++++--
 6 files changed, 21 insertions(+), 5 deletions(-)
Signature · 1 line
2.55.0.897.gb25b4bd76c-goog