alistair23-linux/tools/perf
Mike Galbraith 508c4d0874 perf tools: Fix module symbol loading bug
Avi Kivity reported 'perf annotate' failures with modules, the
requested function was not annotated.

If there are no modules currently loaded, or the last module
scanned is not loaded, dso__load_modules() steps on the value from
dso__load_vmlinux(), so we happily load the kallsyms symbols on top
of what we've already loaded.

Fix that such that the total count of symbols loaded is returned.
Should module symbol load fail after parsing of vmlinux, is's a
hard failure, so do not silently fall-back to kallsyms.

Reported-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: rostedt@goodmis.org
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
LKML-Reference: <1253697658.11461.36.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-09-23 13:45:48 +02:00
..
Documentation perf util: Make the timechart SVG width dynamic 2009-09-20 19:37:35 +02:00
util perf tools: Fix module symbol loading bug 2009-09-23 13:45:48 +02:00
.gitignore
builtin-annotate.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
builtin-help.c perf: Enable more compiler warnings 2009-08-16 10:47:47 +02:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-record.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
builtin-report.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
builtin-sched.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
builtin-stat.c perf stat: Fix zero total printouts 2009-09-22 15:01:47 +02:00
builtin-timechart.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
builtin-top.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
builtin-trace.c perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
builtin.h perf: Add the timechart tool 2009-09-19 11:42:13 +02:00
command-list.txt perf: Add timechart help text and add timechart to "perf help" 2009-09-19 18:57:53 +02:00
CREDITS perf_counter tools: Add CREDITS file for Git contributors 2009-06-24 19:54:29 +02:00
design.txt perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
Makefile perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00
perf.c perf: Add the timechart tool 2009-09-19 11:42:13 +02:00
perf.h perf: Do the big rename: Performance Counters -> Performance Events 2009-09-21 14:28:04 +02:00