Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

panic: add 'panic_sys_info=' setup option for kernel cmdline

'panic_sys_info=' sysctl interface is already added for runtime setting.
Add counterpart kernel cmdline option for boottime setting.

Link: https://lkml.kernel.org/r/20250703021004.42328-5-feng.tang@linux.alibaba.com
Signed-off-by: Feng Tang <feng.tang@linux.alibaba.com>
Suggested-by: Petr Mladek <pmladek@suse.com>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Lance Yang <lance.yang@linux.dev>
Cc: "Paul E . McKenney" <paulmck@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Feng Tang and committed by
Andrew Morton
9743d12d d7477559

+24
+15
Documentation/admin-guide/kernel-parameters.txt
··· 4563 4563 Use this option carefully, maybe worth to setup a 4564 4564 bigger log buffer with "log_buf_len" along with this. 4565 4565 4566 + panic_sys_info= A comma separated list of extra information to be dumped 4567 + on panic. 4568 + Format: val[,val...] 4569 + Where @val can be any of the following: 4570 + 4571 + tasks: print all tasks info 4572 + mem: print system memory info 4573 + timers: print timers info 4574 + locks: print locks info if CONFIG_LOCKDEP is on 4575 + ftrace: print ftrace buffer 4576 + all_bt: print all CPUs backtrace (if available in the arch) 4577 + blocked_tasks: print only tasks in uninterruptible (blocked) state 4578 + 4579 + This is a human readable alternative to the 'panic_print' option. 4580 + 4566 4581 parkbd.port= [HW] Parallel port number the keyboard adapter is 4567 4582 connected to, default is 0. 4568 4583 Format: <parport#>
+9
kernel/panic.c
··· 143 143 late_initcall(kernel_panic_sysctls_init); 144 144 #endif 145 145 146 + /* The format is "panic_sys_info=tasks,mem,locks,ftrace,..." */ 147 + static int __init setup_panic_sys_info(char *buf) 148 + { 149 + /* There is no risk of race in kernel boot phase */ 150 + panic_print = sys_info_parse_param(buf); 151 + return 1; 152 + } 153 + __setup("panic_sys_info=", setup_panic_sys_info); 154 + 146 155 static atomic_t warn_count = ATOMIC_INIT(0); 147 156 148 157 #ifdef CONFIG_SYSFS