tracing: Add stack_tracer_disable/enable() functions
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 6 Apr 2017 16:26:20 +0000 (12:26 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 10 Apr 2017 18:34:10 +0000 (14:34 -0400)
commit5367278cb7ba74537bcad1470d75f30d95b09c14
tree5260086992bf2f40e58bb0ce72529c402cd5e4b5
parent252babcd52aabe37aaad03685e7d6ad454edb9f9
tracing: Add stack_tracer_disable/enable() functions

There are certain parts of the kernel that cannot let stack tracing
proceed (namely in RCU), because the stack tracer uses RCU, and parts of RCU
internals cannot handle having RCU read side locks taken.

Add stack_tracer_disable() and stack_tracer_enable() functions to let RCU
stop stack tracing on the current CPU when it is in those critical sections.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/trace_stack.c