]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
tracing: Simplify creation and deletion of synthetic events
authorMasami Hiramatsu <mhiramat@kernel.org>
Mon, 5 Nov 2018 09:01:12 +0000 (18:01 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 9 Dec 2018 01:54:09 +0000 (20:54 -0500)
commitfaacb361f271be4baf2d807e2eeaba87e059225f
tree2be7b93905eea781fae5242f8614952fb75dcfb2
parentfc800a10be26017f8f338bc8e500d48e3e6429d9
tracing: Simplify creation and deletion of synthetic events

Since the event_mutex and synth_event_mutex ordering issue
is gone, we can skip existing event check when adding or
deleting events, and some redundant code in error path.

This changes release_all_synth_events() to abort the process
when it hits any error and returns the error code. It succeeds
only if it has no error.

Link: http://lkml.kernel.org/r/154140847194.17322.17960275728005067803.stgit@devbox
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Tested-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c