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)
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

index feac80c22f61f7c24ea209214fb35092ad299f8c..09d37d66b6301abee1852bb0aead091fa1157098 100644 (file)
@@ -210,6 +210,7 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
 
        put_task_stack(tsk);
 }
+EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
 
 void save_stack_trace(struct stack_trace *trace)
 {