/linux-master/include/linux/ |
H A D | bpf_lirc.h | 8 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 9 int lirc_prog_detach(const union bpf_attr *attr); 10 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); 12 static inline int lirc_prog_attach(const union bpf_attr *attr, 18 static inline int lirc_prog_detach(const union bpf_attr *attr) 23 static inline int lirc_prog_query(const union bpf_attr *attr, 24 union bpf_attr __user *uattr)
|
H A D | bpf-netns.h | 25 union bpf_attr; 29 int netns_bpf_prog_query(const union bpf_attr *attr, 30 union bpf_attr __user *uattr); 31 int netns_bpf_prog_attach(const union bpf_attr *attr, 33 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype); 34 int netns_bpf_link_create(const union bpf_attr *attr, 37 static inline int netns_bpf_prog_query(const union bpf_attr *attr, 38 union bpf_attr __user *uattr) 43 static inline int netns_bpf_prog_attach(const union bpf_attr *attr, 49 static inline int netns_bpf_prog_detach(const union bpf_attr *att [all...] |
H A D | bpf.h | 83 int (*map_alloc_check)(union bpf_attr *attr); 84 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 90 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, 91 union bpf_attr __user *uattr); 95 const union bpf_attr *attr, 96 union bpf_attr __user *uattr); 98 const union bpf_attr *attr, 99 union bpf_attr __user *uattr); 100 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, 101 union bpf_attr __use [all...] |
H A D | bpf-cgroup.h | 427 int cgroup_bpf_prog_attach(const union bpf_attr *attr, 429 int cgroup_bpf_prog_detach(const union bpf_attr *attr, 431 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 432 int cgroup_bpf_prog_query(const union bpf_attr *attr, 433 union bpf_attr __user *uattr); 444 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, 451 static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr, 457 static inline int cgroup_bpf_link_attach(const union bpf_attr *attr, 463 static inline int cgroup_bpf_prog_query(const union bpf_attr *attr, 464 union bpf_attr __use [all...] |
H A D | bpf_local_storage.h | 125 int bpf_local_storage_map_alloc_check(union bpf_attr *attr); 128 bpf_local_storage_map_alloc(union bpf_attr *attr,
|
/linux-master/include/net/ |
H A D | netkit.h | 9 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 10 int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 12 int netkit_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); 15 static inline int netkit_prog_attach(const union bpf_attr *attr, 21 static inline int netkit_link_attach(const union bpf_attr *attr, 27 static inline int netkit_prog_detach(const union bpf_attr *attr, 33 static inline int netkit_prog_query(const union bpf_attr *attr, 34 union bpf_attr __use [all...] |
H A D | tcx.h | 158 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 159 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 160 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 163 int tcx_prog_query(const union bpf_attr *attr, 164 union bpf_attr __user *uattr); 173 static inline int tcx_prog_attach(const union bpf_attr *attr, 179 static inline int tcx_link_attach(const union bpf_attr *attr, 185 static inline int tcx_prog_detach(const union bpf_attr *attr, 191 static inline int tcx_prog_query(const union bpf_attr *attr, 192 union bpf_attr __use [all...] |
/linux-master/include/net/netfilter/ |
H A D | nf_bpf_link.h | 9 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_ptr_untrusted.c | 10 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size)
|
H A D | test_kfunc_dynptr_param.c | 39 int BPF_PROG(not_valid_dynptr, int cmd, union bpf_attr *attr, unsigned int size) 49 int BPF_PROG(not_ptr_to_stack, int cmd, union bpf_attr *attr, unsigned int size) 58 int BPF_PROG(dynptr_data_null, int cmd, union bpf_attr *attr, unsigned int size)
|
H A D | test_cgroup1_hierarchy.c | 54 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size) 60 int BPF_PROG(lsm_s_run, int cmd, union bpf_attr *attr, unsigned int size)
|
H A D | syscall.c | 39 __type(value, union bpf_attr); 89 static union bpf_attr btf_load_attr = { 110 static union bpf_attr map_create_attr = { 117 static union bpf_attr map_update_attr = { .map_fd = 1, }; 120 static union bpf_attr prog_load_attr = { 164 const int attr_sz = sizeof(union bpf_attr); 165 union bpf_attr *attr;
|
H A D | test_lookup_key.c | 26 int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size)
|
H A D | test_task_under_cgroup.c | 52 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size)
|
H A D | test_verify_pkcs7_sig.c | 39 int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size)
|
/linux-master/tools/lib/bpf/ |
H A D | skel_internal.h | 71 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, 225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); 226 union bpf_attr attr; 242 const size_t attr_sz = offsetofend(union bpf_attr, flags); 243 union bpf_attr attr; 256 const size_t attr_sz = offsetofend(union bpf_attr, flags); 257 union bpf_attr attr; 268 const size_t attr_sz = offsetofend(union bpf_attr, flags); 269 union bpf_attr attr; 279 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoin [all...] |
H A D | bpf.c | 72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, 78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, 87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) 108 const size_t attr_sz = offsetofend(union bpf_attr, attach_btf_obj_fd); 114 union bpf_attr attr; 175 const size_t attr_sz = offsetofend(union bpf_attr, map_token_fd); 176 union bpf_attr attr; 241 const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd); 247 union bpf_attr attr; 390 const size_t attr_sz = offsetofend(union bpf_attr, flag [all...] |
/linux-master/tools/build/feature/ |
H A D | test-bpf.c | 30 union bpf_attr attr;
|
/linux-master/kernel/bpf/ |
H A D | tcx.c | 10 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) 59 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog) 122 int tcx_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) 300 const union bpf_attr *attr, 310 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
|
H A D | net_namespace.c | 246 static int __netns_bpf_prog_query(const union bpf_attr *attr, 247 union bpf_attr __user *uattr, 271 int netns_bpf_prog_query(const union bpf_attr *attr, 272 union bpf_attr __user *uattr) 297 int netns_bpf_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) 383 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) 477 int netns_bpf_link_create(const union bpf_attr *attr, struct bpf_prog *prog)
|
H A D | syscall.c | 339 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) 1024 /* helper macro to check that unused fields 'union bpf_attr' are zero */ 1029 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \ 1183 static int map_create(union bpf_attr *attr) 1520 /* last field in 'union bpf_attr' used by this command */ 1523 static int map_lookup_elem(union bpf_attr *attr) 1598 static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr) 1656 static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr) 1709 /* last field in 'union bpf_attr' used by this command */ 1712 static int map_get_next_key(union bpf_attr *att [all...] |
/linux-master/drivers/media/rc/ |
H A D | bpf-lirc.c | 248 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) 267 int lirc_prog_detach(const union bpf_attr *attr) 295 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
|
/linux-master/net/bpf/ |
H A D | test_run.c | 437 static int bpf_test_finish(const union bpf_attr *kattr, 438 union bpf_attr __user *uattr, const void *data, 638 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, 664 const union bpf_attr *kattr, 665 union bpf_attr __user *uattr) 729 const union bpf_attr *kattr, 730 union bpf_attr __user *uattr) 786 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) 817 static int bpf_ctx_finish(const union bpf_attr *kattr, 818 union bpf_attr __use [all...] |
H A D | bpf_dummy_struct_ops.c | 28 dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr) 84 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, 85 union bpf_attr __user *uattr)
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | obj_name.c | 25 union bpf_attr attr;
|