]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: Add BPF support for redirect tracepoint
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 21 Aug 2021 00:19:52 +0000 (05:49 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Aug 2021 21:48:40 +0000 (14:48 -0700)
commitc476b4d996811576e2b4c23b6ab397bce2506d15
treefdf07ccb4fd798388d4e42e44120d0559670f360
parentd1b70ef5f45368933223b8a07882b4f67bd9d9f4
samples: bpf: Add BPF support for redirect tracepoint

This adds the shared BPF file that will be used going forward for
sharing tracepoint programs among XDP redirect samples.

Since vmlinux.h conflicts with tools/include for READ_ONCE/WRITE_ONCE
and ARRAY_SIZE, they are copied in to xdp_sample.bpf.h along with other
helpers that will be required.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210821002010.845777-5-memxor@gmail.com
samples/bpf/xdp_sample.bpf.c [new file with mode: 0644]
samples/bpf/xdp_sample.bpf.h [new file with mode: 0644]