diff options
Diffstat (limited to 'tools/perf/util/build-id.c')
-rw-r--r-- | tools/perf/util/build-id.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c index deffb8c96071..a91cd99f26ea 100644 --- a/tools/perf/util/build-id.c +++ b/tools/perf/util/build-id.c | |||
@@ -14,8 +14,9 @@ | |||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include "debug.h" | 15 | #include "debug.h" |
16 | 16 | ||
17 | static int build_id__mark_dso_hit(event_t *event, | 17 | static int build_id__mark_dso_hit(union perf_event *event, |
18 | struct sample_data *sample __used, | 18 | struct perf_sample *sample __used, |
19 | struct perf_evsel *evsel __used, | ||
19 | struct perf_session *session) | 20 | struct perf_session *session) |
20 | { | 21 | { |
21 | struct addr_location al; | 22 | struct addr_location al; |
@@ -37,13 +38,14 @@ static int build_id__mark_dso_hit(event_t *event, | |||
37 | return 0; | 38 | return 0; |
38 | } | 39 | } |
39 | 40 | ||
40 | static int event__exit_del_thread(event_t *self, struct sample_data *sample __used, | 41 | static int perf_event__exit_del_thread(union perf_event *event, |
41 | struct perf_session *session) | 42 | struct perf_sample *sample __used, |
43 | struct perf_session *session) | ||
42 | { | 44 | { |
43 | struct thread *thread = perf_session__findnew(session, self->fork.tid); | 45 | struct thread *thread = perf_session__findnew(session, event->fork.tid); |
44 | 46 | ||
45 | dump_printf("(%d:%d):(%d:%d)\n", self->fork.pid, self->fork.tid, | 47 | dump_printf("(%d:%d):(%d:%d)\n", event->fork.pid, event->fork.tid, |
46 | self->fork.ppid, self->fork.ptid); | 48 | event->fork.ppid, event->fork.ptid); |
47 | 49 | ||
48 | if (thread) { | 50 | if (thread) { |
49 | rb_erase(&thread->rb_node, &session->threads); | 51 | rb_erase(&thread->rb_node, &session->threads); |
@@ -56,9 +58,9 @@ static int event__exit_del_thread(event_t *self, struct sample_data *sample __us | |||
56 | 58 | ||
57 | struct perf_event_ops build_id__mark_dso_hit_ops = { | 59 | struct perf_event_ops build_id__mark_dso_hit_ops = { |
58 | .sample = build_id__mark_dso_hit, | 60 | .sample = build_id__mark_dso_hit, |
59 | .mmap = event__process_mmap, | 61 | .mmap = perf_event__process_mmap, |
60 | .fork = event__process_task, | 62 | .fork = perf_event__process_task, |
61 | .exit = event__exit_del_thread, | 63 | .exit = perf_event__exit_del_thread, |
62 | }; | 64 | }; |
63 | 65 | ||
64 | char *dso__build_id_filename(struct dso *self, char *bf, size_t size) | 66 | char *dso__build_id_filename(struct dso *self, char *bf, size_t size) |