mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
When loading struct_ops programs kernel requires BTF id of the struct_ops type and member index for attachment point inside that type. This makes impossible to use same BPF program in several struct_ops maps that have different struct_ops type. Check if libbpf rejects such BPF objects files. Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20240306104529.6453-7-eddyz87@gmail.com |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| bpf_testmod_kfunc.h | ||
| bpf_testmod-events.h | ||
| bpf_testmod.c | ||
| bpf_testmod.h | ||
| Makefile | ||