Home
last modified time | relevance | path

Searched refs:ref_ptr (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/bpf/progs/
A Dmap_kptr_fail.c12 struct prog_test_ref_kfunc __kptr *ref_ptr; member
230 bpf_this_cpu_ptr(v->ref_ptr); in mark_ref_as_untrusted_or_null()
246 p = v->ref_ptr; in reject_untrusted_store_to_ref()
266 p = v->ref_ptr; in reject_untrusted_xchg()
269 bpf_kptr_xchg(&v->ref_ptr, p); in reject_untrusted_xchg()
278 struct prog_test_ref_kfunc *ref_ptr; in reject_bad_type_xchg() local
287 if (!ref_ptr) in reject_bad_type_xchg()
297 struct prog_test_ref_kfunc *ref_ptr; in reject_member_of_ref_xchg() local
306 if (!ref_ptr) in reject_member_of_ref_xchg()
362 bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_ref_state()
[all …]
A Dmap_kptr.c9 struct prog_test_ref_kfunc __kptr *ref_ptr; member
145 p = v->ref_ptr; in test_kptr_ref()
159 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_kptr_ref()
179 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_kptr_ref()
323 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_pre()
331 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref_pre()
343 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_pre()
364 p_st = v->ref_ptr; in test_map_kptr_ref_post()
368 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref_post()
376 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_post()
[all …]
/tools/perf/util/
A Dprobe-finder.c261 while (*ref_ptr) in convert_variable_type()
262 ref_ptr = &(*ref_ptr)->next; in convert_variable_type()
265 if (*ref_ptr == NULL) { in convert_variable_type()
269 (*ref_ptr)->user_access = user_access; in convert_variable_type()
326 struct probe_trace_arg_ref *ref = *ref_ptr; in convert_variable_fields()
355 if (*ref_ptr) in convert_variable_fields()
356 (*ref_ptr)->next = ref; in convert_variable_fields()
358 *ref_ptr = ref; in convert_variable_fields()
386 if (*ref_ptr) in convert_variable_fields()
387 (*ref_ptr)->next = ref; in convert_variable_fields()
[all …]

Completed in 9 milliseconds