diff options
Diffstat (limited to 'tools/perf/util/trace-event.h')
-rw-r--r-- | tools/perf/util/trace-event.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h index dd51c6872a15..e7aaf002e667 100644 --- a/tools/perf/util/trace-event.h +++ b/tools/perf/util/trace-event.h | |||
@@ -259,4 +259,15 @@ enum trace_flag_type { | |||
259 | TRACE_FLAG_SOFTIRQ = 0x10, | 259 | TRACE_FLAG_SOFTIRQ = 0x10, |
260 | }; | 260 | }; |
261 | 261 | ||
262 | struct scripting_ops { | ||
263 | const char *name; | ||
264 | int (*start_script) (const char *); | ||
265 | int (*stop_script) (void); | ||
266 | void (*process_event) (int cpu, void *data, int size, | ||
267 | unsigned long long nsecs, char *comm); | ||
268 | int (*generate_script) (const char *outfile); | ||
269 | }; | ||
270 | |||
271 | int script_spec_register(const char *spec, struct scripting_ops *ops); | ||
272 | |||
262 | #endif /* __PERF_TRACE_EVENTS_H */ | 273 | #endif /* __PERF_TRACE_EVENTS_H */ |