]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Check if accumulated when adding a hist entry
authorNamhyung Kim <namhyung@kernel.org>
Tue, 11 Sep 2012 04:34:27 +0000 (13:34 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:34:56 +0000 (14:34 +0200)
commit87a3a3c215481ea7b56baba42ff109b9768084f3
treedfaee76ff1dc0937725182803242899f36a51e05
parente1b4ad4eb13bea4261a8239fe16567fd67b98e93
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>
tools/perf/builtin-annotate.c
tools/perf/builtin-diff.c
tools/perf/builtin-top.c
tools/perf/tests/hists_link.c
tools/perf/util/hist.c
tools/perf/util/hist.h