ARM: 8691/1: Export save_stack_trace_tsk()
authorDustin Brown <dustinb@codeaurora.org>
Mon, 7 Aug 2017 18:44:01 +0000 (19:44 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 9 Sep 2017 15:26:42 +0000 (16:26 +0100)
commit9a3dc3186fc3795e076a4122da9e0258651a9631
tree572634c72d926358822b797c9227fcbead9ae812
parent494609701e06a0040c0f4042c80fac4e8b5f0ab8
ARM: 8691/1: Export save_stack_trace_tsk()

The kernel watchdog is a great debugging tool for finding tasks that
consume a disproportionate amount of CPU time in contiguous chunks. One
can imagine building a similar watchdog for arbitrary driver threads
using save_stack_trace_tsk() and print_stack_trace(). However, this is
not viable for dynamically loaded driver modules on ARM platforms
because save_stack_trace_tsk() is not exported for those architectures.
Export save_stack_trace_tsk() for the ARM architecture to align with
x86 and support various debugging use cases such as arbitrary driver
thread watchdog timers.

Signed-off-by: Dustin Brown <dustinb@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/stacktrace.c