diff options
author | Namhyung Kim <namhyung@kernel.org> | 2016-09-13 03:45:50 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-09-13 15:41:36 -0400 |
commit | 195bc0f8443d8d564ae95d2e9c19ac0edfd647c3 (patch) | |
tree | c44537c97143f2943a00dba2a63ca83a9bab0142 /tools/perf/ui | |
parent | 9a6ad25b5a2026ba1399abc879ec623957867e79 (diff) |
perf ui/stdio: Rename print_hierarchy_header()
Now the hists__fprintf_hierarchy_headers() is a simple wrapper passing
field separator. Let's do it directly.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20160913074552.13284-6-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui')
-rw-r--r-- | tools/perf/ui/stdio/hist.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/perf/ui/stdio/hist.c b/tools/perf/ui/stdio/hist.c index 18b4fd9342cd..a57131e61fe3 100644 --- a/tools/perf/ui/stdio/hist.c +++ b/tools/perf/ui/stdio/hist.c | |||
@@ -528,8 +528,8 @@ static int print_hierarchy_indent(const char *sep, int indent, | |||
528 | return fprintf(fp, "%-.*s", (indent - 2) * HIERARCHY_INDENT, line); | 528 | return fprintf(fp, "%-.*s", (indent - 2) * HIERARCHY_INDENT, line); |
529 | } | 529 | } |
530 | 530 | ||
531 | static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp, | 531 | static int hists__fprintf_hierarchy_headers(struct hists *hists, |
532 | const char *sep, FILE *fp) | 532 | struct perf_hpp *hpp, FILE *fp) |
533 | { | 533 | { |
534 | bool first_node, first_col; | 534 | bool first_node, first_col; |
535 | int indent; | 535 | int indent; |
@@ -538,6 +538,7 @@ static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp, | |||
538 | unsigned header_width = 0; | 538 | unsigned header_width = 0; |
539 | struct perf_hpp_fmt *fmt; | 539 | struct perf_hpp_fmt *fmt; |
540 | struct perf_hpp_list_node *fmt_node; | 540 | struct perf_hpp_list_node *fmt_node; |
541 | const char *sep = symbol_conf.field_sep; | ||
541 | 542 | ||
542 | indent = hists->nr_hpp_node; | 543 | indent = hists->nr_hpp_node; |
543 | 544 | ||
@@ -623,14 +624,6 @@ static int print_hierarchy_header(struct hists *hists, struct perf_hpp *hpp, | |||
623 | return 2; | 624 | return 2; |
624 | } | 625 | } |
625 | 626 | ||
626 | static int | ||
627 | hists__fprintf_hierarchy_headers(struct hists *hists, | ||
628 | struct perf_hpp *hpp, | ||
629 | FILE *fp) | ||
630 | { | ||
631 | return print_hierarchy_header(hists, hpp, symbol_conf.field_sep, fp); | ||
632 | } | ||
633 | |||
634 | static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, | 627 | static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, |
635 | int line, FILE *fp) | 628 | int line, FILE *fp) |
636 | { | 629 | { |