/linux-master/tools/testing/selftests/bpf/ |
H A D | bpf_kfuncs.h | 12 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 D | test_kfunc_dynptr_param.c | 17 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 D | user_ringbuf_fail.c | 30 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 D | dynptr_fail.c | 17 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 D | dynptr_success.c | 40 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 D | ip_check_defrag.c | 16 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 D | verifier_netfilter_ctx.c | 83 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 D | test_get_xattr.c | 20 struct bpf_dynptr value_ptr;
|
H A D | user_ringbuf_success.c | 38 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 D | test_fsverity.c | 26 struct bpf_dynptr digest_ptr;
|
H A D | test_parse_tcp_hdr_opt_dynptr.c | 30 static int parse_hdr_opt(struct bpf_dynptr *ptr, __u32 *off, __u8 *hdr_bytes_remaining, 84 struct bpf_dynptr ptr;
|
H A D | test_sig_in_xattr.c | 47 struct bpf_dynptr digest_ptr, sig_ptr;
|
H A D | test_verify_pkcs7_sig.c | 41 struct bpf_dynptr data_ptr, sig_ptr;
|
H A D | test_xdp_dynptr.c | 77 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 D | test_cls_redirect_dynptr.c | 125 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 D | test_l4lb_noinline_dynptr.c | 235 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 D | verifier_global_subprogs.c | 349 __weak int subprog_dynptr(struct bpf_dynptr *dptr) 372 struct bpf_dynptr dptr;
|
H A D | verifier_iterating_callbacks.c | 134 static __u64 ringbuf_drain_cb(struct bpf_dynptr *dynptr, void *data)
|
H A D | test_tunnel_kern.c | 965 struct bpf_dynptr ptr;
|
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 5537 * 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 D | bpf.h | 5537 * 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 D | helpers.c | 1511 BTF_TYPE_EMIT(struct bpf_dynptr);
|