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