linux_dsm_epyc7002/tools/testing/selftests/bpf/progs
Stanislav Fomichev 3daf8e703e selftests: bpf: add selftest for __sk_buff context in BPF_PROG_TEST_RUN
Simple test that sets cb to {1,2,3,4,5} and priority to 6, runs bpf
program that fails if cb is not what we expect and increments cb[i] and
priority. When the test finishes, we check that cb is now {2,3,4,5,6}
and priority is 7.

We also test the sanity checks:
* ctx_in is provided, but ctx_size_in is zero (same for
  ctx_out/ctx_size_out)
* unexpected non-zero fields in __sk_buff return EINVAL

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-04-11 10:21:41 +02:00
..
bpf_flow.c
connect4_prog.c
connect6_prog.c
dev_cgroup.c
get_cgroup_id_kern.c
netcnt_prog.c
sample_map_ret0.c
sample_ret0.c
sendmsg4_prog.c
sendmsg6_prog.c
socket_cookie_prog.c
sockmap_parse_prog.c
sockmap_tcp_msg_prog.c
sockmap_verdict_prog.c
test_adjust_tail.c
test_btf_haskv.c
test_btf_nokv.c
test_get_stack_rawtp.c
test_global_data.c bpf, selftest: test global data/bss/rodata sections 2019-04-09 17:05:47 -07:00
test_jhash.h selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_l4lb_noinline.c
test_l4lb.c
test_lirc_mode2_kern.c
test_lwt_ip_encap.c
test_lwt_seg6local.c
test_map_in_map.c tools/bpf: selftests: add map lookup to test_map_in_map bpf prog 2019-02-27 17:03:13 -08:00
test_map_lock.c
test_obj_id.c
test_pkt_access.c
test_pkt_md_access.c
test_queue_map.c
test_select_reuseport_kern.c
test_sk_lookup_kern.c
test_skb_cgroup_id_kern.c
test_skb_ctx.c selftests: bpf: add selftest for __sk_buff context in BPF_PROG_TEST_RUN 2019-04-11 10:21:41 +02:00
test_sock_fields_kern.c bpf: Add an example for bpf_get_listener_sock 2019-03-13 12:04:35 -07:00
test_sockhash_kern.c
test_sockmap_kern.c
test_spin_lock.c
test_stack_map.c
test_stacktrace_build_id.c
test_stacktrace_map.c
test_tc_edt.c selftests: bpf: tc-bpf flow shaping with EDT 2019-03-22 18:16:44 -07:00
test_tc_tunnel.c selftests/bpf: convert bpf tunnel test to encap modes 2019-03-22 13:52:45 -07:00
test_tcp_check_syncookie_kern.c selftests/bpf: add tests for bpf_tcp_check_syncookie and bpf_skc_lookup_tcp 2019-03-21 18:59:11 -07:00
test_tcp_estats.c
test_tcpbpf_kern.c
test_tcpnotify_kern.c
test_tracepoint.c
test_tunnel_kern.c
test_verif_scale1.c selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_verif_scale2.c selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_verif_scale3.c selftests/bpf: add few verifier scale tests 2019-04-04 01:27:38 +02:00
test_xdp_meta.c
test_xdp_noinline.c
test_xdp_redirect.c
test_xdp_vlan.c
test_xdp.c
xdp_dummy.c