Home
last modified time | relevance | path

Searched full:ref_ptr (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H 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()
250 *(struct prog_test_ref_kfunc * volatile *)&v->ref_ptr = p; 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
286 ref_ptr = bpf_kfunc_call_test_acquire(&(unsigned long){0}); in reject_bad_type_xchg()
287 if (!ref_ptr) in reject_bad_type_xchg()
289 bpf_kptr_xchg(&v->ref_memb_ptr, ref_ptr); in reject_bad_type_xchg()
297 struct prog_test_ref_kfunc *ref_ptr; reject_member_of_ref_xchg() local
[all...]
H 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, in test_map_kptr_ref_post()
[all...]
H A Dmap_kptr_race.c9 struct prog_test_ref_kfunc __kptr *ref_ptr; member
59 old = bpf_kptr_xchg(&v->ref_ptr, p); in test_htab_leak()
68 old = bpf_kptr_xchg(&v->ref_ptr, p); in test_htab_leak()
82 old = bpf_kptr_xchg(&v->ref_ptr, p); in fill_percpu_kptr()
138 old = bpf_kptr_xchg(&v->ref_ptr, p); in BPF_PROG()
147 old = bpf_kptr_xchg(&v->ref_ptr, p); in BPF_PROG()
/linux/tools/perf/util/
H A Dprobe-finder.c209 struct probe_trace_arg_ref **ref_ptr = &tvar->ref; in convert_variable_type()
265 while (*ref_ptr) in convert_variable_type()
266 ref_ptr = &(*ref_ptr)->next; in convert_variable_type()
268 *ref_ptr = zalloc(sizeof(struct probe_trace_arg_ref)); in convert_variable_type()
269 if (*ref_ptr == NULL) { in convert_variable_type()
273 (*ref_ptr)->user_access = user_access; in convert_variable_type()
327 struct probe_trace_arg_ref **ref_ptr, in convert_variable_fields()
330 struct probe_trace_arg_ref *ref = *ref_ptr; in convert_variable_fields()
361 if (*ref_ptr) in convert_variable_fields()
206 struct probe_trace_arg_ref **ref_ptr = &tvar->ref; convert_variable_type() local
323 convert_variable_fields(Dwarf_Die * vr_die,const char * varname,struct perf_probe_arg_field * field,struct probe_trace_arg_ref ** ref_ptr,Dwarf_Die * die_mem,bool user_access) convert_variable_fields() argument
[all...]
/linux/fs/btrfs/
H A Dtree-log.c1417 static int extref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr, in __add_inode_ref()
1424 extref = (struct btrfs_inode_extref *)ref_ptr; in __add_inode_ref()
1439 static int ref_get_fields(struct extent_buffer *eb, unsigned long ref_ptr, in extref_get_fields()
1445 ref = (struct btrfs_inode_ref *)ref_ptr; in extref_get_fields()
1469 unsigned long ref_ptr;
1489 ref_ptr = btrfs_item_ptr_offset(eb, wc->subvol_path->slots[0]); in unlink_old_inode_refs()
1490 ref_end = ref_ptr + btrfs_item_size(eb, wc->subvol_path->slots[0]); in unlink_old_inode_refs()
1491 while (ref_ptr < ref_end) { in unlink_old_inode_refs()
1496 ret = extref_get_fields(eb, ref_ptr, &name, in unlink_old_inode_refs()
1507 ret = ref_get_fields(eb, ref_ptr, in unlink_old_inode_refs()
1428 extref_get_fields(struct extent_buffer * eb,unsigned long ref_ptr,struct fscrypt_str * name,u64 * index,u64 * parent_objectid) extref_get_fields() argument
1450 ref_get_fields(struct extent_buffer * eb,unsigned long ref_ptr,struct fscrypt_str * name,u64 * index) ref_get_fields() argument
1480 unsigned long ref_ptr; unlink_old_inode_refs() local
1579 unsigned long ref_ptr; add_inode_ref() local
[all...]
/linux/kernel/bpf/
H A Dverifier.c4316 /* For ref_ptr case, release function check should ensure we get one in check_stack_read()
4319 * Since ref_ptr cannot be accessed directly by BPF insns, check for in check_stack_read()