Home
last modified time | relevance | path

Searched defs:skb (Results 1 – 25 of 200) sorted by relevance

12345678

/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c87 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 …]
H A Dtest_tunnel_kern.c63 int gre_set_tunnel(struct __sk_buff *skb) in gre_set_tunnel()
85 int gre_get_tunnel(struct __sk_buff *skb) in gre_get_tunnel()
101 int ip6gretap_set_tunnel(struct __sk_buff *skb) in ip6gretap_set_tunnel()
125 int ip6gretap_get_tunnel(struct __sk_buff *skb) in ip6gretap_get_tunnel()
144 int erspan_set_tunnel(struct __sk_buff *skb) in erspan_set_tunnel()
187 int erspan_get_tunnel(struct __sk_buff *skb) in erspan_get_tunnel()
223 int ip4ip6erspan_set_tunnel(struct __sk_buff *skb) in ip4ip6erspan_set_tunnel()
267 int ip4ip6erspan_get_tunnel(struct __sk_buff *skb) in ip4ip6erspan_get_tunnel()
304 int vxlan_set_tunnel_dst(struct __sk_buff *skb) in vxlan_set_tunnel_dst()
343 int vxlan_set_tunnel_src(struct __sk_buff *skb) in vxlan_set_tunnel_src()
[all …]
H A Dtest_global_func3.c8 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()
H A Dtest_sk_lookup_kern.c56 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()
124 int err_modify_sk_or_null_pointer(struct __sk_buff *skb) in err_modify_sk_or_null_pointer()
138 int err_no_release(struct __sk_buff *skb) in err_no_release()
147 int err_release_twice(struct __sk_buff *skb) in err_release_twice()
159 int err_release_unchecked(struct __sk_buff *skb) in err_release_unchecked()
169 void lookup_no_release(struct __sk_buff *skb) in lookup_no_release()
176 int err_no_release_subcall(struct __sk_buff *skb) in err_no_release_subcall()
H A Dtailcall_bpf2bpf4.c31 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()
H A Dtest_pkt_access.c36 int test_pkt_access_subprog1(volatile struct __sk_buff *skb) in test_pkt_access_subprog1()
42 int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) in test_pkt_access_subprog2()
50 int get_skb_len(struct __sk_buff *skb) in get_skb_len()
66 int test_pkt_access_subprog3(int val, struct __sk_buff *skb) in test_pkt_access_subprog3()
72 int get_skb_ifindex(int val, struct __sk_buff *skb, int var) in get_skb_ifindex()
80 int test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in test_pkt_write_access_subprog()
98 int test_pkt_access(struct __sk_buff *skb) in test_pkt_access()
H A Dtailcall2.c14 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()
H A Dtest_lwt_seg6local.c53 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()
H A Dfexit_bpf2bpf.c18 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()
H A Dtest_tc_neigh_fib.c24 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()
H A Dtest_tc_dtime.c137 static int skb_get_type(struct __sk_buff *skb) in skb_get_type()
214 int egress_host(struct __sk_buff *skb) in egress_host()
245 int ingress_host(struct __sk_buff *skb) in ingress_host()
266 int ingress_fwdns_prio100(struct __sk_buff *skb) in ingress_fwdns_prio100()
290 int egress_fwdns_prio100(struct __sk_buff *skb) in egress_fwdns_prio100()
316 int ingress_fwdns_prio101(struct __sk_buff *skb) in ingress_fwdns_prio101()
362 int egress_fwdns_prio101(struct __sk_buff *skb) in egress_fwdns_prio101()
H A Dtest_tc_peer.c20 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()
H A Dtest_global_func1.c12 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()
H A Dtailcall_bpf2bpf3.c14 int subprog_tail2(struct __sk_buff *skb) in subprog_tail2()
27 int subprog_tail(struct __sk_buff *skb) in subprog_tail()
37 int classifier_0(struct __sk_buff *skb) in classifier_0()
45 int classifier_1(struct __sk_buff *skb) in classifier_1()
53 int entry(struct __sk_buff *skb) in entry()
H A Dtest_tc_neigh.c39 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()
H A Dkfunc_call_test.c21 int kfunc_call_test2(struct __sk_buff *skb) in kfunc_call_test2()
36 int kfunc_call_test1(struct __sk_buff *skb) in kfunc_call_test1()
57 int kfunc_call_test_ref_btf_id(struct __sk_buff *skb) in kfunc_call_test_ref_btf_id()
73 int kfunc_call_test_pass(struct __sk_buff *skb) in kfunc_call_test_pass()
136 int kfunc_call_test_get_mem(struct __sk_buff *skb) in kfunc_call_test_get_mem()
H A Dkfunc_call_fail.c46 int kfunc_call_test_get_mem_fail_rdonly(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_rdonly()
67 int kfunc_call_test_get_mem_fail_use_after_free(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_use_after_free()
93 int kfunc_call_test_get_mem_fail_oob(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_oob()
116 int kfunc_call_test_get_mem_fail_not_const(struct __sk_buff *skb) in kfunc_call_test_get_mem_fail_not_const()
137 int kfunc_call_test_mem_acquire_fail(struct __sk_buff *skb) in kfunc_call_test_mem_acquire_fail()
H A Dtest_global_func5.c8 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()
H A Dtest_global_func6.c8 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()
H A Dtest_tc_edt.c27 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()
H A Dtest_cls_redirect.c127 struct __sk_buff *skb; member
378 static INLINING ret_t accept_locally(struct __sk_buff *skb, encap_headers_t *encap) in accept_locally()
399 static INLINING ret_t forward_with_gre(struct __sk_buff *skb, encap_headers_t *encap, in forward_with_gre()
526 static INLINING ret_t forward_to_next_hop(struct __sk_buff *skb, encap_headers_t *encap, in forward_to_next_hop()
647 static INLINING verdict_t classify_tcp(struct __sk_buff *skb, in classify_tcp()
680 static INLINING verdict_t classify_udp(struct __sk_buff *skb, in classify_udp()
698 static INLINING verdict_t classify_icmp(struct __sk_buff *skb, uint8_t proto, in classify_icmp()
932 int cls_redirect(struct __sk_buff *skb) in cls_redirect()
H A Dtest_seg6_loop.c53 static __always_inline struct ip6_srh_t *get_srh(struct __sk_buff *skb) in get_srh()
87 static __always_inline int update_tlv_pad(struct __sk_buff *skb, in update_tlv_pad()
117 static __always_inline int is_valid_tlv_boundary(struct __sk_buff *skb, in is_valid_tlv_boundary()
179 static __always_inline int add_tlv(struct __sk_buff *skb, in add_tlv()
226 int __add_egr_x(struct __sk_buff *skb) in __add_egr_x()
/aosp_15_r20/hardware/interfaces/health/utils/libhealthloop/
H A DfilterPowerSupplyEvents.c23 static inline uint32_t M4(struct __sk_buff* skb, unsigned int offset, uint8_t c0, uint8_t c1, in M4()
29 static inline uint16_t M2(struct __sk_buff* skb, unsigned int offset, uint8_t c0, uint8_t c1) { in M2()
34 static inline uint8_t M1(struct __sk_buff* skb, unsigned int offset, uint8_t c0) { in M1()
40 static inline uint32_t match_subsystem(struct __sk_buff* skb, unsigned int offset) { in match_subsystem()
47 static inline uint32_t match_power_supply(struct __sk_buff* skb, unsigned int offset) { in match_power_supply()
/aosp_15_r20/external/bcc/tests/python/
H A Dtest_call1.c14 int parse_ether(struct __sk_buff *skb) { in parse_ether()
30 int parse_arp(struct __sk_buff *skb) { in parse_arp()
42 int parse_ip(struct __sk_buff *skb) { in parse_ip()
54 int eop(struct __sk_buff *skb) { in eop()
/aosp_15_r20/packages/modules/Connectivity/bpf/progs/
Dnetd.c235 const struct __sk_buff* const skb, const struct egress_bool egress, const uint32_t uid, in do_packet_tracing()
319 static __always_inline inline bool skip_owner_match(struct __sk_buff* skb, in skip_owner_match()
365 static __always_inline inline bool ingress_should_discard(struct __sk_buff* skb, in ingress_should_discard()
394 static __always_inline inline int bpf_owner_match(struct __sk_buff* skb, uint32_t uid, in bpf_owner_match()
430 const struct __sk_buff* const skb, in update_stats_with_config()
441 static __always_inline inline int bpf_traffic_account(struct __sk_buff* skb, in bpf_traffic_account()

12345678