diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-01-18 04:24:17 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-02-03 10:24:14 -0500 |
commit | cf094045d718437e3d5cd42ac09d77561cb2f368 (patch) | |
tree | f5c3749c3987a11ffa86591d525abc011a8c5f21 /tools/perf/ui/stdio/hist.c | |
parent | 07600027fb7114bf7bcabdd121e5178f200d8a44 (diff) |
perf hists: Introduce perf_hpp_list__for_each_format macro
Introducing perf_hpp_list__for_each_format macro to iterate
perf_hpp_list object's output entries.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1453109064-1026-20-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/stdio/hist.c')
-rw-r--r-- | tools/perf/ui/stdio/hist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c index 691e52ce7510..83e0bf2ab986 100644 --- a/tools/perf/ui/stdio/hist.c +++ b/tools/perf/ui/stdio/hist.c | |||
@@ -384,7 +384,7 @@ static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) | |||
384 | if (symbol_conf.exclude_other && !he->parent) | 384 | if (symbol_conf.exclude_other && !he->parent) |
385 | return 0; | 385 | return 0; |
386 | 386 | ||
387 | perf_hpp__for_each_format(fmt) { | 387 | perf_hpp_list__for_each_format(&perf_hpp_list, fmt) { |
388 | if (perf_hpp__should_skip(fmt, he->hists)) | 388 | if (perf_hpp__should_skip(fmt, he->hists)) |
389 | continue; | 389 | continue; |
390 | 390 | ||
@@ -453,7 +453,7 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, | |||
453 | 453 | ||
454 | init_rem_hits(); | 454 | init_rem_hits(); |
455 | 455 | ||
456 | perf_hpp__for_each_format(fmt) | 456 | perf_hpp_list__for_each_format(&perf_hpp_list, fmt) |
457 | perf_hpp__reset_width(fmt, hists); | 457 | perf_hpp__reset_width(fmt, hists); |
458 | 458 | ||
459 | if (symbol_conf.col_width_list_str) | 459 | if (symbol_conf.col_width_list_str) |
@@ -464,7 +464,7 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, | |||
464 | 464 | ||
465 | fprintf(fp, "# "); | 465 | fprintf(fp, "# "); |
466 | 466 | ||
467 | perf_hpp__for_each_format(fmt) { | 467 | perf_hpp_list__for_each_format(&perf_hpp_list, fmt) { |
468 | if (perf_hpp__should_skip(fmt, hists)) | 468 | if (perf_hpp__should_skip(fmt, hists)) |
469 | continue; | 469 | continue; |
470 | 470 | ||
@@ -488,7 +488,7 @@ size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, | |||
488 | 488 | ||
489 | fprintf(fp, "# "); | 489 | fprintf(fp, "# "); |
490 | 490 | ||
491 | perf_hpp__for_each_format(fmt) { | 491 | perf_hpp_list__for_each_format(&perf_hpp_list, fmt) { |
492 | unsigned int i; | 492 | unsigned int i; |
493 | 493 | ||
494 | if (perf_hpp__should_skip(fmt, hists)) | 494 | if (perf_hpp__should_skip(fmt, hists)) |