diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-05-23 11:04:42 +0200 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-06-01 14:35:11 +0200 |
commit | 0506aecce999d4370b979892f88cf1118cfe8dcb (patch) | |
tree | c1238405196f00b64298391658ce4001bf6bea4c /tools/perf/tests/hists_common.c | |
parent | perf tests: Define and use symbolic names for fake symbols (diff) | |
download | linux-0506aecce999d4370b979892f88cf1118cfe8dcb.tar.xz linux-0506aecce999d4370b979892f88cf1118cfe8dcb.zip |
perf tests: Add a test case for cumulating callchains
Now it adds a new testcase to verify --children option working
correctly.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Arun Sharma <asharma@fb.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/1401335910-16832-28-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/tests/hists_common.c')
-rw-r--r-- | tools/perf/tests/hists_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/tests/hists_common.c b/tools/perf/tests/hists_common.c index e4e120d3c16f..a62c09134516 100644 --- a/tools/perf/tests/hists_common.c +++ b/tools/perf/tests/hists_common.c @@ -196,10 +196,11 @@ void print_hists_out(struct hists *hists) he = rb_entry(node, struct hist_entry, rb_node); if (!he->filtered) { - pr_info("%2d: entry: %8s:%5d [%-8s] %20s: period = %"PRIu64"\n", + pr_info("%2d: entry: %8s:%5d [%-8s] %20s: period = %"PRIu64"/%"PRIu64"\n", i, thread__comm_str(he->thread), he->thread->tid, he->ms.map->dso->short_name, - he->ms.sym->name, he->stat.period); + he->ms.sym->name, he->stat.period, + he->stat_acc ? he->stat_acc->period : 0); } i++; |