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
Unified · Split
| @@ -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_SNAPSHOT | 5251 | #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 | #endif | 5258 | #endif |
| 5254 | #endif | 5259 | #endif |
| 5255 | ; | 5260 | ; |