tracing: Call traceoff trigger after event is recorded
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 8 Sep 2016 16:05:45 +0000 (01:05 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 23 Sep 2016 13:47:59 +0000 (09:47 -0400)
commita0d0c6216afad4b2b1704a72bd76bea259e07655
tree434154729ad4dd19f38e58ae71afc968be6ecde7
parent951dbf500aa7df051d7cde15b9ac05608c0bb16f
tracing: Call traceoff trigger after event is recorded

Call traceoff trigger after the event is recorded.
Since current traceoff trigger is called before recording
the event, we can not know what event stopped tracing.

Typical usecase of traceoff/traceon trigger is tracing
function calls and trace events between a pair of events.
For example, trace function calls between syscall entry/exit.
In that case, it is useful if we can see the return code
of the target syscall.

Link: http://lkml.kernel.org/r/147335074530.12462.4526186083406015005.stgit@devbox
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_trigger.c