Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/tests/kernel/obj_core/obj_core_stats_api/src/
Dmain.c44 status = k_obj_core_stats_enable(K_OBJ_CORE(&test_sem)); in ZTEST()
48 saved_enable = K_OBJ_CORE(test_thread)->type->stats_desc->enable; in ZTEST()
49 K_OBJ_CORE(test_thread)->type->stats_desc->enable = NULL; in ZTEST()
50 status = k_obj_core_stats_enable(K_OBJ_CORE(test_thread)); in ZTEST()
53 K_OBJ_CORE(test_thread)->type->stats_desc->enable = saved_enable; in ZTEST()
75 status = k_obj_core_stats_disable(K_OBJ_CORE(&test_sem)); in ZTEST()
79 saved_disable = K_OBJ_CORE(test_thread)->type->stats_desc->disable; in ZTEST()
80 K_OBJ_CORE(test_thread)->type->stats_desc->disable = NULL; in ZTEST()
81 status = k_obj_core_stats_disable(K_OBJ_CORE(test_thread)); in ZTEST()
84 K_OBJ_CORE(test_thread)->type->stats_desc->disable = saved_disable; in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/kernel/obj_core/obj_core/src/
Dmain.c134 K_OBJ_CORE(thread1), K_OBJ_CORE(&thread2)); in ZTEST()
156 walk_data.obj_core = K_OBJ_CORE(thread1); in ZTEST()
165 walk_data.obj_core = K_OBJ_CORE(&thread2); in ZTEST()
188 K_OBJ_CORE(&_kernel.cpus[i]), NULL); in ZTEST()
192 K_OBJ_CORE(&_kernel), NULL); in ZTEST()
198 K_OBJ_CORE(&block1), NULL); in ZTEST()
205 K_OBJ_CORE(&slab1), K_OBJ_CORE(&slab2)); in ZTEST()
212 K_OBJ_CORE(&timer1), K_OBJ_CORE(&timer2)); in ZTEST()
219 K_OBJ_CORE(&stack1), K_OBJ_CORE(&stack2)); in ZTEST()
226 K_OBJ_CORE(&fifo1), K_OBJ_CORE(&fifo2)); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c74 status = k_obj_core_stats_raw(K_OBJ_CORE(&_kernel), kernel_raw, in ZTEST()
85 status = k_obj_core_stats_raw(K_OBJ_CORE(&_kernel.cpus[i]), in ZTEST()
99 status = k_obj_core_stats_query(K_OBJ_CORE(&_kernel), &kernel_query, in ZTEST()
106 status = k_obj_core_stats_query(K_OBJ_CORE(&_kernel.cpus[i]), in ZTEST()
145 status = k_obj_core_stats_reset(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST()
157 status = k_obj_core_stats_disable(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST()
169 status = k_obj_core_stats_enable(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST()
180 status = k_obj_core_stats_reset(K_OBJ_CORE(&_kernel)); in ZTEST()
189 status = k_obj_core_stats_disable(K_OBJ_CORE(&_kernel)); in ZTEST()
198 status = k_obj_core_stats_enable(K_OBJ_CORE(&_kernel)); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsocket_obj_core.c69 k_obj_core_init_and_link(K_OBJ_CORE(sock), &sock_obj_type); in sock_obj_core_init_and_link()
70 k_obj_core_stats_register(K_OBJ_CORE(sock), &sock->stats, in sock_obj_core_init_and_link()
77 k_obj_core_stats_reset(K_OBJ_CORE(sock)); in sock_obj_core_init_and_link()
/Zephyr-Core-3.7.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.c156 k_obj_core_init_and_link(K_OBJ_CORE(slab), &obj_type_mem_slab); in init_mem_slab_obj_core_list()
158 k_obj_core_stats_register(K_OBJ_CORE(slab), &slab->info, in init_mem_slab_obj_core_list()
192 k_obj_core_init_and_link(K_OBJ_CORE(slab), &obj_type_mem_slab); in k_mem_slab_init()
195 k_obj_core_stats_register(K_OBJ_CORE(slab), &slab->info, in k_mem_slab_init()
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()
Dinit.c527 k_obj_core_init_and_link(K_OBJ_CORE(&_kernel.cpus[id]), &obj_type_cpu); in z_init_cpu()
529 k_obj_core_stats_register(K_OBJ_CORE(&_kernel.cpus[id]), in z_init_cpu()
741 k_obj_core_init_and_link(K_OBJ_CORE(&_kernel), &obj_type_kernel); in init_kernel_obj_core_list()
743 k_obj_core_stats_register(K_OBJ_CORE(&_kernel), _kernel.usage, in init_kernel_obj_core_list()
Dstack.c40 k_obj_core_init_and_link(K_OBJ_CORE(stack), &obj_type_stack); in k_stack_init()
214 k_obj_core_init_and_link(K_OBJ_CORE(stack), &obj_type_stack); in init_stack_obj_core_list()
Dmutex.c65 k_obj_core_init_and_link(K_OBJ_CORE(mutex), &obj_type_mutex); in z_impl_k_mutex_init()
306 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()
358 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.c94 k_obj_core_init_and_link(K_OBJ_CORE(mbox), &obj_type_mailbox); in k_mbox_init()
453 k_obj_core_init_and_link(K_OBJ_CORE(mbox), &obj_type_mailbox); in init_mailbox_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()
Dmsg_q.c57 k_obj_core_init_and_link(K_OBJ_CORE(msgq), &obj_type_msgq); in k_msgq_init()
433 k_obj_core_init_and_link(K_OBJ_CORE(msgq), &obj_type_msgq); in init_msgq_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.c532 k_obj_core_init_and_link(K_OBJ_CORE(new_thread), &obj_type_thread); in z_setup_new_thread()
534 k_obj_core_stats_register(K_OBJ_CORE(new_thread), in z_setup_new_thread()
Dsched.c1383 k_obj_core_stats_deregister(K_OBJ_CORE(thread)); in halt_thread()
1385 k_obj_core_unlink(K_OBJ_CORE(thread)); in halt_thread()
/Zephyr-Core-3.7.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.7.0/include/zephyr/kernel/
Dobj_core.h21 #define K_OBJ_CORE(kobj) (&((kobj)->obj_core)) macro
/Zephyr-Core-3.7.0/subsys/net/lib/shell/
Dsockets.c47 ret = k_obj_core_stats_raw(K_OBJ_CORE(obj), in walk_sockets()
/Zephyr-Core-3.7.0/lib/mem_blocks/
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.7.0/include/zephyr/
Dkernel.h2504 K_OBJ_CORE_INIT(K_OBJ_CORE(fifo), _obj_type_fifo); \
2505 K_OBJ_CORE_LINK(K_OBJ_CORE(fifo)); \
2744 K_OBJ_CORE_INIT(K_OBJ_CORE(lifo), _obj_type_lifo); \
2745 K_OBJ_CORE_LINK(K_OBJ_CORE(lifo)); \