]> git.baikalelectronics.ru Git - kernel.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)
commitee8596dea11a0efb37177f8f81398eb53b8ac770
tree2be7b93905eea781fae5242f8614952fb75dcfb2
parente8921fa10abfbea9f0cc0b450f23becbf0a352fd
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