diff options
| author | Dmitry Safonov <[email protected]> | 2020-06-09 04:32:10 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-06-09 16:39:12 +0000 |
| commit | ab34b46d1a74e98996e67a7da7e5d683ecfd9f57 (patch) | |
| tree | 1579e516cbcf6d9c0beeb2d6766a02ac1f0bc0c9 | |
| parent | xtensa: add show_stack_loglvl() (diff) | |
| download | kernel-ab34b46d1a74e98996e67a7da7e5d683ecfd9f57.tar.gz kernel-ab34b46d1a74e98996e67a7da7e5d683ecfd9f57.zip | |
sysrq: use show_stack_loglvl()
Show the stack trace on a CPU with the same log level as "CPU%d" header.
Signed-off-by: Dmitry Safonov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jiri Slaby <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
| -rw-r--r-- | drivers/tty/sysrq.c | 2 | ||||
| -rw-r--r-- | include/linux/sched/debug.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 477cdc1e9cf3..7bd935379dec 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -235,7 +235,7 @@ static void showacpu(void *dummy) raw_spin_lock_irqsave(&show_lock, flags); pr_info("CPU%d:\n", smp_processor_id()); - show_stack(NULL, NULL); + show_stack_loglvl(NULL, NULL, KERN_INFO); raw_spin_unlock_irqrestore(&show_lock, flags); } diff --git a/include/linux/sched/debug.h b/include/linux/sched/debug.h index 95fb9e025247..373e4e3faf2a 100644 --- a/include/linux/sched/debug.h +++ b/include/linux/sched/debug.h @@ -31,6 +31,8 @@ extern void show_regs(struct pt_regs *); * trace (or NULL if the entire call-chain of the task should be shown). */ extern void show_stack(struct task_struct *task, unsigned long *sp); +extern void show_stack_loglvl(struct task_struct *task, unsigned long *sp, + const char *loglvl); extern void sched_show_task(struct task_struct *p); |
