History

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

Tom Zanussi committed 6 years ago

Commit 1bc36bd1 parent bd826311 file · +6 −1Browse files

Unified · Split

kernel/trace/trace.c+6−1
@@ -5249,7 +5249,12 @@ static const char readme_msg[] = · 5248 unmodified lines
5249 "\t trace(<synthetic_event>,param list) - generate synthetic event\n"5249 "\t trace(<synthetic_event>,param list) - generate synthetic event\n"
5250 "\t save(field,...) - save current event fields\n"5250 "\t save(field,...) - save current event fields\n"
5251#ifdef CONFIG_TRACER_SNAPSHOT5251#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"
5253#endif5258#endif
5254#endif5259#endif
5255;5260;

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