/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | map_ptr_kern.c | 30 struct bpf_map { struct 109 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() 145 struct bpf_map *map = (struct bpf_map *)&m_array; in check_array() 177 struct bpf_map *map = (struct bpf_map *)&m_prog_array; in check_prog_array() 285 struct bpf_map *map = (struct bpf_map *)&m_lru_hash; in check_lru_hash() 417 struct bpf_map *map = (struct bpf_map *)&m_devmap; in check_devmap() 438 struct bpf_map *map = (struct bpf_map *)&m_sockmap; in check_sockmap() 459 struct bpf_map *map = (struct bpf_map *)&m_cpumap; in check_cpumap() 480 struct bpf_map *map = (struct bpf_map *)&m_xskmap; in check_xskmap() 583 struct bpf_map *map = (struct bpf_map *)&m_queue; in check_queue() [all …]
|
A D | bloom_filter_map.c | 10 struct bpf_map; 35 struct bpf_map *map; 41 check_elem(struct bpf_map *map, __u32 *key, __u32 *val, in check_elem() 58 struct bpf_map *inner_map; in inner_map() 79 data.map = (struct bpf_map *)&map_bloom; in check_bloom()
|
A D | bloom_filter_bench.c | 12 struct bpf_map; 43 struct bpf_map *map; 71 bloom_callback(struct bpf_map *map, __u32 *key, void *val, in bloom_callback() 96 data.map = (struct bpf_map *)&bloom_map; in bloom_lookup() 109 data.map = (struct bpf_map *)&bloom_map; in bloom_update()
|
A D | jeq_infer_not_null_fail.c | 20 struct bpf_map *map = (struct bpf_map *)&m_hash; in jeq_infer_not_null_ptr_to_btfid() 21 struct bpf_map *inner_map = map->inner_map_meta; in jeq_infer_not_null_ptr_to_btfid()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | libbpf.h | 695 struct bpf_map; 780 LIBBPF_API struct bpf_map * 786 LIBBPF_API struct bpf_map * 795 LIBBPF_API struct bpf_map * 826 LIBBPF_API int bpf_map__fd(const struct bpf_map *map); 827 LIBBPF_API int bpf_map__reuse_fd(struct bpf_map *map, int fd); 843 LIBBPF_API __u32 bpf_map__key_size(const struct bpf_map *map); 852 LIBBPF_API __u32 bpf_map__ifindex(const struct bpf_map *map); 924 LIBBPF_API struct bpf_map *bpf_map__inner_map(struct bpf_map *map); 1412 struct bpf_map **map; [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | bpf.h | 38 struct bpf_map; 227 struct bpf_map { struct 232 struct bpf_map *inner_map_meta; argument 480 struct bpf_map map; 509 const struct bpf_map *meta1); 1259 struct bpf_map *map; 1325 struct bpf_map **used_maps; 1409 struct bpf_map *map; 1566 struct bpf_map map; 1897 struct bpf_map * __must_check bpf_map_inc_not_zero(struct bpf_map *map); [all …]
|
A D | bpf_local_storage.h | 47 struct bpf_map map; 122 struct bpf_map * 133 void bpf_local_storage_map_free(struct bpf_map *map, 137 int bpf_local_storage_map_check_btf(const struct bpf_map *map,
|
/linux-6.3-rc2/kernel/bpf/ |
A D | queue_stack_maps.c | 18 struct bpf_map map; 26 static struct bpf_queue_stack *bpf_queue_stack(struct bpf_map *map) in bpf_queue_stack() 68 static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr) in queue_stack_map_alloc() 91 static void queue_stack_map_free(struct bpf_map *map) in queue_stack_map_free() 159 static int queue_map_peek_elem(struct bpf_map *map, void *value) in queue_map_peek_elem() 165 static int stack_map_peek_elem(struct bpf_map *map, void *value) in stack_map_peek_elem() 171 static int queue_map_pop_elem(struct bpf_map *map, void *value) in queue_map_pop_elem() 177 static int stack_map_pop_elem(struct bpf_map *map, void *value) in stack_map_pop_elem() 183 static int queue_stack_map_push_elem(struct bpf_map *map, void *value, in queue_stack_map_push_elem() 230 static int queue_stack_map_update_elem(struct bpf_map *map, void *key, in queue_stack_map_update_elem() [all …]
|
A D | bloom_filter.c | 16 struct bpf_map map; 44 static int bloom_map_peek_elem(struct bpf_map *map, void *value) in bloom_map_peek_elem() 59 static int bloom_map_push_elem(struct bpf_map *map, void *value, u64 flags) in bloom_map_push_elem() 76 static int bloom_map_pop_elem(struct bpf_map *map, void *value) in bloom_map_pop_elem() 81 static int bloom_map_delete_elem(struct bpf_map *map, void *value) in bloom_map_delete_elem() 86 static int bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in bloom_map_get_next_key() 91 static struct bpf_map *bloom_map_alloc(union bpf_attr *attr) in bloom_map_alloc() 166 static void bloom_map_free(struct bpf_map *map) in bloom_map_free() 174 static void *bloom_map_lookup_elem(struct bpf_map *map, void *key) in bloom_map_lookup_elem() 180 static int bloom_map_update_elem(struct bpf_map *map, void *key, in bloom_map_update_elem() [all …]
|
A D | arraymap.c | 413 static void array_map_free(struct bpf_map *map) in array_map_free() 537 const struct bpf_map *meta1) in array_map_meta_equal() 546 struct bpf_map *map; 554 struct bpf_map *map = info->map; in bpf_array_map_seq_start() 573 struct bpf_map *map = info->map; in bpf_array_map_seq_next() 593 struct bpf_map *map = info->map; in __bpf_array_map_seq_show() 644 struct bpf_map *map = aux->map; in bpf_iter_init_array_map() 780 static void fd_array_map_free(struct bpf_map *map) in fd_array_map_free() 1103 struct bpf_map *map; in prog_array_map_alloc() 1300 struct bpf_map *map, *inner_map_meta; in array_of_map_alloc() [all …]
|
A D | bpf_task_storage.c | 57 task_storage_lookup(struct task_struct *task, struct bpf_map *map, in task_storage_lookup() 97 static void *bpf_pid_task_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_lookup_elem() 130 static int bpf_pid_task_storage_update_elem(struct bpf_map *map, void *key, in bpf_pid_task_storage_update_elem() 166 static int task_storage_delete(struct task_struct *task, struct bpf_map *map, in task_storage_delete() 183 static int bpf_pid_task_storage_delete_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_delete_elem() 214 static void *__bpf_task_storage_get(struct bpf_map *map, in __bpf_task_storage_get() 256 BPF_CALL_5(bpf_task_storage_get, struct bpf_map *, map, struct task_struct *, in BPF_CALL_5() argument 293 BPF_CALL_2(bpf_task_storage_delete, struct bpf_map *, map, struct task_struct *, in BPF_CALL_2() argument 312 static int notsupp_get_next_key(struct bpf_map *map, void *key, void *next_key) in notsupp_get_next_key() 317 static struct bpf_map *task_storage_map_alloc(union bpf_attr *attr) in task_storage_map_alloc() [all …]
|
A D | bpf_cgrp_storage.c | 71 cgroup_storage_lookup(struct cgroup *cgroup, struct bpf_map *map, bool cacheit_lockit) in cgroup_storage_lookup() 85 static void *bpf_cgrp_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_cgrp_storage_lookup_elem() 103 static int bpf_cgrp_storage_update_elem(struct bpf_map *map, void *key, in bpf_cgrp_storage_update_elem() 123 static int cgroup_storage_delete(struct cgroup *cgroup, struct bpf_map *map) in cgroup_storage_delete() 135 static int bpf_cgrp_storage_delete_elem(struct bpf_map *map, void *key) in bpf_cgrp_storage_delete_elem() 152 static int notsupp_get_next_key(struct bpf_map *map, void *key, void *next_key) in notsupp_get_next_key() 157 static struct bpf_map *cgroup_storage_map_alloc(union bpf_attr *attr) in cgroup_storage_map_alloc() 162 static void cgroup_storage_map_free(struct bpf_map *map) in cgroup_storage_map_free() 168 BPF_CALL_5(bpf_cgrp_storage_get, struct bpf_map *, map, struct cgroup *, cgroup, in BPF_CALL_5() argument 198 BPF_CALL_2(bpf_cgrp_storage_delete, struct bpf_map *, map, struct cgroup *, cgroup) in BPF_CALL_2() argument
|
A D | bpf_inode_storage.c | 37 struct bpf_map *map, in inode_storage_lookup() 84 static void *bpf_fd_inode_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_fd_inode_storage_lookup_elem() 100 static int bpf_fd_inode_storage_update_elem(struct bpf_map *map, void *key, in bpf_fd_inode_storage_update_elem() 123 static int inode_storage_delete(struct inode *inode, struct bpf_map *map) in inode_storage_delete() 136 static int bpf_fd_inode_storage_delete_elem(struct bpf_map *map, void *key) in bpf_fd_inode_storage_delete_elem() 152 BPF_CALL_5(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode, in BPF_CALL_5() argument 188 struct bpf_map *, map, struct inode *, inode) in BPF_CALL_2() argument 200 static int notsupp_get_next_key(struct bpf_map *map, void *key, in notsupp_get_next_key() 206 static struct bpf_map *inode_storage_map_alloc(union bpf_attr *attr) in inode_storage_map_alloc() 211 static void inode_storage_map_free(struct bpf_map *map) in inode_storage_map_free()
|
A D | map_in_map.c | 10 struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd) in bpf_map_meta_alloc() 12 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_meta_alloc() 100 void bpf_map_meta_free(struct bpf_map *map_meta) in bpf_map_meta_free() 108 bool bpf_map_meta_equal(const struct bpf_map *meta0, in bpf_map_meta_equal() 109 const struct bpf_map *meta1) in bpf_map_meta_equal() 119 void *bpf_map_fd_get_ptr(struct bpf_map *map, in bpf_map_fd_get_ptr() 123 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_fd_get_ptr() 151 return ((struct bpf_map *)ptr)->id; in bpf_map_fd_sys_lookup_elem()
|
A D | map_iter.c | 16 struct bpf_map *map; in bpf_map_seq_start() 33 bpf_map_put((struct bpf_map *)v); in bpf_map_seq_next() 39 __bpf_md_ptr(struct bpf_map *, map); 42 DEFINE_BPF_ITER_FUNC(bpf_map, struct bpf_iter_meta *meta, struct bpf_map *map) in DEFINE_BPF_ITER_FUNC() argument 71 bpf_map_put((struct bpf_map *)v); in bpf_map_seq_stop() 82 BTF_ID(struct, bpf_map) 106 struct bpf_map *map; in bpf_iter_attach_map() 166 struct bpf_map *map, void *key, void *value)
|
A D | map_in_map.h | 10 struct bpf_map; 12 struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd); 13 void bpf_map_meta_free(struct bpf_map *map_meta); 14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
|
A D | local_storage.c | 22 struct bpf_map map; 29 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage() 34 static bool attach_type_isolated(const struct bpf_map *map) in attach_type_isolated() 144 static int cgroup_storage_update_elem(struct bpf_map *map, void *key, in cgroup_storage_update_elem() 182 int bpf_percpu_cgroup_storage_copy(struct bpf_map *_map, void *key, in bpf_percpu_cgroup_storage_copy() 211 int bpf_percpu_cgroup_storage_update(struct bpf_map *_map, void *key, in bpf_percpu_cgroup_storage_update() 285 static struct bpf_map *cgroup_storage_map_alloc(union bpf_attr *attr) in cgroup_storage_map_alloc() 330 static void cgroup_storage_map_free(struct bpf_map *_map) in cgroup_storage_map_free() 356 static int cgroup_storage_check_btf(const struct bpf_map *map, in cgroup_storage_check_btf() 497 struct bpf_map *map; in bpf_cgroup_storage_alloc() [all …]
|
A D | hashtab.c | 87 struct bpf_map map; 869 struct bpf_map *map = &htab->map; in htab_put_fd_value() 1477 static void htab_map_free_timers(struct bpf_map *map) in htab_map_free_timers() 1491 static void htab_map_free(struct bpf_map *map) in htab_map_free() 1782 struct bpf_map **inner_map = value; in __htab_map_lookup_and_delete_batch() 1938 struct bpf_map *map; 2029 struct bpf_map *map = info->map; in __bpf_hash_map_seq_show() 2080 struct bpf_map *map = aux->map; in bpf_iter_init_hash_map() 2397 static void fd_htab_map_free(struct bpf_map *map) in fd_htab_map_free() 2459 struct bpf_map *map, *inner_map_meta; in htab_of_map_alloc() [all …]
|
A D | reuseport_array.c | 12 struct bpf_map map; 16 static struct reuseport_array *reuseport_array(struct bpf_map *map) in reuseport_array() 50 static void *reuseport_array_lookup_elem(struct bpf_map *map, void *key) in reuseport_array_lookup_elem() 62 static int reuseport_array_delete_elem(struct bpf_map *map, void *key) in reuseport_array_delete_elem() 94 static void reuseport_array_free(struct bpf_map *map) in reuseport_array_free() 149 static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr) in reuseport_array_alloc() 168 int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key, in bpf_fd_reuseport_array_lookup_elem() 235 int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key, in bpf_fd_reuseport_array_update_elem() 319 static int reuseport_array_get_next_key(struct bpf_map *map, void *key, in reuseport_array_get_next_key()
|
A D | ringbuf.c | 85 struct bpf_map map; 183 static struct bpf_map *ringbuf_map_alloc(union bpf_attr *attr) in ringbuf_map_alloc() 230 static void ringbuf_map_free(struct bpf_map *map) in ringbuf_map_free() 239 static void *ringbuf_map_lookup_elem(struct bpf_map *map, void *key) in ringbuf_map_lookup_elem() 250 static int ringbuf_map_delete_elem(struct bpf_map *map, void *key) in ringbuf_map_delete_elem() 255 static int ringbuf_map_get_next_key(struct bpf_map *map, void *key, in ringbuf_map_get_next_key() 313 static __poll_t ringbuf_map_poll_kern(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_kern() 326 static __poll_t ringbuf_map_poll_user(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_user() 437 BPF_CALL_3(bpf_ringbuf_reserve, struct bpf_map *, map, u64, size, u64, flags) in BPF_CALL_3() argument 538 BPF_CALL_2(bpf_ringbuf_query, struct bpf_map *, map, u64, flags) in BPF_CALL_2() argument [all …]
|
A D | devmap.c | 76 struct bpf_map map; 158 static struct bpf_map *dev_map_alloc(union bpf_attr *attr) in dev_map_alloc() 183 static void dev_map_free(struct bpf_map *map) in dev_map_free() 267 static void *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_hash_lookup_elem() 281 static int dev_map_hash_get_next_key(struct bpf_map *map, void *key, in dev_map_hash_get_next_key() 429 static void *__dev_map_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_lookup_elem() 596 struct bpf_map *map, bool exclude_ingress) in dev_map_enqueue_multi() 712 struct bpf_prog *xdp_prog, struct bpf_map *map, in dev_map_redirect_multi() 787 static void *dev_map_lookup_elem(struct bpf_map *map, void *key) in dev_map_lookup_elem() 812 static int dev_map_delete_elem(struct bpf_map *map, void *key) in dev_map_delete_elem() [all …]
|
/linux-6.3-rc2/net/xdp/ |
A D | xskmap.c | 61 static struct bpf_map *xsk_map_alloc(union bpf_attr *attr) in xsk_map_alloc() 88 static void xsk_map_free(struct bpf_map *map) in xsk_map_free() 113 static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in xsk_map_gen_lookup() 133 static void *__xsk_map_lookup_elem(struct bpf_map *map, u32 key) in __xsk_map_lookup_elem() 143 static void *xsk_map_lookup_elem(struct bpf_map *map, void *key) in xsk_map_lookup_elem() 148 static void *xsk_map_lookup_elem_sys_only(struct bpf_map *map, void *key) in xsk_map_lookup_elem_sys_only() 153 static int xsk_map_update_elem(struct bpf_map *map, void *key, void *value, in xsk_map_update_elem() 214 static int xsk_map_delete_elem(struct bpf_map *map, void *key) in xsk_map_delete_elem() 234 static int xsk_map_redirect(struct bpf_map *map, u64 index, u64 flags) in xsk_map_redirect() 251 static bool xsk_map_meta_equal(const struct bpf_map *meta0, in xsk_map_meta_equal() [all …]
|
/linux-6.3-rc2/net/core/ |
A D | sock_map.c | 18 struct bpf_map map; 65 struct bpf_map *map; in sock_map_get_from_fd() 85 struct bpf_map *map; in sock_map_prog_detach() 152 struct bpf_map *map = link->map; in sock_map_del_link() 692 struct bpf_map *map; 699 __bpf_md_ptr(struct bpf_map *, map); 705 struct bpf_map *map, void *key, in DEFINE_BPF_ITER_FUNC() 837 struct bpf_map map; 1284 struct bpf_map *map; 1495 struct bpf_map *map; in sock_map_bpf_prog_query() [all …]
|
A D | bpf_sk_storage.c | 35 static int bpf_sk_storage_del(struct sock *sk, struct bpf_map *map) in bpf_sk_storage_del() 70 static void bpf_sk_storage_map_free(struct bpf_map *map) in bpf_sk_storage_map_free() 80 static int notsupp_get_next_key(struct bpf_map *map, void *key, in notsupp_get_next_key() 178 struct bpf_map *map; in bpf_sk_storage_clone() 439 struct bpf_map *maps[]; 477 const struct bpf_map *map) in diag_check_dup() 513 struct bpf_map *map; in bpf_sk_storage_diag_alloc() 704 struct bpf_map *map; 795 __bpf_md_ptr(struct bpf_map *, map); 801 struct bpf_map *map, struct sock *sk, in DEFINE_BPF_ITER_FUNC() [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | bpf_map.h | 6 struct bpf_map; 10 int bpf_map__fprintf(struct bpf_map *map, FILE *fp); 16 static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused) in bpf_map__fprintf()
|