/tools/testing/selftests/bpf/progs/ |
D | test_global_func3.c | 8 int f1(struct __sk_buff *skb) in f1() 14 int f2(int val, struct __sk_buff *skb) in f2() 20 int f3(int val, struct __sk_buff *skb, int var) in f3() 26 int f4(struct __sk_buff *skb) in f4() 32 int f5(struct __sk_buff *skb) in f5() 38 int f6(struct __sk_buff *skb) in f6() 44 int f7(struct __sk_buff *skb) in f7() 51 int f8(struct __sk_buff *skb) in f8() 58 int test_cls(struct __sk_buff *skb) in test_cls()
|
D | test_tc_tunnel.c | 87 static __always_inline int __encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv4() 249 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv4() 255 static __always_inline int __encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv6() 366 static __always_inline int encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv6() 373 int __encap_ipip_none(struct __sk_buff *skb) in __encap_ipip_none() 382 int __encap_gre_none(struct __sk_buff *skb) in __encap_gre_none() 391 int __encap_gre_mpls(struct __sk_buff *skb) in __encap_gre_mpls() 400 int __encap_gre_eth(struct __sk_buff *skb) in __encap_gre_eth() 409 int __encap_udp_none(struct __sk_buff *skb) in __encap_udp_none() 418 int __encap_udp_mpls(struct __sk_buff *skb) in __encap_udp_mpls() [all …]
|
D | tailcall2.c | 14 int bpf_func_0(struct __sk_buff *skb) in bpf_func_0() 21 int bpf_func_1(struct __sk_buff *skb) in bpf_func_1() 28 int bpf_func_2(struct __sk_buff *skb) in bpf_func_2() 34 int bpf_func_3(struct __sk_buff *skb) in bpf_func_3() 41 int bpf_func_4(struct __sk_buff *skb) in bpf_func_4() 48 int entry(struct __sk_buff *skb) in entry()
|
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 bpf_func_1(struct __sk_buff *skb) in bpf_func_1() 60 int bpf_func_2(struct __sk_buff *skb) in bpf_func_2() 67 int bpf_func_0(struct __sk_buff *skb) in bpf_func_0() 73 int entry(struct __sk_buff *skb) in entry()
|
D | test_tunnel_kern.c | 46 int _gre_set_tunnel(struct __sk_buff *skb) in _gre_set_tunnel() 68 int _gre_get_tunnel(struct __sk_buff *skb) in _gre_get_tunnel() 85 int _ip6gretap_set_tunnel(struct __sk_buff *skb) in _ip6gretap_set_tunnel() 109 int _ip6gretap_get_tunnel(struct __sk_buff *skb) in _ip6gretap_get_tunnel() 129 int _erspan_set_tunnel(struct __sk_buff *skb) in _erspan_set_tunnel() 172 int _erspan_get_tunnel(struct __sk_buff *skb) in _erspan_get_tunnel() 213 int _ip4ip6erspan_set_tunnel(struct __sk_buff *skb) in _ip4ip6erspan_set_tunnel() 257 int _ip4ip6erspan_get_tunnel(struct __sk_buff *skb) in _ip4ip6erspan_get_tunnel() 299 int _vxlan_set_tunnel(struct __sk_buff *skb) in _vxlan_set_tunnel() 329 int _vxlan_get_tunnel(struct __sk_buff *skb) in _vxlan_get_tunnel() [all …]
|
D | test_sk_lookup_kern.c | 57 int bpf_sk_lookup_test0(struct __sk_buff *skb) in bpf_sk_lookup_test0() 83 int bpf_sk_lookup_test1(struct __sk_buff *skb) in bpf_sk_lookup_test1() 95 int bpf_sk_lookup_uaf(struct __sk_buff *skb) in bpf_sk_lookup_uaf() 110 int bpf_sk_lookup_modptr(struct __sk_buff *skb) in bpf_sk_lookup_modptr() 125 int bpf_sk_lookup_modptr_or_null(struct __sk_buff *skb) in bpf_sk_lookup_modptr_or_null() 139 int bpf_sk_lookup_test2(struct __sk_buff *skb) in bpf_sk_lookup_test2() 148 int bpf_sk_lookup_test3(struct __sk_buff *skb) in bpf_sk_lookup_test3() 160 int bpf_sk_lookup_test4(struct __sk_buff *skb) in bpf_sk_lookup_test4() 170 void lookup_no_release(struct __sk_buff *skb) in lookup_no_release() 177 int bpf_sk_lookup_test5(struct __sk_buff *skb) in bpf_sk_lookup_test5()
|
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 | test_pkt_access.c | 39 int test_pkt_access_subprog1(volatile struct __sk_buff *skb) in test_pkt_access_subprog1() 45 int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) in test_pkt_access_subprog2() 53 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() 83 int test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in test_pkt_write_access_subprog() 101 int test_pkt_access(struct __sk_buff *skb) in test_pkt_access()
|
D | test_global_func1.c | 12 int f0(int var, struct __sk_buff *skb) in f0() 18 int f1(struct __sk_buff *skb) in f1() 28 int f2(int val, struct __sk_buff *skb) in f2() 34 int f3(int val, struct __sk_buff *skb, int var) in f3() 42 int test_cls(struct __sk_buff *skb) in test_cls()
|
D | tailcall_bpf2bpf3.c | 14 int subprog_tail2(struct __sk_buff *skb) in subprog_tail2() 27 int subprog_tail(struct __sk_buff *skb) in subprog_tail() 37 int bpf_func_0(struct __sk_buff *skb) in bpf_func_0() 45 int bpf_func_1(struct __sk_buff *skb) in bpf_func_1() 53 int entry(struct __sk_buff *skb) in entry()
|
D | test_global_func6.c | 8 int f1(struct __sk_buff *skb) in f1() 16 int f2(int val, struct __sk_buff *skb) in f2() 22 int f3(int val, struct __sk_buff *skb) in f3() 28 int test_cls(struct __sk_buff *skb) in test_cls()
|
D | test_global_func5.c | 8 int f1(struct __sk_buff *skb) in f1() 16 int f2(int val, struct __sk_buff *skb) in f2() 22 int f3(int val, struct __sk_buff *skb) in f3() 28 int test_cls(struct __sk_buff *skb) in test_cls()
|
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 | 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() 159 int new_test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in new_test_pkt_write_access_subprog()
|
D | tailcall_bpf2bpf2.c | 14 int subprog_tail(struct __sk_buff *skb) in subprog_tail() 26 int bpf_func_0(struct __sk_buff *skb) in bpf_func_0() 33 int entry(struct __sk_buff *skb) in entry()
|
D | test_tc_neigh.c | 39 static __always_inline bool is_remote_ep_v4(struct __sk_buff *skb, in is_remote_ep_v4() 56 static __always_inline bool is_remote_ep_v6(struct __sk_buff *skb, in is_remote_ep_v6() 74 int tc_chk(struct __sk_buff *skb) in tc_chk() 87 int tc_dst(struct __sk_buff *skb) in tc_dst() 112 int tc_src(struct __sk_buff *skb) in tc_src()
|
D | test_tc_edt.c | 27 static inline int throttle_flow(struct __sk_buff *skb) in throttle_flow() 65 static inline int handle_tcp(struct __sk_buff *skb, struct tcphdr *tcp) in handle_tcp() 79 static inline int handle_ipv4(struct __sk_buff *skb) in handle_ipv4() 102 SEC("cls_test") int tc_prog(struct __sk_buff *skb) in tc_prog()
|
D | cg_storage_multi_isolated.c | 24 int egress1(struct __sk_buff *skb) in egress1() 36 int egress2(struct __sk_buff *skb) in egress2() 48 int ingress(struct __sk_buff *skb) in ingress()
|
D | cg_storage_multi_shared.c | 24 int egress1(struct __sk_buff *skb) in egress1() 36 int egress2(struct __sk_buff *skb) in egress2() 48 int ingress(struct __sk_buff *skb) in ingress()
|
D | skb_pkt_end.c | 9 #define skb_shorter(skb, len) ((void *)(long)(skb)->data + (len) > (void *)(long)skb->data_end) argument 13 static INLINE struct iphdr *get_iphdr(struct __sk_buff *skb) in get_iphdr() 29 int main_prog(struct __sk_buff *skb) in main_prog()
|
D | test_lwt_seg6local.c | 53 static __always_inline struct ip6_srh_t *get_srh(struct __sk_buff *skb) in get_srh() 88 int update_tlv_pad(struct __sk_buff *skb, uint32_t new_pad, in update_tlv_pad() 118 int is_valid_tlv_boundary(struct __sk_buff *skb, struct ip6_srh_t *srh, in is_valid_tlv_boundary() 177 int add_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh, uint32_t tlv_off, in add_tlv() 221 int delete_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh, in delete_tlv() 259 int has_egr_tlv(struct __sk_buff *skb, struct ip6_srh_t *srh) in has_egr_tlv() 286 int __encap_srh(struct __sk_buff *skb) in __encap_srh() 322 int __add_egr_x(struct __sk_buff *skb) in __add_egr_x() 360 int __pop_egr(struct __sk_buff *skb) in __pop_egr() 399 int __inspect_t(struct __sk_buff *skb) in __inspect_t()
|
D | test_global_func7.c | 8 void foo(struct __sk_buff *skb) in foo() 14 int test_cls(struct __sk_buff *skb) in test_cls()
|
D | test_global_func8.c | 7 __noinline int foo(struct __sk_buff *skb) in foo() 13 int test_cls(struct __sk_buff *skb) in test_cls()
|
D | freplace_global_func.c | 6 int test_ctx_global_func(struct __sk_buff *skb) in test_ctx_global_func() 13 int new_test_pkt_access(struct __sk_buff *skb) in new_test_pkt_access()
|
D | tailcall3.c | 16 int bpf_func_0(struct __sk_buff *skb) in bpf_func_0() 24 int entry(struct __sk_buff *skb) in entry()
|