diff options
| author | Hao Luo <[email protected]> | 2022-08-16 23:40:11 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-08-17 16:40:47 +0000 |
| commit | 43cb8cbadffa21e88a65dd1129c86f5552d6c42e (patch) | |
| tree | 52e3f7824ea77fb6498bf2d4b89850cfbe772cb9 /tools/testing/selftests/bpf/prog_tests/autoattach.c | |
| parent | selftests/bpf: Fix attach point for non-x86 arches in test_progs/lsm (diff) | |
| download | kernel-43cb8cbadffa21e88a65dd1129c86f5552d6c42e.tar.gz kernel-43cb8cbadffa21e88a65dd1129c86f5552d6c42e.zip | |
libbpf: Allows disabling auto attach
Adds libbpf APIs for disabling auto-attach for individual functions.
This is motivated by the use case of cgroup iter [1]. Some iter
types require their parameters to be non-zero, therefore applying
auto-attach on them will fail. With these two new APIs, users who
want to use auto-attach and these types of iters can disable
auto-attach on the program and perform manual attach.
[1] https://lore.kernel.org/bpf/CAEf4BzZ+a2uDo_t6kGBziqdz--m2gh2_EUwkGLDtMd65uwxUjA@mail.gmail.com/
Signed-off-by: Hao Luo <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoattach.c')
0 files changed, 0 insertions, 0 deletions
