diff options
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 61fc0dc658c2..80356da8216c 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -103,15 +103,13 @@ void event__print_totals(void); | |||
103 | 103 | ||
104 | struct perf_session; | 104 | struct perf_session; |
105 | 105 | ||
106 | int event__synthesize_thread(pid_t pid, | 106 | typedef int (*event__handler_t)(event_t *event, struct perf_session *session); |
107 | int (*process)(event_t *event, | 107 | |
108 | struct perf_session *session), | 108 | int event__synthesize_thread(pid_t pid, event__handler_t process, |
109 | struct perf_session *session); | 109 | struct perf_session *session); |
110 | void event__synthesize_threads(int (*process)(event_t *event, | 110 | void event__synthesize_threads(event__handler_t process, |
111 | struct perf_session *session), | ||
112 | struct perf_session *session); | 111 | struct perf_session *session); |
113 | int event__synthesize_kernel_mmap(int (*process)(event_t *event, | 112 | int event__synthesize_kernel_mmap(event__handler_t process, |
114 | struct perf_session *session), | ||
115 | struct perf_session *session, | 113 | struct perf_session *session, |
116 | const char *symbol_name); | 114 | const char *symbol_name); |
117 | 115 | ||