arch/tile: support signal "exception-trace" hook
This change adds support for /proc/sys/debug/exception-trace to tile.
Like x86 and sparc, by default it is set to "1", generating a one-line
printk whenever a user process crashes. By setting it to "2", we get
a much more complete userspace diagnostic at crash time, including
a user-space backtrace, register dump, and memory dump around the
address of the crash.
Some vestiges of the Tilera-internal version of this support are
removed with this patch (the show_crashinfo variable and the
arch_coredump_signal function). We retain a "crashinfo" boot parameter
which allows you to set the boot-time value of exception-trace.
Signed-off-by:
Chris Metcalf <cmetcalf@tilera.com>
Showing
- arch/tile/include/asm/processor.h 0 additions, 7 deletionsarch/tile/include/asm/processor.h
- arch/tile/include/asm/signal.h 4 additions, 0 deletionsarch/tile/include/asm/signal.h
- arch/tile/kernel/compat_signal.c 2 additions, 2 deletionsarch/tile/kernel/compat_signal.c
- arch/tile/kernel/signal.c 124 additions, 4 deletionsarch/tile/kernel/signal.c
- arch/tile/kernel/single_step.c 4 additions, 0 deletionsarch/tile/kernel/single_step.c
- arch/tile/kernel/traps.c 1 addition, 0 deletionsarch/tile/kernel/traps.c
- arch/tile/mm/fault.c 15 additions, 9 deletionsarch/tile/mm/fault.c
- kernel/sysctl.c 1 addition, 1 deletionkernel/sysctl.c
Loading
Please register or sign in to comment