aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDaniel Müller <[email protected]>2023-03-01 21:23:07 +0000
committerAndrii Nakryiko <[email protected]>2023-03-01 16:05:35 -0800
commit434fdcead73515a76885418ffe2d96b4f3ed0f49 (patch)
treeaf53258ad9c39d10d6f0aa9d416bf1863f7e0198 /tools/perf/scripts/python/stackcollapse.py
parent1eebcb60633fd469ee27b0fbd7ee4f271feedeca (diff)
libbpf: Introduce elf_find_func_offset_from_file() function
This change splits the elf_find_func_offset() function in two: elf_find_func_offset(), which now accepts an already opened Elf object instead of a path to a file that is to be opened, as well as elf_find_func_offset_from_file(), which opens a binary based on a path and then invokes elf_find_func_offset() on the Elf object. Having this split in responsibilities will allow us to call elf_find_func_offset() from other code paths on Elf objects that did not necessarily come from a file on disk. Signed-off-by: Daniel Müller <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions