diff options
| author | Petr Mladek <pmladek@suse.com> | 2018-01-22 04:40:50 -0500 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2018-01-22 04:40:50 -0500 |
| commit | 51ccbb0ae865e153c43117e6c3244fa373ea6bd6 (patch) | |
| tree | 4bfa54ad5ec0542f24627971d937166960c32723 /arch/ia64 | |
| parent | 3ccdc5190f8df12dfafff9264e406c5496401da5 (diff) | |
| parent | d2279c9d7f7db7f97567368bfc4539b3411adf8d (diff) | |
Merge branch 'for-4.16-print-symbol' into for-4.16
Diffstat (limited to 'arch/ia64')
| -rw-r--r-- | arch/ia64/kernel/process.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index dda0082056b3..968b5f33e725 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | #include <linux/pm.h> | 13 | #include <linux/pm.h> |
| 14 | #include <linux/elf.h> | 14 | #include <linux/elf.h> |
| 15 | #include <linux/errno.h> | 15 | #include <linux/errno.h> |
| 16 | #include <linux/kallsyms.h> | ||
| 17 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
| 18 | #include <linux/mm.h> | 17 | #include <linux/mm.h> |
| 19 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
| @@ -69,7 +68,6 @@ void | |||
| 69 | ia64_do_show_stack (struct unw_frame_info *info, void *arg) | 68 | ia64_do_show_stack (struct unw_frame_info *info, void *arg) |
| 70 | { | 69 | { |
| 71 | unsigned long ip, sp, bsp; | 70 | unsigned long ip, sp, bsp; |
| 72 | char buf[128]; /* don't make it so big that it overflows the stack! */ | ||
| 73 | 71 | ||
| 74 | printk("\nCall Trace:\n"); | 72 | printk("\nCall Trace:\n"); |
| 75 | do { | 73 | do { |
| @@ -79,11 +77,9 @@ ia64_do_show_stack (struct unw_frame_info *info, void *arg) | |||
| 79 | 77 | ||
| 80 | unw_get_sp(info, &sp); | 78 | unw_get_sp(info, &sp); |
| 81 | unw_get_bsp(info, &bsp); | 79 | unw_get_bsp(info, &bsp); |
| 82 | snprintf(buf, sizeof(buf), | 80 | printk(" [<%016lx>] %pS\n" |
| 83 | " [<%016lx>] %%s\n" | ||
| 84 | " sp=%016lx bsp=%016lx\n", | 81 | " sp=%016lx bsp=%016lx\n", |
| 85 | ip, sp, bsp); | 82 | ip, (void *)ip, sp, bsp); |
| 86 | print_symbol(buf, ip); | ||
| 87 | } while (unw_unwind(info) >= 0); | 83 | } while (unw_unwind(info) >= 0); |
| 88 | } | 84 | } |
| 89 | 85 | ||
| @@ -111,7 +107,7 @@ show_regs (struct pt_regs *regs) | |||
| 111 | printk("psr : %016lx ifs : %016lx ip : [<%016lx>] %s (%s)\n", | 107 | printk("psr : %016lx ifs : %016lx ip : [<%016lx>] %s (%s)\n", |
| 112 | regs->cr_ipsr, regs->cr_ifs, ip, print_tainted(), | 108 | regs->cr_ipsr, regs->cr_ifs, ip, print_tainted(), |
| 113 | init_utsname()->release); | 109 | init_utsname()->release); |
| 114 | print_symbol("ip is at %s\n", ip); | 110 | printk("ip is at %pS\n", (void *)ip); |
| 115 | printk("unat: %016lx pfs : %016lx rsc : %016lx\n", | 111 | printk("unat: %016lx pfs : %016lx rsc : %016lx\n", |
| 116 | regs->ar_unat, regs->ar_pfs, regs->ar_rsc); | 112 | regs->ar_unat, regs->ar_pfs, regs->ar_rsc); |
| 117 | printk("rnat: %016lx bsps: %016lx pr : %016lx\n", | 113 | printk("rnat: %016lx bsps: %016lx pr : %016lx\n", |
