aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-15 17:04:42 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-16 02:53:50 -0500
commitd599db3fc5dd4f1e8432fdbc6d899584b25f4dff (patch)
treefa455d1b9dede3983680d8ccb9dc25c14f4b45f6 /tools/perf/util/session.c
parentc410a33887c17cac95ed8b0d860cdfb5c087a7d8 (diff)
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/session.c')
-rw-r--r--tools/perf/util/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index bceaa09f55a1..ce3a6c8abe76 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -108,7 +108,7 @@ struct symbol **perf_session__resolve_callchain(struct perf_session *self,
108 struct symbol **syms = NULL; 108 struct symbol **syms = NULL;
109 unsigned int i; 109 unsigned int i;
110 110
111 if (self->use_callchain) { 111 if (symbol_conf.use_callchain) {
112 syms = calloc(chain->nr, sizeof(*syms)); 112 syms = calloc(chain->nr, sizeof(*syms));
113 if (!syms) { 113 if (!syms) {
114 fprintf(stderr, "Can't allocate memory for symbols\n"); 114 fprintf(stderr, "Can't allocate memory for symbols\n");
@@ -140,7 +140,7 @@ struct symbol **perf_session__resolve_callchain(struct perf_session *self,
140 if (sort__has_parent && !*parent && 140 if (sort__has_parent && !*parent &&
141 symbol__match_parent_regex(al.sym)) 141 symbol__match_parent_regex(al.sym))
142 *parent = al.sym; 142 *parent = al.sym;
143 if (!self->use_callchain) 143 if (!symbol_conf.use_callchain)
144 break; 144 break;
145 syms[i] = al.sym; 145 syms[i] = al.sym;
146 } 146 }