| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | linked_list_fail.c | 31 f = bpf_obj_new(typeof(*f)); \ 35 f2 = bpf_obj_new(typeof(*f2)); \ 40 b = bpf_obj_new(typeof(*b)); \ 239 (void)bpf_obj_new(union { int data; unsigned udata; }); in obj_new_no_struct() 261 f = bpf_obj_new(struct foo); in obj_drop_non_zero_off() 271 return bpf_obj_new(struct foo)->data; in new_null_ret() 277 (void)bpf_obj_new(struct foo); in obj_new_acq() 286 f = bpf_obj_new(typeof(*f)); in use_after_drop() 302 p = bpf_obj_new(typeof(*p)); in ptr_walk_scalar() 314 f = bpf_obj_new(typeof(*f)); in direct_read_lock() [all …]
|
| H A D | rbtree.c | 52 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()
|
| H A D | rbtree_fail.c | 38 n = bpf_obj_new(typeof(*n)); in rbtree_api_nolock_add() 52 n = bpf_obj_new(typeof(*n)); in rbtree_api_nolock_remove() 79 n = bpf_obj_new(typeof(*n)); in rbtree_api_remove_unadded_node() 83 m = bpf_obj_new(typeof(*m)); in rbtree_api_remove_unadded_node() 143 n = bpf_obj_new(typeof(*n)); in rbtree_api_add_to_multiple_trees() 188 n = bpf_obj_new(typeof(*n)); in rbtree_api_add_release_unlock_escape() 321 n = bpf_obj_new(typeof(*n)); in add_with_cb() 358 n = bpf_obj_new(typeof(*n)); in rbtree_api_add_bad_cb_res_spin_unlock()
|
| H A D | local_kptr_stash.c | 99 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()
|
| H A D | refcounted_kptr.c | 95 n = bpf_obj_new(typeof(*n)); in __insert_in_tree_and_list() 132 n = bpf_obj_new(typeof(*n)); in __stash_map_insert_tree() 400 node_new = bpf_obj_new(typeof(*node_new)); in list_empty_test() 420 node_new = bpf_obj_new(typeof(*node_new)); in __add_in_list() 665 new_node = bpf_obj_new(typeof(*new_node)); in list_add_test1() 697 new_node = bpf_obj_new(typeof(*new_node)); in list_add_test2() 749 node = bpf_obj_new(typeof(*node)); in list_push_back_uninit_head() 767 n = bpf_obj_new(typeof(*n)); in list_del_without_lock_fail() 788 n = bpf_obj_new(typeof(*n)); in list_add_without_lock_fail() 792 prev = bpf_obj_new(typeof(*prev)); in list_add_without_lock_fail() [all …]
|
| H A D | refcounted_kptr_fail.c | 84 n = bpf_obj_new(typeof(*n)); in rbtree_refcounted_node_ref_escapes() 107 n = bpf_obj_new(typeof(*n)); in refcount_acquire_maybe_null() 137 tmp = bpf_obj_new(typeof(*tmp)); in refcount_acquire_rcu_map_kptr_unchecked_drop() 248 n = bpf_obj_new(typeof(*n)); in rbtree_refcounted_node_ref_escapes_owning_input() 270 node = bpf_obj_new(typeof(*node)); in refcount_acquire_list_node_offset() 297 n = bpf_obj_new(typeof(*n)); in BPF_PROG()
|
| H A D | exceptions_fail.c | 189 f = bpf_obj_new(typeof(*f)); in reject_with_rbtree_add_throw() 204 f = bpf_obj_new(typeof(*f)); in reject_with_reference() 224 f = bpf_obj_new(typeof(*f)); in reject_global_subprog_throw_with_reference() 237 f = bpf_obj_new(typeof(*f)); in subprog_ref() 256 f = bpf_obj_new(typeof(*f)); in reject_with_cb_reference()
|
| H A D | local_kptr_stash_fail.c | 54 res = bpf_obj_new(typeof(*res)); in stash_rb_nodes() 77 res = bpf_obj_new(typeof(*res)); in drop_rb_node_off()
|
| H A D | linked_list.c | 33 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()
|
| H A D | test_spin_lock_fail.c | 40 f = bpf_obj_new(typeof(*f)); in lock_id_kptr_preserve() 101 f1 = bpf_obj_new(typeof(*f1)); \ 104 f2 = bpf_obj_new(typeof(*f2)); \
|
| H A D | percpu_alloc_fail.c | 146 p = bpf_obj_new(struct val_t); in BPF_PROG() 189 p = bpf_obj_new(struct val_t); in BPF_PROG()
|
| H A D | rbtree_btf_fail__wrong_node_type.c | 28 n = bpf_obj_new(typeof(*n)); in rbtree_api_add__wrong_node_type()
|
| H A D | normal_map_btf.c | 46 new = bpf_obj_new(typeof(*new)); in add_to_list_in_array()
|
| H A D | verifier_btf_flex_array.c | 40 b = bpf_obj_new(struct test_flex_batch); in stash_and_peek()
|
| H A D | rbtree_btf_fail__add_wrong_type.c | 42 n = bpf_obj_new(typeof(*n)); in rbtree_api_add__add_wrong_type()
|
| H A D | map_in_map_btf.c | 63 new = bpf_obj_new(typeof(*new)); in add_to_list_in_inner_array()
|
| H A D | preempted_bpf_ma_op.c | 55 new = bpf_obj_new(typeof(*new)); in add_array()
|
| H A D | task_kfunc_failure.c | 243 local = bpf_obj_new(typeof(*local)); in BPF_PROG() 261 local = bpf_obj_new(typeof(*local)); in BPF_PROG()
|
| H A D | irq.c | 412 p = bpf_obj_new(typeof(*p)); in irq_ooo_refs_array()
|
| H A D | task_kfunc_success.c | 173 local = bpf_obj_new(typeof(*local)); in test_task_xchg_release()
|
| /linux/Documentation/bpf/ |
| H A D | graph_ds_impl.rst | 90 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 */
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_experimental.h | 13 #define bpf_obj_new(type) ((type *)bpf_obj_new(bpf_core_type_id_local(type))) macro
|
| /linux/tools/sched_ext/ |
| H A D | scx_flatcg.bpf.c | 890 cgv_node = bpf_obj_new(struct cgv_node); in BPF_STRUCT_OPS_SLEEPABLE()
|
| /linux/tools/sched_ext/include/scx/ |
| H A D | common.bpf.h | 387 #define bpf_obj_new(type) ((type *)bpf_obj_new_impl(bpf_core_type_id_local(type), NULL)) macro
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 2350 __bpf_kfunc void *bpf_obj_new(u64 local_type_id__k, struct btf_struct_meta *meta) in bpf_obj_new() function 2366 return bpf_obj_new(local_type_id__k, meta__ign); in bpf_obj_new_impl() 4809 BTF_ID_FLAGS(func, bpf_obj_new, KF_ACQUIRE | KF_RET_NULL | KF_IMPLICIT_ARGS)
|