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
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 ;

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