diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-06 19:39:18 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-06 19:39:18 -0400 |
| commit | 5eb6eed7e0fe880dc8de8da203cc888716bbf196 (patch) | |
| tree | 05a7c83182b34a567c68b35c091cf31200d5ddec /include/linux | |
| parent | 8b5c6a3a49d9ebc7dc288870b9c56c4f946035d8 (diff) | |
| parent | 591a033dc17ff6f684b6b6d1d7426e22d178194f (diff) | |
Merge tag 'trace-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing updates from Steven Rostedt:
"One new feature was added to ftrace, which is the trace_marker now
supports triggers. For example:
# cd /sys/kernel/debug/tracing
# echo 'snapshot' > events/ftrace/print/trigger
# echo 'cause snapshot' > trace_marker
The rest of the changes are various clean ups and also one stable fix
that was added late in the cycle"
* tag 'trace-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (21 commits)
tracing: Use match_string() instead of open coding it in trace_set_options()
branch-check: fix long->int truncation when profiling branches
ring-buffer: Fix typo in comment
ring-buffer: Fix a bunch of typos in comments
tracing/selftest: Add test to test simple snapshot trigger for trace_marker
tracing/selftest: Add test to test hist trigger between kernel event and trace_marker
tracing/selftest: Add selftests to test trace_marker histogram triggers
ftrace/selftest: Fix reset_trigger() to handle triggers with filters
ftrace/selftest: Have the reset_trigger code be a bit more careful
tracing: Document trace_marker triggers
tracing: Allow histogram triggers to access ftrace internal events
tracing: Prevent further users of zero size static arrays in trace events
tracing: Have zero size length in filter logic be full string
tracing: Add trigger file for trace_markers tracefs/ftrace/print
tracing: Do not show filter file for ftrace internal events
tracing: Add brackets in ftrace event dynamic arrays
tracing: Have event_trace_init() called by trace_init_tracefs()
tracing: Add __find_event_file() to find event files without restrictions
tracing: Do not reference event data in post call triggers
tracepoints: Fix the descriptions of tracepoint_probe_register{_prio}
...
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/compiler.h | 2 | ||||
| -rw-r--r-- | include/linux/ring_buffer.h | 2 | ||||
| -rw-r--r-- | include/linux/trace_events.h | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index ab4711c63601..42506e4d1f53 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
| @@ -21,7 +21,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, | |||
| 21 | #define unlikely_notrace(x) __builtin_expect(!!(x), 0) | 21 | #define unlikely_notrace(x) __builtin_expect(!!(x), 0) |
| 22 | 22 | ||
| 23 | #define __branch_check__(x, expect, is_constant) ({ \ | 23 | #define __branch_check__(x, expect, is_constant) ({ \ |
| 24 | int ______r; \ | 24 | long ______r; \ |
| 25 | static struct ftrace_likely_data \ | 25 | static struct ftrace_likely_data \ |
| 26 | __attribute__((__aligned__(4))) \ | 26 | __attribute__((__aligned__(4))) \ |
| 27 | __attribute__((section("_ftrace_annotated_branch"))) \ | 27 | __attribute__((section("_ftrace_annotated_branch"))) \ |
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index a0233edc0718..b72ebdff0b77 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
| @@ -65,7 +65,7 @@ u64 ring_buffer_event_time_stamp(struct ring_buffer_event *event); | |||
| 65 | 65 | ||
| 66 | /* | 66 | /* |
| 67 | * ring_buffer_discard_commit will remove an event that has not | 67 | * ring_buffer_discard_commit will remove an event that has not |
| 68 | * ben committed yet. If this is used, then ring_buffer_unlock_commit | 68 | * been committed yet. If this is used, then ring_buffer_unlock_commit |
| 69 | * must not be called on the discarded event. This function | 69 | * must not be called on the discarded event. This function |
| 70 | * will try to remove the event from the ring buffer completely | 70 | * will try to remove the event from the ring buffer completely |
| 71 | * if another event has not been written after it. | 71 | * if another event has not been written after it. |
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 2bde3eff564c..d1c442d9bd85 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
| @@ -435,8 +435,7 @@ event_triggers_call(struct trace_event_file *file, void *rec, | |||
| 435 | struct ring_buffer_event *event); | 435 | struct ring_buffer_event *event); |
| 436 | extern void | 436 | extern void |
| 437 | event_triggers_post_call(struct trace_event_file *file, | 437 | event_triggers_post_call(struct trace_event_file *file, |
| 438 | enum event_trigger_type tt, | 438 | enum event_trigger_type tt); |
| 439 | void *rec, struct ring_buffer_event *event); | ||
| 440 | 439 | ||
| 441 | bool trace_event_ignore_this_pid(struct trace_event_file *trace_file); | 440 | bool trace_event_ignore_this_pid(struct trace_event_file *trace_file); |
| 442 | 441 | ||
