/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_fail.c | 17 struct bpf_dynptr ptr; 118 struct bpf_dynptr ptr; in missing_release_callback_fn() 141 struct bpf_dynptr ptr; in ringbuf_release_uninit_dynptr() 154 struct bpf_dynptr ptr; in use_after_invalid() 174 struct bpf_dynptr ptr; in ringbuf_invalid_api() 197 struct bpf_dynptr ptr; in add_dynptr_to_map1() 233 struct bpf_dynptr ptr; in data_slice_out_of_bounds_ringbuf() 255 struct bpf_dynptr ptr; in data_slice_out_of_bounds_skb() 276 struct bpf_dynptr ptr; in data_slice_out_of_bounds_map_value() 296 struct bpf_dynptr ptr; in data_slice_use_after_release1() [all …]
|
H A D | dynptr_success.c | 40 struct bpf_dynptr ptr; in test_read_write() 70 struct bpf_dynptr ptr; in test_dynptr_data() 125 struct bpf_dynptr *ptr = (struct bpf_dynptr *)data; in ringbuf_callback() 139 struct bpf_dynptr ptr; in test_ringbuf() 173 struct bpf_dynptr ptr; in test_skb_readonly() 194 struct bpf_dynptr ptr; in test_dynptr_skb_data() 215 struct bpf_dynptr ptr; in test_adjust() 268 struct bpf_dynptr ptr; in test_adjust_err() 326 struct bpf_dynptr ptr; in test_zero_size_dynptr() 513 struct bpf_dynptr ptr; in test_dynptr_skb_no_buff() [all …]
|
H A D | user_ringbuf_fail.c | 30 bad_access1(struct bpf_dynptr *dynptr, void *context) in bad_access1() 53 bad_access2(struct bpf_dynptr *dynptr, void *context) in bad_access2() 76 write_forbidden(struct bpf_dynptr *dynptr, void *context) in write_forbidden() 96 null_context_write(struct bpf_dynptr *dynptr, void *context) in null_context_write() 116 null_context_read(struct bpf_dynptr *dynptr, void *context) in null_context_read() 138 try_discard_dynptr(struct bpf_dynptr *dynptr, void *context) in try_discard_dynptr() 158 try_submit_dynptr(struct bpf_dynptr *dynptr, void *context) in try_submit_dynptr() 178 invalid_drain_callback_return(struct bpf_dynptr *dynptr, void *context) in invalid_drain_callback_return() 196 try_reinit_dynptr_mem(struct bpf_dynptr *dynptr, void *context) in try_reinit_dynptr_mem() 203 try_reinit_dynptr_ringbuf(struct bpf_dynptr *dynptr, void *context) in try_reinit_dynptr_ringbuf()
|
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, in BPF_PROG() 44 (struct bpf_dynptr *)&val, NULL); in BPF_PROG() 53 return bpf_verify_pkcs7_signature((struct bpf_dynptr *)val, in BPF_PROG() 54 (struct bpf_dynptr *)val, NULL); in BPF_PROG() 61 struct bpf_dynptr ptr; in BPF_PROG()
|
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; in handle_v4() 69 struct bpf_dynptr ptr; in handle_v6()
|
H A D | test_verify_pkcs7_sig.c | 20 extern int bpf_verify_pkcs7_signature(struct bpf_dynptr *data_ptr, 21 struct bpf_dynptr *sig_ptr, 47 struct bpf_dynptr data_ptr, sig_ptr; in BPF_PROG()
|
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; in with_valid_ctx_access_test6()
|
H A D | test_cls_redirect_dynptr.c | 123 static int pkt_parse_ipv4(struct bpf_dynptr *dynptr, __u64 *offset, struct iphdr *iphdr) in pkt_parse_ipv4() 185 static bool pkt_skip_ipv6_extension_headers(struct bpf_dynptr *dynptr, __u64 *offset, in pkt_skip_ipv6_extension_headers() 242 static int pkt_parse_ipv6(struct bpf_dynptr *dynptr, __u64 *offset, struct ipv6hdr *ipv6, in pkt_parse_ipv6() 291 static ret_t forward_with_gre(struct __sk_buff *skb, struct bpf_dynptr *dynptr, in forward_with_gre() 418 static ret_t forward_to_next_hop(struct __sk_buff *skb, struct bpf_dynptr *dynptr, in forward_to_next_hop() 475 static ret_t get_next_hop(struct bpf_dynptr *dynptr, __u64 *offset, encap_headers_t *encap, in get_next_hop() 704 static verdict_t process_tcp(struct bpf_dynptr *dynptr, __u64 *offset, struct __sk_buff *skb, in process_tcp() 727 static verdict_t process_udp(struct bpf_dynptr *dynptr, __u64 *offset, struct __sk_buff *skb, in process_udp() 746 static verdict_t process_ipv4(struct __sk_buff *skb, struct bpf_dynptr *dynptr, in process_ipv4() 788 static verdict_t process_ipv6(struct __sk_buff *skb, struct bpf_dynptr *dynptr, in process_ipv6() [all …]
|
H A D | user_ringbuf_success.c | 38 record_sample(struct bpf_dynptr *dynptr, void *context) in record_sample() 89 read_protocol_msg(struct bpf_dynptr *dynptr, void *context) in read_protocol_msg() 193 do_nothing_cb(struct bpf_dynptr *dynptr, void *context) in do_nothing_cb()
|
H A D | test_xdp_dynptr.c | 77 static __always_inline int handle_ipv4(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv4() 82 struct bpf_dynptr new_xdp_ptr; in handle_ipv4() 159 static __always_inline int handle_ipv6(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv6() 164 struct bpf_dynptr new_xdp_ptr; in handle_ipv6() 234 struct bpf_dynptr ptr; in _xdp_tx_iptunnel()
|
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, in parse_hdr_opt() 84 struct bpf_dynptr ptr; in xdp_ingress_v6()
|
H A D | test_l4lb_noinline_dynptr.c | 235 static __noinline int parse_icmpv6(struct bpf_dynptr *skb_ptr, __u64 off, in parse_icmpv6() 259 static __noinline int parse_icmp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_icmp() 284 static __noinline bool parse_udp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_udp() 304 static __noinline bool parse_tcp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_tcp() 327 static __noinline int process_packet(struct bpf_dynptr *skb_ptr, in process_packet() 461 struct bpf_dynptr ptr; in balancer_ingress()
|
H A D | verifier_iterating_callbacks.c | 136 static __u64 ringbuf_drain_cb(struct bpf_dynptr *dynptr, void *data) in ringbuf_drain_cb()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | bpf_kfuncs.h | 10 struct bpf_dynptr *ptr__uninit) __ksym; 18 struct bpf_dynptr *ptr__uninit) __ksym; 26 extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, __u32 offset, 35 extern void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *ptr, __u32 offset, 38 extern int bpf_dynptr_adjust(const struct bpf_dynptr *ptr, __u32 start, __u32 end) __ksym; 39 extern bool bpf_dynptr_is_null(const struct bpf_dynptr *ptr) __ksym; 40 extern bool bpf_dynptr_is_rdonly(const struct bpf_dynptr *ptr) __ksym; 41 extern __u32 bpf_dynptr_size(const struct bpf_dynptr *ptr) __ksym; 42 extern int bpf_dynptr_clone(const struct bpf_dynptr *ptr, struct bpf_dynptr *clone__init) __ksym;
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 7155 struct bpf_dynptr { struct
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 7152 struct bpf_dynptr { struct
|
/openbmc/linux/kernel/bpf/ |
H A D | helpers.c | 1582 BTF_TYPE_EMIT(struct bpf_dynptr); in BPF_CALL_4()
|