summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2020-02-11 02:06:50 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-02-11 06:00:21 +0300
commit7276531d4036f5db2af15c8b6caa02e7741f5d80 (patch)
treec830d97280393f8b21ad8b82a885f650a9891af0 /include/linux
parent0c62f6cd9ed320cb0ca39e33addf3a3da51b7328 (diff)
downloadlinux-7276531d4036f5db2af15c8b6caa02e7741f5d80.tar.xz
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 'include/linux')
-rw-r--r--include/linux/trace_events.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h
index 67f528ecb9e5..21098298b49b 100644
--- a/include/linux/trace_events.h
+++ b/include/linux/trace_events.h
@@ -424,7 +424,7 @@ struct synth_event_trace_state {
struct synth_event *event;
unsigned int cur_field;
unsigned int n_u64;
- bool enabled;
+ bool disabled;
bool add_next;
bool add_name;
};