aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_pkt_md_access.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2019-12-04 17:06:07 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-12-04 21:34:42 -0800
commit8f9081c92523328aa569d09051add79a6c0ae9ff (patch)
tree5cd0f621eb5b96126bf31cc8fec67a49d14e8e51 /tools/testing/selftests/bpf/progs/test_pkt_md_access.c
parentbpf: Fix a bug when getting subprog 0 jited image in check_attach_btf_id (diff)
downloadlinux-dev-8f9081c92523328aa569d09051add79a6c0ae9ff.tar.xz
linux-dev-8f9081c92523328aa569d09051add79a6c0ae9ff.zip
selftests/bpf: Add a fexit/bpf2bpf test with target bpf prog no callees
The existing fexit_bpf2bpf test covers the target progrm with callees. This patch added a test for the target program without callees. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20191205010607.177904-1-yhs@fb.com
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/bpf/progs/test_pkt_md_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_pkt_md_access.c b/tools/testing/selftests/bpf/progs/test_pkt_md_access.c
index 3d039e18bf82..1db2623021ad 100644
--- a/tools/testing/selftests/bpf/progs/test_pkt_md_access.c
+++ b/tools/testing/selftests/bpf/progs/test_pkt_md_access.c
@@ -27,8 +27,8 @@ int _version SEC("version") = 1;
}
#endif
-SEC("test1")
-int process(struct __sk_buff *skb)
+SEC("classifier/test_pkt_md_access")
+int test_pkt_md_access(struct __sk_buff *skb)
{
TEST_FIELD(__u8, len, 0xFF);
TEST_FIELD(__u16, len, 0xFFFF);