| /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 int (*map_alloc_check)(union bpf_attr *attr); 86 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 92 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, 93 union bpf_attr __user *uattr); 97 const union bpf_attr *attr, 98 union bpf_attr __user *uattr); 100 const union bpf_attr *attr, 101 union bpf_attr __user *uattr); 102 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, 103 union bpf_attr __user *uattr); [all …]
|
| H A D | bpf_mprog.h | 331 int bpf_mprog_query(const union bpf_attr *attr, union bpf_attr __user *uattr,
|
| H A D | trace_events.h | 18 union bpf_attr; 779 int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 780 int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 824 bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_kprobe_multi_link_attach() 829 bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_uprobe_multi_link_attach()
|
| /linux/include/net/ |
| H A D | netkit.h | 9 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 10 int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 12 int netkit_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); 15 static inline int netkit_prog_attach(const union bpf_attr *attr, in netkit_prog_attach() 21 static inline int netkit_link_attach(const union bpf_attr *attr, in netkit_link_attach() 27 static inline int netkit_prog_detach(const union bpf_attr *attr, in netkit_prog_detach() 33 static inline int netkit_prog_query(const union bpf_attr *attr, in netkit_prog_query() 34 union bpf_attr __user *uattr) in netkit_prog_query()
|
| 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()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | syscall.c | 40 __type(value, union bpf_attr); 90 static union bpf_attr btf_load_attr = { in btf_load() 111 static union bpf_attr map_create_attr = { in load_prog() 118 static union bpf_attr map_update_attr = { .map_fd = 1, }; in load_prog() 121 static union bpf_attr prog_load_attr = { in load_prog() 165 const int attr_sz = sizeof(union bpf_attr); in update_outer_map() 166 union bpf_attr *attr; in update_outer_map()
|
| H A D | test_kfunc_dynptr_param.c | 39 int BPF_PROG(not_valid_dynptr, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) in BPF_PROG() 49 int BPF_PROG(not_ptr_to_stack, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) in BPF_PROG() 58 int BPF_PROG(dynptr_data_null, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) in BPF_PROG()
|
| H A D | test_cgroup1_hierarchy.c | 54 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) in BPF_PROG() 60 int BPF_PROG(lsm_s_run, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) 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, bool kernel) in BPF_PROG()
|
| H A D | test_lookup_key.c | 26 int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) in BPF_PROG()
|
| H A D | test_task_under_cgroup.c | 52 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) in BPF_PROG()
|
| H A D | test_verify_pkcs7_sig.c | 40 int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel) in BPF_PROG()
|
| /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()
|
| /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 | 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()
|
| H A D | syscall.c | 433 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr() 1211 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \ 1376 static int map_create(union bpf_attr *attr, bpfptr_t uattr) in map_create() 1718 static int map_lookup_elem(union bpf_attr *attr) in map_lookup_elem() 1780 static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr) in map_update_elem() 1833 static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr) in map_delete_elem() 1886 static int map_get_next_key(union bpf_attr *attr) in map_get_next_key() 1943 const union bpf_attr *attr, in generic_map_delete_batch() 1944 union bpf_attr __user *uattr) in generic_map_delete_batch() 1999 const union bpf_attr *attr, in generic_map_update_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()
|
| H A D | queue_stack_maps.c | 47 static int queue_stack_map_alloc_check(union bpf_attr *attr) in queue_stack_map_alloc_check() 65 static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr) in queue_stack_map_alloc()
|
| /linux/net/bpf/ |
| H A D | test_run.c | 437 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() 438 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() 651 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 674 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 675 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing() 746 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() 747 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp() 803 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init() 834 static int bpf_ctx_finish(const union bpf_attr *kattr, in bpf_ctx_finish() 835 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish() [all …]
|
| H A D | bpf_dummy_struct_ops.c | 28 dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr) in dummy_ops_init_args() 129 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run() 130 union bpf_attr __user *uattr) in bpf_struct_ops_test_run()
|
| /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()
|
| /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 = {
|
| /linux/tools/build/feature/ |
| H A D | test-bpf.c | 30 union bpf_attr attr; in main()
|