Skip to content

Commit 9a3dc31

Browse files
Dustin BrownRussell King
authored andcommitted
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 <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 4946097 commit 9a3dc31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/kernel/stacktrace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
171171
{
172172
__save_stack_trace(tsk, trace, 1);
173173
}
174+
EXPORT_SYMBOL(save_stack_trace_tsk);
174175

175176
void save_stack_trace(struct stack_trace *trace)
176177
{

0 commit comments

Comments
 (0)