Home
last modified time | relevance | path

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

/linux/kernel/bpf/
A Dmap_in_map.c17 inner_map = __bpf_map_get(f); in bpf_map_meta_alloc()
18 if (IS_ERR(inner_map)) in bpf_map_meta_alloc()
19 return inner_map; in bpf_map_meta_alloc()
22 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc()
55 if (inner_map->btf) { in bpf_map_meta_alloc()
56 btf_get(inner_map->btf); in bpf_map_meta_alloc()
97 inner_map = __bpf_map_get(f); in bpf_map_fd_get_ptr()
98 if (IS_ERR(inner_map)) in bpf_map_fd_get_ptr()
99 return inner_map; in bpf_map_fd_get_ptr()
103 bpf_map_inc(inner_map); in bpf_map_fd_get_ptr()
[all …]
A Darraymap.c1298 struct bpf_map **inner_map = array_map_lookup_elem(map, key); in array_of_map_lookup_elem() local
1300 if (!inner_map) in array_of_map_lookup_elem()
1303 return READ_ONCE(*inner_map); in array_of_map_lookup_elem()
A Dhashtab.c2383 struct bpf_map **inner_map = htab_map_lookup_elem(map, key); in htab_of_map_lookup_elem() local
2385 if (!inner_map) in htab_of_map_lookup_elem()
2388 return READ_ONCE(*inner_map); in htab_of_map_lookup_elem()
/linux/tools/testing/selftests/bpf/progs/
A Dtest_btf_map_in_map.c6 struct inner_map { struct
89 __array(values, struct inner_map);
126 struct inner_map *inner_map; in handle__sys_enter() local
129 inner_map = bpf_map_lookup_elem(&outer_arr, &key); in handle__sys_enter()
130 if (!inner_map) in handle__sys_enter()
133 bpf_map_update_elem(inner_map, &key, &val, 0); in handle__sys_enter()
135 inner_map = bpf_map_lookup_elem(&outer_hash, &key); in handle__sys_enter()
136 if (!inner_map) in handle__sys_enter()
139 bpf_map_update_elem(inner_map, &key, &val, 0); in handle__sys_enter()
142 if (!inner_map) in handle__sys_enter()
[all …]
A Dlsm.c54 struct inner_map { struct
59 } inner_map SEC(".maps");
66 __array(values, struct inner_map);
68 .values = { [0] = &inner_map },
75 __array(values, struct inner_map);
77 .values = { [0] = &inner_map },
111 struct inner_map *inner_map; in BPF_PROG() local
141 if (inner_map) { in BPF_PROG()
142 value = bpf_map_lookup_elem(inner_map, &key); in BPF_PROG()
147 if (inner_map) { in BPF_PROG()
[all …]
A Dtimer_mim.c15 struct inner_map { struct
30 __array(values, struct inner_map);
68 struct bpf_map *inner_map; in BPF_PROG() local
73 inner_map = bpf_map_lookup_elem(&outer_arr, &array_key); in BPF_PROG()
74 if (!inner_map) in BPF_PROG()
77 bpf_map_update_elem(inner_map, &hash_key, &init, 0); in BPF_PROG()
78 val = bpf_map_lookup_elem(inner_map, &hash_key); in BPF_PROG()
82 bpf_timer_init(&val->timer, inner_map, CLOCK_MONOTONIC); in BPF_PROG()
A Dtimer_mim_reject.c15 struct inner_map { struct
31 __array(values, struct inner_map);
50 struct bpf_map *inner_map, *inner_map2; in BPF_PROG() local
56 inner_map = bpf_map_lookup_elem(&outer_arr, &array_key); in BPF_PROG()
57 if (!inner_map) in BPF_PROG()
63 bpf_map_update_elem(inner_map, &hash_key, &init, 0); in BPF_PROG()
64 val = bpf_map_lookup_elem(inner_map, &hash_key); in BPF_PROG()
A Dbloom_filter_map.c55 int inner_map(void *ctx) in inner_map() function
57 struct bpf_map *inner_map; in inner_map() local
61 inner_map = bpf_map_lookup_elem(&outer_map, &key); in inner_map()
62 if (!inner_map) { in inner_map()
67 data.map = inner_map; in inner_map()
A Dmap_ptr_kern.c337 struct inner_map { struct
342 } inner_map SEC(".maps");
356 .values = { (void *)&inner_map, 0, 0, 0, 0, 0, 0, 0, 0 },
374 __array(values, struct inner_map);
377 [2] = &inner_map,
/linux/samples/bpf/
A Dtest_map_in_map_kern.c76 static __always_inline int do_reg_lookup(void *inner_map, u32 port) in do_reg_lookup() argument
80 result = bpf_map_lookup_elem(inner_map, &port); in do_reg_lookup()
88 if (inner_map != &port_a) in do_inline_array_lookup()
95 static __always_inline int do_inline_hash_lookup(void *inner_map, u32 port) in do_inline_hash_lookup() argument
99 if (inner_map != &port_h) in do_inline_hash_lookup()
113 void *outer_map, *inner_map; in trace_sys_connect() local
154 inner_map = bpf_map_lookup_elem(outer_map, &port_key); in trace_sys_connect()
155 if (!inner_map) { in trace_sys_connect()
161 ret = do_reg_lookup(inner_map, port_key); in trace_sys_connect()
164 inline_ret = do_inline_array_lookup(inner_map, port_key); in trace_sys_connect()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dsockmap_listen.c1023 struct bpf_map *inner_map, int family, in test_skb_redir_to_connected() argument
1029 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_connected()
1048 struct bpf_map *inner_map, int family, in test_msg_redir_to_connected() argument
1053 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_connected()
1125 struct bpf_map *inner_map, int family, in test_skb_redir_to_listening() argument
1131 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_listening()
1155 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_listening()
1620 int sock_map = bpf_map__fd(inner_map); in unix_skb_redir_to_connected()
1788 int sock_map = bpf_map__fd(inner_map); in udp_skb_redir_to_connected()
1876 int sock_map = bpf_map__fd(inner_map); in inet_unix_skb_redir_to_connected()
[all …]
A Dbloom_filter_map.c121 link = bpf_program__attach(skel->progs.inner_map); in test_inner_map()
/linux/tools/bpf/bpftool/Documentation/
A Dbpftool-map.rst27 | **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] \
73 …SIZE* **entries** *MAX_ENTRIES* **name** *NAME* [**flags** *FLAGS*] [**inner_map** *MAP*] [**dev*…
82 **inner_map** keyword must be used to pass an inner map. The
/linux/tools/lib/bpf/
A Dlibbpf.c397 struct bpf_map *inner_map; member
2486 map->inner_map = calloc(1, sizeof(*map->inner_map)); in bpf_object__init_user_btf_map()
2487 if (!map->inner_map) in bpf_object__init_user_btf_map()
2489 map->inner_map->fd = -1; in bpf_object__init_user_btf_map()
4246 return map->inner_map; in bpf_map__inner_map()
4869 if (map->inner_map) { in bpf_object__create_map()
4935 map->inner_map->fd = -1; in bpf_object__create_map()
4937 zfree(&map->inner_map); in bpf_object__create_map()
7884 if (map->inner_map) { in bpf_map__destroy()
7886 zfree(&map->inner_map); in bpf_map__destroy()
[all …]
/linux/tools/bpf/bpftool/bash-completion/
A Dbpftool720 inner_map)
729 inner_map)
745 _bpftool_once_attr 'inner_map'

Completed in 52 milliseconds