diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2017-05-09 09:53:36 +0800 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-05-30 11:07:41 +0100 |
commit | c07ab957d9af8092fc3caf3db5a0fb49098fdc65 (patch) | |
tree | ac89f6c96b304d3cb1076c906bc8350db96764b2 /arch/arm64/kernel/probes | |
parent | 48f99c8ec0b25756d0283ab058826ae07d14fad7 (diff) | |
download | linux-stable-c07ab957d9af8092fc3caf3db5a0fb49098fdc65.tar.gz linux-stable-c07ab957d9af8092fc3caf3db5a0fb49098fdc65.tar.bz2 linux-stable-c07ab957d9af8092fc3caf3db5a0fb49098fdc65.zip |
arm64: Call __show_regs directly
Generic code expects show_regs() to also dump the stack, but arm64's
show_reg() does not do this. Some arm64 callers of show_regs() *only*
want the registers dumped, without the stack.
To enable generic code to work as expected, we need to make
show_regs() dump the stack. Where we only want the registers dumped,
we must use __show_regs().
This patch updates code to use __show_regs() where only registers are
desired. A subsequent patch will modify show_regs().
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/probes')
-rw-r--r-- | arch/arm64/kernel/probes/kprobes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/probes/kprobes.c b/arch/arm64/kernel/probes/kprobes.c index c5c45942fb6e..d849d9804011 100644 --- a/arch/arm64/kernel/probes/kprobes.c +++ b/arch/arm64/kernel/probes/kprobes.c @@ -522,9 +522,9 @@ int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs) pr_err("current sp %lx does not match saved sp %lx\n", orig_sp, stack_addr); pr_err("Saved registers for jprobe %p\n", jp); - show_regs(saved_regs); + __show_regs(saved_regs); pr_err("Current registers\n"); - show_regs(regs); + __show_regs(regs); BUG(); } unpause_graph_tracing(); |