diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-11 10:14:06 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-11 21:18:17 -0400 |
commit | ff0c107806cf9d237e50e21de66d6909391071cd (patch) | |
tree | b4a30706632161df4e73f1353b1daa8205102c3d /tools/perf/builtin-script.c | |
parent | 566a08859f63a33746e25246c5cda0f52528d2e4 (diff) |
perf evsel: Rename print_ip() to fprintf_sym()
As it receives a FILE, and its more than just the IP, which can even be
requested not to be printed.
For consistency with other similar methods in tools/perf/, name it as
perf_evsel__fprintf_sym() and make it return the number of bytes
printed, just like 'fprintf(3)'
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-84gawlqa3lhk63nf0t9vnqnn@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 60fde9f5025c..ddd5b79e94c2 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -579,8 +579,8 @@ static void print_sample_bts(struct perf_sample *sample, | |||
579 | print_opts &= ~PRINT_IP_OPT_SRCLINE; | 579 | print_opts &= ~PRINT_IP_OPT_SRCLINE; |
580 | } | 580 | } |
581 | } | 581 | } |
582 | perf_evsel__print_ip(evsel, sample, al, 0, print_opts, | 582 | perf_evsel__fprintf_sym(evsel, sample, al, 0, print_opts, |
583 | scripting_max_stack, stdout); | 583 | scripting_max_stack, stdout); |
584 | } | 584 | } |
585 | 585 | ||
586 | /* print branch_to information */ | 586 | /* print branch_to information */ |
@@ -788,9 +788,9 @@ static void process_event(struct perf_script *script, | |||
788 | else | 788 | else |
789 | printf("\n"); | 789 | printf("\n"); |
790 | 790 | ||
791 | perf_evsel__print_ip(evsel, sample, al, 0, | 791 | perf_evsel__fprintf_sym(evsel, sample, al, 0, |
792 | output[attr->type].print_ip_opts, | 792 | output[attr->type].print_ip_opts, |
793 | scripting_max_stack, stdout); | 793 | scripting_max_stack, stdout); |
794 | } | 794 | } |
795 | 795 | ||
796 | if (PRINT_FIELD(IREGS)) | 796 | if (PRINT_FIELD(IREGS)) |