]> Git Repo - linux.git/blobdiff - tools/perf/util/trace-event.h
perf trace: Add scripting ops
[linux.git] / tools / perf / util / trace-event.h
index dd51c6872a15c759d7f42d59bd4b5779ac7a325a..e7aaf002e6679ec5599cfa6a39a09f3f6dbf7020 100644 (file)
@@ -259,4 +259,15 @@ enum trace_flag_type {
        TRACE_FLAG_SOFTIRQ              = 0x10,
 };
 
+struct scripting_ops {
+       const char *name;
+       int (*start_script) (const char *);
+       int (*stop_script) (void);
+       void (*process_event) (int cpu, void *data, int size,
+                              unsigned long long nsecs, char *comm);
+       int (*generate_script) (const char *outfile);
+};
+
+int script_spec_register(const char *spec, struct scripting_ops *ops);
+
 #endif /* __PERF_TRACE_EVENTS_H */
This page took 0.031693 seconds and 4 git commands to generate.