aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2012-09-11 00:34:27 -0400
committerJiri Olsa <jolsa@kernel.org>2014-06-01 08:34:56 -0400
commita0b51af367a6831330564c96dc4cc1ac63413701 (patch)
treedfaee76ff1dc0937725182803242899f36a51e05 /tools/perf/util/hist.h
parentf8be1c8c48c8469d1ce95ccdc77b1e2c6a29700e (diff)
perf hists: Check if accumulated when adding a hist entry
To support callchain accumulation, @entry should be recognized if it's accumulated or not when add_hist_entry() called. The period of an accumulated entry should be added to ->stat_acc but not ->stat. Add @sample_self arg for that. 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-5-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r--tools/perf/util/hist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 8894f184357c..bedb24d3643c 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -130,7 +130,8 @@ struct hist_entry *__hists__add_entry(struct hists *hists,
130 struct symbol *parent, 130 struct symbol *parent,
131 struct branch_info *bi, 131 struct branch_info *bi,
132 struct mem_info *mi, u64 period, 132 struct mem_info *mi, u64 period,
133 u64 weight, u64 transaction); 133 u64 weight, u64 transaction,
134 bool sample_self);
134int hist_entry_iter__add(struct hist_entry_iter *iter, struct addr_location *al, 135int hist_entry_iter__add(struct hist_entry_iter *iter, struct addr_location *al,
135 struct perf_evsel *evsel, struct perf_sample *sample, 136 struct perf_evsel *evsel, struct perf_sample *sample,
136 int max_stack_depth); 137 int max_stack_depth);