Home
last modified time | relevance | path

Searched refs:bpf_dynptr_slice (Results 1 – 12 of 12) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dip_check_defrag.c49 iph = bpf_dynptr_slice(&ptr, 0, iph_buf, sizeof(iph_buf)); in handle_v4()
71 ip6h = bpf_dynptr_slice(&ptr, 0, ip6h_buf, sizeof(ip6h_buf)); in handle_v6()
H A Dverifier_netfilter_ctx.c100 iph = bpf_dynptr_slice(&ptr, 0, buffer_iph, sizeof(buffer_iph)); in with_valid_ctx_access_test6()
109 th = bpf_dynptr_slice(&ptr, ihl, buffer_th, sizeof(buffer_th)); in with_valid_ctx_access_test6()
H A Dtest_l4lb_noinline_dynptr.c242 icmp_hdr = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_icmpv6()
249 ip6h = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_icmpv6()
267 icmp_hdr = bpf_dynptr_slice(skb_ptr, off, buffer_icmp, sizeof(buffer_icmp)); in parse_icmp()
274 iph = bpf_dynptr_slice(skb_ptr, off, buffer_ip, sizeof(buffer_ip)); in parse_icmp()
290 udp = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_udp()
310 tcp = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_tcp()
354 ip6h = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in process_packet()
377 iph = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in process_packet()
H A Dtest_xdp_dynptr.c99 iph = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, iph_buffer_udp, sizeof(iph_buffer_udp)); in handle_ipv4()
101 iph = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, iph_buffer_tcp, sizeof(iph_buffer_tcp)); in handle_ipv4()
178 ip6h = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, ip6h_buffer_udp, sizeof(ip6h_buffer_udp)); in handle_ipv6()
180 ip6h = bpf_dynptr_slice(xdp_ptr, ethhdr_sz, ip6h_buffer_tcp, sizeof(ip6h_buffer_tcp)); in handle_ipv6()
241 eth = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer)); in _xdp_tx_iptunnel()
H A Dtest_parse_tcp_hdr_opt_dynptr.c39 data = bpf_dynptr_slice(ptr, *off, buffer, sizeof(buffer)); in parse_hdr_opt()
90 tcp_hdr = bpf_dynptr_slice(&ptr, off, buffer, sizeof(buffer)); in xdp_ingress_v6()
H A Ddynptr_fail.c1091 /* bpf_dynptr_slice()s are read-only and cannot be written to */
1102 hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer)); in skb_invalid_data_slice1()
1112 /* bpf_dynptr_slice()s are read-only and cannot be written to */ in skb_invalid_data_slice1()
1122 md = bpf_dynptr_slice(&meta, 0, NULL, sizeof(*md)); in skb_invalid_data_slice2()
1143 hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer));
1196 hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer));
1246 d = bpf_dynptr_slice(&data, 0, NULL, sizeof(*d));
1292 md = bpf_dynptr_slice(&meta, 0, NULL, sizeof(*md)); in uninit_write_into_slot()
1337 md = bpf_dynptr_slice(&meta, 0, NULL, sizeof(*md)); in dynptr_slice_var_len2()
1383 md = bpf_dynptr_slice( in invalid_data_slices()
[all...]
H A Dverifier_global_subprogs.c371 d = bpf_dynptr_slice(dptr, 0, &buf, sizeof(long)); in subprog_dynptr()
H A Ddynptr_success.c204 /* This should return NULL. Must use bpf_dynptr_slice API */ in test_dynptr_skb_data()
226 /* This should return NULL. Must use bpf_dynptr_slice API */ in test_adjust()
579 data = bpf_dynptr_slice(&ptr, 0, NULL, 1); in bpf_memcmp()
596 data = bpf_dynptr_slice(&ptr, 0, NULL, 10); in test_dynptr_copy()
H A Dtest_tunnel_kern.c997 iph = bpf_dynptr_slice(&ptr, off, iph_buf, sizeof(iph_buf)); in xfrm_get_state_xdp()
1002 esph = bpf_dynptr_slice(&ptr, off, esph_buf, sizeof(esph_buf)); in xfrm_get_state_xdp()
/linux/tools/testing/selftests/bpf/
H A Dbpf_kfuncs.h31 extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, __u64 offset,
/linux/kernel/bpf/
H A Dhelpers.c2736 __bpf_kfunc void *bpf_dynptr_slice(const struct bpf_dynptr *p, u64 offset, in bpf_dynptr_slice() function
2856 return bpf_dynptr_slice(p, offset, buffer__opt, buffer__szk); in bpf_dynptr_slice_rdwr()
2941 src_slice = bpf_dynptr_slice(src_ptr, src_off, NULL, size); in bpf_dynptr_copy()
4461 BTF_ID_FLAGS(func, bpf_dynptr_slice, KF_RET_NULL)
4588 return bpf_dynptr_slice(p, 0, NULL, len); in __bpf_dynptr_data()
H A Dverifier.c12416 BTF_ID(func, bpf_dynptr_slice) in BTF_ID()