Jiri Olsa 288a4b91fc 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 <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1413468427-31049-8-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-10-29 10:29:05 -02:00
..
2013-12-27 15:17:00 -03:00
2014-05-01 21:22:39 +02:00
2014-05-01 21:22:39 +02:00
2011-02-16 13:30:48 +01:00
2012-02-13 23:17:40 -02:00
2014-07-23 11:25:40 -03:00
2014-10-14 17:32:52 -03:00
2014-10-14 17:32:52 -03:00
2014-05-21 11:48:33 +02:00
2013-08-07 17:35:26 -03:00
2014-05-01 21:22:39 +02:00
2014-07-10 00:22:54 +02:00
2014-07-10 00:22:54 +02:00
2014-07-23 17:36:36 -03:00
2014-05-01 21:22:39 +02:00
2014-07-23 11:48:11 -03:00
2014-07-23 11:48:11 -03:00
2014-05-01 21:22:39 +02:00