Home
last modified time | relevance | path

Searched refs:test_thread (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/tests/kernel/obj_core/obj_core_stats_api/src/
Dmain.c13 K_THREAD_DEFINE(test_thread, 512 + CONFIG_TEST_EXTRA_STACK_SIZE,
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()
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()
110 saved_reset = K_OBJ_CORE(test_thread)->type->stats_desc->reset; in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/app_kernel/src/
Dmaster.c45 static struct k_thread test_thread; variable
157 k_thread_create(&test_thread, test_stack, in main()
169 k_thread_start(&test_thread); in main()
171 k_thread_join(&test_thread, K_FOREVER); in main()
177 k_thread_create(&test_thread, test_stack, in main()
194 k_thread_start(&test_thread); in main()
196 k_thread_join(&test_thread, K_FOREVER); in main()
201 k_thread_create(&test_thread, test_stack, in main()
212 k_thread_access_grant(&test_thread, &DEMOQX1, &DEMOQX4, &DEMOQX192, in main()
218 k_thread_start(&test_thread); in main()
[all …]
/Zephyr-latest/tests/benchmarks/thread_metric/src/
Dtm_porting_layer_zephyr.c38 static struct k_thread test_thread[TM_TEST_NUM_THREADS]; variable
68 tid = k_thread_create(&test_thread[thread_id], test_stack[thread_id], in tm_thread_create()
74 k_thread_suspend(&test_thread[thread_id]); in tm_thread_create()
75 k_wakeup(&test_thread[thread_id]); in tm_thread_create()
77 return (tid == &test_thread[thread_id]) ? TM_SUCCESS : TM_ERROR; in tm_thread_create()
86 k_thread_resume(&test_thread[thread_id]); in tm_thread_resume()
97 k_thread_suspend(&test_thread[thread_id]); in tm_thread_suspend()
/Zephyr-latest/tests/benchmarks/sched_queues/src/
Dmain.c36 static struct k_thread test_thread[CONFIG_BENCHMARK_NUM_THREADS]; variable
84 k_thread_create(&test_thread[i], test_stack, TEST_STACK_SIZE, in start_threads()
108 z_unready_thread(&test_thread[i - 1]); in test_decreasing_priority()
115 z_ready_thread(&test_thread[i]); in test_decreasing_priority()
129 z_unready_thread(&test_thread[num_threads - i]); in test_increasing_priority()
136 z_ready_thread(&test_thread[i - 1]); in test_increasing_priority()
265 tag, test_thread[i].base.prio); in main()
281 tag, test_thread[i].base.prio); in main()
301 thread = &test_thread[CONFIG_BENCHMARK_NUM_THREADS - i - 1]; in main()
319 thread = &test_thread[CONFIG_BENCHMARK_NUM_THREADS - i - 1]; in main()
[all …]
/Zephyr-latest/tests/kernel/mem_protect/userspace/src/
Dmain.c63 static struct k_thread test_thread;
521 k_thread_create(&test_thread, test_stack, STACKSIZE, in ZTEST_USER()
566 k_thread_create(&test_thread, test_stack, STACKSIZE, in ZTEST_USER()
571 k_thread_join(&test_thread, K_FOREVER); in ZTEST_USER()
595 k_thread_create(&test_thread, test_stack, STACKSIZE, in ZTEST_USER()
599 k_thread_join(&test_thread, K_FOREVER); in ZTEST_USER()
725 k_thread_create(&test_thread, test_stack, STACKSIZE, user_half, in spawn_user()
729 k_thread_join(&test_thread, K_FOREVER); in spawn_user()
1064 k_thread_create(&test_thread, test_stack, STACKSIZE, tls_entry, in ZTEST()
1068 &test_thread, (void *)test_thread.userspace_local_data); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_error_case/src/
Dmain.c31 static void test_thread(void *p1, void *p2, void *p3) in test_thread() function
73 test_thread, NULL, NULL, NULL, in tThread_entry_negative()
84 test_thread, NULL, NULL, NULL, in tThread_entry_negative()
94 test_thread, NULL, NULL, NULL, in tThread_entry_negative()
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c16 K_THREAD_DEFINE(test_thread, 1024 + CONFIG_TEST_EXTRA_STACK_SIZE,
235 status = k_obj_core_stats_raw(K_OBJ_CORE(test_thread), &raw1, in ZTEST()
239 status = k_obj_core_stats_query(K_OBJ_CORE(test_thread), &query1, in ZTEST()
250 status = k_obj_core_stats_raw(K_OBJ_CORE(test_thread), &raw2, in ZTEST()
254 status = k_obj_core_stats_query(K_OBJ_CORE(test_thread), &query2, in ZTEST()
276 status = k_obj_core_stats_query(K_OBJ_CORE(test_thread), &query2, in ZTEST()
280 status = k_thread_runtime_stats_get(test_thread, &query3); in ZTEST()
308 status = k_obj_core_stats_reset(K_OBJ_CORE(test_thread)); in ZTEST()
311 status = k_obj_core_stats_query(K_OBJ_CORE(test_thread), in ZTEST()
338 status = k_obj_core_stats_disable(K_OBJ_CORE(test_thread)); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_stack/src/
Dmain.c17 struct k_thread test_thread; variable
332 k_thread_create(&test_thread, scenario_data.stack, STEST_STACKSIZE, in stest_thread_launch()
338 scenario_data.stack_mapped = test_thread.stack_info.mapped.addr; in stest_thread_launch()
343 k_thread_start(&test_thread); in stest_thread_launch()
344 k_thread_join(&test_thread, K_FOREVER); in stest_thread_launch()
346 ret = k_thread_stack_space_get(&test_thread, &unused); in stest_thread_launch()
513 k_thread_create(&test_thread, kern_stack, STEST_STACKSIZE, in ZTEST()
518 k_thread_join(&test_thread, K_FOREVER); in ZTEST()
/Zephyr-latest/tests/subsys/llext/src/
Dthreads_kernel_objects_ext.c29 void test_thread(void *arg0, void *arg1, void *arg2) in test_thread() function
61 MY_THREAD_STACK_SIZE, &test_thread, NULL, NULL, NULL, in test_entry()
/Zephyr-latest/samples/arch/smp/pi/src/
Dmain.c33 void test_thread(void *arg1, void *arg2, void *arg3) in test_thread() function
93 test_thread, in main()
/Zephyr-latest/tests/kernel/spinlock/src/
Dspinlock_fairness.c39 static void test_thread(void *arg1, void *arg2, void *arg3) in test_thread() function
90 (k_thread_entry_t)test_thread, in test_init()
/Zephyr-latest/tests/kernel/poll/src/
Dtest_poll.c32 static struct k_thread test_thread; variable
404 k_tid_t tid1 = k_thread_create(&test_thread, test_stack, in ZTEST()
443 k_tid_t tid2 = k_thread_create(&test_thread, test_stack, in ZTEST()
463 k_tid_t tid3 = k_thread_create(&test_thread, test_stack, in ZTEST()
565 k_tid_t tid = k_thread_create(&test_thread, test_stack, in test_poll_cancel()
671 k_tid_t tid1 = k_thread_create(&test_thread, test_stack, in ZTEST()
757 k_tid_t tid = k_thread_create(&test_thread, test_stack, in ZTEST()
782 &wait_signal, &test_thread, &test_signal, in poll_test_grant_access()
/Zephyr-latest/tests/kernel/sleep/src/
Dmain.c101 static void test_thread(void *p1, void *p2, void *p3) in test_thread() function
209 test_thread, in ZTEST()
/Zephyr-latest/samples/arch/smp/pktqueue/src/
Dmain.c89 void test_thread(void *arg1, void *arg2, void *arg3) in test_thread() function
139 test_thread, in queue_thread()
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dmain.c79 static void test_thread(void *arg1, void *arg2, void *arg3) in test_thread() function
209 K_THREAD_DEFINE(test_thread_id, STACK_SIZE, test_thread, NULL, NULL, NULL,
/Zephyr-latest/tests/kernel/context/src/
Dmain.c1094 ZTEST(context_one_cpu, test_thread) in ZTEST() argument