original_kernel/tools/perf/util
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
..
include Revert "perf tools: Default to cpu// for events v5" 2014-10-15 16:04:33 -03:00
scripting-engines perf callchain: Move the callchain_param extern to callchain.h 2014-10-14 17:32:51 -03:00
PERF-VERSION-GEN
abspath.c
alias.c
annotate.c perf symbols: Make sym->end be the first address after the symbol range 2014-10-14 17:50:58 -03:00
annotate.h
bitmap.c
build-id.c
build-id.h
cache.h
callchain.c
callchain.h perf callchain: Move the callchain_param extern to callchain.h 2014-10-14 17:32:51 -03:00
cgroup.c
cgroup.h
cloexec.c
cloexec.h
color.c
color.h
comm.c
comm.h
config.c
cpumap.c
cpumap.h
ctype.c
data.c
data.h
debug.c
debug.h
dso.c
dso.h
dwarf-aux.c
dwarf-aux.h
environment.c
event.c
event.h perf tools: Move events_stats struct to event.h 2014-10-10 15:53:07 -03:00
evlist.c perf evlist: Fix for double free in tools/perf stat 2014-10-15 16:16:53 -03:00
evlist.h perf evlist: Add missing 'struct option' forward declaration 2014-10-17 12:16:00 -03:00
evsel.c perf evsel: No need to drag util/cgroup.h 2014-10-17 12:17:40 -03:00
evsel.h perf evsel: No need to drag util/cgroup.h 2014-10-17 12:17:40 -03:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf tools: Make CPUINFO_PROC an array to support different kernel versions 2014-10-29 10:27:36 -02:00
header.h
help.c
help.h
hist.c perf tools: Remove hists from evsel 2014-10-14 17:32:52 -03:00
hist.h perf tools: Remove hists from evsel 2014-10-14 17:32:52 -03:00
hweight.c
intlist.c
intlist.h
kvm-stat.h
levenshtein.c
levenshtein.h
machine.c perf machine: Add missing dsos->root rbtree root initialization 2014-10-14 17:50:44 -03:00
machine.h
map.c perf tools: Fixup off-by-one comparision in maps__find 2014-10-14 17:50:56 -03:00
map.h
ordered-events.c perf session: Add option to copy events when queueing 2014-10-15 17:39:03 -03:00
ordered-events.h perf session: Add option to copy events when queueing 2014-10-15 17:39:03 -03:00
pager.c
parse-events.c perf tools: Parse the pmu event prefix and suffix 2014-10-15 16:05:01 -03:00
parse-events.h perf tools: Parse the pmu event prefix and suffix 2014-10-15 16:05:01 -03:00
parse-events.l perf tools: Add support to new style format of kernel PMU event 2014-10-15 16:05:45 -03:00
parse-events.y perf tools: Add support to new style format of kernel PMU event 2014-10-15 16:05:45 -03:00
parse-options.c
parse-options.h
path.c
perf_regs.c
perf_regs.h
pmu.c perf tools: Parse the pmu event prefix and suffix 2014-10-15 16:05:01 -03:00
pmu.h perf tools: Parse the pmu event prefix and suffix 2014-10-15 16:05:01 -03:00
pmu.l
pmu.y
probe-event.c
probe-event.h
probe-finder.c
probe-finder.h
pstack.c
pstack.h
python-ext-sources
python.c
quote.c
quote.h
rblist.c
rblist.h
record.c
run-command.c
run-command.h
session.c perf session: Add option to copy events when queueing 2014-10-15 17:39:03 -03:00
session.h perf session: Remove last reference to hists struct 2014-10-14 11:41:25 -03:00
setup.py
sigchain.c
sigchain.h
sort.c perf tools: Fix report -F dso_from for data without branch info 2014-10-29 10:29:05 -02:00
sort.h
srcline.c
stat.c
stat.h
strbuf.c
strbuf.h
strfilter.c
strfilter.h
string.c Revert "perf tools: Default to cpu// for events v5" 2014-10-15 16:04:33 -03:00
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol-elf.c
symbol-minimal.c
symbol.c perf symbols: Make sym->end be the first address after the symbol range 2014-10-14 17:50:58 -03:00
symbol.h perf symbols: Make sym->end be the first address after the symbol range 2014-10-14 17:50:58 -03:00
target.c
target.h
thread.c perf callchain: Use global caching provided by libunwind 2014-10-29 10:25:22 -02:00
thread.h
thread_map.c perf thread_map: Create dummy constructor out of open coded equivalent 2014-10-14 17:32:52 -03:00
thread_map.h perf thread_map: Create dummy constructor out of open coded equivalent 2014-10-14 17:32:52 -03:00
tool.h
top.c
top.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.c
trace-event.h
tsc.c
tsc.h
unwind-libdw.c
unwind-libdw.h
unwind-libunwind.c perf callchain: Use global caching provided by libunwind 2014-10-29 10:25:22 -02:00
unwind.h perf callchain: Use global caching provided by libunwind 2014-10-29 10:25:22 -02:00
usage.c
util.c
util.h
values.c
values.h
vdso.c
vdso.h
wrapper.c
xyarray.c
xyarray.h