commit | 578bea40058b68f83658827c2b68a596b08419fc | [log] [tgz] |
---|---|---|
author | Adrian Hunter <[email protected]> | Tue Jul 22 16:17:16 2014 +0300 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Wed Jul 23 11:18:00 2014 -0300 |
tree | 7eb58449163f72cc13fd49748166bd0a8b60009b | |
parent | 8066be5fe755e95ee6a858bbcf4e6b9e933e1866 [diff] [blame] |
perf script: Do not print dangling '=>' for BTS When using: perf record -e branches:u -c1 usleep 1 perf script -f ip lines are displayed like: ffffffff813b23d5 => Change so that the dangling '=>' does not appear. Signed-off-by: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 333b15e..582da97 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c
@@ -446,13 +446,13 @@ PERF_MAX_STACK_DEPTH); } - printf(" => "); - /* print branch_to information */ if (PRINT_FIELD(ADDR) || ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && - !output[attr->type].user_set)) + !output[attr->type].user_set)) { + printf(" => "); print_sample_addr(event, sample, al->machine, thread, attr); + } if (print_srcline_last) map__fprintf_srcline(al->map, al->addr, "\n ", stdout);