diff options
author | Steven Rostedt (Google) <[email protected]> | 2022-03-03 17:05:32 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2022-03-11 11:48:43 -0500 |
commit | 953c2f052112a857c00058a641dc0c58ec7551d4 (patch) | |
tree | 4113cdf34d6e167cee72debf067e54716584e89a /drivers/fpga/fpga-bridge.c | |
parent | 8bcd06632b73291e8734f46084ed04f4106b840a (diff) |
tracing: Add sample code for custom trace events
Add sample code to show how to create custom trace events in the tracefs
directory that can be enabled and modified like any event in tracefs
(including triggers, histograms, synthetic events and event probes).
The example is creating a custom sched_switch and a sched_waking to limit
what is recorded:
If the custom sched switch only records the prev_prio, next_prio and
next_pid, it can bring the size from 64 bytes per event, down to just 16
bytes!
If sched_waking only records the prio and pid of the woken event, it will
bring the size down from 36 bytes to 12 bytes per event.
This will allow for a much smaller footprint into the ring buffer and keep
more events from dropping.
Link: https://lkml.kernel.org/r/[email protected]
Cc: Ingo Molnar <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Tom Zanussi <[email protected]>
Suggested-by: Joel Fernandes <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions