/Zephyr-latest/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/ |
D | main.c | 70 #define STACK_SIZE CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE macro 71 static K_THREAD_STACK_ARRAY_DEFINE(stacks, NUM_PHIL, STACK_SIZE); 76 .stack_size = STACK_SIZE, 82 .stack_size = STACK_SIZE, 88 .stack_size = STACK_SIZE, 94 .stack_size = STACK_SIZE, 100 .stack_size = STACK_SIZE, 106 .stack_size = STACK_SIZE,
|
/Zephyr-latest/tests/kernel/condvar/condvar_api/src/ |
D | main.c | 12 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 17 K_THREAD_STACK_DEFINE(stack_1, STACK_SIZE); 18 K_THREAD_STACK_DEFINE(condvar_wake_stack, STACK_SIZE); 40 TOTAL_THREADS_WAITING, STACK_SIZE); 42 TOTAL_THREADS_WAITING, STACK_SIZE); 146 k_thread_create(&condvar_tid, stack_1, STACK_SIZE, in ZTEST_USER() 153 k_thread_create(&condvar_wake_tid, condvar_wake_stack, STACK_SIZE, in ZTEST_USER() 172 k_thread_create(&condvar_tid, stack_1, STACK_SIZE, in ZTEST_USER() 179 k_thread_create(&condvar_wake_tid, condvar_wake_stack, STACK_SIZE, in ZTEST_USER() 198 k_thread_create(&condvar_tid, stack_1, STACK_SIZE, in ZTEST_USER() [all …]
|
/Zephyr-latest/tests/benchmarks/footprints/src/ |
D | footprint.h | 13 #define STACK_SIZE 512 macro 15 K_THREAD_STACK_DECLARE(my_stack_area, STACK_SIZE); 16 K_THREAD_STACK_DECLARE(my_stack_area_0, STACK_SIZE);
|
D | system_thread.c | 18 #define STACK_SIZE 512 macro 66 STACK_SIZE, in run_thread_system() 82 STACK_SIZE, in run_thread_system() 94 STACK_SIZE, in run_thread_system() 100 STACK_SIZE, in run_thread_system()
|
D | userspace.c | 20 #define STACK_SIZE 512 macro 67 k_thread_create(&my_thread_user, my_stack_area_0, STACK_SIZE, in drop_to_user_mode() 77 k_thread_create(&my_thread_user, my_stack_area, STACK_SIZE, in user_thread_creation() 94 k_thread_create(&my_thread_user, my_stack_area_0, STACK_SIZE, in syscall_overhead() 110 k_thread_create(&my_thread_user, my_stack_area, STACK_SIZE, in validation_overhead()
|
D | semaphore.c | 12 #define STACK_SIZE 512 macro 35 STACK_SIZE, thread_fn, in run_semaphore() 43 STACK_SIZE, thread_fn, in run_semaphore()
|
D | workq.c | 13 static K_THREAD_STACK_DEFINE(workq_stack, STACK_SIZE); 19 static K_THREAD_STACK_DEFINE(user_workq_stack, STACK_SIZE); 95 tid = k_thread_create(&my_thread, my_stack_area, STACK_SIZE, in run_workq() 102 tid = k_thread_create(&my_thread, my_stack_area, STACK_SIZE, in run_workq() 120 tid = k_thread_create(&my_thread, my_stack_area, STACK_SIZE, in run_workq()
|
/Zephyr-latest/tests/kernel/mem_protect/futex/src/ |
D | main.c | 24 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 29 K_THREAD_STACK_DEFINE(stack_1, STACK_SIZE); 30 K_THREAD_STACK_DEFINE(futex_wake_stack, STACK_SIZE); 32 TOTAL_THREADS_WAITING, STACK_SIZE); 34 TOTAL_THREADS_WAITING, STACK_SIZE); 177 k_thread_create(&futex_tid, stack_1, STACK_SIZE, in ZTEST() 197 k_thread_create(&futex_tid, stack_1, STACK_SIZE, in ZTEST() 217 k_thread_create(&futex_tid, stack_1, STACK_SIZE, in ZTEST() 240 k_thread_create(&futex_tid, stack_1, STACK_SIZE, in ZTEST() 248 k_thread_create(&futex_wake_tid, futex_wake_stack, STACK_SIZE, in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/sched/schedule_api/src/ |
D | main.c | 10 K_THREAD_STACK_DEFINE(tstack, STACK_SIZE); 11 K_THREAD_STACK_ARRAY_DEFINE(tstacks, MAX_NUM_THREAD, STACK_SIZE); 14 K_THREAD_STACK_DECLARE(ustack, STACK_SIZE);
|
D | user_api.c | 20 K_THREAD_STACK_DEFINE(ustack, STACK_SIZE); 34 k_tid_t tid = k_thread_create(&user_thread, ustack, STACK_SIZE, sleepy_thread, in ZTEST_USER() 70 STACK_SIZE, preempt_test_thread, NULL, NULL, NULL, in ZTEST_USER() 80 tid = k_thread_create(&user_thread, ustack, STACK_SIZE, preempt_test_thread, in ZTEST_USER() 122 k_tid_t tid = k_thread_create(&user_thread, ustack, STACK_SIZE, in ZTEST_USER() 163 k_tid_t tid = k_thread_create(&user_thread, ustack, STACK_SIZE, in ZTEST_USER() 204 k_tid_t tid = k_thread_create(&user_thread, ustack, STACK_SIZE, in ZTEST_USER() 245 k_tid_t tid = k_thread_create(&user_thread, ustack, STACK_SIZE, in ZTEST_USER() 287 k_tid_t tid = k_thread_create(&user_thread, ustack, STACK_SIZE, in ZTEST_USER() 331 k_tid_t tid = k_thread_create(&user_thread, ustack, STACK_SIZE, in ZTEST_USER() [all …]
|
D | test_sched.h | 14 #define STACK_SIZE (640 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 16 K_THREAD_STACK_DECLARE(tstack, STACK_SIZE); 17 K_THREAD_STACK_ARRAY_DECLARE(tstacks, MAX_NUM_THREAD, STACK_SIZE);
|
/Zephyr-latest/tests/kernel/mbox/mbox_usage/src/ |
D | main.c | 10 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 15 static K_THREAD_STACK_DEFINE(tstack, STACK_SIZE); 16 static K_THREAD_STACK_DEFINE(high_stack, STACK_SIZE); 17 static K_THREAD_STACK_DEFINE(low_stack, STACK_SIZE); 101 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST() 121 tid1 = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST() 170 low_prio = k_thread_create(&low_tdata, low_stack, STACK_SIZE, in ZTEST() 174 high_prio = k_thread_create(&high_tdata, high_stack, STACK_SIZE, in ZTEST()
|
/Zephyr-latest/tests/kernel/semaphore/sys_sem/src/ |
D | main.c | 11 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 20 static K_THREAD_STACK_ARRAY_DEFINE(multi_stack_give, STACK_NUMS, STACK_SIZE); 21 static K_THREAD_STACK_ARRAY_DEFINE(multi_stack_take, STACK_NUMS, STACK_SIZE); 84 k_thread_create(&multi_tid_give[0], multi_stack_give[0], STACK_SIZE, in ZTEST_USER() 95 k_thread_create(&multi_tid_take[0], multi_stack_take[0], STACK_SIZE, in ZTEST_USER() 100 k_thread_create(&multi_tid_take[1], multi_stack_take[1], STACK_SIZE, in ZTEST_USER() 120 k_thread_create(&multi_tid_give[1], multi_stack_give[1], STACK_SIZE, in ZTEST_USER() 180 k_thread_create(&multi_tid_give[i], multi_stack_give[i], STACK_SIZE, in ZTEST_USER() 189 k_thread_create(&multi_tid_take[i], multi_stack_take[i], STACK_SIZE, in ZTEST_USER()
|
/Zephyr-latest/tests/kernel/threads/thread_error_case/src/ |
D | main.c | 9 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 15 static K_THREAD_STACK_DEFINE(tstack, STACK_SIZE); 16 static K_THREAD_STACK_DEFINE(test_stack, STACK_SIZE); 72 k_thread_create((struct k_thread *)NULL, test_stack, STACK_SIZE, in tThread_entry_negative() 83 k_thread_create(&test_tdata, NULL, STACK_SIZE, in tThread_entry_negative() 119 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in create_negative_test_thread()
|
/Zephyr-latest/tests/kernel/stack/stack/src/ |
D | test_stack_contexts.c | 9 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 20 K_THREAD_STACK_DEFINE(threadstack1, STACK_SIZE); 22 K_THREAD_STACK_DEFINE(threadstack_t1, STACK_SIZE); 24 K_THREAD_STACK_DEFINE(threadstack_t2, STACK_SIZE); 71 k_tid_t tid = k_thread_create(&thread_data1, threadstack1, STACK_SIZE, in tstack_thread_thread() 169 k_tid_t tid = k_thread_create(&thread_data1, threadstack1, STACK_SIZE, in ZTEST() 184 ret = k_stack_alloc_init(&kstack_test_alloc, (STACK_SIZE/2)+1); in ZTEST() 249 k_thread_create(&thread_data1, threadstack1, STACK_SIZE, in ZTEST() 254 k_thread_create(&high_pro_thread_t1, threadstack_t1, STACK_SIZE, in ZTEST() 262 k_thread_create(&high_pro_thread_t2, threadstack_t2, STACK_SIZE, in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/threads/thread_apis/src/ |
D | tests_thread_apis.h | 16 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 17 K_THREAD_STACK_DECLARE(tstack, STACK_SIZE);
|
D | test_threads_spawn.c | 50 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_params, in ZTEST_USER() 69 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_priority, in ZTEST() 87 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_delay, in ZTEST_USER() 116 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST() 142 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST() 169 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
|
/Zephyr-latest/tests/kernel/timer/timer_error_case/src/ |
D | main.c | 13 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 21 static K_THREAD_STACK_DEFINE(tstack, STACK_SIZE); 53 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER() 91 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER() 129 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER() 167 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER() 205 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER() 242 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER() 279 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER() 319 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
|
/Zephyr-latest/tests/misc/llext-edk/src/ |
D | main.c | 21 #define STACK_SIZE 1024 macro 27 K_THREAD_STACK_DEFINE(stack_kernel, STACK_SIZE); 28 K_THREAD_STACK_DEFINE(stack_user, STACK_SIZE); 66 k_thread_create(thread, stack, STACK_SIZE, in load_and_run_extension()
|
/Zephyr-latest/samples/kernel/condition_variables/condvar/src/ |
D | main.c | 18 #define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 20 K_THREAD_STACK_ARRAY_DEFINE(tstacks, NUM_THREADS, STACK_SIZE); 84 k_thread_create(&t[0], tstacks[0], STACK_SIZE, watch_count, in main() 88 k_thread_create(&t[1], tstacks[1], STACK_SIZE, inc_count, in main() 92 k_thread_create(&t[2], tstacks[2], STACK_SIZE, inc_count, in main()
|
/Zephyr-latest/tests/kernel/mem_slab/mslab_concept/src/ |
D | test_mslab_alloc_wait.c | 11 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 15 static K_THREAD_STACK_ARRAY_DEFINE(tstack, THREAD_NUM, STACK_SIZE); 73 tid[0] = k_thread_create(&tdata[0], tstack[0], STACK_SIZE, in ZTEST() 77 tid[1] = k_thread_create(&tdata[1], tstack[1], STACK_SIZE, in ZTEST() 81 tid[2] = k_thread_create(&tdata[2], tstack[2], STACK_SIZE, in ZTEST()
|
/Zephyr-latest/tests/subsys/zbus/hlp_priority_boost/src/ |
D | main.c | 14 #define STACK_SIZE (CONFIG_MAIN_STACK_SIZE + CONFIG_TEST_EXTRA_STACK_SIZE) macro 17 static K_THREAD_STACK_DEFINE(pub_thread_sz, STACK_SIZE); 19 static K_THREAD_STACK_DEFINE(s1_thread_sz, STACK_SIZE); 21 static K_THREAD_STACK_DEFINE(ms1_thread_sz, STACK_SIZE); 127 pub_thread_id = k_thread_create(&pub_thread, pub_thread_sz, STACK_SIZE, publisher_thread, in ZTEST() 129 (void)k_thread_create(&s1_thread, s1_thread_sz, STACK_SIZE, consumer_sub_thread, in ZTEST() 131 (void)k_thread_create(&ms1_thread, ms1_thread_sz, STACK_SIZE, consumer_msg_sub_thread, in ZTEST()
|
/Zephyr-latest/tests/benchmarks/sys_kernel/src/ |
D | syskernel.h | 17 #define STACK_SIZE 2048 macro 25 K_THREAD_STACK_DECLARE(thread_stack1, STACK_SIZE); 26 K_THREAD_STACK_DECLARE(thread_stack2, STACK_SIZE);
|
/Zephyr-latest/tests/kernel/msgq/msgq_usage/src/ |
D | main.c | 13 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 21 K_THREAD_STACK_DEFINE(service_manager_stack, STACK_SIZE); 22 K_THREAD_STACK_DEFINE(service1_stack, STACK_SIZE); 23 K_THREAD_STACK_DEFINE(service2_stack, STACK_SIZE); 24 K_THREAD_STACK_DEFINE(client_stack, STACK_SIZE); 92 service_manager_stack, STACK_SIZE, in start_service_manager() 165 tservice1 = k_thread_create(&service1, service1_stack, STACK_SIZE, in register_service() 170 tservice2 = k_thread_create(&service2, service2_stack, STACK_SIZE, in register_service() 257 tclient = k_thread_create(&client_thread, client_stack, STACK_SIZE, in start_client()
|
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/ |
D | test_pipe_contexts.c | 9 #define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACK_SIZE) macro 28 K_THREAD_STACK_DEFINE(tstack, STACK_SIZE); 29 K_THREAD_STACK_DEFINE(tstack1, STACK_SIZE); 30 K_THREAD_STACK_DEFINE(tstack2, STACK_SIZE); 92 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in tpipe_thread_thread() 110 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in tpipe_kthread_to_kthread() 227 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST() 365 k_tid_t tid1 = k_thread_create(&tdata1, tstack1, STACK_SIZE, in ZTEST() 370 k_tid_t tid2 = k_thread_create(&tdata2, tstack2, STACK_SIZE, in ZTEST() 396 k_tid_t tid1 = k_thread_create(&tdata1, tstack1, STACK_SIZE, in ZTEST() [all …]
|