diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2010-04-02 00:59:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-04-14 05:56:07 -0400 |
commit | cd19a035f3b63fee6dcbdb5371c4b22276f7dc8c (patch) | |
tree | 0d0f6ce913a070372854d524bca068032dd3ff8f /tools/perf/util/header.h | |
parent | 2c46dbb517a10b18d459e6ceffefde5bfb290cf6 (diff) |
perf: Convert perf event types into event type events
Bypasses the event type perf header code and replaces it with a
synthesized event and processing function that accomplishes the
same thing, used when reading/writing perf data to/from a pipe.
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
Cc: k-keiichi@bx.jp.nec.com
Cc: acme@ghostprotocols.net
LKML-Reference: <1270184365-8281-7-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r-- | tools/perf/util/header.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index e916ac509a69..afeb61883766 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -103,4 +103,13 @@ int event__synthesize_attrs(struct perf_header *self, | |||
103 | struct perf_session *session); | 103 | struct perf_session *session); |
104 | int event__process_attr(event_t *self, struct perf_session *session); | 104 | int event__process_attr(event_t *self, struct perf_session *session); |
105 | 105 | ||
106 | int event__synthesize_event_type(u64 event_id, char *name, | ||
107 | event__handler_t process, | ||
108 | struct perf_session *session); | ||
109 | int event__synthesize_event_types(event__handler_t process, | ||
110 | struct perf_session *session); | ||
111 | int event__process_event_type(event_t *self, | ||
112 | struct perf_session *session); | ||
113 | |||
114 | |||
106 | #endif /* __PERF_HEADER_H */ | 115 | #endif /* __PERF_HEADER_H */ |