arm64: Export save_stack_trace_tsk()
authorDustin Brown <dustinb@codeaurora.org>
Tue, 13 Jun 2017 18:40:56 +0000 (11:40 -0700)
committerWill Deacon <will.deacon@arm.com>
Thu, 15 Jun 2017 10:52:35 +0000 (11:52 +0100)
commite27c7fa015d61c8be6a2c32b2144aad2ae6ec975
tree609dc65a3dcee351ec8d41aa626b4a7bc8531e2d
parent91e0bf81258c07aad27a4833368569ce873cd83e
arm64: 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 ARM64 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: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/stacktrace.c