tracing: Add README information for synthetic_events file
[platform/kernel/linux-rpi.git] / kernel / trace / trace.c
index 3f2533a..73fd0e0 100644 (file)
@@ -5249,7 +5249,12 @@ static const char readme_msg[] =
        "\t        trace(<synthetic_event>,param list)  - generate synthetic event\n"
        "\t        save(field,...)                      - save current event fields\n"
 #ifdef CONFIG_TRACER_SNAPSHOT
-       "\t        snapshot()                           - snapshot the trace buffer\n"
+       "\t        snapshot()                           - snapshot the trace buffer\n\n"
+#endif
+#ifdef CONFIG_SYNTH_EVENTS
+       "  events/synthetic_events\t- Create/append/remove/show synthetic events\n"
+       "\t  Write into this file to define/undefine new synthetic events.\n"
+       "\t     example: echo 'myevent u64 lat; char name[]' >> synthetic_events\n"
 #endif
 #endif
 ;