Home
last modified time | relevance | path

Searched refs:map_value (Results 1 – 20 of 20) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dmap_kptr_fail.c9 struct map_value { struct
19 __type(value, struct map_value); argument
27 struct map_value *v; in size_not_bpf_dw()
42 struct map_value *v; in non_const_var_off()
61 struct map_value *v; in non_const_var_off_kptr_xchg()
80 struct map_value *v; in misaligned_access_write()
96 struct map_value *v; in misaligned_access_read()
111 struct map_value *v; in reject_var_off_store()
135 struct map_value *v; in reject_bad_type_match()
155 struct map_value *v; in marked_as_untrusted_or_null()
[all …]
H A Dmap_kptr.c19 struct map_value { struct
27 __type(value, struct map_value); argument
34 __type(value, struct map_value);
41 __type(value, struct map_value);
48 __type(value, struct map_value);
55 __type(value, struct map_value);
63 __type(value, struct map_value);
71 __type(value, struct map_value);
78 __type(value, struct map_value);
86 __type(value, struct map_value);
[all …]
H A Dmap_kptr_race.c8 struct map_value { struct
16 __type(value, struct map_value); argument
24 __type(value, struct map_value);
32 __type(value, struct map_value);
45 struct map_value val = {}; in test_htab_leak()
46 struct map_value *v; in test_htab_leak()
75 static int fill_percpu_kptr(struct map_value *v) in fill_percpu_kptr()
91 struct map_value *v, *arr[16] = {}; in test_percpu_htab_leak()
92 struct map_value val = {}; in test_percpu_htab_leak()
122 struct map_value *v; in BPF_PROG()
H A Dfree_timer.c20 struct map_value {
27 __type(value, struct map_value); in timer_cb()
31 static int timer_cb(void *map, void *key, struct map_value *value) in start_cb()
43 struct map_value *value; in start_cb()
59 struct map_value zero = {}; in BPF_PROG()
10 struct map_value { global() struct
17 timermap_value global() argument
H A Dlru_bug.c6 struct map_value { struct
14 __type(value, struct map_value); argument
23 struct map_value v = {}; in printk()
33 struct map_value val = {}, *v; in nanosleep()
H A Dlocal_kptr_stash_fail.c17 struct map_value { struct
38 __type(value, struct map_value);
46 struct map_value *mapval; in stash_rb_nodes()
69 struct map_value *mapval; in drop_rb_node_off()
H A Dlocal_kptr_stash.c49 struct map_value { struct
74 __type(value, struct map_value);
92 struct map_value *mapval; in create_and_stash()
133 struct map_value *mapval; in stash_plain()
156 struct map_value *mapval; in stash_local_with_root()
191 struct map_value *mapval; in unstash_rb_node()
220 struct map_value *mapval; in stash_test_ref_kfunc()
H A Dpreempted_bpf_ma_op.c14 struct map_value { struct
21 __type(value, struct map_value); argument
31 struct map_value *value; in del_array()
49 struct map_value *value; in add_array()
H A Dnormal_map_btf.c15 struct map_value { struct
23 __type(value, struct map_value); argument
35 struct map_value *value; in add_to_list_in_array()
H A Dmap_in_map_btf.c15 struct map_value { struct
23 __type(value, struct map_value); argument
47 struct map_value *value; in add_to_list_in_inner_array()
H A Dcb_refs.c7 struct map_value { struct
14 __type(value, struct map_value); argument
53 struct map_value *v; in leak_prog()
H A Dlinked_list.c315 struct map_value *v; in inner_map_list_push_pop()
326 struct map_value *v; in global_list_push_pop_nested()
367 struct map_value *v; in inner_map_list_push_pop_multiple()
378 struct map_value *v; in global_list_push_pop_multiple()
425 struct map_value *v;
436 struct map_value *v;
462 struct map_value *v;
473 struct map_value *v;
H A Drefcounted_kptr.c22 struct map_value { struct
29 __type(value, struct map_value); argument
109 struct map_value *mapval; in __stash_map_insert_tree()
209 struct map_value *mapval; in __read_from_unstash()
837 struct map_value *mapval = bpf_map_lookup_elem(&stashed_nodes, &idx);
875 struct map_value *mapval;
898 struct map_value *mapval;
1029 __type(value, struct map_value);
1036 struct map_value *v;
1050 struct map_value *
[all...]
H A Dlinked_list.h22 struct map_value { struct
31 __type(value, struct map_value); argument
H A Duser_ringbuf_fail.c27 static int map_value; variable
198 bpf_dynptr_from_mem(&map_value, 4, 0, dynptr); in try_reinit_dynptr_mem()
H A Dlinked_list_fail.c11 struct map_value *v, *v2, *iv, *iv2; \
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dload_bytes_relative.c20 __u32 map_value = 0; in test_load_bytes_relative() local
57 err = bpf_map_lookup_elem(map_fd, &map_key, &map_value); in test_load_bytes_relative()
61 CHECK(map_value != 1, "bpf", "bpf program returned failure"); in test_load_bytes_relative()
/linux/tools/testing/selftests/bpf/
H A DREADME.rst131 // r9 is a pointer to map_value
135 math between map_value pointer and register with unbounded min value is not allowed
144 the insn 20 undoes map_value addition. It is currently impossible for the
/linux/Documentation/bpf/
H A Dgraph_ds_impl.rst73 The "root" type for both linked_list and rbtree expects to be in a map_value
77 the same map_value and will enforce that the correct lock is held when
/linux/kernel/bpf/
H A Dhashtab.c474 void *map_value; in htab_mem_dtor() local
479 map_value = htab_elem_value(elem, hrec->key_size); in htab_mem_dtor()
480 bpf_obj_free_fields(hrec->record, map_value); in htab_mem_dtor()
853 void *map_value = htab_elem_value(elem, htab->map.key_size); in check_and_cancel_fields() local
855 bpf_obj_cancel_fields(&htab->map, map_value); in check_and_cancel_fields()