/Linux-v6.1/include/linux/ |
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, in netns_bpf_prog_query() 38 union bpf_attr __user *uattr) in netns_bpf_prog_query() 43 static inline int netns_bpf_prog_attach(const union bpf_attr *attr, in netns_bpf_prog_attach() 49 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 | 74 int (*map_alloc_check)(union bpf_attr *attr); 75 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 81 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, 82 union bpf_attr __user *uattr); 86 const union bpf_attr *attr, 87 union bpf_attr __user *uattr); 88 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr, 89 union bpf_attr __user *uattr); 90 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, 91 union bpf_attr __user *uattr); [all …]
|
D | bpf-cgroup.h | 410 int cgroup_bpf_prog_attach(const union bpf_attr *attr, 412 int cgroup_bpf_prog_detach(const union bpf_attr *attr, 414 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 415 int cgroup_bpf_prog_query(const union bpf_attr *attr, 416 union bpf_attr __user *uattr); 427 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() 434 static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr, in cgroup_bpf_prog_detach() 440 static inline int cgroup_bpf_link_attach(const union bpf_attr *attr, in cgroup_bpf_link_attach() 446 static inline int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query() 447 union bpf_attr __user *uattr) in cgroup_bpf_prog_query()
|
D | bpf_local_storage.h | 124 int bpf_local_storage_map_alloc_check(union bpf_attr *attr); 126 struct bpf_local_storage_map *bpf_local_storage_map_alloc(union bpf_attr *attr);
|
D | btf.h | 67 union bpf_attr; 87 int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr); 90 const union bpf_attr *attr, 91 union bpf_attr __user *uattr);
|
/Linux-v6.1/tools/lib/bpf/ |
D | bpf.c | 72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() 78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd() 87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) in sys_bpf_prog_load() 108 const size_t attr_sz = offsetofend(union bpf_attr, attach_btf_obj_fd); in probe_memcg_account() 114 union bpf_attr attr; in probe_memcg_account() 172 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in bpf_map_create() 173 union bpf_attr attr; in bpf_map_create() 235 const size_t attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_prog_load() 241 union bpf_attr attr; in bpf_prog_load() 384 const size_t attr_sz = offsetofend(union bpf_attr, flags); in bpf_map_update_elem() [all …]
|
D | skel_internal.h | 71 static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in skel_sys_bpf() 225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in skel_map_create() 226 union bpf_attr attr; in skel_map_create() 242 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem() 243 union bpf_attr attr; in skel_map_update_elem() 256 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem() 257 union bpf_attr attr; in skel_map_delete_elem() 268 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id() 269 union bpf_attr attr; in skel_map_get_fd_by_id() 279 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd); in skel_raw_tracepoint_open() [all …]
|
D | gen_loader.c | 43 #define attr_field(attr, field) (attr + offsetof(union bpf_attr, field)) 420 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf() 422 union bpf_attr attr; in bpf_gen__load_btf() 454 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create() 457 union bpf_attr attr; in bpf_gen__map_create() 938 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load() 939 union bpf_attr attr; in bpf_gen__prog_load() 1009 offsetof(union bpf_attr, attach_btf_id))); in bpf_gen__prog_load() 1012 offsetof(union bpf_attr, attach_btf_obj_fd))); in bpf_gen__prog_load() 1035 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | test_kfunc_dynptr_param.c | 36 int BPF_PROG(dynptr_type_not_supp, int cmd, union bpf_attr *attr, in BPF_PROG() 48 int BPF_PROG(not_valid_dynptr, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG() 57 int BPF_PROG(not_ptr_to_stack, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG() 66 int BPF_PROG(dynptr_data_null, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG()
|
D | syscall.c | 52 static union bpf_attr btf_load_attr = { in btf_load() 73 static union bpf_attr map_create_attr = { in bpf_prog() 80 static union bpf_attr map_update_attr = { .map_fd = 1, }; in bpf_prog() 83 static union bpf_attr prog_load_attr = { in bpf_prog()
|
D | test_lookup_key.c | 26 int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG()
|
D | test_verify_pkcs7_sig.c | 45 int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG()
|
/Linux-v6.1/Documentation/bpf/ |
D | maps.rst | 12 ``map_fd = bpf(BPF_MAP_CREATE, union bpf_attr *attr, u32 size)`` 17 ``err = bpf(BPF_MAP_LOOKUP_ELEM, union bpf_attr *attr, u32 size)`` 22 ``err = bpf(BPF_MAP_UPDATE_ELEM, union bpf_attr *attr, u32 size)`` 27 ``err = bpf(BPF_MAP_DELETE_ELEM, union bpf_attr *attr, u32 size)``
|
/Linux-v6.1/kernel/bpf/ |
D | syscall.c | 110 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) in find_and_alloc_map() 364 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr() 874 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \ 1073 static int map_create(union bpf_attr *attr) in map_create() 1308 static int map_lookup_elem(union bpf_attr *attr) in map_lookup_elem() 1383 static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr) in map_update_elem() 1439 static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr) in map_delete_elem() 1494 static int map_get_next_key(union bpf_attr *attr) in map_get_next_key() 1559 const union bpf_attr *attr, in generic_map_delete_batch() 1560 union bpf_attr __user *uattr) in generic_map_delete_batch() [all …]
|
D | net_namespace.c | 246 static int __netns_bpf_prog_query(const union bpf_attr *attr, in __netns_bpf_prog_query() 247 union bpf_attr __user *uattr, in __netns_bpf_prog_query() 271 int netns_bpf_prog_query(const union bpf_attr *attr, in netns_bpf_prog_query() 272 union bpf_attr __user *uattr) in netns_bpf_prog_query() 297 int netns_bpf_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in netns_bpf_prog_attach() 383 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in netns_bpf_prog_detach() 477 int netns_bpf_link_create(const union bpf_attr *attr, struct bpf_prog *prog) in netns_bpf_link_create()
|
D | hashtab.c | 398 static int htab_map_alloc_check(union bpf_attr *attr) in htab_map_alloc_check() 459 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc() 1654 const union bpf_attr *attr, in __htab_map_lookup_and_delete_batch() 1655 union bpf_attr __user *uattr, in __htab_map_lookup_and_delete_batch() 1880 htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_percpu_map_lookup_batch() 1881 union bpf_attr __user *uattr) in htab_percpu_map_lookup_batch() 1889 const union bpf_attr *attr, in htab_percpu_map_lookup_and_delete_batch() 1890 union bpf_attr __user *uattr) in htab_percpu_map_lookup_and_delete_batch() 1897 htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_map_lookup_batch() 1898 union bpf_attr __user *uattr) in htab_map_lookup_batch() [all …]
|
D | queue_stack_maps.c | 47 static int queue_stack_map_alloc_check(union bpf_attr *attr) in queue_stack_map_alloc_check() 68 static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr) in queue_stack_map_alloc()
|
D | reuseport_array.c | 41 static int reuseport_array_alloc_check(union bpf_attr *attr) in reuseport_array_alloc_check() 149 static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr) in reuseport_array_alloc()
|
D | cgroup.c | 1019 static int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, in __cgroup_bpf_query() 1020 union bpf_attr __user *uattr) in __cgroup_bpf_query() 1118 static int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, in cgroup_bpf_query() 1119 union bpf_attr __user *uattr) in cgroup_bpf_query() 1129 int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() 1158 int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in cgroup_bpf_prog_detach() 1273 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in cgroup_bpf_link_attach() 1317 int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query() 1318 union bpf_attr __user *uattr) in cgroup_bpf_prog_query()
|
/Linux-v6.1/net/bpf/ |
D | test_run.c | 413 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() 414 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() 765 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 791 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 792 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() 851 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() 852 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() 908 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() 939 static int bpf_ctx_finish(const union bpf_attr *kattr, in bpf_ctx_finish() 940 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish() [all …]
|
D | bpf_dummy_struct_ops.c | 21 dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr) in dummy_ops_init_args() 77 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run() 78 union bpf_attr __user *uattr) in bpf_struct_ops_test_run()
|
/Linux-v6.1/drivers/media/rc/ |
D | bpf-lirc.c | 248 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach() 267 int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach() 295 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query()
|
/Linux-v6.1/tools/build/feature/ |
D | test-bpf.c | 30 union bpf_attr attr; in main()
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | obj_name.c | 25 union bpf_attr attr; in test_obj_name()
|