Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a3dc318 authored by Dustin Brown's avatar Dustin Brown Committed by Russell King
Browse files

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: default avatarDustin Brown <dustinb@codeaurora.org>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 49460970
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -171,6 +171,7 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
{
{
	__save_stack_trace(tsk, trace, 1);
	__save_stack_trace(tsk, trace, 1);
}
}
EXPORT_SYMBOL(save_stack_trace_tsk);


void save_stack_trace(struct stack_trace *trace)
void save_stack_trace(struct stack_trace *trace)
{
{