Skip to content

Commit e27c7fa

Browse files
Dustin Brownwildea01
authored andcommitted
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>
1 parent 91e0bf8 commit e27c7fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/kernel/stacktrace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
210210

211211
put_task_stack(tsk);
212212
}
213+
EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
213214

214215
void save_stack_trace(struct stack_trace *trace)
215216
{

0 commit comments

Comments
 (0)