diff options
author | Tom Zanussi <zanussi@kernel.org> | 2020-02-11 00:06:50 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-02-11 04:00:21 +0100 |
commit | 7276531d4036f5db2af15c8b6caa02e7741f5d80 (patch) | |
tree | c830d97280393f8b21ad8b82a885f650a9891af0 /lib/Kconfig | |
parent | tracing: Don't return -EINVAL when tracing soft disabled synth events (diff) | |
download | linux-7276531d4036f5db2af15c8b6caa02e7741f5d80.tar.xz linux-7276531d4036f5db2af15c8b6caa02e7741f5d80.zip |
tracing: Consolidate trace() functions
Move the checking, buffer reserve and buffer commit code in
synth_event_trace_start/end() into inline functions
__synth_event_trace_start/end() so they can also be used by
synth_event_trace() and synth_event_trace_array(), and then have all
those functions use them.
Also, change synth_event_trace_state.enabled to disabled so it only
needs to be set if the event is disabled, which is not normally the
case.
Link: http://lkml.kernel.org/r/b1f3108d0f450e58192955a300e31d0405ab4149.1581374549.git.zanussi@kernel.org
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'lib/Kconfig')
0 files changed, 0 insertions, 0 deletions