| /Linux-v6.6/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 | 77 int (*map_alloc_check)(union bpf_attr *attr); 78 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 84 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, 85 union bpf_attr __user *uattr); 89 const union bpf_attr *attr, 90 union bpf_attr __user *uattr); 92 const union bpf_attr *attr, 93 union bpf_attr __user *uattr); 94 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, 95 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 | 125 int bpf_local_storage_map_alloc_check(union bpf_attr *attr); 128 bpf_local_storage_map_alloc(union bpf_attr *attr,
|
| D | btf.h | 98 union bpf_attr; 130 int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr, u32 uattr_sz); 133 const union bpf_attr *attr, 134 union bpf_attr __user *uattr);
|
| D | bpf_mprog.h | 331 int bpf_mprog_query(const union bpf_attr *attr, union bpf_attr __user *uattr,
|
| /Linux-v6.6/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, log_true_size); in bpf_prog_load() 241 union bpf_attr attr; in bpf_prog_load() 383 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() 940 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load() 941 union bpf_attr attr; in bpf_gen__prog_load() 1011 offsetof(union bpf_attr, attach_btf_id))); in bpf_gen__prog_load() 1014 offsetof(union bpf_attr, attach_btf_obj_fd))); in bpf_gen__prog_load() 1037 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() [all …]
|
| /Linux-v6.6/include/net/ |
| D | tcx.h | 163 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 164 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 165 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 168 int tcx_prog_query(const union bpf_attr *attr, 169 union bpf_attr __user *uattr); 178 static inline int tcx_prog_attach(const union bpf_attr *attr, in tcx_prog_attach() 184 static inline int tcx_link_attach(const union bpf_attr *attr, in tcx_link_attach() 190 static inline int tcx_prog_detach(const union bpf_attr *attr, in tcx_prog_detach() 196 static inline int tcx_prog_query(const union bpf_attr *attr, in tcx_prog_query() 197 union bpf_attr __user *uattr) in tcx_prog_query()
|
| /Linux-v6.6/tools/testing/selftests/bpf/progs/ |
| 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_kfunc_dynptr_param.c | 39 int BPF_PROG(not_valid_dynptr, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG() 49 int BPF_PROG(not_ptr_to_stack, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG() 58 int BPF_PROG(dynptr_data_null, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG()
|
| D | test_ptr_untrusted.c | 10 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size) 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()
|
| /Linux-v6.6/include/net/netfilter/ |
| 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) in bpf_nf_link_attach()
|
| /Linux-v6.6/kernel/bpf/ |
| D | syscall.c | 339 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr() 950 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \ 1098 static int map_create(union bpf_attr *attr) in map_create() 1405 static int map_lookup_elem(union bpf_attr *attr) in map_lookup_elem() 1480 static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr) in map_update_elem() 1536 static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr) in map_delete_elem() 1591 static int map_get_next_key(union bpf_attr *attr) in map_get_next_key() 1656 const union bpf_attr *attr, in generic_map_delete_batch() 1657 union bpf_attr __user *uattr) in generic_map_delete_batch() 1710 const union bpf_attr *attr, in generic_map_update_batch() [all …]
|
| D | tcx.c | 10 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_prog_attach() 59 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_prog_detach() 122 int tcx_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in tcx_prog_query() 300 const union bpf_attr *attr, in tcx_link_init() 310 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_link_attach()
|
| 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 | 407 static int htab_map_alloc_check(union bpf_attr *attr) in htab_map_alloc_check() 462 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc() 1673 const union bpf_attr *attr, in __htab_map_lookup_and_delete_batch() 1674 union bpf_attr __user *uattr, in __htab_map_lookup_and_delete_batch() 1900 htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_percpu_map_lookup_batch() 1901 union bpf_attr __user *uattr) in htab_percpu_map_lookup_batch() 1909 const union bpf_attr *attr, in htab_percpu_map_lookup_and_delete_batch() 1910 union bpf_attr __user *uattr) in htab_percpu_map_lookup_and_delete_batch() 1917 htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_map_lookup_batch() 1918 union bpf_attr __user *uattr) in htab_map_lookup_batch() [all …]
|
| /Linux-v6.6/net/bpf/ |
| D | test_run.c | 435 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() 436 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() 626 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 652 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 653 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() 717 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() 718 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() 774 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() 805 static int bpf_ctx_finish(const union bpf_attr *kattr, in bpf_ctx_finish() 806 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.6/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.6/Documentation/bpf/ |
| D | maps.rst | 31 int bpf(int command, union bpf_attr *attr, u32 size) 35 argument is the size of the ``union bpf_attr`` in ``attr``. 44 union bpf_attr attr = {
|
| /Linux-v6.6/tools/build/feature/ |
| D | test-bpf.c | 30 union bpf_attr attr; in main()
|