linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Fix quiet console in pre-panic scenarios
@ 2020-03-15 17:09 Eugeniu Rosca
  2020-03-15 17:09 ` [RFC PATCH 1/3] printk: convert ignore_loglevel to atomic_t Eugeniu Rosca
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Eugeniu Rosca @ 2020-03-15 17:09 UTC (permalink / raw)
  To: linux-kernel
  Cc: Petr Mladek, Sergey Senozhatsky, Steven Rostedt, Ingo Molnar,
	Thomas Gleixner, Peter Zijlstra, Jisheng Zhang, Valdis Kletnieks,
	Sebastian Andrzej Siewior, Andrew Gabbasov, Dirk Behme,
	Eugeniu Rosca

Dear community,

The motivation behind this seris is to save days/weeks, if not months,
of debugging efforts for users who:

 * experience an issue like softlockup/hardlockup/hung task/oom, whose
   reproduction is not clear and whose occurrence rate is very low
 * are constrained to use a low loglevel value (1,2,3) in production
 * mostly rely on console logs to debug the issue post-mortem
   (e.g. saved to persistent storage via e.g. pstore)

As pointed out in the last patch from this series, under the above
circumstances, users might simply lack any relevant logs during
post-mortem analysis.

Why this series is marked as RFC is because:
 * There are several possible approaches to turn console verbosity on
   and off. Current series employs the 'ignore_loglevel' functionality,
   but an alternative way is to use the 'console_loglevel' variable. The
   latter is more intrusive, hence the former has been chosen as v1.
 * Manipulating 'ignore_loglevel' might be seen as an abuse, especially
   because it breaks the expectation of users who assume the system to
   be dead silent after passing loglevel=0 on kernel command line.

Thank you for your comments!

Eugeniu Rosca (3):
  printk: convert ignore_loglevel to atomic_t
  printk: add console_verbose_{start,end}
  watchdog: Turn console verbosity on when reporting softlockup

 include/linux/printk.h | 10 ++++++++++
 kernel/printk/printk.c | 30 ++++++++++++++++++++++++++----
 kernel/watchdog.c      |  4 ++++
 3 files changed, 40 insertions(+), 4 deletions(-)

-- 
2.25.0


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

end of thread, other threads:[~2020-05-19 14:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-15 17:09 [RFC PATCH 0/3] Fix quiet console in pre-panic scenarios Eugeniu Rosca
2020-03-15 17:09 ` [RFC PATCH 1/3] printk: convert ignore_loglevel to atomic_t Eugeniu Rosca
2020-03-15 17:09 ` [RFC PATCH 2/3] printk: add console_verbose_{start,end} Eugeniu Rosca
2020-03-18 16:00   ` John Ogness
2020-03-15 17:09 ` [RFC PATCH 3/3] watchdog: Turn console verbosity on when reporting softlockup Eugeniu Rosca
2020-03-17  2:18   ` Sergey Senozhatsky
2020-03-18 18:05     ` Eugeniu Rosca
2020-03-19  6:48       ` Sergey Senozhatsky
2020-03-19  7:38         ` Valdis Klētnieks
2020-03-19  8:01           ` Sergey Senozhatsky
2020-03-19  8:18             ` Valdis Klētnieks
2020-05-19 14:43         ` Petr Mladek
2020-03-19  8:20       ` John Ogness
2020-03-16 18:35 ` [RFC PATCH 0/3] Fix quiet console in pre-panic scenarios Steven Rostedt
2020-03-16 19:09   ` Sebastian Andrzej Siewior
2020-03-18 14:56     ` Eugeniu Rosca
2020-03-18 15:40       ` John Ogness

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).