aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2014-07-22 09:17:16 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-07-23 10:18:00 -0400
commit578bea40058b68f83658827c2b68a596b08419fc (patch)
tree7eb58449163f72cc13fd49748166bd0a8b60009b /tools/perf
parent8066be5fe755e95ee6a858bbcf4e6b9e933e1866 (diff)
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 <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1406035081-14301-8-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index 333b15ebe72b..582da97872e5 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -446,13 +446,13 @@ static void print_sample_bts(union perf_event *event,
446 PERF_MAX_STACK_DEPTH); 446 PERF_MAX_STACK_DEPTH);
447 } 447 }
448 448
449 printf(" => ");
450
451 /* print branch_to information */ 449 /* print branch_to information */
452 if (PRINT_FIELD(ADDR) || 450 if (PRINT_FIELD(ADDR) ||
453 ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) && 451 ((evsel->attr.sample_type & PERF_SAMPLE_ADDR) &&
454 !output[attr->type].user_set)) 452 !output[attr->type].user_set)) {
453 printf(" => ");
455 print_sample_addr(event, sample, al->machine, thread, attr); 454 print_sample_addr(event, sample, al->machine, thread, attr);
455 }
456 456
457 if (print_srcline_last) 457 if (print_srcline_last)
458 map__fprintf_srcline(al->map, al->addr, "\n ", stdout); 458 map__fprintf_srcline(al->map, al->addr, "\n ", stdout);