aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/stdio/hist.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-03-18 00:00:59 -0400
committerJiri Olsa <jolsa@kernel.org>2014-05-21 05:45:36 -0400
commite67d49a72df9aa50841ad400f7a99405e4980ee4 (patch)
tree4983f50b79df146a310d3ef1b9bdfa7e2f73aae1 /tools/perf/ui/stdio/hist.c
parent6fe8c26d7ab9fbd6748fc40ca5fea1e3131e7236 (diff)
perf tools: Skip elided sort entries
When it converted sort entries to hpp formats, it missed se->elide handling, so add it for compatibility. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1400480762-22852-16-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/ui/stdio/hist.c')
-rw-r--r--tools/perf/ui/stdio/hist.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c
index 49e2e4a7346a..e3fdf4e869fc 100644
--- a/tools/perf/ui/stdio/hist.c
+++ b/tools/perf/ui/stdio/hist.c
@@ -318,6 +318,9 @@ static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp)
318 return 0; 318 return 0;
319 319
320 perf_hpp__for_each_format(fmt) { 320 perf_hpp__for_each_format(fmt) {
321 if (perf_hpp__should_skip(fmt))
322 continue;
323
321 /* 324 /*
322 * If there's no field_sep, we still need 325 * If there's no field_sep, we still need
323 * to display initial ' '. 326 * to display initial ' '.
@@ -407,6 +410,9 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows,
407 fprintf(fp, "# "); 410 fprintf(fp, "# ");
408 411
409 perf_hpp__for_each_format(fmt) { 412 perf_hpp__for_each_format(fmt) {
413 if (perf_hpp__should_skip(fmt))
414 continue;
415
410 if (!first) 416 if (!first)
411 fprintf(fp, "%s", sep ?: " "); 417 fprintf(fp, "%s", sep ?: " ");
412 else 418 else
@@ -430,6 +436,9 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows,
430 perf_hpp__for_each_format(fmt) { 436 perf_hpp__for_each_format(fmt) {
431 unsigned int i; 437 unsigned int i;
432 438
439 if (perf_hpp__should_skip(fmt))
440 continue;
441
433 if (!first) 442 if (!first)
434 fprintf(fp, "%s", sep ?: " "); 443 fprintf(fp, "%s", sep ?: " ");
435 else 444 else