Searched refs:bpfptr_t (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/include/linux/ |
A D | bpfptr.h | 9 typedef sockptr_t bpfptr_t; typedef 11 static inline bool bpfptr_is_kernel(bpfptr_t bpfptr) in bpfptr_is_kernel() 16 static inline bpfptr_t KERNEL_BPFPTR(void *p) in KERNEL_BPFPTR() 18 return (bpfptr_t) { .kernel = p, .is_kernel = true }; in KERNEL_BPFPTR() 21 static inline bpfptr_t USER_BPFPTR(void __user *p) in USER_BPFPTR() 23 return (bpfptr_t) { .user = p }; in USER_BPFPTR() 26 static inline bpfptr_t make_bpfptr(u64 addr, bool is_kernel) in make_bpfptr() 34 static inline bool bpfptr_is_null(bpfptr_t bpfptr) in bpfptr_is_null() 41 static inline void bpfptr_add(bpfptr_t *bpfptr, size_t val) in bpfptr_add() 49 static inline int copy_from_bpfptr_offset(void *dst, bpfptr_t src, in copy_from_bpfptr_offset() [all …]
|
A D | bpf_verifier.h | 570 bpfptr_t fd_array;
|
A D | btf.h | 126 int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr);
|
A D | bpf.h | 2082 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog); 2113 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, size_t expected_size, 2117 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr);
|
/linux-6.3-rc2/kernel/bpf/ |
A D | bpf_iter.c | 507 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, in bpf_iter_link_attach() 515 bpfptr_t ulinfo; in bpf_iter_link_attach()
|
A D | syscall.c | 80 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, in bpf_check_uarg_tail_zero() 1328 static void *___bpf_copy_key(bpfptr_t ukey, u64 key_size) in ___bpf_copy_key() 1417 static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr) in map_update_elem() 1419 bpfptr_t ukey = make_bpfptr(attr->key, uattr.is_kernel); in map_update_elem() 1420 bpfptr_t uvalue = make_bpfptr(attr->value, uattr.is_kernel); in map_update_elem() 1473 static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr) in map_delete_elem() 1475 bpfptr_t ukey = make_bpfptr(attr->key, uattr.is_kernel); in map_delete_elem() 2482 static int bpf_prog_load(union bpf_attr *attr, bpfptr_t uattr) in bpf_prog_load() 4343 static int bpf_btf_load(const union bpf_attr *attr, bpfptr_t uattr) in bpf_btf_load() 4545 static int link_create(union bpf_attr *attr, bpfptr_t uattr) in link_create() [all …]
|
A D | verifier.c | 13297 bpfptr_t uattr) in check_btf_func() 13306 bpfptr_t urecord; in check_btf_func() 13443 bpfptr_t uattr) in check_btf_line() 13450 bpfptr_t ulinfo; in check_btf_line() 13571 bpfptr_t uattr) in check_core_relo() 13581 bpfptr_t u_core_relo; in check_core_relo() 13640 bpfptr_t uattr) in check_btf_info() 17641 int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, bpfptr_t uattr) in bpf_check()
|
A D | btf.c | 5492 static struct btf *btf_parse(bpfptr_t btf_data, u32 btf_data_size, in btf_parse() 7183 int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr) in btf_new_fd()
|
Completed in 66 milliseconds