-
- Downloads
"README.rst" did not exist on "54f90b03335916e21c417a31d0926841f7d97c56"
tracing: Add TRACE_CUSTOM_EVENT() macro
To make it really easy to add custom events from modules, add a TRACE_CUSTOM_EVENT() macro that acts just like the TRACE_EVENT() macro, but creates a custom event to an already existing tracepoint. The trace_custom_sched.[ch] has been updated to use this new macro to show how simple it is. Link: https://lkml.kernel.org/r/20220303220625.738622494@goodmis.org Cc: Ingo Molnar <mingo@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Joel Fernandes <joel@joelfernandes.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Tom Zanussi <zanussi@kernel.org> Signed-off-by:Steven Rostedt (Google) <rostedt@goodmis.org>
Showing
- include/linux/trace_events.h 23 additions, 1 deletioninclude/linux/trace_events.h
- include/trace/define_custom_trace.h 77 additions, 0 deletionsinclude/trace/define_custom_trace.h
- include/trace/trace_custom_events.h 221 additions, 0 deletionsinclude/trace/trace_custom_events.h
- samples/trace_events/Makefile 1 addition, 1 deletionsamples/trace_events/Makefile
- samples/trace_events/trace_custom_sched.c 24 additions, 235 deletionssamples/trace_events/trace_custom_sched.c
- samples/trace_events/trace_custom_sched.h 95 additions, 0 deletionssamples/trace_events/trace_custom_sched.h
Loading
Please register or sign in to comment