Home
last modified time | relevance | path

Searched defs:map (Results 1 – 25 of 43) sorted by relevance

12

/kernel/bpf/
Darraymap.c166 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
177 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
191 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
208 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
241 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
253 static int percpu_array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in percpu_array_map_gen_lookup()
284 static void *percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu) in percpu_array_map_lookup_percpu_elem()
298 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
326 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
345 static long array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
[all …]
Dlocal_storage.c22 struct bpf_map map; member
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()
39 static int bpf_cgroup_storage_key_cmp(const struct bpf_cgroup_storage_map *map, in bpf_cgroup_storage_key_cmp()
67 cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, in cgroup_storage_lookup()
102 static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, in cgroup_storage_insert()
134 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_lookup_elem() local
144 static long cgroup_storage_update_elem(struct bpf_map *map, void *key, in cgroup_storage_update_elem()
185 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_copy() local
214 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_update() local
[all …]
Dqueue_stack_maps.c17 struct bpf_map map; member
25 static struct bpf_queue_stack *bpf_queue_stack(struct bpf_map *map) in bpf_queue_stack()
87 static void queue_stack_map_free(struct bpf_map *map) in queue_stack_map_free()
94 static long __queue_map_get(struct bpf_map *map, void *value, bool delete) in __queue_map_get()
128 static long __stack_map_get(struct bpf_map *map, void *value, bool delete) in __stack_map_get()
165 static long queue_map_peek_elem(struct bpf_map *map, void *value) in queue_map_peek_elem()
171 static long stack_map_peek_elem(struct bpf_map *map, void *value) in stack_map_peek_elem()
177 static long queue_map_pop_elem(struct bpf_map *map, void *value) in queue_map_pop_elem()
183 static long stack_map_pop_elem(struct bpf_map *map, void *value) in stack_map_pop_elem()
189 static long queue_stack_map_push_elem(struct bpf_map *map, void *value, in queue_stack_map_push_elem()
[all …]
Darena.c44 struct bpf_map map; member
63 static long arena_map_peek_elem(struct bpf_map *map, void *value) in arena_map_peek_elem()
68 static long arena_map_push_elem(struct bpf_map *map, void *value, u64 flags) in arena_map_push_elem()
73 static long arena_map_pop_elem(struct bpf_map *map, void *value) in arena_map_pop_elem()
78 static long arena_map_delete_elem(struct bpf_map *map, void *value) in arena_map_delete_elem()
83 static int arena_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in arena_map_get_next_key()
164 static void arena_map_free(struct bpf_map *map) in arena_map_free()
190 static void *arena_map_lookup_elem(struct bpf_map *map, void *key) in arena_map_lookup_elem()
195 static long arena_map_update_elem(struct bpf_map *map, void *key, in arena_map_update_elem()
201 static int arena_map_check_btf(const struct bpf_map *map, const struct btf *btf, in arena_map_check_btf()
[all …]
Dbloom_filter.c16 struct bpf_map map; member
36 static long bloom_map_peek_elem(struct bpf_map *map, void *value) in bloom_map_peek_elem()
51 static long bloom_map_push_elem(struct bpf_map *map, void *value, u64 flags) in bloom_map_push_elem()
68 static long bloom_map_pop_elem(struct bpf_map *map, void *value) in bloom_map_pop_elem()
73 static long bloom_map_delete_elem(struct bpf_map *map, void *value) in bloom_map_delete_elem()
78 static int bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in bloom_map_get_next_key()
162 static void bloom_map_free(struct bpf_map *map) in bloom_map_free()
170 static void *bloom_map_lookup_elem(struct bpf_map *map, void *key) in bloom_map_lookup_elem()
176 static long bloom_map_update_elem(struct bpf_map *map, void *key, in bloom_map_update_elem()
183 static int bloom_map_check_btf(const struct bpf_map *map, in bloom_map_check_btf()
[all …]
Dhashtab.c88 struct bpf_map map; member
209 static void *fd_htab_map_get_ptr(const struct bpf_map *map, struct htab_elem *l) in fd_htab_map_get_ptr()
681 static void *__htab_map_lookup_elem(struct bpf_map *map, void *key) in __htab_map_lookup_elem()
702 static void *htab_map_lookup_elem(struct bpf_map *map, void *key) in htab_map_lookup_elem()
723 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup()
738 static __always_inline void *__htab_lru_map_lookup_elem(struct bpf_map *map, in __htab_lru_map_lookup_elem()
752 static void *htab_lru_map_lookup_elem(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem()
757 static void *htab_lru_map_lookup_elem_sys(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem_sys()
762 static int htab_lru_map_gen_lookup(struct bpf_map *map, in htab_lru_map_gen_lookup()
838 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in htab_map_get_next_key()
[all …]
Dbpf_inode_storage.c37 struct bpf_map *map, in inode_storage_lookup()
78 static void *bpf_fd_inode_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_fd_inode_storage_lookup_elem()
90 static long bpf_fd_inode_storage_update_elem(struct bpf_map *map, void *key, in bpf_fd_inode_storage_update_elem()
107 static int inode_storage_delete(struct inode *inode, struct bpf_map *map) in inode_storage_delete()
120 static long bpf_fd_inode_storage_delete_elem(struct bpf_map *map, void *key) in bpf_fd_inode_storage_delete_elem()
130 BPF_CALL_5(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode, in BPF_CALL_5() argument
166 struct bpf_map *, map, struct inode *, inode) in BPF_CALL_2() argument
178 static int notsupp_get_next_key(struct bpf_map *map, void *key, in notsupp_get_next_key()
189 static void inode_storage_map_free(struct bpf_map *map) in inode_storage_map_free()
Dbpf_task_storage.c57 task_storage_lookup(struct task_struct *task, struct bpf_map *map, in task_storage_lookup()
90 static void *bpf_pid_task_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_lookup_elem()
123 static long bpf_pid_task_storage_update_elem(struct bpf_map *map, void *key, in bpf_pid_task_storage_update_elem()
159 static int task_storage_delete(struct task_struct *task, struct bpf_map *map, in task_storage_delete()
176 static long bpf_pid_task_storage_delete_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_delete_elem()
207 static void *__bpf_task_storage_get(struct bpf_map *map, in __bpf_task_storage_get()
230 BPF_CALL_5(bpf_task_storage_get_recur, struct bpf_map *, map, struct task_struct *, in BPF_CALL_5() argument
249 BPF_CALL_5(bpf_task_storage_get, struct bpf_map *, map, struct task_struct *, in BPF_CALL_5() argument
265 BPF_CALL_2(bpf_task_storage_delete_recur, struct bpf_map *, map, struct task_struct *, in BPF_CALL_2() argument
286 BPF_CALL_2(bpf_task_storage_delete, struct bpf_map *, map, struct task_struct *, in BPF_CALL_2() argument
[all …]
Dreuseport_array.c12 struct bpf_map map; member
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 long 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()
165 int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key, in bpf_fd_reuseport_array_lookup_elem()
232 int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key, in bpf_fd_reuseport_array_update_elem()
316 static int reuseport_array_get_next_key(struct bpf_map *map, void *key, in reuseport_array_get_next_key()
335 static u64 reuseport_array_mem_usage(const struct bpf_map *map) in reuseport_array_mem_usage()
Dbpf_cgrp_storage.c64 cgroup_storage_lookup(struct cgroup *cgroup, struct bpf_map *map, bool cacheit_lockit) in cgroup_storage_lookup()
78 static void *bpf_cgrp_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_cgrp_storage_lookup_elem()
96 static long bpf_cgrp_storage_update_elem(struct bpf_map *map, void *key, in bpf_cgrp_storage_update_elem()
116 static int cgroup_storage_delete(struct cgroup *cgroup, struct bpf_map *map) in cgroup_storage_delete()
128 static long bpf_cgrp_storage_delete_elem(struct bpf_map *map, void *key) in bpf_cgrp_storage_delete_elem()
145 static int notsupp_get_next_key(struct bpf_map *map, void *key, void *next_key) in notsupp_get_next_key()
155 static void cgroup_storage_map_free(struct bpf_map *map) in cgroup_storage_map_free()
161 BPF_CALL_5(bpf_cgrp_storage_get, struct bpf_map *, map, struct cgroup *, cgroup, in BPF_CALL_5() argument
192 BPF_CALL_2(bpf_cgrp_storage_delete, struct bpf_map *, map, struct cgroup *, cgroup) in BPF_CALL_2() argument
Dsyscall.c45 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ argument
48 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) argument
49 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) argument
50 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_PROG_ARRAY(map) || \ argument
117 static void bpf_map_write_active_inc(struct bpf_map *map) in bpf_map_write_active_inc()
122 static void bpf_map_write_active_dec(struct bpf_map *map) in bpf_map_write_active_dec()
127 bool bpf_map_write_active(const struct bpf_map *map) in bpf_map_write_active()
132 static u32 bpf_map_value_size(const struct bpf_map *map) in bpf_map_value_size()
145 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
160 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, in bpf_map_update_value()
[all …]
Ddevmap.c75 struct bpf_map map; member
184 static void dev_map_free(struct bpf_map *map) in dev_map_free()
254 static int dev_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in dev_map_get_next_key()
275 static void *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_hash_lookup_elem()
289 static int dev_map_hash_get_next_key(struct bpf_map *map, void *key, in dev_map_hash_get_next_key()
439 static void *__dev_map_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_lookup_elem()
607 struct bpf_map *map, bool exclude_ingress) in dev_map_enqueue_multi()
723 struct bpf_prog *xdp_prog, struct bpf_map *map, in dev_map_redirect_multi()
795 static void *dev_map_lookup_elem(struct bpf_map *map, void *key) in dev_map_lookup_elem()
802 static void *dev_map_hash_lookup_elem(struct bpf_map *map, void *key) in dev_map_hash_lookup_elem()
[all …]
Dbpf_struct_ops.c25 struct bpf_map map; member
61 struct bpf_map __rcu *map; member
448 static int bpf_struct_ops_map_get_next_key(struct bpf_map *map, void *key, in bpf_struct_ops_map_get_next_key()
458 int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, void *key, in bpf_struct_ops_map_sys_lookup_elem()
495 static void *bpf_struct_ops_map_lookup_elem(struct bpf_map *map, void *key) in bpf_struct_ops_map_lookup_elem()
652 static long bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, in bpf_struct_ops_map_update_elem()
883 static long bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key) in bpf_struct_ops_map_delete_elem()
911 static void bpf_struct_ops_map_seq_show_elem(struct bpf_map *map, void *key, in bpf_struct_ops_map_seq_show_elem()
933 static void __bpf_struct_ops_map_free(struct bpf_map *map) in __bpf_struct_ops_map_free()
948 static void bpf_struct_ops_map_free(struct bpf_map *map) in bpf_struct_ops_map_free()
[all …]
Dringbuf.c79 struct bpf_map map; member
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()
244 static long ringbuf_map_update_elem(struct bpf_map *map, void *key, void *value, in ringbuf_map_update_elem()
250 static long 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()
261 static int ringbuf_map_mmap_kern(struct bpf_map *map, struct vm_area_struct *vma) in ringbuf_map_mmap_kern()
277 static int ringbuf_map_mmap_user(struct bpf_map *map, struct vm_area_struct *vma) in ringbuf_map_mmap_user()
309 static __poll_t ringbuf_map_poll_kern(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_kern()
322 static __poll_t ringbuf_map_poll_user(struct bpf_map *map, struct file *filp, in ringbuf_map_poll_user()
[all …]
Dcpumap.c77 struct bpf_map map; member
373 struct bpf_map *map, int fd) in __cpu_map_load_bpf_program()
394 __cpu_map_entry_alloc(struct bpf_map *map, struct bpf_cpumap_val *value, in __cpu_map_entry_alloc()
518 static long cpu_map_delete_elem(struct bpf_map *map, void *key) in cpu_map_delete_elem()
531 static long cpu_map_update_elem(struct bpf_map *map, void *key, void *value, in cpu_map_update_elem()
569 static void cpu_map_free(struct bpf_map *map) in cpu_map_free()
605 static void *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) in __cpu_map_lookup_elem()
618 static void *cpu_map_lookup_elem(struct bpf_map *map, void *key) in cpu_map_lookup_elem()
626 static int cpu_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in cpu_map_get_next_key()
643 static long cpu_map_redirect(struct bpf_map *map, u64 index, u64 flags) in cpu_map_redirect()
[all …]
Dstackmap.c27 struct bpf_map map; member
34 static inline bool stack_map_use_build_id(struct bpf_map *map) in stack_map_use_build_id()
39 static inline int stack_map_data_size(struct bpf_map *map) in stack_map_data_size()
227 static long __bpf_get_stackid(struct bpf_map *map, in __bpf_get_stackid()
300 BPF_CALL_3(bpf_get_stackid, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_3() argument
349 struct bpf_map *, map, u64, flags) in BPF_CALL_3() argument
643 static void *stack_map_lookup_elem(struct bpf_map *map, void *key) in stack_map_lookup_elem()
649 int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
672 static int stack_map_get_next_key(struct bpf_map *map, void *key, in stack_map_get_next_key()
701 static long stack_map_update_elem(struct bpf_map *map, void *key, void *value, in stack_map_update_elem()
[all …]
Dlpm_trie.c33 struct bpf_map map; member
236 static void *trie_lookup_elem(struct bpf_map *map, void *_key) in trie_lookup_elem()
324 static long trie_update_elem(struct bpf_map *map, in trie_update_elem()
460 static long trie_delete_elem(struct bpf_map *map, void *_key) in trie_delete_elem()
602 static void trie_free(struct bpf_map *map) in trie_free()
641 static int trie_get_next_key(struct bpf_map *map, void *_key, void *_next_key) in trie_get_next_key()
739 static int trie_check_btf(const struct bpf_map *map, in trie_check_btf()
749 static u64 trie_mem_usage(const struct bpf_map *map) in trie_mem_usage()
Dmap_iter.c16 struct bpf_map *map; in bpf_map_seq_start() local
42 DEFINE_BPF_ITER_FUNC(bpf_map, struct bpf_iter_meta *meta, struct bpf_map *map) in DEFINE_BPF_ITER_FUNC()
105 struct bpf_map *map; in bpf_iter_attach_map() local
198 __bpf_kfunc s64 bpf_map_sum_elem_count(const struct bpf_map *map) in bpf_map_sum_elem_count()
Doffload.c562 void bpf_map_offload_map_free(struct bpf_map *map) in bpf_map_offload_map_free()
576 u64 bpf_map_offload_map_mem_usage(const struct bpf_map *map) in bpf_map_offload_map_mem_usage()
582 int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value) in bpf_map_offload_lookup_elem()
595 int bpf_map_offload_update_elem(struct bpf_map *map, in bpf_map_offload_update_elem()
613 int bpf_map_offload_delete_elem(struct bpf_map *map, void *key) in bpf_map_offload_delete_elem()
626 int bpf_map_offload_get_next_key(struct bpf_map *map, void *key, void *next_key) in bpf_map_offload_get_next_key()
669 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map) in bpf_map_offload_info_fill()
743 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map) in bpf_offload_prog_map_match()
Dbpf_local_storage.c29 struct bpf_map *map = &smap->map; in mem_charge() local
40 struct bpf_map *map = &smap->map; in mem_uncharge() local
49 struct bpf_map *map = &smap->map; in owner_storage() local
687 int bpf_local_storage_map_check_btf(const struct bpf_map *map, in bpf_local_storage_map_check_btf()
745 u64 bpf_local_storage_map_mem_usage(const struct bpf_map *map) in bpf_local_storage_map_mem_usage()
826 void bpf_local_storage_map_free(struct bpf_map *map, in bpf_local_storage_map_free()
Dmap_in_map.c94 void *bpf_map_fd_get_ptr(struct bpf_map *map, in bpf_map_fd_get_ptr()
114 void bpf_map_fd_put_ptr(struct bpf_map *map, void *ptr, bool need_defer) in bpf_map_fd_put_ptr()
Dhelpers.c38 BPF_CALL_2(bpf_map_lookup_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2() argument
54 BPF_CALL_4(bpf_map_update_elem, struct bpf_map *, map, void *, key, in BPF_CALL_4() argument
73 BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2() argument
89 BPF_CALL_3(bpf_map_push_elem, struct bpf_map *, map, void *, value, u64, flags) in BPF_CALL_3() argument
104 BPF_CALL_2(bpf_map_pop_elem, struct bpf_map *, map, void *, value) in BPF_CALL_2() argument
117 BPF_CALL_2(bpf_map_peek_elem, struct bpf_map *, map, void *, value) in BPF_CALL_2() argument
130 BPF_CALL_3(bpf_map_lookup_percpu_elem, struct bpf_map *, map, void *, key, u32, cpu) in BPF_CALL_3() argument
376 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, in copy_map_value_locked()
637 BPF_CALL_5(bpf_event_output_data, void *, ctx, struct bpf_map *, map, in BPF_CALL_5() argument
1090 struct bpf_map *map; member
[all …]
/kernel/trace/
Dtracing_map.c202 static int tracing_map_add_field(struct tracing_map *map, in tracing_map_add_field()
227 int tracing_map_add_sum_field(struct tracing_map *map) in tracing_map_add_sum_field()
244 int tracing_map_add_var(struct tracing_map *map) in tracing_map_add_var()
270 int tracing_map_add_key_field(struct tracing_map *map, in tracing_map_add_key_field()
403 static struct tracing_map_elt *tracing_map_elt_alloc(struct tracing_map *map) in tracing_map_elt_alloc()
452 static struct tracing_map_elt *get_free_elt(struct tracing_map *map) in get_free_elt()
467 static void tracing_map_free_elts(struct tracing_map *map) in tracing_map_free_elts()
483 static int tracing_map_alloc_elts(struct tracing_map *map) in tracing_map_alloc_elts()
516 __tracing_map_insert(struct tracing_map *map, void *key, bool lookup_only) in __tracing_map_insert()
639 struct tracing_map_elt *tracing_map_insert(struct tracing_map *map, void *key) in tracing_map_insert()
[all …]
/kernel/dma/
Dmap_benchmark.c38 struct map_benchmark_data *map = data; in map_benchmark_thread() local
115 static int do_map_benchmark(struct map_benchmark_data *map) in do_map_benchmark()
202 struct map_benchmark_data *map = file->private_data; in map_benchmark_ioctl() local
296 struct map_benchmark_data *map = (struct map_benchmark_data *)data; in map_benchmark_remove_debugfs() local
304 struct map_benchmark_data *map; in __map_benchmark_probe() local
/kernel/
Duser_namespace.c279 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_max()
297 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_base()
315 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down()
335 u32 map_id_down(struct uid_gid_map *map, u32 id) in map_id_down()
346 map_id_up_base(unsigned extents, struct uid_gid_map *map, u32 id) in map_id_up_base()
366 map_id_up_max(unsigned extents, struct uid_gid_map *map, u32 id) in map_id_up_max()
378 u32 map_id_up(struct uid_gid_map *map, u32 id) in map_id_up()
666 struct uid_gid_map *map) in m_start()
778 static int insert_extent(struct uid_gid_map *map, struct uid_gid_extent *extent) in insert_extent()
846 static int sort_idmaps(struct uid_gid_map *map) in sort_idmaps()
[all …]

12