diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-11 19:17:32 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 07:37:11 -0500 |
commit | d04b35f8085f0d4c5c874515b8f65e7664357148 (patch) | |
tree | 8115d7e30c274756097ce27742338438a14fabd5 /tools/perf/builtin-report.c | |
parent | 18b552350515188a732db6ccdb81e9cefb8b58c9 (diff) |
perf symbols: Add nr_events to symbol_conf
Since symbol__alloc_hists need it, to avoid passing it around in many
functions have it in the symbol_conf struct.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-cwv8ysvpywzjq4v3xtbd4zwv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 4d7c8340c326..758a287fc07a 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -92,8 +92,7 @@ static int perf_session__add_hist_entry(struct perf_session *session, | |||
92 | assert(evsel != NULL); | 92 | assert(evsel != NULL); |
93 | 93 | ||
94 | err = -ENOMEM; | 94 | err = -ENOMEM; |
95 | if (notes->src == NULL && | 95 | if (notes->src == NULL && symbol__alloc_hist(he->ms.sym) < 0) |
96 | symbol__alloc_hist(he->ms.sym, session->evlist->nr_entries) < 0) | ||
97 | goto out; | 96 | goto out; |
98 | 97 | ||
99 | err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); | 98 | err = hist_entry__inc_addr_samples(he, evsel->idx, al->addr); |