Skip to contentSkip to conversation

tracing: Export trace_dump_stack to modules

PATCH In review Nikolay Borisov 2 participants 2 messages Oct 17, 2018 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracing: Export trace_dump_stack to modules

There is no reason for this function to be unexprted and it's a useful debugging aid.

---
 kernel/trace/trace.c | 1 +
 1 file changed, 1 insertion(+)
kernel/trace/trace.c +1 -0
index bf6f1d70484d..15c7a7d01505 100644
@@ -2727,6 +2727,7 @@ void trace_dump_stack(int skip)
 	__ftrace_trace_stack(global_trace.trace_buffer.buffer,
 			     flags, skip, preempt_count(), NULL);
 }
+EXPORT_SYMBOL_GPL(trace_dump_stack);
 
 static DEFINE_PER_CPU(int, user_stack_count);
 
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 4 lines · On Wed, 17 Oct 2018 09:51:43 +0300 Nikolay Borisov <[email protected]> wrote:

There is no reason for this function to be unexprted and it's a useful debugging aid.

Thanks, I added this to my queue for the merge window.

-- Steve

Quoted 16 lines
---
 kernel/trace/trace.c | 1 +
 1 file changed, 1 insertion(+)
kernel/trace/trace.c +1 -0
index bf6f1d70484d..15c7a7d01505 100644
@@ -2727,6 +2727,7 @@ void trace_dump_stack(int skip)
 	__ftrace_trace_stack(global_trace.trace_buffer.buffer,
 			     flags, skip, preempt_count(), NULL);
 }
+EXPORT_SYMBOL_GPL(trace_dump_stack);
 
 static DEFINE_PER_CPU(int, user_stack_count);