aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event.h
diff options
context:
space:
mode:
authorDavid Ahern <daahern@cisco.com>2011-03-10 00:23:23 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-03-14 16:05:50 -0400
commitbe6d842a65babc54e2b204b382df2529e304be48 (patch)
treed8f3c9fb9f1457dcfa782102d2b27e0212bad009 /tools/perf/util/trace-event.h
parentcfd748ae066e776d45bdce550b47cd00c67d55de (diff)
perf script: Change process_event prototype
Prepare for handling of samples for any event type. Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> LKML-Reference: <1299734608-5223-2-git-send-email-daahern@cisco.com> Signed-off-by: David Ahern <daahern@cisco.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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