diff options
author | Tom Zanussi <zanussi@kernel.org> | 2020-02-11 02:06:49 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-02-11 06:00:13 +0300 |
commit | 0c62f6cd9ed320cb0ca39e33addf3a3da51b7328 (patch) | |
tree | b71a9162f6a7e7e366826327c7c28bd022b3424c /include/linux/umh.h | |
parent | d090409abbdd1fcbdfd6ed66612390ba8c814749 (diff) | |
download | linux-0c62f6cd9ed320cb0ca39e33addf3a3da51b7328.tar.xz |
tracing: Don't return -EINVAL when tracing soft disabled synth events
There's no reason to return -EINVAL when tracing a synthetic event if
it's soft disabled - treat it the same as if it were hard disabled and
return normally.
Have synth_event_trace() and synth_event_trace_array() just return
normally, and have synth_event_trace_start set the trace state to
disabled and return.
Link: http://lkml.kernel.org/r/df5d02a1625aff97c9866506c5bada6a069982ba.1581374549.git.zanussi@kernel.org
Fixes: 8dcc53ad956d2 ("tracing: Add synth_event_trace() and related functions")
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/umh.h')
0 files changed, 0 insertions, 0 deletions