aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2012-09-11 01:13:04 -0400
committerJiri Olsa <jolsa@kernel.org>2014-06-01 08:34:57 -0400
commit7a13aa28aa268359cee006059731f49bcd1f839e (patch)
treed3748f0fa3e62fabf3f018cd2789076dc593f392 /tools/perf/builtin-report.c
parenta0b51af367a6831330564c96dc4cc1ac63413701 (diff)
perf hists: Accumulate hist entry stat based on the callchain
Call __hists__add_entry() for each callchain node to get an accumulated stat for an entry. Introduce new cumulative_iter ops to process them properly. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Arun Sharma <asharma@fb.com> Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/r/1401335910-16832-6-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 3201bdfa8c3f..e8fa9fea341f 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -115,6 +115,8 @@ static int process_sample_event(struct perf_tool *tool,
115 iter.ops = &hist_iter_branch; 115 iter.ops = &hist_iter_branch;
116 else if (rep->mem_mode) 116 else if (rep->mem_mode)
117 iter.ops = &hist_iter_mem; 117 iter.ops = &hist_iter_mem;
118 else if (symbol_conf.cumulate_callchain)
119 iter.ops = &hist_iter_cumulative;
118 else 120 else
119 iter.ops = &hist_iter_normal; 121 iter.ops = &hist_iter_normal;
120 122