summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-15 20:04:42 -0200
committerIngo Molnar <mingo@elte.hu>2009-12-16 08:53:50 +0100
commitd599db3fc5dd4f1e8432fdbc6d899584b25f4dff (patch)
treefa455d1b9dede3983680d8ccb9dc25c14f4b45f6 /tools/perf/util/hist.c
parentc410a33887c17cac95ed8b0d860cdfb5c087a7d8 (diff)
downloadlinux-d599db3fc5dd4f1e8432fdbc6d899584b25f4dff.tar.gz
linux-d599db3fc5dd4f1e8432fdbc6d899584b25f4dff.tar.bz2
linux-d599db3fc5dd4f1e8432fdbc6d899584b25f4dff.zip
perf report: Generalize perf_session__fprintf_hists()
Pull it out of builtin-report - further changes will be made and it will then be reusable in 'perf diff' as well. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260914682-29652-4-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r--tools/perf/util/hist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index b9828fce7bf0..d9a5a19391dc 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -156,8 +156,7 @@ void perf_session__collapse_resort(struct perf_session *self)
* reverse the map, sort on count.
*/
-static void perf_session__insert_output_hist_entry(struct perf_session *self,
- struct rb_root *root,
+static void perf_session__insert_output_hist_entry(struct rb_root *root,
struct hist_entry *he,
u64 min_callchain_hits)
{
@@ -165,7 +164,7 @@ static void perf_session__insert_output_hist_entry(struct perf_session *self,
struct rb_node *parent = NULL;
struct hist_entry *iter;
- if (self->use_callchain)
+ if (symbol_conf.use_callchain)
callchain_param.sort(&he->sorted_chain, &he->callchain,
min_callchain_hits, &callchain_param);
@@ -201,7 +200,7 @@ void perf_session__output_resort(struct perf_session *self, u64 total_samples)
next = rb_next(&n->rb_node);
rb_erase(&n->rb_node, &self->hists);
- perf_session__insert_output_hist_entry(self, &tmp, n,
+ perf_session__insert_output_hist_entry(&tmp, n,
min_callchain_hits);
}