summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2020-05-14 13:40:49 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2020-05-14 20:07:48 +1000
commita54ed5036e7886d736e5c34d827636602c9e7c92 (patch)
tree80c49b7b2e5408989f96768481e713491d7db44c
parent1b6af507a90d0d0b15318ac916262b3def3bd7ab (diff)
downloadlinux-a54ed5036e7886d736e5c34d827636602c9e7c92.tar.gz
linux-a54ed5036e7886d736e5c34d827636602c9e7c92.tar.xz
sysrq: use show_stack_loglvl()
Show the stack trace on a CPU with the same log level as "CPU%d" header. Link: http://lkml.kernel.org/r/20200418201944.482088-45-dima@arista.com Signed-off-by: Dmitry Safonov <dima@arista.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jslaby@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--drivers/tty/sysrq.c2
-rw-r--r--include/linux/sched/debug.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c
index 0dc3878794fd..fcd6534dec92 100644
--- a/drivers/tty/sysrq.c
+++ b/drivers/tty/sysrq.c
@@ -233,7 +233,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);