| /Linux-v5.10/include/linux/ |
| D | bpf-netns.h | 31 union bpf_attr; 35 int netns_bpf_prog_query(const union bpf_attr *attr, 36 union bpf_attr __user *uattr); 37 int netns_bpf_prog_attach(const union bpf_attr *attr, 39 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype); 40 int netns_bpf_link_create(const union bpf_attr *attr, 43 static inline int netns_bpf_prog_query(const union bpf_attr *attr, in netns_bpf_prog_query() 44 union bpf_attr __user *uattr) in netns_bpf_prog_query() 49 static inline int netns_bpf_prog_attach(const union bpf_attr *attr, in netns_bpf_prog_attach() 55 static inline int netns_bpf_prog_detach(const union bpf_attr *attr, in netns_bpf_prog_detach() [all …]
|
| 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, in lirc_prog_attach() 18 static inline int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach() 23 static inline int lirc_prog_query(const union bpf_attr *attr, in lirc_prog_query() 24 union bpf_attr __user *uattr) in lirc_prog_query()
|
| D | bpf.h | 56 int (*map_alloc_check)(union bpf_attr *attr); 57 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 63 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, 64 union bpf_attr __user *uattr); 66 const union bpf_attr *attr, 67 union bpf_attr __user *uattr); 68 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr, 69 union bpf_attr __user *uattr); 70 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, 71 union bpf_attr __user *uattr); [all …]
|
| D | bpf-cgroup.h | 105 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, 106 union bpf_attr __user *uattr); 115 int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, 116 union bpf_attr __user *uattr); 374 int cgroup_bpf_prog_attach(const union bpf_attr *attr, 376 int cgroup_bpf_prog_detach(const union bpf_attr *attr, 378 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 379 int cgroup_bpf_prog_query(const union bpf_attr *attr, 380 union bpf_attr __user *uattr); 388 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() [all …]
|
| D | btf.h | 16 union bpf_attr; 22 int btf_new_fd(const union bpf_attr *attr); 25 const union bpf_attr *attr, 26 union bpf_attr __user *uattr);
|
| D | bpf_local_storage.h | 120 int bpf_local_storage_map_alloc_check(union bpf_attr *attr); 122 struct bpf_local_storage_map *bpf_local_storage_map_alloc(union bpf_attr *attr);
|
| /Linux-v5.10/tools/lib/bpf/ |
| D | bpf.c | 62 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() 68 static inline int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size) in sys_bpf_prog_load() 81 union bpf_attr attr; in bpf_create_map_xattr() 161 union bpf_attr attr; in bpf_create_map_in_map_node() 221 union bpf_attr attr; in bpf_load_program_xattr() 353 union bpf_attr attr; in bpf_verify_program() 373 union bpf_attr attr; in bpf_map_update_elem() 386 union bpf_attr attr; in bpf_map_lookup_elem() 398 union bpf_attr attr; in bpf_map_lookup_elem_flags() 411 union bpf_attr attr; in bpf_map_lookup_and_delete_elem() [all …]
|
| /Linux-v5.10/net/bpf/ |
| D | test_run.c | 82 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() 83 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() 174 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() 200 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 201 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() 260 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() 261 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() 321 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() 352 static int bpf_ctx_finish(const union bpf_attr *kattr, in bpf_ctx_finish() 353 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish() [all …]
|
| /Linux-v5.10/kernel/bpf/ |
| D | syscall.c | 101 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) in find_and_alloc_map() 334 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr() 710 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \ 795 static int map_create(union bpf_attr *attr) in map_create() 1002 static int map_lookup_elem(union bpf_attr *attr) in map_lookup_elem() 1069 static int map_update_elem(union bpf_attr *attr) in map_update_elem() 1134 static int map_delete_elem(union bpf_attr *attr) in map_delete_elem() 1187 static int map_get_next_key(union bpf_attr *attr) in map_get_next_key() 1252 const union bpf_attr *attr, in generic_map_delete_batch() 1253 union bpf_attr __user *uattr) in generic_map_delete_batch() [all …]
|
| D | net_namespace.c | 245 static int __netns_bpf_prog_query(const union bpf_attr *attr, in __netns_bpf_prog_query() 246 union bpf_attr __user *uattr, in __netns_bpf_prog_query() 270 int netns_bpf_prog_query(const union bpf_attr *attr, in netns_bpf_prog_query() 271 union bpf_attr __user *uattr) in netns_bpf_prog_query() 296 int netns_bpf_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in netns_bpf_prog_attach() 382 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in netns_bpf_prog_detach() 476 int netns_bpf_link_create(const union bpf_attr *attr, struct bpf_prog *prog) in netns_bpf_link_create()
|
| D | hashtab.c | 342 static int htab_map_alloc_check(union bpf_attr *attr) in htab_map_alloc_check() 411 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc() 1367 const union bpf_attr *attr, in __htab_map_lookup_and_delete_batch() 1368 union bpf_attr __user *uattr, in __htab_map_lookup_and_delete_batch() 1579 htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_percpu_map_lookup_batch() 1580 union bpf_attr __user *uattr) in htab_percpu_map_lookup_batch() 1588 const union bpf_attr *attr, in htab_percpu_map_lookup_and_delete_batch() 1589 union bpf_attr __user *uattr) in htab_percpu_map_lookup_and_delete_batch() 1596 htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_map_lookup_batch() 1597 union bpf_attr __user *uattr) in htab_map_lookup_batch() [all …]
|
| D | queue_stack_maps.c | 46 static int queue_stack_map_alloc_check(union bpf_attr *attr) in queue_stack_map_alloc_check() 67 static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr) in queue_stack_map_alloc()
|
| D | reuseport_array.c | 43 static int reuseport_array_alloc_check(union bpf_attr *attr) in reuseport_array_alloc_check() 151 static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr) in reuseport_array_alloc()
|
| D | cgroup.c | 712 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, in __cgroup_bpf_query() 713 union bpf_attr __user *uattr) in __cgroup_bpf_query() 762 int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() 791 int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in cgroup_bpf_prog_detach() 904 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in cgroup_bpf_link_attach() 948 int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query() 949 union bpf_attr __user *uattr) in cgroup_bpf_prog_query()
|
| D | arraymap.c | 51 int array_map_alloc_check(union bpf_attr *attr) in array_map_alloc_check() 81 static struct bpf_map *array_map_alloc(union bpf_attr *attr) in array_map_alloc() 684 static int fd_array_map_alloc_check(union bpf_attr *attr) in fd_array_map_alloc_check() 1016 static struct bpf_map *prog_array_map_alloc(union bpf_attr *attr) in prog_array_map_alloc() 1220 static struct bpf_map *array_of_map_alloc(union bpf_attr *attr) in array_of_map_alloc()
|
| D | bpf_local_storage.c | 522 int bpf_local_storage_map_alloc_check(union bpf_attr *attr) in bpf_local_storage_map_alloc_check() 541 struct bpf_local_storage_map *bpf_local_storage_map_alloc(union bpf_attr *attr) in bpf_local_storage_map_alloc()
|
| D | bpf_inode_storage.c | 215 static struct bpf_map *inode_storage_map_alloc(union bpf_attr *attr) in inode_storage_map_alloc()
|
| D | bpf_struct_ops.c | 540 static int bpf_struct_ops_map_alloc_check(union bpf_attr *attr) in bpf_struct_ops_map_alloc_check() 548 static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) in bpf_struct_ops_map_alloc()
|
| D | offload.c | 80 int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr) in bpf_prog_offload_init() 362 struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) in bpf_map_offload_map_alloc()
|
| /Linux-v5.10/drivers/media/rc/ |
| D | bpf-lirc.c | 244 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach() 263 int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach() 291 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query()
|
| /Linux-v5.10/tools/build/feature/ |
| D | test-bpf.c | 24 union bpf_attr attr; in main()
|
| /Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | obj_name.c | 25 union bpf_attr attr; in test_obj_name()
|
| /Linux-v5.10/tools/testing/selftests/bpf/ |
| D | test_verifier_log.c | 50 union bpf_attr attr; in load()
|
| /Linux-v5.10/tools/testing/selftests/net/ |
| D | reuseport_bpf_numa.c | 85 union bpf_attr attr; in attach_bpf()
|
| D | reuseport_bpf.c | 110 union bpf_attr attr; in attach_ebpf() 349 union bpf_attr eprog; in test_filter_no_reuseport()
|