aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorMike Galbraith <[email protected]>2009-09-23 11:20:58 +0200
committerIngo Molnar <[email protected]>2009-09-23 13:45:48 +0200
commit508c4d0874acf8584787bbab7e4a3798e2834c1a (patch)
tree31af0531c1c74d4d64ad3ed6a6527db5458feceb /tools/perf/scripts/python/check-perf-trace.py
parent7d42896628202a551ad1107697cd215dc5fca099 (diff)
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 <[email protected]> Signed-off-by: Mike Galbraith <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: [email protected] Cc: Mathieu Desnoyers <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Masami Hiramatsu <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions