History

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

Tom Zanussi committed 6 years ago

Commit 72765311 parent 0c62f6c2 files · +87 −135Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/trace_events.h+1−1
@@ -424,7 +424,7 @@ struct synth_event_trace_state { · 423 unmodified lines
424424 struct synth_event *event;
425425 unsigned int cur_field;
426426 unsigned int n_u64;
427− bool enabled;
427+ bool disabled;
428428 bool add_next;
429429 bool add_name;
430430 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t