linux_dsm_epyc7002/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 tile: include: asm: use 'long long' instead of 'u64' for atomic64_t and its related functions 2013-09-27 16:08:56 -04:00
atomic_asm_32.S tile: use proper .align directives on __ex_table sections 2013-08-30 11:56:11 -04:00
cacheflush.c tile: support FRAME_POINTER 2013-09-03 14:52:09 -04:00
checksum.c arch/tile: break out the "csum a long" function to <asm/checksum.h> 2012-07-11 16:04:57 -04:00
cpumask.c tile: export a handful of symbols appropriately 2013-02-08 13:20:36 -05:00
delay.c arch/tile: fix __ndelay etc to work better 2011-03-01 16:20:04 -05:00
exports.c tile: improve stack backtrace 2015-05-11 11:22:40 -04:00
Makefile tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
memchr_32.c arch/tile: fix memchr() not to dereference memory for zero length 2010-11-24 13:57:42 -05:00
memchr_64.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
memcpy_32.S tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
memcpy_64.c tile: support FRAME_POINTER 2013-09-03 14:52:09 -04:00
memcpy_user_64.c tile: use proper .align directives on __ex_table sections 2013-08-30 11:56:11 -04:00
memmove.c arch/tile: minor whitespace/naming changes for string support files 2010-10-15 15:38:54 -04:00
memset_32.c tile: remove support for TILE64 2013-09-03 14:53:29 -04:00
memset_64.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
spinlock_32.c tile: modify arch_spin_unlock_wait() semantics 2015-04-28 22:43:13 -04:00
spinlock_64.c tile: modify arch_spin_unlock_wait() semantics 2015-04-28 22:43:13 -04:00
spinlock_common.h arch/tile: fix bug in delay_backoff() 2012-04-02 12:13:15 -04:00
strchr_32.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
strchr_64.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
string-endian.h tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
strlen_32.c tile: optimize and clean up string functions 2013-08-01 16:23:12 -04:00
strlen_64.c arch/tile: support building big-endian kernel 2012-05-25 12:48:22 -04:00
strnlen_32.c tile: optimize strnlen using SIMD instructions 2013-08-01 20:08:51 -04:00
strnlen_64.c tile: optimize strnlen using SIMD instructions 2013-08-01 20:08:51 -04:00
uaccess.c Kconfig: consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS 2013-04-30 17:04:09 -07:00
usercopy_32.S tile: add <asm/word-at-a-time.h> and enable support functions 2015-04-30 15:23:37 -04:00
usercopy_64.S tile: add <asm/word-at-a-time.h> and enable support functions 2015-04-30 15:23:37 -04:00