aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2020-02-10 17:06:49 -0600
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-10 22:00:13 -0500
commit0c62f6cd9ed320cb0ca39e33addf3a3da51b7328 (patch)
treeb71a9162f6a7e7e366826327c7c28bd022b3424c /init/main.c
parenttracing: Add missing nest end to synth_event_trace_start() error case (diff)
downloadlinux-dev-0c62f6cd9ed320cb0ca39e33addf3a3da51b7328.tar.xz
linux-dev-0c62f6cd9ed320cb0ca39e33addf3a3da51b7328.zip
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 'init/main.c')
0 files changed, 0 insertions, 0 deletions