diff options
Diffstat (limited to 'tools/perf/builtin-lock.c')
-rw-r--r-- | tools/perf/builtin-lock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index 2b36defc5d73..2e93f99b1480 100644 --- a/tools/perf/builtin-lock.c +++ b/tools/perf/builtin-lock.c | |||
@@ -834,14 +834,14 @@ static void dump_info(void) | |||
834 | die("Unknown type of information\n"); | 834 | die("Unknown type of information\n"); |
835 | } | 835 | } |
836 | 836 | ||
837 | static int process_sample_event(event_t *self, struct sample_data *sample, | 837 | static int process_sample_event(union perf_event *event, struct perf_sample *sample, |
838 | struct perf_session *s) | 838 | struct perf_session *s) |
839 | { | 839 | { |
840 | struct thread *thread = perf_session__findnew(s, sample->tid); | 840 | struct thread *thread = perf_session__findnew(s, sample->tid); |
841 | 841 | ||
842 | if (thread == NULL) { | 842 | if (thread == NULL) { |
843 | pr_debug("problem processing %d event, skipping it.\n", | 843 | pr_debug("problem processing %d event, skipping it.\n", |
844 | self->header.type); | 844 | event->header.type); |
845 | return -1; | 845 | return -1; |
846 | } | 846 | } |
847 | 847 | ||
@@ -852,7 +852,7 @@ static int process_sample_event(event_t *self, struct sample_data *sample, | |||
852 | 852 | ||
853 | static struct perf_event_ops eops = { | 853 | static struct perf_event_ops eops = { |
854 | .sample = process_sample_event, | 854 | .sample = process_sample_event, |
855 | .comm = event__process_comm, | 855 | .comm = perf_event__process_comm, |
856 | .ordered_samples = true, | 856 | .ordered_samples = true, |
857 | }; | 857 | }; |
858 | 858 | ||
@@ -893,7 +893,7 @@ static const char * const report_usage[] = { | |||
893 | 893 | ||
894 | static const struct option report_options[] = { | 894 | static const struct option report_options[] = { |
895 | OPT_STRING('k', "key", &sort_key, "acquired", | 895 | OPT_STRING('k', "key", &sort_key, "acquired", |
896 | "key for sorting"), | 896 | "key for sorting (acquired / contended / wait_total / wait_max / wait_min)"), |
897 | /* TODO: type */ | 897 | /* TODO: type */ |
898 | OPT_END() | 898 | OPT_END() |
899 | }; | 899 | }; |