diff options
author | Matteo Croce <teknoraver@meta.com> | 2024-08-19 18:28:04 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-08-19 15:25:30 -0700 |
commit | 67666479edf1e2b732f4d0ac797885e859a78de4 (patch) | |
tree | 81e31a001428b77b3b6e1e58660e3f03075796a7 /tools/testing/selftests/bpf/prog_tests/async_stack_depth.c | |
parent | fdf1c728fac541891ef1aa773bfd42728626769c (diff) |
bpf: Enable generic kfuncs for BPF_CGROUP_* programs
These kfuncs are enabled even in BPF_PROG_TYPE_TRACING, so they
should be safe also in BPF_CGROUP_* programs.
Since all BPF_CGROUP_* programs share the same hook,
call register_btf_kfunc_id_set() only once.
In enum btf_kfunc_hook, rename BTF_KFUNC_HOOK_CGROUP_SKB to a more
generic BTF_KFUNC_HOOK_CGROUP, since it's used for all the cgroup
related program types.
Signed-off-by: Matteo Croce <teknoraver@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240819162805.78235-2-technoboy85@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/async_stack_depth.c')
0 files changed, 0 insertions, 0 deletions