aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorEric B Munson <ebmunson@us.ibm.com>2010-03-05 10:51:06 -0500
committerIngo Molnar <mingo@elte.hu>2010-03-10 07:53:47 -0500
commitd403d0acc9c5afa679a3f61e71489530d7fa0606 (patch)
tree6f281b520792a11b2f4f9fffea90b978c6a12f11 /tools/perf/builtin-report.c
parent8907fd607b66e36636469a2de9833db643869db8 (diff)
perf session: Change add_hist_entry to take the tree root instead of session
In order to minimize the impact of storing multiple events in a report this function will now take the root of the histogram tree so that the logic for selecting the proper tree can be inserted before the call. Signed-off-by: Eric B Munson <ebmunson@us.ibm.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1267804269-22660-3-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index cfc655d40bb7..cd16e6a7d6d0 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -56,7 +56,8 @@ static int perf_session__add_hist_entry(struct perf_session *self,
56 if ((sort__has_parent || symbol_conf.use_callchain) && chain) 56 if ((sort__has_parent || symbol_conf.use_callchain) && chain)
57 syms = perf_session__resolve_callchain(self, al->thread, 57 syms = perf_session__resolve_callchain(self, al->thread,
58 chain, &parent); 58 chain, &parent);
59 he = __perf_session__add_hist_entry(self, al, parent, count, &hit); 59 he = __perf_session__add_hist_entry(&self->hists, al, parent,
60 count, &hit);
60 if (he == NULL) 61 if (he == NULL)
61 return -ENOMEM; 62 return -ENOMEM;
62 63