Searched refs:bpf_dynptr (Results 1 - 22 of 22) sorted by relevance

/linux-master/tools/testing/selftests/bpf/
H A Dbpf_kfuncs.h12 struct bpf_dynptr *ptr__uninit) __ksym __weak;
20 struct bpf_dynptr *ptr__uninit) __ksym __weak;
28 extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, __u32 offset,
37 extern void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *ptr, __u32 offset,
40 extern int bpf_dynptr_adjust(const struct bpf_dynptr *ptr, __u32 start, __u32 end) __ksym __weak;
41 extern bool bpf_dynptr_is_null(const struct bpf_dynptr *ptr) __ksym __weak;
42 extern bool bpf_dynptr_is_rdonly(const struct bpf_dynptr *ptr) __ksym __weak;
43 extern __u32 bpf_dynptr_size(const struct bpf_dynptr *ptr) __ksym __weak;
44 extern int bpf_dynptr_clone(const struct bpf_dynptr *ptr, struct bpf_dynptr *clone__ini
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_kfunc_dynptr_param.c17 extern int bpf_verify_pkcs7_signature(struct bpf_dynptr *data_ptr,
18 struct bpf_dynptr *sig_ptr,
43 return bpf_verify_pkcs7_signature((struct bpf_dynptr *)&val,
44 (struct bpf_dynptr *)&val, NULL);
53 return bpf_verify_pkcs7_signature((struct bpf_dynptr *)val,
54 (struct bpf_dynptr *)val, NULL);
61 struct bpf_dynptr ptr;
H A Duser_ringbuf_fail.c30 bad_access1(struct bpf_dynptr *dynptr, void *context)
53 bad_access2(struct bpf_dynptr *dynptr, void *context)
76 write_forbidden(struct bpf_dynptr *dynptr, void *context)
96 null_context_write(struct bpf_dynptr *dynptr, void *context)
116 null_context_read(struct bpf_dynptr *dynptr, void *context)
138 try_discard_dynptr(struct bpf_dynptr *dynptr, void *context)
149 __failure __msg("cannot release unowned const bpf_dynptr")
158 try_submit_dynptr(struct bpf_dynptr *dynptr, void *context)
169 __failure __msg("cannot release unowned const bpf_dynptr")
178 invalid_drain_callback_return(struct bpf_dynptr *dynpt
[all...]
H A Ddynptr_fail.c17 struct bpf_dynptr ptr;
24 __type(value, struct bpf_dynptr);
61 static int get_map_val_dynptr(struct bpf_dynptr *ptr)
83 struct bpf_dynptr ptr;
96 struct bpf_dynptr ptr1, ptr2;
118 struct bpf_dynptr ptr;
141 struct bpf_dynptr ptr;
154 struct bpf_dynptr ptr;
174 struct bpf_dynptr ptr;
197 struct bpf_dynptr pt
[all...]
H A Ddynptr_success.c40 struct bpf_dynptr ptr;
70 struct bpf_dynptr ptr;
125 struct bpf_dynptr *ptr = (struct bpf_dynptr *)data;
139 struct bpf_dynptr ptr;
173 struct bpf_dynptr ptr;
194 struct bpf_dynptr ptr;
215 struct bpf_dynptr ptr;
268 struct bpf_dynptr ptr;
326 struct bpf_dynptr pt
[all...]
H A Dip_check_defrag.c16 struct bpf_dynptr *ptr__uninit) __ksym;
17 extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, uint32_t offset,
47 struct bpf_dynptr ptr;
69 struct bpf_dynptr ptr;
H A Dverifier_netfilter_ctx.c83 struct bpf_dynptr *ptr__uninit) __ksym;
84 extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, uint32_t offset,
99 struct bpf_dynptr ptr;
H A Dtest_get_xattr.c20 struct bpf_dynptr value_ptr;
H A Duser_ringbuf_success.c38 record_sample(struct bpf_dynptr *dynptr, void *context)
89 read_protocol_msg(struct bpf_dynptr *dynptr, void *context)
193 do_nothing_cb(struct bpf_dynptr *dynptr, void *context)
H A Dtest_fsverity.c26 struct bpf_dynptr digest_ptr;
H A Dtest_parse_tcp_hdr_opt_dynptr.c30 static int parse_hdr_opt(struct bpf_dynptr *ptr, __u32 *off, __u8 *hdr_bytes_remaining,
84 struct bpf_dynptr ptr;
H A Dtest_sig_in_xattr.c47 struct bpf_dynptr digest_ptr, sig_ptr;
H A Dtest_verify_pkcs7_sig.c41 struct bpf_dynptr data_ptr, sig_ptr;
H A Dtest_xdp_dynptr.c77 static __always_inline int handle_ipv4(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr)
82 struct bpf_dynptr new_xdp_ptr;
159 static __always_inline int handle_ipv6(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr)
164 struct bpf_dynptr new_xdp_ptr;
234 struct bpf_dynptr ptr;
H A Dtest_cls_redirect_dynptr.c125 static int pkt_parse_ipv4(struct bpf_dynptr *dynptr, __u64 *offset, struct iphdr *iphdr)
142 static bool pkt_parse_icmp_l4_ports(struct bpf_dynptr *dynptr, __u64 *offset, flow_ports_t *ports)
187 static bool pkt_skip_ipv6_extension_headers(struct bpf_dynptr *dynptr, __u64 *offset,
244 static int pkt_parse_ipv6(struct bpf_dynptr *dynptr, __u64 *offset, struct ipv6hdr *ipv6,
293 static ret_t forward_with_gre(struct __sk_buff *skb, struct bpf_dynptr *dynptr,
420 static ret_t forward_to_next_hop(struct __sk_buff *skb, struct bpf_dynptr *dynptr,
477 static ret_t get_next_hop(struct bpf_dynptr *dynptr, __u64 *offset, encap_headers_t *encap,
605 static verdict_t process_icmpv4(struct __sk_buff *skb, struct bpf_dynptr *dynptr, __u64 *offset,
654 static verdict_t process_icmpv6(struct bpf_dynptr *dynptr, __u64 *offset, struct __sk_buff *skb,
706 static verdict_t process_tcp(struct bpf_dynptr *dynpt
[all...]
H A Dtest_l4lb_noinline_dynptr.c235 static __noinline int parse_icmpv6(struct bpf_dynptr *skb_ptr, __u64 off,
259 static __noinline int parse_icmp(struct bpf_dynptr *skb_ptr, __u64 off,
284 static __noinline bool parse_udp(struct bpf_dynptr *skb_ptr, __u64 off,
304 static __noinline bool parse_tcp(struct bpf_dynptr *skb_ptr, __u64 off,
327 static __noinline int process_packet(struct bpf_dynptr *skb_ptr,
461 struct bpf_dynptr ptr;
H A Dverifier_global_subprogs.c349 __weak int subprog_dynptr(struct bpf_dynptr *dptr)
372 struct bpf_dynptr dptr;
H A Dverifier_iterating_callbacks.c134 static __u64 ringbuf_drain_cb(struct bpf_dynptr *dynptr, void *data)
H A Dtest_tunnel_kern.c965 struct bpf_dynptr ptr;
/linux-master/include/uapi/linux/
H A Dbpf.h5537 * long bpf_dynptr_from_mem(void *data, u32 size, u64 flags, struct bpf_dynptr *ptr)
5548 * long bpf_ringbuf_reserve_dynptr(void *ringbuf, u32 size, u64 flags, struct bpf_dynptr *ptr)
5559 * void bpf_ringbuf_submit_dynptr(struct bpf_dynptr *ptr, u64 flags)
5570 * void bpf_ringbuf_discard_dynptr(struct bpf_dynptr *ptr, u64 flags)
5580 * long bpf_dynptr_read(void *dst, u32 len, const struct bpf_dynptr *src, u32 offset, u64 flags)
5590 * long bpf_dynptr_write(const struct bpf_dynptr *dst, u32 offset, void *src, u32 len, u64 flags)
5611 * void *bpf_dynptr_data(const struct bpf_dynptr *ptr, u32 offset, u32 len)
5715 * long (\*callback_fn)(const struct bpf_dynptr \*dynptr, void \*ctx);
5746 * within a struct bpf_dynptr.
7286 struct bpf_dynptr { struct
[all...]
/linux-master/tools/include/uapi/linux/
H A Dbpf.h5537 * long bpf_dynptr_from_mem(void *data, u32 size, u64 flags, struct bpf_dynptr *ptr)
5548 * long bpf_ringbuf_reserve_dynptr(void *ringbuf, u32 size, u64 flags, struct bpf_dynptr *ptr)
5559 * void bpf_ringbuf_submit_dynptr(struct bpf_dynptr *ptr, u64 flags)
5570 * void bpf_ringbuf_discard_dynptr(struct bpf_dynptr *ptr, u64 flags)
5580 * long bpf_dynptr_read(void *dst, u32 len, const struct bpf_dynptr *src, u32 offset, u64 flags)
5590 * long bpf_dynptr_write(const struct bpf_dynptr *dst, u32 offset, void *src, u32 len, u64 flags)
5611 * void *bpf_dynptr_data(const struct bpf_dynptr *ptr, u32 offset, u32 len)
5715 * long (\*callback_fn)(const struct bpf_dynptr \*dynptr, void \*ctx);
5746 * within a struct bpf_dynptr.
7286 struct bpf_dynptr { struct
[all...]
/linux-master/kernel/bpf/
H A Dhelpers.c1511 BTF_TYPE_EMIT(struct bpf_dynptr);

Completed in 257 milliseconds