diff options
author | Tom Zanussi | 2020-02-10 17:06:49 -0600 |
---|---|---|
committer | Steven Rostedt (VMware) | 2020-02-10 22:00:13 -0500 |
commit | 0c62f6cd9ed320cb0ca39e33addf3a3da51b7328 (patch) | |
tree | b71a9162f6a7e7e366826327c7c28bd022b3424c /drivers/greybus | |
parent | d090409abbdd1fcbdfd6ed66612390ba8c814749 (diff) |
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 'drivers/greybus')
0 files changed, 0 insertions, 0 deletions