]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - tools/perf/builtin-report.c
perf symbols: Add nr_events to symbol_conf
[mv-sheeva.git] / tools / perf / builtin-report.c
index 4d7c8340c3267c82cca1b1a266f36b8ed3c1b793..758a287fc07acbfac4fc5116d9a27698e6e9747c 100644 (file)
@@ -92,8 +92,7 @@ static int perf_session__add_hist_entry(struct perf_session *session,
                assert(evsel != NULL);
 
                err = -ENOMEM;
-               if (notes->src == NULL &&
-                   symbol__alloc_hist(he->ms.sym, session->evlist->nr_entries) < 0)
+               if (notes->src == NULL && symbol__alloc_hist(he->ms.sym) < 0)
                        goto out;
 
                err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr);