diff options
author | Jiri Olsa | 2014-10-16 16:07:01 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2014-10-29 10:27:56 -0200 |
commit | 49f4744307f9718d8e100755110b3b7b40ec4237 (patch) | |
tree | 523ae45788f0bd80d5a5c73b10d8dff4b855f544 /kernel/printk | |
parent | 493c3031336a49bbd50777dc2adfa52a49933d43 (diff) |
perf tools: Fix report -F abort 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 abort
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>
Acked-by: Namhyung Kim <namhyung@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-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'kernel/printk')
0 files changed, 0 insertions, 0 deletions