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>
This commit is contained in:
@@ -103,4 +103,13 @@ int event__synthesize_attrs(struct perf_header *self,
|
||||
struct perf_session *session);
|
||||
int event__process_attr(event_t *self, struct perf_session *session);
|
||||
|
||||
int event__synthesize_event_type(u64 event_id, char *name,
|
||||
event__handler_t process,
|
||||
struct perf_session *session);
|
||||
int event__synthesize_event_types(event__handler_t process,
|
||||
struct perf_session *session);
|
||||
int event__process_event_type(event_t *self,
|
||||
struct perf_session *session);
|
||||
|
||||
|
||||
#endif /* __PERF_HEADER_H */
|
||||
|
Reference in New Issue
Block a user