]> git.baikalelectronics.ru Git - kernel.git/commit
perf ui/hist: Add support to accumulated hist stat
authorNamhyung Kim <namhyung@kernel.org>
Wed, 30 Oct 2013 07:06:59 +0000 (16:06 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:35:00 +0000 (14:35 +0200)
commit984463cab1316b07cd2cfe6397591d60256eb3ef
tree04af47780d4cdc8b4cb205a554cd76bf834b3ba9
parente33830a8f9dea2e38980bcf81e873e2cd6aec0e1
perf ui/hist: Add support to accumulated hist stat

Print accumulated stat of a hist entry if requested.

To do that, add new HPP_PERCENT_ACC_FNS macro and generate a
perf_hpp_fmt using it.  The __hpp__sort_acc() function sorts entries
by accumulated period value.  When accumulated periods of two entries
are same (i.e. single path callchain) put the caller above since
accumulation tends to put callers on higher position for obvious
reason.

Also add "overhead_children" output field to be selected by user.

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-11-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/ui/hist.c
tools/perf/util/hist.h
tools/perf/util/sort.c