Home
last modified time | relevance | path

Searched refs:K_OBJ_CORE (Results 1 – 21 of 21) sorted by relevance

/Zephyr-Core-3.5.0/tests/kernel/obj_core/obj_core_stats_api/src/
Dmain.c43 status = k_obj_core_stats_enable(K_OBJ_CORE(&test_sem)); in ZTEST()
47 saved_enable = K_OBJ_CORE(test_thread)->type->stats_desc->enable; in ZTEST()
48 K_OBJ_CORE(test_thread)->type->stats_desc->enable = NULL; in ZTEST()
49 status = k_obj_core_stats_enable(K_OBJ_CORE(test_thread)); in ZTEST()
52 K_OBJ_CORE(test_thread)->type->stats_desc->enable = saved_enable; in ZTEST()
74 status = k_obj_core_stats_disable(K_OBJ_CORE(&test_sem)); in ZTEST()
78 saved_disable = K_OBJ_CORE(test_thread)->type->stats_desc->disable; in ZTEST()
79 K_OBJ_CORE(test_thread)->type->stats_desc->disable = NULL; in ZTEST()
80 status = k_obj_core_stats_disable(K_OBJ_CORE(test_thread)); in ZTEST()
83 K_OBJ_CORE(test_thread)->type->stats_desc->disable = saved_disable; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/obj_core/obj_core/src/
Dmain.c133 K_OBJ_CORE(thread1), K_OBJ_CORE(&thread2)); in ZTEST()
155 walk_data.obj_core = K_OBJ_CORE(thread1); in ZTEST()
164 walk_data.obj_core = K_OBJ_CORE(&thread2); in ZTEST()
187 K_OBJ_CORE(&_kernel.cpus[i]), NULL); in ZTEST()
191 K_OBJ_CORE(&_kernel), NULL); in ZTEST()
197 K_OBJ_CORE(&block1), NULL); in ZTEST()
204 K_OBJ_CORE(&slab1), K_OBJ_CORE(&slab2)); in ZTEST()
211 K_OBJ_CORE(&timer1), K_OBJ_CORE(&timer2)); in ZTEST()
218 K_OBJ_CORE(&stack1), K_OBJ_CORE(&stack2)); in ZTEST()
225 K_OBJ_CORE(&fifo1), K_OBJ_CORE(&fifo2)); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c72 status = k_obj_core_stats_raw(K_OBJ_CORE(&_kernel), kernel_raw, in ZTEST()
83 status = k_obj_core_stats_raw(K_OBJ_CORE(&_kernel.cpus[i]), in ZTEST()
97 status = k_obj_core_stats_query(K_OBJ_CORE(&_kernel), &kernel_query, in ZTEST()
104 status = k_obj_core_stats_query(K_OBJ_CORE(&_kernel.cpus[i]), in ZTEST()
143 status = k_obj_core_stats_reset(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST()
155 status = k_obj_core_stats_disable(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST()
167 status = k_obj_core_stats_enable(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST()
178 status = k_obj_core_stats_reset(K_OBJ_CORE(&_kernel)); in ZTEST()
187 status = k_obj_core_stats_disable(K_OBJ_CORE(&_kernel)); in ZTEST()
196 status = k_obj_core_stats_enable(K_OBJ_CORE(&_kernel)); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/kernel/
Dcondvar.c27 k_obj_core_init_and_link(K_OBJ_CORE(condvar), &obj_type_condvar); in z_impl_k_condvar_init()
149 k_obj_core_init_and_link(K_OBJ_CORE(condvar), in init_condvar_obj_core_list()
Dmem_slab.c157 k_obj_core_init_and_link(K_OBJ_CORE(slab), &obj_type_mem_slab); in init_mem_slab_obj_core_list()
159 k_obj_core_stats_register(K_OBJ_CORE(slab), &slab->info, in init_mem_slab_obj_core_list()
193 k_obj_core_init_and_link(K_OBJ_CORE(slab), &obj_type_mem_slab); in k_mem_slab_init()
196 k_obj_core_stats_register(K_OBJ_CORE(slab), &slab->info, in k_mem_slab_init()
Dinit.c439 k_obj_core_init_and_link(K_OBJ_CORE(&_kernel.cpus[id]), &obj_type_cpu); in z_init_cpu()
441 k_obj_core_stats_register(K_OBJ_CORE(&_kernel.cpus[id]), in z_init_cpu()
654 k_obj_core_init_and_link(K_OBJ_CORE(&_kernel), &obj_type_kernel); in init_kernel_obj_core_list()
656 k_obj_core_stats_register(K_OBJ_CORE(&_kernel), _kernel.usage, in init_kernel_obj_core_list()
Dsem.c69 k_obj_core_init_and_link(K_OBJ_CORE(sem), &obj_type_sem); in z_impl_k_sem_init()
223 k_obj_core_init_and_link(K_OBJ_CORE(sem), &obj_type_sem); in init_sem_obj_core_list()
Dstack.c38 k_obj_core_init_and_link(K_OBJ_CORE(stack), &obj_type_stack); in k_stack_init()
208 k_obj_core_init_and_link(K_OBJ_CORE(stack), &obj_type_stack); in init_stack_obj_core_list()
Dmutex.c63 k_obj_core_init_and_link(K_OBJ_CORE(mutex), &obj_type_mutex); in z_impl_k_mutex_init()
304 k_obj_core_init_and_link(K_OBJ_CORE(mutex), &obj_type_mutex); in init_mutex_obj_core_list()
Dtimer.c134 k_obj_core_init_and_link(K_OBJ_CORE(timer), &obj_type_timer); in k_timer_init()
348 k_obj_core_init_and_link(K_OBJ_CORE(timer), &obj_type_timer); in init_timer_obj_core_list()
Devents.c64 k_obj_core_init_and_link(K_OBJ_CORE(event), &obj_type_event); in z_impl_k_event_init()
359 k_obj_core_init_and_link(K_OBJ_CORE(event), &obj_type_event); in init_event_obj_core_list()
Dmailbox.c99 k_obj_core_init_and_link(K_OBJ_CORE(mbox), &obj_type_mailbox); in k_mbox_init()
458 k_obj_core_init_and_link(K_OBJ_CORE(mbox), &obj_type_mailbox); in init_mailbox_obj_core_list()
Dmsg_q.c57 k_obj_core_init_and_link(K_OBJ_CORE(msgq), &obj_type_msgq); in k_msgq_init()
432 k_obj_core_init_and_link(K_OBJ_CORE(msgq), &obj_type_msgq); in init_msgq_obj_core_list()
Dqueue.c449 k_obj_core_init_and_link(K_OBJ_CORE(fifo), &_obj_type_fifo); in init_fifo_obj_core_list()
472 k_obj_core_init_and_link(K_OBJ_CORE(lifo), &_obj_type_lifo); in init_lifo_obj_core_list()
Dpipes.c59 k_obj_core_init_and_link(K_OBJ_CORE(pipe), &obj_type_pipe); in k_pipe_init()
824 k_obj_core_init_and_link(K_OBJ_CORE(pipe), &obj_type_pipe); in init_pipe_obj_core_list()
Dthread.c582 k_obj_core_init_and_link(K_OBJ_CORE(new_thread), &obj_type_thread); in z_setup_new_thread()
584 k_obj_core_stats_register(K_OBJ_CORE(new_thread), in z_setup_new_thread()
Dsched.c1747 k_obj_core_stats_deregister(K_OBJ_CORE(thread)); in end_thread()
1749 k_obj_core_unlink(K_OBJ_CORE(thread)); in end_thread()
/Zephyr-Core-3.5.0/doc/kernel/object_cores/
Dindex.rst130 k_obj_core_init(K_OBJ_CORE(new_obj), &my_obj_type);
131 k_obj_core_link(K_OBJ_CORE(new_obj));
132 k_obj_core_stats_register(K_OBJ_CORE(new_obj), &new_obj->raw_stats,
193 status = k_obj_core_stats_query(K_OBJ_CORE(&my_obj),
199 k_obj_core_stats_reset(K_OBJ_CORE(&my_obj));
/Zephyr-Core-3.5.0/include/zephyr/kernel/
Dobj_core.h21 #define K_OBJ_CORE(kobj) (&((kobj)->obj_core)) macro
/Zephyr-Core-3.5.0/lib/os/
Dmem_blocks.c545 k_obj_core_init_and_link(K_OBJ_CORE(*block_pp), in init_sys_mem_blocks_obj_core_list()
548 k_obj_core_stats_register(K_OBJ_CORE(*block_pp), in init_sys_mem_blocks_obj_core_list()
/Zephyr-Core-3.5.0/include/zephyr/
Dkernel.h2421 K_OBJ_CORE_INIT(K_OBJ_CORE(fifo), _obj_type_fifo); \
2422 K_OBJ_CORE_LINK(K_OBJ_CORE(fifo)); \
2661 K_OBJ_CORE_INIT(K_OBJ_CORE(lifo), _obj_type_lifo); \
2662 K_OBJ_CORE_LINK(K_OBJ_CORE(lifo)); \