aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2022-06-06 15:01:43 -0700
committerDaniel Borkmann <[email protected]>2022-06-09 14:09:41 +0200
commitfe92833524e368e59bba9c57e00f7359f133667f (patch)
tree99190a8f63b41fdce6cb0224dd1b36b5dcc9a5bc /tools/perf/scripts/python/arm-cs-trace-disasm.py
parent492f99e4190a4574a4e015507e0466ab6d8d5d88 (diff)
libbpf: Fix uprobe symbol file offset calculation logic
Fix libbpf's bpf_program__attach_uprobe() logic of determining function's *file offset* (which is what kernel is actually expecting) when attaching uprobe/uretprobe by function name. Previously calculation was determining virtual address offset relative to base load address, which (offset) is not always the same as file offset (though very frequently it is which is why this went unnoticed for a while). Fixes: 433966e3ae04 ("libbpf: Support function name-based attach uprobes") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Cc: Riham Selim <[email protected]> Cc: Alan Maguire <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions