/Linux-v4.19/include/linux/ |
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-cgroup.h | 74 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, 75 union bpf_attr __user *uattr); 82 int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, 83 union bpf_attr __user *uattr); 236 int cgroup_bpf_prog_attach(const union bpf_attr *attr, 238 int cgroup_bpf_prog_detach(const union bpf_attr *attr, 240 int cgroup_bpf_prog_query(const union bpf_attr *attr, 241 union bpf_attr __user *uattr); 249 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() 256 static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr, in cgroup_bpf_prog_detach() [all …]
|
D | btf.h | 11 union bpf_attr; 16 int btf_new_fd(const union bpf_attr *attr); 19 const union bpf_attr *attr, 20 union bpf_attr __user *uattr);
|
D | bpf.h | 31 int (*map_alloc_check)(union bpf_attr *attr); 32 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 232 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 233 union bpf_attr __user *uattr); 341 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 342 union bpf_attr __user *uattr); 343 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 344 union bpf_attr __user *uattr); 456 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr); 503 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr); [all …]
|
D | security.h | 1776 union bpf_attr; 1781 extern int security_bpf(int cmd, union bpf_attr *attr, unsigned int size); 1789 static inline int security_bpf(int cmd, union bpf_attr *attr, in security_bpf()
|
/Linux-v4.19/tools/lib/bpf/ |
D | bpf.c | 70 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() 79 union bpf_attr attr; in bpf_create_map_xattr() 155 union bpf_attr attr; in bpf_create_map_in_map_node() 187 union bpf_attr attr; in bpf_load_program_xattr() 246 union bpf_attr attr; in bpf_verify_program() 266 union bpf_attr attr; in bpf_map_update_elem() 279 union bpf_attr attr; in bpf_map_lookup_elem() 291 union bpf_attr attr; in bpf_map_delete_elem() 302 union bpf_attr attr; in bpf_map_get_next_key() 314 union bpf_attr attr; in bpf_obj_pin() [all …]
|
/Linux-v4.19/net/bpf/ |
D | test_run.c | 61 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() 62 union bpf_attr __user *uattr, const void *data, in bpf_test_finish() 81 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() 101 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_skb() 102 union bpf_attr __user *uattr) in bpf_prog_test_run_skb() 169 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_xdp() 170 union bpf_attr __user *uattr) in bpf_prog_test_run_xdp()
|
/Linux-v4.19/kernel/bpf/ |
D | syscall.c | 109 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) in find_and_alloc_map() 162 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr() 433 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \ 489 static int map_create(union bpf_attr *attr) in map_create() 658 static int map_lookup_elem(union bpf_attr *attr) in map_lookup_elem() 746 static int map_update_elem(union bpf_attr *attr) in map_update_elem() 846 static int map_delete_elem(union bpf_attr *attr) in map_delete_elem() 896 static int map_get_next_key(union bpf_attr *attr) in map_get_next_key() 1285 static void bpf_prog_load_fixup_attach_type(union bpf_attr *attr) in bpf_prog_load_fixup_attach_type() 1333 static int bpf_prog_load(union bpf_attr *attr) in bpf_prog_load() [all …]
|
D | cgroup.c | 406 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, in __cgroup_bpf_query() 407 union bpf_attr __user *uattr) in __cgroup_bpf_query() 451 int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() 467 int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in cgroup_bpf_prog_detach() 489 int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query() 490 union bpf_attr __user *uattr) in cgroup_bpf_prog_query()
|
D | reuseport_array.c | 40 static int reuseport_array_alloc_check(union bpf_attr *attr) in reuseport_array_alloc_check() 150 static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr) in reuseport_array_alloc()
|
D | arraymap.c | 57 int array_map_alloc_check(union bpf_attr *attr) in array_map_alloc_check() 78 static struct bpf_map *array_map_alloc(union bpf_attr *attr) in array_map_alloc() 404 static int fd_array_map_alloc_check(union bpf_attr *attr) in fd_array_map_alloc_check() 668 static struct bpf_map *array_of_map_alloc(union bpf_attr *attr) in array_of_map_alloc()
|
D | cpumap.c | 74 static u64 cpu_map_bitmap_size(const union bpf_attr *attr) in cpu_map_bitmap_size() 79 static struct bpf_map *cpu_map_alloc(union bpf_attr *attr) in cpu_map_alloc()
|
D | devmap.c | 83 static u64 dev_map_bitmap_size(const union bpf_attr *attr) in dev_map_bitmap_size() 88 static struct bpf_map *dev_map_alloc(union bpf_attr *attr) in dev_map_alloc()
|
D | xskmap.c | 18 static struct bpf_map *xsk_map_alloc(union bpf_attr *attr) in xsk_map_alloc()
|
D | offload.c | 78 int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr) in bpf_prog_offload_init() 330 struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) in bpf_map_offload_map_alloc()
|
D | hashtab.c | 234 static int htab_map_alloc_check(union bpf_attr *attr) in htab_map_alloc_check() 298 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc() 1308 static int fd_htab_map_alloc_check(union bpf_attr *attr) in fd_htab_map_alloc_check() 1375 static struct bpf_map *htab_of_map_alloc(union bpf_attr *attr) in htab_of_map_alloc()
|
D | local_storage.c | 190 static struct bpf_map *cgroup_storage_map_alloc(union bpf_attr *attr) in cgroup_storage_map_alloc()
|
D | lpm_trie.c | 503 static struct bpf_map *trie_alloc(union bpf_attr *attr) in trie_alloc()
|
/Linux-v4.19/drivers/media/rc/ |
D | bpf-lirc.c | 213 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach() 232 int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach() 260 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query()
|
/Linux-v4.19/tools/build/feature/ |
D | test-bpf.c | 24 union bpf_attr attr; in main()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_verifier_log.c | 50 union bpf_attr attr; in load()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | reuseport_bpf_numa.c | 85 union bpf_attr attr; in attach_bpf()
|
D | reuseport_bpf.c | 110 union bpf_attr attr; in attach_ebpf() 349 union bpf_attr eprog; in test_filter_no_reuseport()
|
D | psock_fanout.c | 160 union bpf_attr attr; in sock_fanout_set_ebpf()
|
/Linux-v4.19/tools/include/uapi/linux/ |
D | bpf.h | 285 union bpf_attr { union
|