diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2018-11-05 10:01:12 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-12-09 02:54:09 +0100 |
commit | faacb361f271be4baf2d807e2eeaba87e059225f (patch) | |
tree | 2be7b93905eea781fae5242f8614952fb75dcfb2 /kernel/taskstats.c | |
parent | tracing: Lock event_mutex before synth_event_mutex (diff) | |
download | linux-faacb361f271be4baf2d807e2eeaba87e059225f.tar.xz linux-faacb361f271be4baf2d807e2eeaba87e059225f.zip |
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>
Diffstat (limited to 'kernel/taskstats.c')
0 files changed, 0 insertions, 0 deletions