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>
This commit is contained in:
parent
8066be5fe7
commit
578bea4005
1 changed files with 3 additions and 3 deletions
|
@ -446,13 +446,13 @@ static void print_sample_bts(union perf_event *event,
|
||||||
PERF_MAX_STACK_DEPTH);
|
PERF_MAX_STACK_DEPTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(" => ");
|
|
||||||
|
|
||||||
/* print branch_to information */
|
/* print branch_to information */
|
||||||
if (PRINT_FIELD(ADDR) ||
|
if (PRINT_FIELD(ADDR) ||
|
||||||
((evsel->attr.sample_type & PERF_SAMPLE_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);
|
print_sample_addr(event, sample, al->machine, thread, attr);
|
||||||
|
}
|
||||||
|
|
||||||
if (print_srcline_last)
|
if (print_srcline_last)
|
||||||
map__fprintf_srcline(al->map, al->addr, "\n ", stdout);
|
map__fprintf_srcline(al->map, al->addr, "\n ", stdout);
|
||||||
|
|
Loading…
Reference in a new issue