diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2016-04-11 09:18:11 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-11 21:18:14 -0400 |
commit | 6186de9a491af030889b372193fc9f38c248e69a (patch) | |
tree | c747688cdb6e840ff65ecb582d217c273b33b952 /tools/perf/builtin-script.c | |
parent | 72c0809856b9174e71eab4e293089f6a114e0d41 (diff) |
perf evsel: Allow specifying a file to output in perf_evsel__print_ip
As this function will be used in 'perf trace'.
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/n/tip-8x297v9utnxq77onikevvlse@git.kernel.org
[ Split from a larger patch ]
Signed-off-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 8f6ab2ac855a..dbf208f0cdc2 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -580,7 +580,7 @@ static void print_sample_bts(struct perf_sample *sample, | |||
580 | } | 580 | } |
581 | } | 581 | } |
582 | perf_evsel__print_ip(evsel, sample, al, print_opts, | 582 | perf_evsel__print_ip(evsel, sample, al, print_opts, |
583 | scripting_max_stack); | 583 | scripting_max_stack, stdout); |
584 | } | 584 | } |
585 | 585 | ||
586 | /* print branch_to information */ | 586 | /* print branch_to information */ |
@@ -790,7 +790,7 @@ static void process_event(struct perf_script *script, | |||
790 | 790 | ||
791 | perf_evsel__print_ip(evsel, sample, al, | 791 | perf_evsel__print_ip(evsel, sample, al, |
792 | output[attr->type].print_ip_opts, | 792 | output[attr->type].print_ip_opts, |
793 | scripting_max_stack); | 793 | scripting_max_stack, stdout); |
794 | } | 794 | } |
795 | 795 | ||
796 | if (PRINT_FIELD(IREGS)) | 796 | if (PRINT_FIELD(IREGS)) |