Home
last modified time | relevance | path

Searched refs:bpfptr_t (Results 1 – 8 of 8) sorted by relevance

/linux/include/linux/
A Dbpfptr.h9 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 Dbtf.h25 int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr);
A Dbpf_verifier.h469 bpfptr_t fd_array;
A Dbpf.h1554 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
1585 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, size_t expected_size,
1605 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr);
/linux/kernel/bpf/
A Dbpf_iter.c498 int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, in bpf_iter_link_attach()
507 bpfptr_t ulinfo; in bpf_iter_link_attach()
A Dsyscall.c76 int bpf_check_uarg_tail_zero(bpfptr_t uaddr, in bpf_check_uarg_tail_zero()
1044 static void *___bpf_copy_key(bpfptr_t ukey, u64 key_size) in ___bpf_copy_key()
1133 static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr) in map_update_elem()
1135 bpfptr_t ukey = make_bpfptr(attr->key, uattr.is_kernel); in map_update_elem()
1136 bpfptr_t uvalue = make_bpfptr(attr->value, uattr.is_kernel); in map_update_elem()
2203 static int bpf_prog_load(union bpf_attr *attr, bpfptr_t uattr) in bpf_prog_load()
4030 static int bpf_btf_load(const union bpf_attr *attr, bpfptr_t uattr) in bpf_btf_load()
4229 static int tracing_bpf_link_attach(const union bpf_attr *attr, bpfptr_t uattr, in tracing_bpf_link_attach()
4245 static int link_create(union bpf_attr *attr, bpfptr_t uattr) in link_create()
4591 static int __sys_bpf(int cmd, bpfptr_t uattr, unsigned int size) in __sys_bpf()
A Dverifier.c9985 bpfptr_t uattr) in check_btf_func()
9994 bpfptr_t urecord; in check_btf_func()
10132 bpfptr_t uattr) in check_btf_line()
10139 bpfptr_t ulinfo; in check_btf_line()
10257 bpfptr_t uattr) in check_btf_info()
13916 int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, bpfptr_t uattr) in bpf_check()
A Dbtf.c4437 static struct btf *btf_parse(bpfptr_t btf_data, u32 btf_data_size, in btf_parse()
5977 int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr) in btf_new_fd()

Completed in 59 milliseconds