summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/cgroup.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2022-02-09 15:20:01 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2022-02-10 23:31:51 +0100
commitcb80ddc67152e72f28ff6ea8517acdf875d7381d (patch)
tree2c708b487fbf686fe0ba29a31355236335e2ce75 /kernel/bpf/cgroup.c
parentd7beb3d6aba39480590b30c502fbaa2cc1e5e30b (diff)
downloadlinux-stable-cb80ddc67152e72f28ff6ea8517acdf875d7381d.tar.gz
linux-stable-cb80ddc67152e72f28ff6ea8517acdf875d7381d.tar.bz2
linux-stable-cb80ddc67152e72f28ff6ea8517acdf875d7381d.zip
bpf: Convert bpf_preload.ko to use light skeleton.
The main change is a move of the single line #include "iterators.lskel.h" from iterators/iterators.c to bpf_preload_kern.c. Which means that generated light skeleton can be used from user space or user mode driver like iterators.c or from the kernel module or the kernel itself. The direct use of light skeleton from the kernel module simplifies the code, since UMD is no longer necessary. The libbpf.a required user space and UMD. The CO-RE in the kernel and generated "loader bpf program" used by the light skeleton are capable to perform complex loading operations traditionally provided by libbpf. In addition UMD approach was launching UMD process every time bpffs has to be mounted. With light skeleton in the kernel the bpf_preload kernel module loads bpf iterators once and pins them multiple times into different bpffs mounts. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220209232001.27490-6-alexei.starovoitov@gmail.com
Diffstat (limited to 'kernel/bpf/cgroup.c')
0 files changed, 0 insertions, 0 deletions