diff options
| author | Alan Maguire <[email protected]> | 2022-03-30 15:26:39 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-04-04 02:56:00 +0000 |
| commit | ba7499bc9d52f7ea93301a48c05caa370c68b213 (patch) | |
| tree | 4dc538d047e46b7e79ca6e050db6fd0b90d3be3f /tools/bpf/bpftool/prog.c | |
| parent | libbpf: Add auto-attach for uprobes based on section name (diff) | |
| download | kernel-ba7499bc9d52f7ea93301a48c05caa370c68b213.tar.gz kernel-ba7499bc9d52f7ea93301a48c05caa370c68b213.zip | |
selftests/bpf: Add tests for u[ret]probe attach by name
add tests that verify attaching by name for
1. local functions in a program
2. library functions in a shared object
...succeed for uprobe and uretprobes using new "func_name"
option for bpf_program__attach_uprobe_opts(). Also verify
auto-attach works where uprobe, path to binary and function
name are specified, but fails with -EOPNOTSUPP with a SEC
name that does not specify binary path/function.
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/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
