Skip to content

Commit 1bc36bd

Browse files
Tom Zanussirostedt
authored andcommitted
tracing: Add README information for synthetic_events file
Add an entry with a basic description of events/synthetic_events along with a simple example. Link: https://lkml.kernel.org/r/3c7f178cf95aaeebc01eda7d95600dd937233eb7.1601848695.git.zanussi@kernel.org Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent bd82631 commit 1bc36bd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎kernel/trace/trace.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5249,7 +5249,12 @@ static const char readme_msg[] =
52495249
"\t trace(<synthetic_event>,param list) - generate synthetic event\n"
52505250
"\t save(field,...) - save current event fields\n"
52515251
#ifdef CONFIG_TRACER_SNAPSHOT
5252-
"\t snapshot() - snapshot the trace buffer\n"
5252+
"\t snapshot() - snapshot the trace buffer\n\n"
5253+
#endif
5254+
#ifdef CONFIG_SYNTH_EVENTS
5255+
" events/synthetic_events\t- Create/append/remove/show synthetic events\n"
5256+
"\t Write into this file to define/undefine new synthetic events.\n"
5257+
"\t example: echo 'myevent u64 lat; char name[]' >> synthetic_events\n"
52535258
#endif
52545259
#endif
52555260
;

0 commit comments

Comments
 (0)