]> Git Repo - linux.git/commit
perf tools: Fix report -F dso_from for data without branch info
authorJiri Olsa <[email protected]>
Thu, 16 Oct 2014 14:07:07 +0000 (16:07 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 29 Oct 2014 12:29:05 +0000 (10:29 -0200)
commit288a4b91fc0dc7c0ce3509339e8dec7b590a4d73
tree2daf08fbb8ab59679b10259f9bcc7795608c1d4e
parent8b62fa59ed62bf1f42d35360fae8592c6b816a06
perf tools: Fix report -F dso_from for data without branch info

The branch field sorting code assumes hist_entry::branch_info is
allocated, which is wrong and following perf session ends up with report
segfault.

  $ perf record ls
  $ perf report -F dso_from
  perf: Segmentation fault

Checking that hist_entry::branch_info is valid and display "N/A" string
in snprint callback if it's not.

Signed-off-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/sort.c
This page took 0.051472 seconds and 4 git commands to generate.