summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDustin Brown <dustinb@codeaurora.org>2017-08-07 20:44:01 +0200
committerRussell King <rmk+kernel@armlinux.org.uk>2017-09-09 17:26:42 +0200
commit9a3dc3186fc3795e076a4122da9e0258651a9631 (patch)
tree572634c72d926358822b797c9227fcbead9ae812 /arch
parentARM: always enable AEABI for ARMv6+ (diff)
downloadlinux-9a3dc3186fc3795e076a4122da9e0258651a9631.tar.xz
linux-9a3dc3186fc3795e076a4122da9e0258651a9631.zip
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 <dustinb@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/stacktrace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/stacktrace.c b/arch/arm/kernel/stacktrace.c
index 3a2fa203637a..65228bf4c6df 100644
--- a/arch/arm/kernel/stacktrace.c
+++ b/arch/arm/kernel/stacktrace.c
@@ -171,6 +171,7 @@ void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
{
__save_stack_trace(tsk, trace, 1);
}
+EXPORT_SYMBOL(save_stack_trace_tsk);
void save_stack_trace(struct stack_trace *trace)
{