aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/trace-event.h')
-rw-r--r--tools/perf/util/trace-event.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h
index b5f12ca24d99..5f7b5139c321 100644
--- a/tools/perf/util/trace-event.h
+++ b/tools/perf/util/trace-event.h
@@ -3,6 +3,7 @@
3 3
4#include <stdbool.h> 4#include <stdbool.h>
5#include "parse-events.h" 5#include "parse-events.h"
6#include "session.h"
6 7
7#define __unused __attribute__((unused)) 8#define __unused __attribute__((unused))
8 9
@@ -278,8 +279,10 @@ struct scripting_ops {
278 const char *name; 279 const char *name;
279 int (*start_script) (const char *script, int argc, const char **argv); 280 int (*start_script) (const char *script, int argc, const char **argv);
280 int (*stop_script) (void); 281 int (*stop_script) (void);
281 void (*process_event) (int cpu, void *data, int size, 282 void (*process_event) (union perf_event *event,
282 unsigned long long nsecs, char *comm); 283 struct perf_sample *sample,
284 struct perf_session *session,
285 struct thread *thread);
283 int (*generate_script) (const char *outfile); 286 int (*generate_script) (const char *outfile);
284}; 287};
285 288