[PATCH v3 7/7] log: add help text for printk safe buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Shogo Matsumoto <shogo.matsumoto@xxxxxxxxxxx>
---
 help.c | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/help.c b/help.c
index 04a7eff..d8d2eab 100644
--- a/help.c
+++ b/help.c
@@ -3886,7 +3886,7 @@ NULL
 char *help_log[] = {
 "log",
 "dump system message buffer",
-"[-Ttdma]",
+"[-Ttdmas]",
 "  This command dumps the kernel log_buf contents in chronological order.  The",
 "  command supports the older log_buf formats, which may or may not contain a",
 "  timestamp inserted prior to each message, as well as the newer variable-length", 
@@ -3907,6 +3907,8 @@ char *help_log[] = {
 "        shown with 'set debug 1'.",
 "    -a  Dump the audit logs remaining in kernel audit buffers that have not",
 "        been copied out to the user-space audit daemon.",
+"    -s  Dump the printk logs remaining in kernel safe per-CPU buffers that",
+"        have not been flushed out to log_buf.",
 " ",        
 "\nEXAMPLES",
 "  Dump the kernel message buffer:\n",
@@ -4054,6 +4056,27 @@ char *help_log[] = {
 "    [Sat Apr  4 07:41:09 2020] MTRR default type: uncachable",
 "    [Sat Apr  4 07:41:09 2020] MTRR variable ranges disabled:",
 "    ...",
+" ",
+"  On a system which has printk_safe_seq_buf buffer,",
+"  display its unflushed log with buffer name:\n",
+"    %s> log",
+"    [nmi_print_seq] Uhhuh. NMI received for unknown reason 30 on CPU 0.",
+"    [nmi_print_seq] Do you have a strange power saving mode enabled?",
+"    [nmi_print_seq] Dazed and confused, but trying to continue",
+"    ...",
+" ",
+"  Dump the printk safe buffers:\n",
+"    %s> log -s",
+"    PRINTK_SAFE_SEQ_BUF: nmi_print_seq",
+"    CPU: 0  ADDR: ffff8ca4fbc19ce0 LEN: 150  MESSAGE_LOST: 0",
+"      Uhhuh. NMI received for unknown reason 20 on CPU 0.",
+"      Do you have a strange power saving mode enabled?",
+"      Dazed and confused, but trying to continue",
+"    ...",
+"    PRINTK_SAFE_SEQ_BUF: safe_print_seq",
+"    CPU: 0  ADDR: ffff8ca4fbc1ad00 LEN: 0  MESSAGE_LOST: 0",
+"      (empty)",
+"    ...",
 NULL               
 };
 
-- 
2.29.2


--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/crash-utility




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux