Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dmap_kptr_fail.c10 struct prog_test_ref_kfunc __kptr_ref *ref_ptr; member
276 bpf_this_cpu_ptr(v->ref_ptr); in mark_ref_as_untrusted_or_null()
291 p = v->ref_ptr; in reject_untrusted_store_to_ref()
295 *(struct prog_test_ref_kfunc * volatile *)&v->ref_ptr = p; in reject_untrusted_store_to_ref()
310 p = v->ref_ptr; in reject_untrusted_xchg()
313 bpf_kptr_xchg(&v->ref_ptr, p); in reject_untrusted_xchg()
320 struct prog_test_ref_kfunc *ref_ptr; in reject_bad_type_xchg() local
328 ref_ptr = bpf_kfunc_call_test_acquire(&(unsigned long){0}); in reject_bad_type_xchg()
329 if (!ref_ptr) in reject_bad_type_xchg()
331 bpf_kptr_xchg(&v->ref_memb_ptr, ref_ptr); in reject_bad_type_xchg()
[all …]
Dmap_kptr.c8 struct prog_test_ref_kfunc __kptr_ref *ref_ptr; member
86 p = v->ref_ptr; in test_kptr_ref()
94 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_kptr_ref()
109 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_kptr_ref()
123 p = bpf_kfunc_call_test_kptr_get(&v->ref_ptr, 0, 0); in test_kptr_get()
214 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref()
222 p = bpf_kfunc_call_test_kptr_get(&v->ref_ptr, 0, 0); in test_map_kptr_ref()
233 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref()
243 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref()
269 p_st = v->ref_ptr; in test_map_kptr_ref2()
[all …]
/Linux-v6.1/tools/perf/util/
Dprobe-finder.c313 struct probe_trace_arg_ref **ref_ptr = &tvar->ref; in convert_variable_type() local
368 while (*ref_ptr) in convert_variable_type()
369 ref_ptr = &(*ref_ptr)->next; in convert_variable_type()
371 *ref_ptr = zalloc(sizeof(struct probe_trace_arg_ref)); in convert_variable_type()
372 if (*ref_ptr == NULL) { in convert_variable_type()
376 (*ref_ptr)->user_access = user_access; in convert_variable_type()
430 struct probe_trace_arg_ref **ref_ptr, in convert_variable_fields() argument
433 struct probe_trace_arg_ref *ref = *ref_ptr; in convert_variable_fields()
462 if (*ref_ptr) in convert_variable_fields()
463 (*ref_ptr)->next = ref; in convert_variable_fields()
[all …]
/Linux-v6.1/fs/btrfs/
Dtree-log.c1233 static int extref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr, in extref_get_fields() argument
1239 extref = (struct btrfs_inode_extref *)ref_ptr; in extref_get_fields()
1257 static int ref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr, in ref_get_fields() argument
1262 ref = (struct btrfs_inode_ref *)ref_ptr; in ref_get_fields()
1293 unsigned long ref_ptr; in unlink_old_inode_refs() local
1308 ref_ptr = btrfs_item_ptr_offset(eb, path->slots[0]); in unlink_old_inode_refs()
1309 ref_end = ref_ptr + btrfs_item_size(eb, path->slots[0]); in unlink_old_inode_refs()
1310 while (ref_ptr < ref_end) { in unlink_old_inode_refs()
1316 ret = extref_get_fields(eb, ref_ptr, &namelen, &name, in unlink_old_inode_refs()
1320 ret = ref_get_fields(eb, ref_ptr, &namelen, &name, in unlink_old_inode_refs()
[all …]