diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index de06bf55efff..f403aced4cba 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -123,7 +123,7 @@ static int perf_session__add_hist_entry(struct perf_session *session, | |||
123 | * All aggregated on the first sym_hist. | 123 | * All aggregated on the first sym_hist. |
124 | */ | 124 | */ |
125 | struct annotation *notes = symbol__annotation(he->ms.sym); | 125 | struct annotation *notes = symbol__annotation(he->ms.sym); |
126 | if (notes->histograms == NULL && | 126 | if (notes->src == NULL && |
127 | symbol__alloc_hist(he->ms.sym, 1) < 0) | 127 | symbol__alloc_hist(he->ms.sym, 1) < 0) |
128 | err = -ENOMEM; | 128 | err = -ENOMEM; |
129 | else | 129 | else |
@@ -166,7 +166,8 @@ static int process_sample_event(union perf_event *event, | |||
166 | struct addr_location al; | 166 | struct addr_location al; |
167 | struct perf_event_attr *attr; | 167 | struct perf_event_attr *attr; |
168 | 168 | ||
169 | if (perf_event__preprocess_sample(event, session, &al, sample, NULL) < 0) { | 169 | if (perf_event__preprocess_sample(event, session, &al, sample, |
170 | symbol__annotate_init) < 0) { | ||
170 | fprintf(stderr, "problem processing %d event, skipping it.\n", | 171 | fprintf(stderr, "problem processing %d event, skipping it.\n", |
171 | event->header.type); | 172 | event->header.type); |
172 | return -1; | 173 | return -1; |