tracing/probe: Add trace_event_file access APIs for trace_probe
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 31 May 2019 15:17:26 +0000 (00:17 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 16 Jul 2019 19:14:47 +0000 (15:14 -0400)
commitb5f935ee133911b3ed2d4429dd86d2bd5385519d
tree249b7db4c9568ec2856843d5c9288c3bc36728c4
parent46e5376d404d14cb321f5d4e446fe3fb6d8a93ab
tracing/probe: Add trace_event_file access APIs for trace_probe

Add trace_event_file access APIs for trace_probe data structure.
This simplifies enabling/disabling operations in uprobe and kprobe
events so that those don't touch deep inside the trace_probe.

This also removing a redundant synchronization when the
kprobe event is used from perf, since the perf itself uses
tracepoint_synchronize_unregister() after disabling (ftrace-
defined) event, thus we don't have to synchronize in that
path. Also we don't need to identify local trace_kprobe too
anymore.

Link: http://lkml.kernel.org/r/155931584587.28323.372301976283354629.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c