aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/stdio/hist.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-08-07 11:28:27 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-08-23 14:37:33 -0400
commit74bb43f29ec80bc998804fa7399930d86c4bae67 (patch)
tree9b39e66f54add5532129cdb1c1b73380219ae221 /tools/perf/ui/stdio/hist.c
parentf8e6710de859e1ac3a5df294bddeca19f60cec9a (diff)
perf hists: Add line argument into perf_hpp_fmt's header callback
Adding line argument into perf_hpp_fmt's header callback to be able to request specific header line. 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/1470583710-1649-3-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c
index f04a63112079..91b8e10cabd5 100644
--- a/tools/perf/ui/stdio/hist.c
+++ b/tools/perf/ui/stdio/hist.c
@@ -549,7 +549,7 @@ static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp,
549 struct perf_hpp_list_node, list); 549 struct perf_hpp_list_node, list);
550 550
551 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { 551 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) {
552 fmt->header(fmt, hpp, hists); 552 fmt->header(fmt, hpp, hists, 0);
553 fprintf(fp, "%s%s", hpp->buf, sep ?: " "); 553 fprintf(fp, "%s%s", hpp->buf, sep ?: " ");
554 } 554 }
555 555
@@ -569,7 +569,7 @@ static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp,
569 header_width += fprintf(fp, "+"); 569 header_width += fprintf(fp, "+");
570 first_col = false; 570 first_col = false;
571 571
572 fmt->header(fmt, hpp, hists); 572 fmt->header(fmt, hpp, hists, 0);
573 573
574 header_width += fprintf(fp, "%s", trim(hpp->buf)); 574 header_width += fprintf(fp, "%s", trim(hpp->buf));
575 } 575 }
@@ -658,7 +658,7 @@ hists__fprintf_standard_headers(struct hists *hists,
658 else 658 else
659 first = false; 659 first = false;
660 660
661 fmt->header(fmt, hpp, hists); 661 fmt->header(fmt, hpp, hists, 0);
662 fprintf(fp, "%s", hpp->buf); 662 fprintf(fp, "%s", hpp->buf);
663 } 663 }
664 664