diff options
| author | Alan Maguire <[email protected]> | 2022-03-30 16:26:36 +0100 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-04-03 18:11:47 -0700 |
| commit | 1ce3a60e3c287479f15147ffc61c35b2e436a0d5 (patch) | |
| tree | fa86dc9849c15daf1c8e339b912caf25321630e4 /tools/perf/scripts/python/flamegraph.py | |
| parent | 85bf1f51691c078e77f524a7addf37faa6635a6e (diff) | |
libbpf: auto-resolve programs/libraries when necessary for uprobes
bpf_program__attach_uprobe_opts() requires a binary_path argument
specifying binary to instrument. Supporting simply specifying
"libc.so.6" or "foo" should be possible too.
Library search checks LD_LIBRARY_PATH, then /usr/lib64, /usr/lib.
This allows users to run BPF programs prefixed with
LD_LIBRARY_PATH=/path2/lib while still searching standard locations.
Similarly for non .so files, we check PATH and /usr/bin, /usr/sbin.
Path determination will be useful for auto-attach of BPF uprobe programs
using SEC() definition.
Signed-off-by: Alan Maguire <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions