summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 61fc0dc658c..80356da8216 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -103,15 +103,13 @@ void event__print_totals(void);
struct perf_session;
-int event__synthesize_thread(pid_t pid,
- int (*process)(event_t *event,
- struct perf_session *session),
+typedef int (*event__handler_t)(event_t *event, struct perf_session *session);
+
+int event__synthesize_thread(pid_t pid, event__handler_t process,
struct perf_session *session);
-void event__synthesize_threads(int (*process)(event_t *event,
- struct perf_session *session),
+void event__synthesize_threads(event__handler_t process,
struct perf_session *session);
-int event__synthesize_kernel_mmap(int (*process)(event_t *event,
- struct perf_session *session),
+int event__synthesize_kernel_mmap(event__handler_t process,
struct perf_session *session,
const char *symbol_name);