/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 | 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); 95 union bpf_attr __user *uattr); 929 union bpf_attr __user *uattr); 2392 const union bpf_attr *kattr, 2395 const union bpf_attr *kattr, 2637 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() [all …]
|
H A D | bpf-cgroup.h | 411 int cgroup_bpf_prog_attach(const union bpf_attr *attr, 413 int cgroup_bpf_prog_detach(const union bpf_attr *attr, 415 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 416 int cgroup_bpf_prog_query(const union bpf_attr *attr, 417 union bpf_attr __user *uattr); 428 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() 435 static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr, in cgroup_bpf_prog_detach() 441 static inline int cgroup_bpf_link_attach(const union bpf_attr *attr, in cgroup_bpf_link_attach() 447 static inline int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query() 448 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 | 114 union bpf_attr attr; in probe_memcg_account() 173 union bpf_attr attr; in bpf_map_create() 241 union bpf_attr attr; in bpf_prog_load() 384 union bpf_attr attr; in bpf_map_update_elem() 400 union bpf_attr attr; in bpf_map_lookup_elem() 415 union bpf_attr attr; in bpf_map_lookup_elem_flags() 431 union bpf_attr attr; in bpf_map_lookup_and_delete_elem() 446 union bpf_attr attr; in bpf_map_lookup_and_delete_elem_flags() 462 union bpf_attr attr; in bpf_map_delete_elem() 476 union bpf_attr attr; in bpf_map_delete_elem_flags() [all …]
|
H A D | skel_internal.h | 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() 280 union bpf_attr attr; in skel_raw_tracepoint_open() 293 union bpf_attr attr; in skel_link_create() [all …]
|
H A D | gen_loader.c | 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() 941 union bpf_attr attr; in bpf_gen__prog_load() 1011 offsetof(union bpf_attr, attach_btf_id))); in bpf_gen__prog_load() 1037 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() 1039 union bpf_attr attr; in bpf_gen__map_update_elem() 1084 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__populate_outer_map() 1086 union bpf_attr attr; in bpf_gen__populate_outer_map() 1110 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze() [all …]
|
/openbmc/linux/include/net/ |
H A 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()
|
/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 | 1685 const union bpf_attr *attr, in generic_map_delete_batch() 1742 const union bpf_attr *attr, in generic_map_update_batch() 1804 const union bpf_attr *attr, in generic_map_lookup_batch() 4007 union bpf_attr __user *uattr) in bpf_prog_query() 4349 const union bpf_attr *attr, in bpf_prog_get_info_by_fd() 4638 const union bpf_attr *attr, in bpf_map_get_info_by_fd() 4639 union bpf_attr __user *uattr) in bpf_map_get_info_by_fd() 4683 const union bpf_attr *attr, in bpf_btf_get_info_by_fd() 4684 union bpf_attr __user *uattr) in bpf_btf_get_info_by_fd() 4699 const union bpf_attr *attr, in bpf_link_get_info_by_fd() [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 | 1680 const union bpf_attr *attr, in __htab_map_lookup_and_delete_batch() 1681 union bpf_attr __user *uattr, in __htab_map_lookup_and_delete_batch() 1916 const union bpf_attr *attr, in htab_percpu_map_lookup_and_delete_batch() 1917 union bpf_attr __user *uattr) in htab_percpu_map_lookup_and_delete_batch() 1933 const union bpf_attr *attr, in htab_map_lookup_and_delete_batch() 1934 union bpf_attr __user *uattr) in htab_map_lookup_and_delete_batch() 1942 const union bpf_attr *attr, in htab_lru_percpu_map_lookup_batch() 1943 union bpf_attr __user *uattr) in htab_lru_percpu_map_lookup_batch() 1951 const union bpf_attr *attr, in htab_lru_percpu_map_lookup_and_delete_batch() 1960 union bpf_attr __user *uattr) in htab_lru_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 | 652 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 653 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() 723 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() 724 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() 951 union bpf_attr __user *uattr) in bpf_prog_test_run_skb() 1145 union bpf_attr __user *uattr) in bpf_prog_test_run_xdp() 1307 const union bpf_attr *kattr, in bpf_prog_test_run_flow_dissector() 1376 union bpf_attr __user *uattr) in bpf_prog_test_run_sk_lookup() 1476 const union bpf_attr *kattr, in bpf_prog_test_run_syscall() 1574 const union bpf_attr *kattr, in bpf_prog_test_run_nf() [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()
|