Home
last modified time | relevance | path

Searched refs:bpf_attr (Results 1 – 25 of 52) sorted by relevance

123

/Linux-v5.10/include/linux/
Dbpf-netns.h31 union bpf_attr;
35 int netns_bpf_prog_query(const union bpf_attr *attr,
36 union bpf_attr __user *uattr);
37 int netns_bpf_prog_attach(const union bpf_attr *attr,
39 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype);
40 int netns_bpf_link_create(const union bpf_attr *attr,
43 static inline int netns_bpf_prog_query(const union bpf_attr *attr, in netns_bpf_prog_query()
44 union bpf_attr __user *uattr) in netns_bpf_prog_query()
49 static inline int netns_bpf_prog_attach(const union bpf_attr *attr, in netns_bpf_prog_attach()
55 static inline int netns_bpf_prog_detach(const union bpf_attr *attr, in netns_bpf_prog_detach()
[all …]
Dbpf_lirc.h8 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()
Dbpf.h56 int (*map_alloc_check)(union bpf_attr *attr);
57 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
63 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
64 union bpf_attr __user *uattr);
66 const union bpf_attr *attr,
67 union bpf_attr __user *uattr);
68 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr,
69 union bpf_attr __user *uattr);
70 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
71 union bpf_attr __user *uattr);
[all …]
Dbpf-cgroup.h105 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
106 union bpf_attr __user *uattr);
115 int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
116 union bpf_attr __user *uattr);
374 int cgroup_bpf_prog_attach(const union bpf_attr *attr,
376 int cgroup_bpf_prog_detach(const union bpf_attr *attr,
378 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
379 int cgroup_bpf_prog_query(const union bpf_attr *attr,
380 union bpf_attr __user *uattr);
388 static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach()
[all …]
Dbtf.h16 union bpf_attr;
22 int btf_new_fd(const union bpf_attr *attr);
25 const union bpf_attr *attr,
26 union bpf_attr __user *uattr);
Dbpf_local_storage.h120 int bpf_local_storage_map_alloc_check(union bpf_attr *attr);
122 struct bpf_local_storage_map *bpf_local_storage_map_alloc(union bpf_attr *attr);
/Linux-v5.10/tools/lib/bpf/
Dbpf.c62 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf()
68 static inline int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size) in sys_bpf_prog_load()
81 union bpf_attr attr; in bpf_create_map_xattr()
161 union bpf_attr attr; in bpf_create_map_in_map_node()
221 union bpf_attr attr; in bpf_load_program_xattr()
353 union bpf_attr attr; in bpf_verify_program()
373 union bpf_attr attr; in bpf_map_update_elem()
386 union bpf_attr attr; in bpf_map_lookup_elem()
398 union bpf_attr attr; in bpf_map_lookup_elem_flags()
411 union bpf_attr attr; in bpf_map_lookup_and_delete_elem()
[all …]
/Linux-v5.10/net/bpf/
Dtest_run.c82 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish()
83 union bpf_attr __user *uattr, const void *data, in bpf_test_finish()
174 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init()
200 const union bpf_attr *kattr, in bpf_prog_test_run_tracing()
201 union bpf_attr __user *uattr) in bpf_prog_test_run_tracing()
260 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp()
261 union bpf_attr __user *uattr) in bpf_prog_test_run_raw_tp()
321 static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) in bpf_ctx_init()
352 static int bpf_ctx_finish(const union bpf_attr *kattr, in bpf_ctx_finish()
353 union bpf_attr __user *uattr, const void *data, in bpf_ctx_finish()
[all …]
/Linux-v5.10/kernel/bpf/
Dsyscall.c101 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) in find_and_alloc_map()
334 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) in bpf_map_init_from_attr()
710 offsetof(union bpf_attr, CMD##_LAST_FIELD) - \
795 static int map_create(union bpf_attr *attr) in map_create()
1002 static int map_lookup_elem(union bpf_attr *attr) in map_lookup_elem()
1069 static int map_update_elem(union bpf_attr *attr) in map_update_elem()
1134 static int map_delete_elem(union bpf_attr *attr) in map_delete_elem()
1187 static int map_get_next_key(union bpf_attr *attr) in map_get_next_key()
1252 const union bpf_attr *attr, in generic_map_delete_batch()
1253 union bpf_attr __user *uattr) in generic_map_delete_batch()
[all …]
Dnet_namespace.c245 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()
Dhashtab.c342 static int htab_map_alloc_check(union bpf_attr *attr) in htab_map_alloc_check()
411 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc()
1367 const union bpf_attr *attr, in __htab_map_lookup_and_delete_batch()
1368 union bpf_attr __user *uattr, in __htab_map_lookup_and_delete_batch()
1579 htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_percpu_map_lookup_batch()
1580 union bpf_attr __user *uattr) in htab_percpu_map_lookup_batch()
1588 const union bpf_attr *attr, in htab_percpu_map_lookup_and_delete_batch()
1589 union bpf_attr __user *uattr) in htab_percpu_map_lookup_and_delete_batch()
1596 htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, in htab_map_lookup_batch()
1597 union bpf_attr __user *uattr) in htab_map_lookup_batch()
[all …]
Dqueue_stack_maps.c46 static int queue_stack_map_alloc_check(union bpf_attr *attr) in queue_stack_map_alloc_check()
67 static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr) in queue_stack_map_alloc()
Dreuseport_array.c43 static int reuseport_array_alloc_check(union bpf_attr *attr) in reuseport_array_alloc_check()
151 static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr) in reuseport_array_alloc()
Dcgroup.c712 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, in __cgroup_bpf_query()
713 union bpf_attr __user *uattr) in __cgroup_bpf_query()
762 int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach()
791 int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in cgroup_bpf_prog_detach()
904 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in cgroup_bpf_link_attach()
948 int cgroup_bpf_prog_query(const union bpf_attr *attr, in cgroup_bpf_prog_query()
949 union bpf_attr __user *uattr) in cgroup_bpf_prog_query()
Darraymap.c51 int array_map_alloc_check(union bpf_attr *attr) in array_map_alloc_check()
81 static struct bpf_map *array_map_alloc(union bpf_attr *attr) in array_map_alloc()
684 static int fd_array_map_alloc_check(union bpf_attr *attr) in fd_array_map_alloc_check()
1016 static struct bpf_map *prog_array_map_alloc(union bpf_attr *attr) in prog_array_map_alloc()
1220 static struct bpf_map *array_of_map_alloc(union bpf_attr *attr) in array_of_map_alloc()
Dbpf_local_storage.c522 int bpf_local_storage_map_alloc_check(union bpf_attr *attr) in bpf_local_storage_map_alloc_check()
541 struct bpf_local_storage_map *bpf_local_storage_map_alloc(union bpf_attr *attr) in bpf_local_storage_map_alloc()
Dbpf_inode_storage.c215 static struct bpf_map *inode_storage_map_alloc(union bpf_attr *attr) in inode_storage_map_alloc()
Dbpf_struct_ops.c540 static int bpf_struct_ops_map_alloc_check(union bpf_attr *attr) in bpf_struct_ops_map_alloc_check()
548 static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr) in bpf_struct_ops_map_alloc()
Doffload.c80 int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr) in bpf_prog_offload_init()
362 struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr) in bpf_map_offload_map_alloc()
/Linux-v5.10/drivers/media/rc/
Dbpf-lirc.c244 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach()
263 int lirc_prog_detach(const union bpf_attr *attr) in lirc_prog_detach()
291 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in lirc_prog_query()
/Linux-v5.10/tools/build/feature/
Dtest-bpf.c24 union bpf_attr attr; in main()
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dobj_name.c25 union bpf_attr attr; in test_obj_name()
/Linux-v5.10/tools/testing/selftests/bpf/
Dtest_verifier_log.c50 union bpf_attr attr; in load()
/Linux-v5.10/tools/testing/selftests/net/
Dreuseport_bpf_numa.c85 union bpf_attr attr; in attach_bpf()
Dreuseport_bpf.c110 union bpf_attr attr; in attach_ebpf()
349 union bpf_attr eprog; in test_filter_no_reuseport()

123