aboutsummaryrefslogtreecommitdiffstats
path: root/security/bpf/hooks.c
diff options
context:
space:
mode:
authorDaniel T. Lee <[email protected]>2020-08-23 08:53:33 +0000
committerAlexei Starovoitov <[email protected]>2020-08-25 03:59:35 +0000
commit3677d0a13171bb1dc8db0af84d48dea14a899962 (patch)
tree3de96b317e44d7e1eb175a4be093101f317e88ff /security/bpf/hooks.c
parentsamples: bpf: Cleanup bpf_load.o from Makefile (diff)
downloadkernel-3677d0a13171bb1dc8db0af84d48dea14a899962.tar.gz
kernel-3677d0a13171bb1dc8db0af84d48dea14a899962.zip
samples: bpf: Refactor kprobe tracing programs with libbpf
For the problem of increasing fragmentation of the bpf loader programs, instead of using bpf_loader.o, which is used in samples/bpf, this commit refactors the existing kprobe tracing programs with libbbpf bpf loader. - For kprobe events pointing to system calls, the SYSCALL() macro in trace_common.h was used. - Adding a kprobe event and attaching a bpf program to it was done through bpf_program_attach(). - Instead of using the existing BPF MAP definition, MAP definition has been refactored with the new BTF-defined MAP format. Signed-off-by: Daniel T. Lee <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'security/bpf/hooks.c')
0 files changed, 0 insertions, 0 deletions