tracing: Don't return -EINVAL when tracing soft disabled synth events
authorTom Zanussi <zanussi@kernel.org>
Mon, 10 Feb 2020 23:06:49 +0000 (17:06 -0600)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 11 Feb 2020 03:00:13 +0000 (22:00 -0500)
commit0c62f6cd9ed320cb0ca39e33addf3a3da51b7328
treeb71a9162f6a7e7e366826327c7c28bd022b3424c
parentd090409abbdd1fcbdfd6ed66612390ba8c814749
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>
kernel/trace/trace_events_hist.c