perf annotate: Move locking to struct annotation
[deliverable/linux.git] / tools / perf / builtin-report.c
index de06bf55efffafd5cb11b1126b780ceb4e6b3db5..f403aced4cba504b89aad1e868781bde1eea334b 100644 (file)
@@ -123,7 +123,7 @@ static int perf_session__add_hist_entry(struct perf_session *session,
                 * All aggregated on the first sym_hist.
                 */
                struct annotation *notes = symbol__annotation(he->ms.sym);
-               if (notes->histograms == NULL &&
+               if (notes->src == NULL &&
                    symbol__alloc_hist(he->ms.sym, 1) < 0)
                        err = -ENOMEM;
                else
@@ -166,7 +166,8 @@ static int process_sample_event(union perf_event *event,
        struct addr_location al;
        struct perf_event_attr *attr;
 
-       if (perf_event__preprocess_sample(event, session, &al, sample, NULL) < 0) {
+       if (perf_event__preprocess_sample(event, session, &al, sample,
+                                         symbol__annotate_init) < 0) {
                fprintf(stderr, "problem processing %d event, skipping it.\n",
                        event->header.type);
                return -1;
This page took 0.02682 seconds and 5 git commands to generate.