Home
last modified time | relevance | path

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

12

/kernel/bpf/
Darraymap.c175 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
186 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr()
200 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta()
217 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
250 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
261 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
288 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
307 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
344 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
383 static int array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem()
[all …]
Dlocal_storage.c23 struct bpf_map map; member
30 static struct bpf_cgroup_storage_map *map_to_storage(struct bpf_map *map) in map_to_storage()
35 static bool attach_type_isolated(const struct bpf_map *map) in attach_type_isolated()
40 static int bpf_cgroup_storage_key_cmp(const struct bpf_cgroup_storage_map *map, in bpf_cgroup_storage_key_cmp()
68 cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, in cgroup_storage_lookup()
103 static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, in cgroup_storage_insert()
135 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in cgroup_storage_lookup_elem() local
145 static int cgroup_storage_update_elem(struct bpf_map *map, void *key, in cgroup_storage_update_elem()
187 struct bpf_cgroup_storage_map *map = map_to_storage(_map); in bpf_percpu_cgroup_storage_copy() local
216 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()
100 static void queue_stack_map_free(struct bpf_map *map) in queue_stack_map_free()
107 static int __queue_map_get(struct bpf_map *map, void *value, bool delete) in __queue_map_get()
141 static int __stack_map_get(struct bpf_map *map, void *value, bool delete) in __stack_map_get()
178 static int queue_map_peek_elem(struct bpf_map *map, void *value) in queue_map_peek_elem()
184 static int stack_map_peek_elem(struct bpf_map *map, void *value) in stack_map_peek_elem()
190 static int queue_map_pop_elem(struct bpf_map *map, void *value) in queue_map_pop_elem()
196 static int stack_map_pop_elem(struct bpf_map *map, void *value) in stack_map_pop_elem()
202 static int queue_stack_map_push_elem(struct bpf_map *map, void *value, in queue_stack_map_push_elem()
[all …]
Dhashtab.c90 struct bpf_map map; member
195 static void *fd_htab_map_get_ptr(const struct bpf_map *map, struct htab_elem *l) in fd_htab_map_get_ptr()
574 static void *__htab_map_lookup_elem(struct bpf_map *map, void *key) in __htab_map_lookup_elem()
594 static void *htab_map_lookup_elem(struct bpf_map *map, void *key) in htab_map_lookup_elem()
615 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup()
630 static __always_inline void *__htab_lru_map_lookup_elem(struct bpf_map *map, in __htab_lru_map_lookup_elem()
644 static void *htab_lru_map_lookup_elem(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem()
649 static void *htab_lru_map_lookup_elem_sys(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem_sys()
654 static int htab_lru_map_gen_lookup(struct bpf_map *map, in htab_lru_map_gen_lookup()
709 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.c36 struct bpf_map *map, in inode_storage_lookup()
103 static void *bpf_fd_inode_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_fd_inode_storage_lookup_elem()
119 static int bpf_fd_inode_storage_update_elem(struct bpf_map *map, void *key, in bpf_fd_inode_storage_update_elem()
142 static int inode_storage_delete(struct inode *inode, struct bpf_map *map) in inode_storage_delete()
155 static int bpf_fd_inode_storage_delete_elem(struct bpf_map *map, void *key) in bpf_fd_inode_storage_delete_elem()
170 BPF_CALL_4(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode, in BPF_CALL_4() argument
205 struct bpf_map *, map, struct inode *, inode) in BPF_CALL_2() argument
216 static int notsupp_get_next_key(struct bpf_map *map, void *key, in notsupp_get_next_key()
234 static void inode_storage_map_free(struct bpf_map *map) in inode_storage_map_free()
Dreuseport_array.c11 struct bpf_map map; member
15 static struct reuseport_array *reuseport_array(struct bpf_map *map) in reuseport_array()
52 static void *reuseport_array_lookup_elem(struct bpf_map *map, void *key) in reuseport_array_lookup_elem()
64 static int reuseport_array_delete_elem(struct bpf_map *map, void *key) in reuseport_array_delete_elem()
96 static void reuseport_array_free(struct bpf_map *map) in reuseport_array_free()
182 int bpf_fd_reuseport_array_lookup_elem(struct bpf_map *map, void *key, in bpf_fd_reuseport_array_lookup_elem()
249 int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key, in bpf_fd_reuseport_array_update_elem()
333 static int reuseport_array_get_next_key(struct bpf_map *map, void *key, in reuseport_array_get_next_key()
Dsyscall.c37 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ argument
40 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) argument
41 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) argument
42 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_PROG_ARRAY(map) || \ argument
108 struct bpf_map *map; in find_and_alloc_map() local
133 static void bpf_map_write_active_inc(struct bpf_map *map) in bpf_map_write_active_inc()
138 static void bpf_map_write_active_dec(struct bpf_map *map) in bpf_map_write_active_dec()
143 bool bpf_map_write_active(const struct bpf_map *map) in bpf_map_write_active()
148 static u32 bpf_map_value_size(struct bpf_map *map) in bpf_map_value_size()
161 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
[all …]
Dringbuf.c51 struct bpf_map map; member
214 static void ringbuf_map_free(struct bpf_map *map) in ringbuf_map_free()
223 static void *ringbuf_map_lookup_elem(struct bpf_map *map, void *key) in ringbuf_map_lookup_elem()
228 static int ringbuf_map_update_elem(struct bpf_map *map, void *key, void *value, in ringbuf_map_update_elem()
234 static int ringbuf_map_delete_elem(struct bpf_map *map, void *key) in ringbuf_map_delete_elem()
239 static int ringbuf_map_get_next_key(struct bpf_map *map, void *key, in ringbuf_map_get_next_key()
245 static int ringbuf_map_mmap(struct bpf_map *map, struct vm_area_struct *vma) in ringbuf_map_mmap()
272 static __poll_t ringbuf_map_poll(struct bpf_map *map, struct file *filp, in ringbuf_map_poll()
370 BPF_CALL_3(bpf_ringbuf_reserve, struct bpf_map *, map, u64, size, u64, flags) in BPF_CALL_3() argument
443 BPF_CALL_4(bpf_ringbuf_output, struct bpf_map *, map, void *, data, u64, size, in BPF_CALL_4() argument
[all …]
Ddevmap.c74 struct bpf_map map; member
195 static void dev_map_free(struct bpf_map *map) in dev_map_free()
258 static int dev_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in dev_map_get_next_key()
275 struct bpf_dtab_netdev *__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()
334 bool dev_map_can_have_prog(struct bpf_map *map) in dev_map_can_have_prog()
409 struct bpf_dtab_netdev *__dev_map_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_lookup_elem()
528 static void *dev_map_lookup_elem(struct bpf_map *map, void *key) in dev_map_lookup_elem()
535 static void *dev_map_hash_lookup_elem(struct bpf_map *map, void *key) in dev_map_hash_lookup_elem()
553 static int dev_map_delete_elem(struct bpf_map *map, void *key) in dev_map_delete_elem()
[all …]
Dbpf_struct_ops.c31 struct bpf_map map; member
232 static int bpf_struct_ops_map_get_next_key(struct bpf_map *map, void *key, in bpf_struct_ops_map_get_next_key()
242 int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, void *key, in bpf_struct_ops_map_sys_lookup_elem()
271 static void *bpf_struct_ops_map_lookup_elem(struct bpf_map *map, void *key) in bpf_struct_ops_map_lookup_elem()
315 static int bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key, in bpf_struct_ops_map_update_elem()
488 static int bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key) in bpf_struct_ops_map_delete_elem()
514 static void bpf_struct_ops_map_seq_show_elem(struct bpf_map *map, void *key, in bpf_struct_ops_map_seq_show_elem()
534 static void bpf_struct_ops_map_free(struct bpf_map *map) in bpf_struct_ops_map_free()
563 struct bpf_map *map; in bpf_struct_ops_map_alloc() local
Dstackmap.c28 struct bpf_map map; member
54 static inline bool stack_map_use_build_id(struct bpf_map *map) in stack_map_use_build_id()
59 static inline int stack_map_data_size(struct bpf_map *map) in stack_map_data_size()
397 static long __bpf_get_stackid(struct bpf_map *map, in __bpf_get_stackid()
467 BPF_CALL_3(bpf_get_stackid, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_3() argument
516 struct bpf_map *, map, u64, flags) in BPF_CALL_3() argument
758 static void *stack_map_lookup_elem(struct bpf_map *map, void *key) in stack_map_lookup_elem()
764 int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
787 static int stack_map_get_next_key(struct bpf_map *map, void *key, in stack_map_get_next_key()
816 static int stack_map_update_elem(struct bpf_map *map, void *key, void *value, in stack_map_update_elem()
[all …]
Dlpm_trie.c32 struct bpf_map map; member
227 static void *trie_lookup_elem(struct bpf_map *map, void *_key) in trie_lookup_elem()
303 static int trie_update_elem(struct bpf_map *map, in trie_update_elem()
434 static int trie_delete_elem(struct bpf_map *map, void *_key) in trie_delete_elem()
589 static void trie_free(struct bpf_map *map) in trie_free()
628 static int trie_get_next_key(struct bpf_map *map, void *_key, void *_next_key) in trie_get_next_key()
726 static int trie_check_btf(const struct bpf_map *map, in trie_check_btf()
Dcpumap.c75 struct bpf_map map; member
389 bool cpu_map_prog_allowed(struct bpf_map *map) in cpu_map_prog_allowed()
533 static int cpu_map_delete_elem(struct bpf_map *map, void *key) in cpu_map_delete_elem()
546 static int cpu_map_update_elem(struct bpf_map *map, void *key, void *value, in cpu_map_update_elem()
585 static void cpu_map_free(struct bpf_map *map) in cpu_map_free()
619 struct bpf_cpu_map_entry *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) in __cpu_map_lookup_elem()
631 static void *cpu_map_lookup_elem(struct bpf_map *map, void *key) in cpu_map_lookup_elem()
639 static int cpu_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in cpu_map_get_next_key()
Dhelpers.c30 BPF_CALL_2(bpf_map_lookup_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2() argument
45 BPF_CALL_4(bpf_map_update_elem, struct bpf_map *, map, void *, key, in BPF_CALL_4() argument
63 BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2() argument
78 BPF_CALL_3(bpf_map_push_elem, struct bpf_map *, map, void *, value, u64, flags) in BPF_CALL_3() argument
93 BPF_CALL_2(bpf_map_pop_elem, struct bpf_map *, map, void *, value) in BPF_CALL_2() argument
106 BPF_CALL_2(bpf_map_peek_elem, struct bpf_map *, map, void *, value) in BPF_CALL_2() argument
315 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, in copy_map_value_locked()
378 BPF_CALL_2(bpf_get_local_storage, struct bpf_map *, map, u64, flags) in BPF_CALL_2() argument
592 BPF_CALL_5(bpf_event_output_data, void *, ctx, struct bpf_map *, map, in BPF_CALL_5() argument
Doffload.c420 void bpf_map_offload_map_free(struct bpf_map *map) in bpf_map_offload_map_free()
434 int bpf_map_offload_lookup_elem(struct bpf_map *map, void *key, void *value) in bpf_map_offload_lookup_elem()
447 int bpf_map_offload_update_elem(struct bpf_map *map, in bpf_map_offload_update_elem()
465 int bpf_map_offload_delete_elem(struct bpf_map *map, void *key) in bpf_map_offload_delete_elem()
478 int bpf_map_offload_get_next_key(struct bpf_map *map, void *key, void *next_key) in bpf_map_offload_get_next_key()
521 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map) in bpf_map_offload_info_fill()
579 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map) in bpf_offload_prog_map_match()
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()
106 struct bpf_map *map; in bpf_iter_attach_map() local
Dbpf_local_storage.c26 struct bpf_map *map = &smap->map; in mem_charge() local
37 struct bpf_map *map = &smap->map; in mem_uncharge() local
46 struct bpf_map *map = &smap->map; in owner_storage() local
595 int bpf_local_storage_map_check_btf(const struct bpf_map *map, in bpf_local_storage_map_check_btf()
Dinode.c196 static struct map_iter *map_iter_alloc(struct bpf_map *map) in map_iter_alloc()
217 struct bpf_map *map = seq_file_to_map(m); in map_seq_next() local
253 struct bpf_map *map = seq_file_to_map(m); in map_seq_show() local
275 struct bpf_map *map = inode->i_private; in bpffs_map_open() local
355 struct bpf_map *map = arg; in bpf_mkmap() local
Dmap_in_map.c81 void *bpf_map_fd_get_ptr(struct bpf_map *map, in bpf_map_fd_get_ptr()
/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 …]
Dbpf_trace.c804 get_map_perf_counter(struct bpf_map *map, u64 flags, in get_map_perf_counter()
826 BPF_CALL_2(bpf_perf_event_read, struct bpf_map *, map, u64, flags) in BPF_CALL_2() argument
849 BPF_CALL_4(bpf_perf_event_read_value, struct bpf_map *, map, u64, flags, in BPF_CALL_4() argument
877 __bpf_perf_event_output(struct pt_regs *regs, struct bpf_map *map, in __bpf_perf_event_output()
916 BPF_CALL_5(bpf_perf_event_output, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_5() argument
970 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size, in bpf_event_output()
1024 BPF_CALL_2(bpf_current_task_under_cgroup, struct bpf_map *, map, u32, idx) in BPF_CALL_2() argument
1405 BPF_CALL_5(bpf_perf_event_output_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_5() argument
1429 BPF_CALL_3(bpf_get_stackid_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_3() argument
1621 struct bpf_map *, map, u64, flags, void *, data, u64, size) in BPF_CALL_5() argument
[all …]
Dtrace_mmiotrace.c327 struct mmiotrace_map *map) in __trace_mmiotrace_map()
348 void mmio_trace_mapping(struct mmiotrace_map *map) in mmio_trace_mapping()
Dtracing_map.h139 struct tracing_map *map; member
190 struct tracing_map_array *map; member
/kernel/
Duser_namespace.c255 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_max()
273 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_base()
291 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down()
311 static u32 map_id_down(struct uid_gid_map *map, u32 id) in map_id_down()
322 map_id_up_base(unsigned extents, struct uid_gid_map *map, u32 id) in map_id_up_base()
342 map_id_up_max(unsigned extents, struct uid_gid_map *map, u32 id) in map_id_up_max()
354 static u32 map_id_up(struct uid_gid_map *map, u32 id) in map_id_up()
642 struct uid_gid_map *map) in m_start()
754 static int insert_extent(struct uid_gid_map *map, struct uid_gid_extent *extent) in insert_extent()
822 static int sort_idmaps(struct uid_gid_map *map) in sort_idmaps()
[all …]
/kernel/bpf/preload/iterators/
Diterators.bpf.c24 struct bpf_map *map; member
82 struct bpf_map *map = ctx->map; in dump_bpf_map() local

12