aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorMykyta Yatsenko <[email protected]>2025-03-17 17:40:39 +0000
committerAndrii Nakryiko <[email protected]>2025-03-17 20:45:12 +0000
commita024843d92cca491034dac648bcfec967199a4a4 (patch)
tree62436d27fd49365a4db2b9fa92065b6aabbca28c /tools/bpf/bpftool/prog.c
parentlibbpf: Pass BPF token from find_prog_btf_id to BPF_BTF_GET_FD_BY_ID (diff)
downloadkernel-a024843d92cca491034dac648bcfec967199a4a4.tar.gz
kernel-a024843d92cca491034dac648bcfec967199a4a4.zip
selftests/bpf: Test freplace from user namespace
Add selftests to verify that it is possible to load freplace program from user namespace if BPF token is initialized by bpf_object__prepare before calling bpf_program__set_attach_target. Negative test is added as well. Modified type of the priv_prog to xdp, as kprobe did not work on aarch64 and s390x. Signed-off-by: Mykyta Yatsenko <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[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