Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dlocal_kptr_stash.c92 struct map_value *mapval; in create_and_stash() local
95 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in create_and_stash()
96 if (!mapval) in create_and_stash()
118 res = bpf_kptr_xchg(&mapval->node, res); in create_and_stash()
133 struct map_value *mapval; in stash_plain() local
137 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in stash_plain()
138 if (!mapval) in stash_plain()
146 res = bpf_kptr_xchg(&mapval->plain, res); in stash_plain()
156 struct map_value *mapval; in stash_local_with_root() local
160 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in stash_local_with_root()
[all …]
H A Drefcounted_kptr_fail.c132 struct map_value_refcount_only *mapval; in refcount_acquire_rcu_map_kptr_unchecked_drop() local
142 mapval = bpf_map_lookup_elem(&stashed_refcount_only, &idx); in refcount_acquire_rcu_map_kptr_unchecked_drop()
143 if (!mapval) in refcount_acquire_rcu_map_kptr_unchecked_drop()
147 n = mapval->node; in refcount_acquire_rcu_map_kptr_unchecked_drop()
166 struct map_value_rcu_graph *mapval; in rbtree_remove_after_rcu_unlock() local
171 mapval = bpf_map_lookup_elem(&stashed_rcu_graph, &idx); in rbtree_remove_after_rcu_unlock()
172 if (!mapval) in rbtree_remove_after_rcu_unlock()
176 node = mapval->node; in rbtree_remove_after_rcu_unlock()
196 struct map_value_refcount_only *mapval; in refcount_acquire_after_rcu_unlock() local
200 mapval = bpf_map_lookup_elem(&stashed_refcount_only, &idx); in refcount_acquire_after_rcu_unlock()
[all …]
H A Dlocal_kptr_stash_fail.c46 struct map_value *mapval; in stash_rb_nodes() local
50 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in stash_rb_nodes()
51 if (!mapval) in stash_rb_nodes()
59 res = bpf_kptr_xchg(&mapval->node, res); in stash_rb_nodes()
69 struct map_value *mapval; in drop_rb_node_off() local
73 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in drop_rb_node_off()
74 if (!mapval) in drop_rb_node_off()
H A Drefcounted_kptr.c125 struct map_value *mapval; in __stash_map_insert_tree() local
128 mapval = bpf_map_lookup_elem(&stashed_nodes, &idx); in __stash_map_insert_tree()
129 if (!mapval) in __stash_map_insert_tree()
139 n = bpf_kptr_xchg(&mapval->node, n); in __stash_map_insert_tree()
225 struct map_value *mapval; in __read_from_unstash() local
228 mapval = bpf_map_lookup_elem(&stashed_nodes, &idx); in __read_from_unstash()
229 if (!mapval) in __read_from_unstash()
232 n = bpf_kptr_xchg(&mapval->node, n); in __read_from_unstash()
872 struct map_value_refcount_only *mapval; in refcount_acquire_rcu_map_kptr_null_checked() local
876 mapval = bpf_map_lookup_elem(&stashed_refcount_only, &idx); in refcount_acquire_rcu_map_kptr_null_checked()
[all …]