Home
last modified time | relevance | path

Searched refs:bpf_obj_new (Results 1 – 23 of 23) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
A Dlinked_list_fail.c239 f = bpf_obj_new(struct foo); in obj_drop_non_zero_off()
255 bpf_obj_new(struct foo); in obj_new_acq()
264 f = bpf_obj_new(typeof(*f)); in use_after_drop()
280 p = bpf_obj_new(typeof(*p)); in ptr_walk_scalar()
292 f = bpf_obj_new(typeof(*f)); in direct_read_lock()
303 f = bpf_obj_new(typeof(*f)); in direct_write_lock()
315 f = bpf_obj_new(typeof(*f)); in direct_read_head()
326 f = bpf_obj_new(typeof(*f)); in direct_write_head()
338 f = bpf_obj_new(typeof(*f)); in direct_read_node()
349 f = bpf_obj_new(typeof(*f)); in direct_write_node()
[all …]
A Drbtree.c52 n = bpf_obj_new(typeof(*n)); in __add_three()
57 m = bpf_obj_new(typeof(*m)); in __add_three()
69 n = bpf_obj_new(typeof(*n)); in __add_three()
98 n = bpf_obj_new(typeof(*n)); in rbtree_add_and_remove()
103 m = bpf_obj_new(typeof(*m)); in rbtree_add_and_remove()
141 nodes[i][j] = bpf_obj_new(typeof(*nodes[i][j])); in rbtree_add_and_remove_array()
195 n = bpf_obj_new(typeof(*n)); in rbtree_first_and_remove()
201 m = bpf_obj_new(typeof(*m)); in rbtree_first_and_remove()
207 o = bpf_obj_new(typeof(*o)); in rbtree_first_and_remove()
263 n = bpf_obj_new(typeof(*n)); in rbtree_api_release_aliasing()
A Drbtree_fail.c37 n = bpf_obj_new(typeof(*n)); in rbtree_api_nolock_add()
51 n = bpf_obj_new(typeof(*n)); in rbtree_api_nolock_remove()
78 n = bpf_obj_new(typeof(*n)); in rbtree_api_remove_unadded_node()
82 m = bpf_obj_new(typeof(*m)); in rbtree_api_remove_unadded_node()
141 n = bpf_obj_new(typeof(*n)); in rbtree_api_add_to_multiple_trees()
186 n = bpf_obj_new(typeof(*n)); in rbtree_api_add_release_unlock_escape()
272 n = bpf_obj_new(typeof(*n)); in add_with_cb()
A Drefcounted_kptr_fail.c40 n = bpf_obj_new(typeof(*n)); in rbtree_refcounted_node_ref_escapes()
62 n = bpf_obj_new(typeof(*n)); in refcount_acquire_maybe_null()
81 n = bpf_obj_new(typeof(*n)); in rbtree_refcounted_node_ref_escapes_owning_input()
104 n = bpf_obj_new(typeof(*n)); in BPF_PROG()
A Dlocal_kptr_stash.c99 inner_local_kptr = bpf_obj_new(typeof(*inner_local_kptr)); in create_and_stash()
103 res = bpf_obj_new(typeof(*res)); in create_and_stash()
141 res = bpf_obj_new(typeof(*res)); in stash_plain()
164 res = bpf_obj_new(typeof(*res)); in stash_local_with_root()
169 n = bpf_obj_new(typeof(*n)); in stash_local_with_root()
271 p = bpf_obj_new(typeof(*p)); in stash_refcounted_node()
A Dexceptions_fail.c169 f = bpf_obj_new(typeof(*f)); in reject_with_rbtree_add_throw()
184 f = bpf_obj_new(typeof(*f)); in reject_with_reference()
195 f = bpf_obj_new(typeof(*f)); in subprog_ref()
214 f = bpf_obj_new(typeof(*f)); in reject_with_cb_reference()
A Drefcounted_kptr.c79 n = bpf_obj_new(typeof(*n)); in __insert_in_tree_and_list()
116 n = bpf_obj_new(typeof(*n)); in __stash_map_insert_tree()
376 n = bpf_obj_new(typeof(*n)); in rbtree_refcounted_node_ref_escapes()
398 n = bpf_obj_new(typeof(*n)); in rbtree_refcounted_node_ref_escapes_owning_input()
435 n = bpf_obj_new(typeof(*n)); in rbtree_wrong_owner_remove_fail_a1()
512 n = bpf_obj_new(typeof(*n)); in BPF_PROG()
546 n = bpf_obj_new(typeof(*n)); in BPF_PROG()
A Dlocal_kptr_stash_fail.c54 res = bpf_obj_new(typeof(*res)); in stash_rb_nodes()
77 res = bpf_obj_new(typeof(*res)); in drop_rb_node_off()
A Dlinked_list.c33 f = bpf_obj_new(typeof(*f)); in list_push_pop()
122 f[i] = bpf_obj_new(typeof(**f)); in list_push_pop_multiple()
127 f[i + 1] = bpf_obj_new(typeof(**f)); in list_push_pop_multiple()
198 f = bpf_obj_new(typeof(*f)); in list_in_list()
202 b = bpf_obj_new(typeof(*b)); in list_in_list()
A Dtest_spin_lock_fail.c39 f = bpf_obj_new(typeof(*f)); in lock_id_kptr_preserve()
100 f1 = bpf_obj_new(typeof(*f1)); \
103 f2 = bpf_obj_new(typeof(*f2)); \
A Drbtree_btf_fail__wrong_node_type.c28 n = bpf_obj_new(typeof(*n)); in rbtree_api_add__wrong_node_type()
A Dnormal_map_btf.c46 new = bpf_obj_new(typeof(*new)); in add_to_list_in_array()
A Drbtree_btf_fail__add_wrong_type.c42 n = bpf_obj_new(typeof(*n)); in rbtree_api_add__add_wrong_type()
A Dmap_in_map_btf.c63 new = bpf_obj_new(typeof(*new)); in add_to_list_in_inner_array()
A Dpreempted_bpf_ma_op.c55 new = bpf_obj_new(typeof(*new)); in add_array()
A Dpercpu_alloc_fail.c132 p = bpf_obj_new(struct val_t); in BPF_PROG()
A Dtask_kfunc_success.c172 local = bpf_obj_new(typeof(*local)); in BPF_PROG()
/linux/Documentation/bpf/
A Dgraph_ds_impl.rst90 struct node_data *n = bpf_obj_new(typeof(*n)); /* ACQUIRED */
98 From the verifier's perspective, the pointer ``n`` returned from ``bpf_obj_new``
123 struct node_data *n = bpf_obj_new(typeof(*n)); /* ACQUIRED */
141 * Because graph nodes are allocated with ``bpf_obj_new`` and
154 returned by ``bpf_obj_new`` is accordingly considered an *owning reference*.
188 ``free``'d, and reused via bpf_obj_new would point to an entirely different thing.
215 n = bpf_obj_new(typeof(*n)); /* 1 */
A Dkfuncs.rst87 __bpf_kfunc void *bpf_obj_new(u32 local_type_id__k, ...)
92 Here, bpf_obj_new uses local_type_id argument to find out the size of that type
A Dbpf_design_QA.rst343 bpf_obj_new for user defined types). Will the kernel preserve backwards
/linux/tools/testing/selftests/bpf/
A Dbpf_experimental.h26 #define bpf_obj_new(type) ((type *)bpf_obj_new_impl(bpf_core_type_id_local(type), NULL)) macro
/linux/tools/sched_ext/include/scx/
A Dcommon.bpf.h251 #define bpf_obj_new(type) ((type *)bpf_obj_new_impl(bpf_core_type_id_local(type), NULL)) macro
/linux/tools/sched_ext/
A Dscx_flatcg.bpf.c877 cgv_node = bpf_obj_new(struct cgv_node); in BPF_STRUCT_OPS_SLEEPABLE()

Completed in 50 milliseconds