| /tools/testing/selftests/bpf/progs/ |
| D | test_tc_tunnel.c | 94 static __always_inline int __encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv4() 256 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv4() 262 static __always_inline int __encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv6() 373 static int encap_ipv6_ipip6(struct __sk_buff *skb) in encap_ipv6_ipip6() 428 static __always_inline int encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv6() 435 int __encap_ipip_none(struct __sk_buff *skb) in __encap_ipip_none() 444 int __encap_gre_none(struct __sk_buff *skb) in __encap_gre_none() 453 int __encap_gre_mpls(struct __sk_buff *skb) in __encap_gre_mpls() 462 int __encap_gre_eth(struct __sk_buff *skb) in __encap_gre_eth() 471 int __encap_udp_none(struct __sk_buff *skb) in __encap_udp_none() [all …]
|
| D | test_global_func3.c | 9 int f1(struct __sk_buff *skb) in f1() 15 int f2(int val, struct __sk_buff *skb) in f2() 21 int f3(int val, struct __sk_buff *skb, int var) in f3() 27 int f4(struct __sk_buff *skb) in f4() 33 int f5(struct __sk_buff *skb) in f5() 39 int f6(struct __sk_buff *skb) in f6() 45 int f7(struct __sk_buff *skb) in f7() 51 int f8(struct __sk_buff *skb) in f8() 58 int global_func3(struct __sk_buff *skb) in global_func3()
|
| D | test_global_func4.c | 9 int f1(struct __sk_buff *skb) in f1() 15 int f2(int val, struct __sk_buff *skb) in f2() 21 int f3(int val, struct __sk_buff *skb, int var) in f3() 27 int f4(struct __sk_buff *skb) in f4() 33 int f5(struct __sk_buff *skb) in f5() 39 int f6(struct __sk_buff *skb) in f6() 45 int f7(struct __sk_buff *skb) in f7() 52 int global_func4(struct __sk_buff *skb) in global_func4()
|
| D | test_tunnel_kern.c | 58 int gre_set_tunnel(struct __sk_buff *skb) in gre_set_tunnel() 80 int gre_set_tunnel_no_key(struct __sk_buff *skb) in gre_set_tunnel_no_key() 101 int gre_get_tunnel(struct __sk_buff *skb) in gre_get_tunnel() 117 int ip6gretap_set_tunnel(struct __sk_buff *skb) in ip6gretap_set_tunnel() 141 int ip6gretap_get_tunnel(struct __sk_buff *skb) in ip6gretap_get_tunnel() 160 int erspan_set_tunnel(struct __sk_buff *skb) in erspan_set_tunnel() 203 int erspan_get_tunnel(struct __sk_buff *skb) in erspan_get_tunnel() 239 int ip4ip6erspan_set_tunnel(struct __sk_buff *skb) in ip4ip6erspan_set_tunnel() 283 int ip4ip6erspan_get_tunnel(struct __sk_buff *skb) in ip4ip6erspan_get_tunnel() 320 int vxlan_set_tunnel_dst(struct __sk_buff *skb) in vxlan_set_tunnel_dst() [all …]
|
| D | tailcall_bpf2bpf4.c | 31 int subprog_tail_2(struct __sk_buff *skb) in subprog_tail_2() 40 int subprog_tail_1(struct __sk_buff *skb) in subprog_tail_1() 47 int subprog_tail(struct __sk_buff *skb) in subprog_tail() 54 int classifier_1(struct __sk_buff *skb) in classifier_1() 60 int classifier_2(struct __sk_buff *skb) in classifier_2() 67 int classifier_0(struct __sk_buff *skb) in classifier_0() 73 int entry(struct __sk_buff *skb) in entry()
|
| D | tailcall2.c | 14 int classifier_0(struct __sk_buff *skb) in classifier_0() 21 int classifier_1(struct __sk_buff *skb) in classifier_1() 28 int classifier_2(struct __sk_buff *skb) in classifier_2() 34 int classifier_3(struct __sk_buff *skb) in classifier_3() 41 int classifier_4(struct __sk_buff *skb) in classifier_4() 48 int entry(struct __sk_buff *skb) in entry()
|
| D | test_sk_lookup_kern.c | 56 int sk_lookup_success(struct __sk_buff *skb) in sk_lookup_success() 82 int sk_lookup_success_simple(struct __sk_buff *skb) in sk_lookup_success_simple() 94 int err_use_after_free(struct __sk_buff *skb) in err_use_after_free() 109 int err_modify_sk_pointer(struct __sk_buff *skb) in err_modify_sk_pointer() 123 int err_modify_sk_or_null_pointer(struct __sk_buff *skb) in err_modify_sk_or_null_pointer() 136 int err_no_release(struct __sk_buff *skb) in err_no_release() 145 int err_release_twice(struct __sk_buff *skb) in err_release_twice() 157 int err_release_unchecked(struct __sk_buff *skb) in err_release_unchecked() 167 void lookup_no_release(struct __sk_buff *skb) in lookup_no_release() 174 int err_no_release_subcall(struct __sk_buff *skb) in err_no_release_subcall()
|
| D | test_tc_link.c | 29 int tc1(struct __sk_buff *skb) in tc1() 52 int tc2(struct __sk_buff *skb) in tc2() 59 int tc3(struct __sk_buff *skb) in tc3() 66 int tc4(struct __sk_buff *skb) in tc4() 73 int tc5(struct __sk_buff *skb) in tc5() 80 int tc6(struct __sk_buff *skb) in tc6() 87 int tc7(struct __sk_buff *skb) in tc7()
|
| D | cgroup_tcp_skb.c | 25 int needed_tcp_pkt(struct __sk_buff *skb, struct tcphdr *tcph) in needed_tcp_pkt() 206 int server_egress(struct __sk_buff *skb) in server_egress() 229 int server_ingress(struct __sk_buff *skb) in server_ingress() 252 int server_egress_srv(struct __sk_buff *skb) in server_egress_srv() 275 int server_ingress_srv(struct __sk_buff *skb) in server_ingress_srv() 298 int client_egress_srv(struct __sk_buff *skb) in client_egress_srv() 321 int client_ingress_srv(struct __sk_buff *skb) in client_ingress_srv() 344 int client_egress(struct __sk_buff *skb) in client_egress() 367 int client_ingress(struct __sk_buff *skb) in client_ingress()
|
| D | verifier_const.c | 16 int tcx1(struct __sk_buff *skb) in tcx1() 26 int tcx2(struct __sk_buff *skb) in tcx2() 36 int tcx3(struct __sk_buff *skb) in tcx3() 46 int tcx4(struct __sk_buff *skb) in tcx4() 55 int tcx5(struct __sk_buff *skb) in tcx5() 64 int tcx6(struct __sk_buff *skb) in tcx6() 83 int tcx7(struct __sk_buff *skb) in tcx7()
|
| D | test_lwt_redirect.c | 12 static int prepend_dummy_mac(struct __sk_buff *skb) in prepend_dummy_mac() 27 static int get_redirect_target(struct __sk_buff *skb) in get_redirect_target() 41 int test_lwt_redirect_in(struct __sk_buff *skb) in test_lwt_redirect_in() 55 int test_lwt_redirect_out(struct __sk_buff *skb) in test_lwt_redirect_out() 69 int test_lwt_redirect_out_nomac(struct __sk_buff *skb) in test_lwt_redirect_out_nomac() 80 int test_lwt_redirect_in_nomac(struct __sk_buff *skb) in test_lwt_redirect_in_nomac()
|
| D | test_pkt_access.c | 37 int test_pkt_access_subprog1(volatile struct __sk_buff *skb) in test_pkt_access_subprog1() 43 int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) in test_pkt_access_subprog2() 51 int get_skb_len(struct __sk_buff *skb) in get_skb_len() 69 int test_pkt_access_subprog3(int val, struct __sk_buff *skb) in test_pkt_access_subprog3() 75 int get_skb_ifindex(int val, struct __sk_buff *skb, int var) in get_skb_ifindex() 85 int test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in test_pkt_write_access_subprog() 103 int test_pkt_access(struct __sk_buff *skb) in test_pkt_access()
|
| D | tailcall_bpf2bpf_hierarchy2.c | 25 int subprog_tail0(struct __sk_buff *skb) in subprog_tail0() 33 int classifier_0(struct __sk_buff *skb) in classifier_0() 41 int subprog_tail1(struct __sk_buff *skb) in subprog_tail1() 49 int classifier_1(struct __sk_buff *skb) in classifier_1() 59 int tailcall_bpf2bpf_hierarchy_2(struct __sk_buff *skb) in tailcall_bpf2bpf_hierarchy_2()
|
| D | test_tc_peer.c | 20 int tc_chk(struct __sk_buff *skb) in tc_chk() 26 int tc_dst(struct __sk_buff *skb) in tc_dst() 32 int tc_src(struct __sk_buff *skb) in tc_src() 38 int tc_dst_l3(struct __sk_buff *skb) in tc_dst_l3() 44 int tc_src_l3(struct __sk_buff *skb) in tc_src_l3()
|
| D | tailcall_bpf2bpf3.c | 15 int subprog_tail2(struct __sk_buff *skb) in subprog_tail2() 30 int subprog_tail(struct __sk_buff *skb) in subprog_tail() 42 int classifier_0(struct __sk_buff *skb) in classifier_0() 52 int classifier_1(struct __sk_buff *skb) in classifier_1() 62 int entry(struct __sk_buff *skb) in entry()
|
| D | test_global_func2.c | 11 int f0(int var, struct __sk_buff *skb) in f0() 17 int f1(struct __sk_buff *skb) in f1() 29 int f2(int val, struct __sk_buff *skb) in f2() 35 int f3(int val, struct __sk_buff *skb, int var) in f3() 46 int global_func2(struct __sk_buff *skb) in global_func2()
|
| D | test_global_func1.c | 11 int f0(int var, struct __sk_buff *skb) in f0() 19 int f1(struct __sk_buff *skb) in f1() 31 int f2(int val, struct __sk_buff *skb) in f2() 41 int f3(int val, struct __sk_buff *skb, int var) in f3() 52 int global_func1(struct __sk_buff *skb) in global_func1()
|
| D | kfunc_call_test.c | 8 int kfunc_call_test4(struct __sk_buff *skb) in kfunc_call_test4() 25 int kfunc_call_test2(struct __sk_buff *skb) in kfunc_call_test2() 40 int kfunc_call_test1(struct __sk_buff *skb) in kfunc_call_test1() 61 int kfunc_call_test_ref_btf_id(struct __sk_buff *skb) in kfunc_call_test_ref_btf_id() 77 int kfunc_call_test_pass(struct __sk_buff *skb) in kfunc_call_test_pass() 140 int kfunc_call_test_get_mem(struct __sk_buff *skb) in kfunc_call_test_get_mem() 171 int kfunc_call_test_static_unused_arg(struct __sk_buff *skb) in kfunc_call_test_static_unused_arg() 192 int kfunc_call_ctx(struct __sk_buff *skb) in kfunc_call_ctx()
|
| D | test_global_func5.c | 9 int f1(struct __sk_buff *skb) in f1() 17 int f2(int val, struct __sk_buff *skb) in f2() 23 int f3(int val, struct __sk_buff *skb) in f3() 30 int global_func5(struct __sk_buff *skb) in global_func5()
|
| D | test_global_func6.c | 9 int f1(struct __sk_buff *skb) in f1() 17 int f2(int val, struct __sk_buff *skb) in f2() 23 int f3(int val, struct __sk_buff *skb) in f3() 30 int global_func6(struct __sk_buff *skb) in global_func6()
|
| D | test_tc_neigh_fib.c | 24 static __always_inline int fill_fib_params_v4(struct __sk_buff *skb, in fill_fib_params_v4() 50 static __always_inline int fill_fib_params_v6(struct __sk_buff *skb, in fill_fib_params_v6() 79 int tc_chk(struct __sk_buff *skb) in tc_chk() 91 static __always_inline int tc_redir(struct __sk_buff *skb) in tc_redir() 147 int tc_dst(struct __sk_buff *skb) in tc_dst() 153 int tc_src(struct __sk_buff *skb) in tc_src()
|
| D | empty_skb.c | 12 int redirect_ingress(struct __sk_buff *skb) in redirect_ingress() 19 int redirect_egress(struct __sk_buff *skb) in redirect_egress() 26 int tc_redirect_ingress(struct __sk_buff *skb) in tc_redirect_ingress() 33 int tc_redirect_egress(struct __sk_buff *skb) in tc_redirect_egress()
|
| D | kfunc_call_fail.c | 39 int kfunc_call_test_get_mem_fail_rdonly(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_rdonly() 60 int kfunc_call_test_get_mem_fail_use_after_free(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_use_after_free() 86 int kfunc_call_test_get_mem_fail_oob(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_oob() 109 int kfunc_call_test_get_mem_fail_not_const(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_not_const() 130 int kfunc_call_test_mem_acquire_fail(struct __sk_buff *skb) in kfunc_call_test_mem_acquire_fail() 154 int kfunc_call_test_pointer_arg_type_mismatch(struct __sk_buff *skb) in kfunc_call_test_pointer_arg_type_mismatch()
|
| D | fexit_bpf2bpf.c | 18 int BPF_PROG(test_main, struct sk_buff *skb, int ret) in BPF_PROG() 33 int BPF_PROG(test_subprog1, struct sk_buff *skb, int ret) in BPF_PROG() 68 struct sk_buff *skb = (void *)ctx->args[0]; in test_subprog2() local 90 int BPF_PROG(test_subprog3, int val, struct sk_buff *skb, int ret) in BPF_PROG() 105 int new_get_skb_len(struct __sk_buff *skb) in new_get_skb_len() 117 int new_get_skb_ifindex(int val, struct __sk_buff *skb, int var) in new_get_skb_ifindex() 157 int new_test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in new_test_pkt_write_access_subprog()
|
| D | decap_sanity.c | 16 static unsigned int skb_headlen(const struct sk_buff *skb) in skb_headlen() 21 static unsigned int skb_headroom(const struct sk_buff *skb) in skb_headroom() 26 static int skb_checksum_start_offset(const struct sk_buff *skb) in skb_checksum_start_offset() 32 int decap_sanity(struct __sk_buff *skb) in decap_sanity()
|