/openbmc/linux/include/linux/ |
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, 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 …]
|
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, 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()
|
H A 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 …]
|
H A D | bpf-cgroup.h | 404 int cgroup_bpf_prog_attach(const union bpf_attr *attr, 406 int cgroup_bpf_prog_detach(const union bpf_attr *attr, 408 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 409 int cgroup_bpf_prog_query(const union bpf_attr *attr, 410 union bpf_attr __user *uattr); 421 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() 428 static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr, in cgroup_bpf_prog_detach() 434 static inline int cgroup_bpf_link_attach(const union bpf_attr *attr, in cgroup_bpf_link_attach() 440 static inline int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query() 441 union bpf_attr __user *uattr) in cgroup_bpf_prog_query()
|
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,
|
H A 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);
|
/openbmc/linux/tools/lib/bpf/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/include/net/ |
H A D | tcx.h | 168 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 169 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 170 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 173 int tcx_prog_query(const union bpf_attr *attr, 174 union bpf_attr __user *uattr); 183 static inline int tcx_prog_attach(const union bpf_attr *attr, in tcx_prog_attach() 189 static inline int tcx_link_attach(const union bpf_attr *attr, in tcx_link_attach() 195 static inline int tcx_prog_detach(const union bpf_attr *attr, in tcx_prog_detach() 201 static inline int tcx_prog_query(const union bpf_attr *attr, in tcx_prog_query() 202 union bpf_attr __user *uattr) in tcx_prog_query()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A 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()
|
H A 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()
|
H A D | test_ptr_untrusted.c | 10 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG()
|
H A D | test_lookup_key.c | 26 int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG()
|
/openbmc/linux/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) in bpf_nf_link_attach()
|
/openbmc/linux/kernel/bpf/ |
H A 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()
|
H A D | syscall.c | 339 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr() 988 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \ 1136 static int map_create(union bpf_attr *attr) in map_create() 1443 static int map_lookup_elem(union bpf_attr *attr) in map_lookup_elem() 1518 static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr) in map_update_elem() 1574 static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr) in map_delete_elem() 1629 static int map_get_next_key(union bpf_attr *attr) in map_get_next_key() 1694 const union bpf_attr *attr, in generic_map_delete_batch() 1695 union bpf_attr __user *uattr) in generic_map_delete_batch() 1751 const union bpf_attr *attr, in generic_map_update_batch() [all …]
|
H A 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()
|
H A D | hashtab.c | 410 static int htab_map_alloc_check(union bpf_attr *attr) in htab_map_alloc_check() 468 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc() 1701 const union bpf_attr *attr, in __htab_map_lookup_and_delete_batch() 1702 union bpf_attr __user *uattr, in __htab_map_lookup_and_delete_batch() 1932 htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_percpu_map_lookup_batch() 1933 union bpf_attr __user *uattr) in htab_percpu_map_lookup_batch() 1941 const union bpf_attr *attr, in htab_percpu_map_lookup_and_delete_batch() 1942 union bpf_attr __user *uattr) in htab_percpu_map_lookup_and_delete_batch() 1949 htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_map_lookup_batch() 1950 union bpf_attr __user *uattr) in htab_map_lookup_batch() [all …]
|
H A D | bloom_filter.c | 84 static int bloom_map_alloc_check(union bpf_attr *attr) in bloom_map_alloc_check() 95 static struct bpf_map *bloom_map_alloc(union bpf_attr *attr) in bloom_map_alloc()
|
/openbmc/linux/net/bpf/ |
H A D | test_run.c | 436 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() 437 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() 627 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 650 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 651 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() 721 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() 722 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() 778 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() 809 static int bpf_ctx_finish(const union bpf_attr *kattr, in bpf_ctx_finish() 810 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish() [all …]
|
H A 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()
|
/openbmc/linux/drivers/media/rc/ |
H A 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()
|
/openbmc/linux/Documentation/bpf/ |
H A 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 = {
|
/openbmc/linux/tools/build/feature/ |
H A D | test-bpf.c | 30 union bpf_attr attr; in main()
|