aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/stdio
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2013-10-30 21:17:39 -0400
committerJiri Olsa <jolsa@kernel.org>2014-06-01 08:35:02 -0400
commit14135663f1d770bb057f8bf345e5436c985eb29c (patch)
tree390e9bb413cf8b6fb65375d339ce26b0ea2b5315 /tools/perf/ui/stdio
parentb09955b2a3d5fd02ed31d279f8c0ac29b32abe83 (diff)
perf tools: Apply percent-limit to cumulative percentage
If -g cumulative option is given, it needs to show entries which don't have self overhead. So apply percent-limit to accumulated overhead percentage in this case. 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-14-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/ui/stdio')
-rw-r--r--tools/perf/ui/stdio/hist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c
index 9f57991025a9..475d2f5c7e16 100644
--- a/tools/perf/ui/stdio/hist.c
+++ b/tools/perf/ui/stdio/hist.c
@@ -461,12 +461,12 @@ print_entries:
461 461
462 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { 462 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) {
463 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); 463 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node);
464 float percent = h->stat.period * 100.0 / 464 float percent;
465 hists->stats.total_period;
466 465
467 if (h->filtered) 466 if (h->filtered)
468 continue; 467 continue;
469 468
469 percent = hist_entry__get_percent_limit(h);
470 if (percent < min_pcnt) 470 if (percent < min_pcnt)
471 continue; 471 continue;
472 472