Home
last modified time | relevance | path

Searched refs:bpf_percpu_obj_new (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dpercpu_alloc_fail.c50 p = bpf_percpu_obj_new(struct val_t); in BPF_PROG()
75 p2 = bpf_percpu_obj_new(struct val2_t); in BPF_PROG()
99 p = bpf_percpu_obj_new(struct val_t); in BPF_PROG()
118 p = bpf_percpu_obj_new(struct val_t); in BPF_PROG()
141 __failure __msg("bpf_percpu_obj_new type ID argument must be of a struct of scalars")
146 p = bpf_percpu_obj_new(struct val_with_ptr_t); in BPF_PROG()
155 __failure __msg("bpf_percpu_obj_new type ID argument must not contain special fields")
160 p = bpf_percpu_obj_new(struct val_with_rb_root_t); in BPF_PROG()
169 __failure __msg("bpf_percpu_obj_new type size (600) is greater than 512")
174 p = bpf_percpu_obj_new(struc in BPF_PROG()
[all...]
H A Dpercpu_alloc_array.c36 p = bpf_percpu_obj_new(struct val_t); in BPF_PROG()
147 p = bpf_percpu_obj_new(struct val_t); in BPF_PROG()
H A Dpercpu_alloc_cgrp_local_storage.c35 p = bpf_percpu_obj_new(struct val_t); in BPF_PROG()
/linux/tools/testing/selftests/bpf/
H A Dbpf_experimental.h14 /* Convenience macro to wrap over bpf_percpu_obj_new */
15 #define bpf_percpu_obj_new(type) ((type __percpu_kptr *)bpf_percpu_obj_new(bpf_core_type_id_local(type)))
149 #define bpf_percpu_obj_new(type) ((type __percpu_kptr *)bpf_percpu_obj_new_ global() macro
/linux/kernel/bpf/
H A Dhelpers.c2362 __bpf_kfunc void *bpf_percpu_obj_new(u64 local_type_id__k, struct btf_struct_meta *meta) in bpf_percpu_obj_new() function
2372 return bpf_percpu_obj_new(local_type_id__k, meta__ign); in bpf_percpu_obj_new_impl()
4709 BTF_ID_FLAGS(func, bpf_percpu_obj_new, KF_ACQUIRE | KF_RET_NULL | KF_IMPLICIT_ARGS)
H A Dverifier.c11237 BTF_ID(func, bpf_percpu_obj_new) in BTF_ID()