Home
last modified time | relevance | path

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

/kernel/bpf/
Darraymap.c147 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
159 static u32 array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup()
189 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key) in percpu_array_map_lookup_elem()
200 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy()
227 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
246 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
274 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update()
313 static int array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem()
319 static void array_map_free(struct bpf_map *map) in array_map_free()
363 static void fd_array_map_free(struct bpf_map *map) in fd_array_map_free()
[all …]
Dsyscall.c27 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY || \ argument
31 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) argument
32 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_HASH(map)) argument
96 struct bpf_map *map; in find_and_alloc_map() local
147 static int bpf_map_charge_memlock(struct bpf_map *map) in bpf_map_charge_memlock()
165 static void bpf_map_uncharge_memlock(struct bpf_map *map) in bpf_map_uncharge_memlock()
173 static int bpf_map_alloc_id(struct bpf_map *map) in bpf_map_alloc_id()
189 static void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock) in bpf_map_free_id()
209 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred() local
217 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref()
[all …]
Dhashtab.c31 struct bpf_map map; member
94 static void *fd_htab_map_get_ptr(const struct bpf_map *map, struct htab_elem *l) in fd_htab_map_get_ptr()
447 static void *__htab_map_lookup_elem(struct bpf_map *map, void *key) in __htab_map_lookup_elem()
468 static void *htab_map_lookup_elem(struct bpf_map *map, void *key) in htab_map_lookup_elem()
489 static u32 htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup()
502 static __always_inline void *__htab_lru_map_lookup_elem(struct bpf_map *map, in __htab_lru_map_lookup_elem()
516 static void *htab_lru_map_lookup_elem(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem()
521 static void *htab_lru_map_lookup_elem_sys(struct bpf_map *map, void *key) in htab_lru_map_lookup_elem_sys()
526 static u32 htab_lru_map_gen_lookup(struct bpf_map *map, in htab_lru_map_gen_lookup()
579 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in htab_map_get_next_key()
[all …]
Ddevmap.c64 struct bpf_map map; member
143 static void dev_map_free(struct bpf_map *map) in dev_map_free()
193 static int dev_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in dev_map_get_next_key()
210 void __dev_map_insert_ctx(struct bpf_map *map, u32 bit) in __dev_map_insert_ctx()
225 void __dev_map_flush(struct bpf_map *map) in __dev_map_flush()
252 struct net_device *__dev_map_lookup_elem(struct bpf_map *map, u32 key) in __dev_map_lookup_elem()
264 static void *dev_map_lookup_elem(struct bpf_map *map, void *key) in dev_map_lookup_elem()
297 static int dev_map_delete_elem(struct bpf_map *map, void *key) in dev_map_delete_elem()
320 static int dev_map_update_elem(struct bpf_map *map, void *key, void *value, in dev_map_update_elem()
Dstackmap.c25 struct bpf_map map; member
121 BPF_CALL_3(bpf_get_stackid, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_3() argument
200 static void *stack_map_lookup_elem(struct bpf_map *map, void *key) in stack_map_lookup_elem()
206 int bpf_stackmap_copy(struct bpf_map *map, void *key, void *value) in bpf_stackmap_copy()
229 static int stack_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in stack_map_get_next_key()
234 static int stack_map_update_elem(struct bpf_map *map, void *key, void *value, in stack_map_update_elem()
241 static int stack_map_delete_elem(struct bpf_map *map, void *key) in stack_map_delete_elem()
260 static void stack_map_free(struct bpf_map *map) in stack_map_free()
Dlpm_trie.c33 struct bpf_map map; member
189 static void *trie_lookup_elem(struct bpf_map *map, void *_key) in trie_lookup_elem()
262 static int trie_update_elem(struct bpf_map *map, in trie_update_elem()
392 static int trie_delete_elem(struct bpf_map *map, void *key) in trie_delete_elem()
468 static void trie_free(struct bpf_map *map) in trie_free()
512 static int trie_get_next_key(struct bpf_map *map, void *key, void *next_key) in trie_get_next_key()
Dsockmap.c48 struct bpf_map map; member
572 static void sock_map_free(struct bpf_map *map) in sock_map_free()
613 static int sock_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in sock_map_get_next_key()
631 struct sock *__sock_map_lookup_elem(struct bpf_map *map, u32 key) in __sock_map_lookup_elem()
641 static int sock_map_delete_elem(struct bpf_map *map, void *key) in sock_map_delete_elem()
698 struct bpf_map *map, in sock_map_ctx_update_elem()
822 int sock_map_prog(struct bpf_map *map, struct bpf_prog *prog, u32 type) in sock_map_prog()
847 static void *sock_map_lookup(struct bpf_map *map, void *key) in sock_map_lookup()
852 static int sock_map_update_elem(struct bpf_map *map, in sock_map_update_elem()
881 static void sock_map_release(struct bpf_map *map) in sock_map_release()
[all …]
Dhelpers.c31 BPF_CALL_2(bpf_map_lookup_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2() argument
46 BPF_CALL_4(bpf_map_update_elem, struct bpf_map *, map, void *, key, in BPF_CALL_4() argument
64 BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2() argument
Dmap_in_map.c83 void *bpf_map_fd_get_ptr(struct bpf_map *map, in bpf_map_fd_get_ptr()
Dcore.c1091 struct bpf_map *map = (struct bpf_map *) (unsigned long) BPF_R2; in ___bpf_prog_run() local
1417 struct bpf_map *map = aux->used_maps[i]; in bpf_check_tail_call() local
1540 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size, in bpf_event_output()
Dverifier.c975 struct bpf_map *map = regs[regno].map_ptr; in __check_map_access() local
1706 static int check_map_func_compatibility(struct bpf_map *map, int func_id) in check_map_func_compatibility()
4396 static int check_map_prealloc(struct bpf_map *map) in check_map_prealloc()
4404 static int check_map_prog_compatibility(struct bpf_map *map, in check_map_prog_compatibility()
4455 struct bpf_map *map; in replace_map_fd_with_map_ptr() local
/kernel/trace/
Dtracing_map.c143 static int tracing_map_add_field(struct tracing_map *map, in tracing_map_add_field()
168 int tracing_map_add_sum_field(struct tracing_map *map) in tracing_map_add_sum_field()
189 int tracing_map_add_key_field(struct tracing_map *map, in tracing_map_add_key_field()
313 static struct tracing_map_elt *tracing_map_elt_alloc(struct tracing_map *map) in tracing_map_elt_alloc()
350 static struct tracing_map_elt *get_free_elt(struct tracing_map *map) in get_free_elt()
365 static void tracing_map_free_elts(struct tracing_map *map) in tracing_map_free_elts()
381 static int tracing_map_alloc_elts(struct tracing_map *map) in tracing_map_alloc_elts()
414 __tracing_map_insert(struct tracing_map *map, void *key, bool lookup_only) in __tracing_map_insert()
500 struct tracing_map_elt *tracing_map_insert(struct tracing_map *map, void *key) in tracing_map_insert()
522 struct tracing_map_elt *tracing_map_lookup(struct tracing_map *map, void *key) in tracing_map_lookup()
[all …]
Dbpf_trace.c260 BPF_CALL_2(bpf_perf_event_read, struct bpf_map *, map, u64, flags) in BPF_CALL_2() argument
301 __bpf_perf_event_output(struct pt_regs *regs, struct bpf_map *map, in __bpf_perf_event_output()
331 BPF_CALL_5(bpf_perf_event_output, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_5() argument
365 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size, in bpf_event_output()
403 BPF_CALL_2(bpf_current_task_under_cgroup, struct bpf_map *, map, u32, idx) in BPF_CALL_2() argument
539 BPF_CALL_5(bpf_perf_event_output_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_5() argument
563 BPF_CALL_3(bpf_get_stackid_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_3() argument
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.h138 struct tracing_map *map; member
187 struct tracing_map_array *map; member
Dtrace_events_hist.c146 struct tracing_map *map; member
738 struct tracing_map *map = hist_data->map; in create_tracing_map_fields() local
1043 struct tracing_map *map = hist_data->map; in print_entries() local
Dtrace_events.c2111 static char *eval_replace(char *ptr, struct trace_eval_map *map, int len) in eval_replace()
2134 struct trace_eval_map *map) in update_event_printk()
2209 void trace_event_eval_update(struct trace_eval_map **map, int len) in trace_event_eval_update()
Dtrace.c151 struct trace_eval_map map; member
1978 unsigned map; in __trace_find_cmdline() local
5091 struct trace_eval_map **map; in trace_insert_eval_map_file() local
5151 struct trace_eval_map **map; in trace_insert_eval_map() local
8012 union trace_eval_map_item *map; in trace_module_remove_evals() local
Dftrace.c4217 struct ftrace_func_map *map; in ftrace_func_mapper_find_ip() local
4239 struct ftrace_func_map *map; in ftrace_func_mapper_add_ip() local
4271 struct ftrace_func_map *map; in ftrace_func_mapper_remove_ip() local
4299 struct ftrace_func_map *map; in free_ftrace_func_mapper() local
Dtrace.h1877 static inline void trace_event_eval_update(struct trace_eval_map **map, int len) { } in trace_event_eval_update()
/kernel/
Dpid.c57 struct pidmap *map, int off) in mk_pid()
62 #define find_next_offset(map, off) \ argument
107 struct pidmap *map = upid->ns->pidmap + nr / BITS_PER_PAGE; in free_pidmap() local
156 struct pidmap *map; in alloc_pidmap() local
218 struct pidmap *map, *end; in next_pidmap() local
Duser_namespace.c201 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down()
227 static u32 map_id_down(struct uid_gid_map *map, u32 id) in map_id_down()
250 static u32 map_id_up(struct uid_gid_map *map, u32 id) in map_id_up()
541 struct uid_gid_map *map) in m_start()
644 struct uid_gid_map *map, in map_write()
Dmemremap.c286 #define for_each_device_pfn(pfn, map) \ argument
/kernel/power/
Dswap.c86 struct swap_map_page *map; member