mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] printk: Introduce loglevel bypass for pstore console
@ 2026-08-31  7:03 Tzung-Bi Shih
  2026-08-31  7:03 ` [PATCH 1/2] printk: Introduce CON_BYPASS_LOGLEVEL flag Tzung-Bi Shih
  2026-08-31  7:03 ` [PATCH 2/2] pstore: Bypass loglevel suppression for pstore console Tzung-Bi Shih
  0 siblings, 2 replies; 3+ messages in thread
From: Tzung-Bi Shih @ 2026-08-31  7:03 UTC (permalink / raw)
  To: Kees Cook, Greg Kroah-Hartman, Petr Mladek
  Cc: Tony Luck, Guilherme G. Piccoli, Steven Rostedt, John Ogness,
	Sergey Senozhatsky, tzungbi, tfiga, linux-kernel

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(-)

-- 
2.55.0.897.gb25b4bd76c-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-31  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-31  7:03 [PATCH 0/2] printk: Introduce loglevel bypass for pstore console Tzung-Bi Shih
2026-08-31  7:03 ` [PATCH 1/2] printk: Introduce CON_BYPASS_LOGLEVEL flag Tzung-Bi Shih
2026-08-31  7:03 ` [PATCH 2/2] pstore: Bypass loglevel suppression for pstore console Tzung-Bi Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®