summaryrefslogtreecommitdiff
path: root/samples/bpf/tcp_synrto_kern.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2020-08-23 11:53:34 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-08-25 06:59:35 +0300
commitf0c328f8af5d920a68f8217aec76d9a45288cef1 (patch)
tree21b45294c5ef83066fac094eab783df052db0015 /samples/bpf/tcp_synrto_kern.c
parent3677d0a13171bb1dc8db0af84d48dea14a899962 (diff)
downloadlinux-f0c328f8af5d920a68f8217aec76d9a45288cef1.tar.xz
samples: bpf: Refactor tracepoint 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 tracepoint tracing programs with libbbpf bpf loader. - Adding a tracepoint 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 <danieltimlee@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200823085334.9413-4-danieltimlee@gmail.com
Diffstat (limited to 'samples/bpf/tcp_synrto_kern.c')
0 files changed, 0 insertions, 0 deletions