selftests/bpf: Add a test for attaching a bpf fentry/fexit trace to an XDP program
authorEelco Chaudron <echaudro@redhat.com>
Wed, 15 Jan 2020 13:15:39 +0000 (13:15 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Jan 2020 21:22:25 +0000 (13:22 -0800)
commit83e4b88be1ff9671f2a2fb040a09c45cc3fb40e6
treed50aa49e9f112371678bcfb8e41eee40e950d7d1
parent9173cac3b64e6785dd604f5075e6035b045a0026
selftests/bpf: Add a test for attaching a bpf fentry/fexit trace to an XDP program

Add a test that will attach a FENTRY and FEXIT program to the XDP test
program. It will also verify data from the XDP context on FENTRY and
verifies the return code on exit.

Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/157909410480.47481.11202505690938004673.stgit@xdp-tutorial
tools/testing/selftests/bpf/prog_tests/xdp_bpf2bpf.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_xdp_bpf2bpf.c [new file with mode: 0644]