perf_event: fix getting symbol error if kernel is relocatable
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | x86: record relocation offsetarch/ arch/ arch/ +3 more | +13 | 5 replies | |
| 2/3 | perf_event: support getting relocation offsetarch/ include/ kernel/ | +28 | 0 replies | |
| 3/3 | perf tools: adjust symbol addresstools/ tools/ tools/ +1 more | +24 | 6 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] perf_event: fix getting symbol error if kernel is relocatable
Hi,
If the kernel is relocatable, perf tools can't get symbol name correctly, See: http://lkml.org/lkml/2009/12/20/218
The purpose of this patchset is to fix this bug, and it base on my previously patchset: http://lkml.org/lkml/2009/12/29/4
since it used 'inject' event
arch/x86/boot/compressed/head_32.S | 2 ++ arch/x86/boot/compressed/head_64.S | 3 +++ arch/x86/include/asm/bootparam.h | 3 ++- arch/x86/kernel/asm-offsets_32.c | 1 + arch/x86/kernel/asm-offsets_64.c | 1 + arch/x86/kernel/cpu/perf_event.c | 10 ++++++++++ include/linux/perf_event.h | 1 + kernel/perf_event.c | 23 +++++++++++++++++++++-- tools/perf/builtin-record.c | 3 +++ tools/perf/util/session.c | 6 ++++++ tools/perf/util/symbol.c | 13 +++++++++++++ tools/perf/util/symbol.h | 3 ++- 12 files changed, 65 insertions(+), 4 deletions(-)