Star64_linux/arch/tile/lib
Chris Metcalf 47ad7b9bbe tile: improve stack backtrace
This commit fixes a number of issues with the tile backtrace code.

- Don't try to identify userspace shared object or executable paths
  if we are doing a backtrace from an interrupt; it's not legal,
  and also unlikely to be interesting.  Likewise, don't try to do
  it for other address spaces, since d_path() assumes it is being
  called in "current" context.

- Move "in_backtrace" from thread_struct to thread_info.
  This way we can access it even if our stack thread_info has been
  clobbered, which makes backtracing more robust.

- Avoid using "current" directly when testing for is_sigreturn().
  Since "current" may be corrupt, we're better off using kbt->task
  explicitly to look up the vdso_base for the current task.
  Conveniently, this simplifies the internal APIs (we only need
  one is_sigreturn() function now).

- Avoid bogus "Odd fault" warning when pc/sp/ex1 are all zero,
  as is true for kernel threads above the last frame.

- Hook into Tejun Heo's dump_stack() framework in lib/dump_stack.c.

- Write last entry in save_stack_trace() as ULONG_MAX, not zero,
  since ftrace (at least) relies on finding that marker.

- Implement save_stack_trace_regs() and save_strack_trace_user(),
  and set CONFIG_USER_STACKTRACE_SUPPORT.

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
2015-05-11 11:22:40 -04:00
..
atomic_32.c
atomic_asm_32.S
cacheflush.c
checksum.c
cpumask.c
delay.c
exports.c tile: improve stack backtrace 2015-05-11 11:22:40 -04:00
Makefile
memchr_32.c
memchr_64.c
memcpy_32.S
memcpy_64.c
memcpy_user_64.c
memmove.c
memset_32.c
memset_64.c
spinlock_32.c
spinlock_64.c
spinlock_common.h
strchr_32.c
strchr_64.c
string-endian.h
strlen_32.c
strlen_64.c
strnlen_32.c
strnlen_64.c
uaccess.c
usercopy_32.S
usercopy_64.S