diff options
| author | Adrian Hunter <[email protected]> | 2013-08-07 14:38:50 +0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-08-07 17:35:32 -0300 |
| commit | 0131c4ec794a7409eafff0c79105309540aaca4d (patch) | |
| tree | 2e75956f1d28c5177ef52efdf9c4a8957a8e819a /tools/perf/scripts/python/futex-contention.py | |
| parent | d380b34830cc76461feab012f0bc52b01e65087c (diff) | |
perf tools: Make it possible to read object code from kernel modules
The new "object code reading" test shows that it is not possible to read
object code from kernel modules. That is because the mappings do not
map to the dsos. This patch fixes that.
This involves identifying and flagging relocatable (ELF type ET_REL)
files (e.g. kernel modules) for symbol adjustment and updating
map__rip_2objdump() accordingly. The kmodule parameter of
dso__load_sym() is taken into use and the module map altered to map to
the dso.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions