]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24b0ff0277010a03c24b9375f62ee93f56740d53
treed50aa49e9f112371678bcfb8e41eee40e950d7d1
parent39296af72584d95fa18b713a56ddb4c2cbe37f21
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]