Home
last modified time | relevance | path

Searched refs:inner_map (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/kernel/bpf/
Dmap_in_map.c11 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_meta_alloc() local
16 inner_map = __bpf_map_get(f); in bpf_map_meta_alloc()
17 if (IS_ERR(inner_map)) in bpf_map_meta_alloc()
18 return inner_map; in bpf_map_meta_alloc()
24 if (inner_map->map_type == BPF_MAP_TYPE_PROG_ARRAY || in bpf_map_meta_alloc()
25 inner_map->map_type == BPF_MAP_TYPE_CGROUP_STORAGE || in bpf_map_meta_alloc()
26 inner_map->map_type == BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE) { in bpf_map_meta_alloc()
32 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc()
37 if (map_value_has_spin_lock(inner_map)) { in bpf_map_meta_alloc()
44 if (inner_map->ops == &array_map_ops) in bpf_map_meta_alloc()
[all …]
Darraymap.c795 struct bpf_map **inner_map = array_map_lookup_elem(map, key); in array_of_map_lookup_elem() local
797 if (!inner_map) in array_of_map_lookup_elem()
800 return READ_ONCE(*inner_map); in array_of_map_lookup_elem()
Dhashtab.c1472 struct bpf_map **inner_map = htab_map_lookup_elem(map, key); in htab_of_map_lookup_elem() local
1474 if (!inner_map) in htab_of_map_lookup_elem()
1477 return READ_ONCE(*inner_map); in htab_of_map_lookup_elem()
/Linux-v5.4/samples/bpf/
Dtest_map_in_map_kern.c73 static __always_inline int do_reg_lookup(void *inner_map, u32 port) in do_reg_lookup() argument
77 result = bpf_map_lookup_elem(inner_map, &port); in do_reg_lookup()
81 static __always_inline int do_inline_array_lookup(void *inner_map, u32 port) in do_inline_array_lookup() argument
85 if (inner_map != &port_a) in do_inline_array_lookup()
92 static __always_inline int do_inline_hash_lookup(void *inner_map, u32 port) in do_inline_hash_lookup() argument
96 if (inner_map != &port_h) in do_inline_hash_lookup()
110 void *outer_map, *inner_map; in trace_sys_connect() local
151 inner_map = bpf_map_lookup_elem(outer_map, &port_key); in trace_sys_connect()
152 if (!inner_map) { in trace_sys_connect()
158 ret = do_reg_lookup(inner_map, port_key); in trace_sys_connect()
[all …]