Home
last modified time | relevance | path

Searched refs:STACK_SIZE (Results 1 – 25 of 139) sorted by relevance

123456

/Zephyr-latest/tests/kernel/condvar/condvar_api/src/
Dmain.c12 #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/kernel/mem_protect/futex/src/
Dmain.c24 #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/benchmarks/footprints/src/
Dfootprint.h13 #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);
Duserspace.c20 #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()
Dsystem_thread.c18 #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()
Dsemaphore.c12 #define STACK_SIZE 512 macro
35 STACK_SIZE, thread_fn, in run_semaphore()
43 STACK_SIZE, thread_fn, in run_semaphore()
/Zephyr-latest/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/
Dmain.c70 #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/stack/stack/src/
Dtest_stack_contexts.c9 #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/lib/newlib/thread_safety/src/
Dlocks.c23 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro
32 static K_THREAD_STACK_DEFINE(tstack, STACK_SIZE);
127 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
138 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
202 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
212 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
272 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
282 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
342 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
352 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/mem_slab/mslab_concept/src/
Dtest_mslab_alloc_wait.c11 #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/kernel/sched/schedule_api/src/
Dmain.c10 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);
Duser_api.c20 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 …]
Dtest_sched.h14 #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);
Dtest_sched_priority.c58 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
93 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
103 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
139 tid[0] = k_thread_create(&tdata_prio[0], tstacks[0], STACK_SIZE, in ZTEST()
143 tid[1] = k_thread_create(&tdata_prio[1], tstacks[1], STACK_SIZE, in ZTEST()
147 tid[2] = k_thread_create(&tdata_prio[2], tstacks[2], STACK_SIZE, in ZTEST()
151 tid[3] = k_thread_create(&tdata_prio[3], tstacks[3], STACK_SIZE, in ZTEST()
/Zephyr-latest/tests/kernel/threads/thread_apis/src/
Dtest_threads_spawn.c50 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()
Dtest_threads_cancel_abort.c46 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_abort, in ZTEST_USER()
66 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
75 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
95 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
140 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
202 k_thread_create(&tdata, tstack, STACK_SIZE, entry_abort_isr, in ZTEST()
260 tid = k_thread_create(&tdata, tstack, STACK_SIZE, entry_aborted_thread, in ZTEST()
/Zephyr-latest/tests/kernel/timer/timer_error_case/src/
Dmain.c13 #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/kernel/semaphore/sys_sem/src/
Dmain.c11 #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/samples/kernel/condition_variables/condvar/src/
Dmain.c18 #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/mutex/mutex_api/src/
Dtest_mutex_apis.c9 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro
22 static K_THREAD_STACK_DEFINE(tstack, STACK_SIZE);
23 static K_THREAD_STACK_DEFINE(tstack2, STACK_SIZE);
24 static K_THREAD_STACK_DEFINE(tstack3, STACK_SIZE);
70 k_thread_create(&tdata, tstack, STACK_SIZE, in tmutex_test_lock()
86 k_thread_create(&tdata, tstack, STACK_SIZE, in tmutex_test_lock_timeout()
283 k_thread_create(&tdata3, tstack3, STACK_SIZE, in ZTEST_USER()
327 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
341 k_thread_create(&tdata2, tstack2, STACK_SIZE, in ZTEST_USER()
357 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_error_case/src/
Dmain.c9 #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/benchmarks/sys_kernel/src/
Dsyskernel.h17 #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/subsys/zbus/hlp_priority_boost/src/
Dmain.c14 #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/kernel/sched/deadline/src/
Dmain.c14 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro
24 K_THREAD_STACK_ARRAY_DEFINE(worker_stacks, NUM_THREADS, STACK_SIZE);
68 worker_stacks[i], STACK_SIZE, in ZTEST()
156 worker_stacks[i], STACK_SIZE, in ZTEST()
197 worker_stacks[i], STACK_SIZE, in ZTEST()
275 k_thread_create(&worker_threads[0], worker_stacks[0], STACK_SIZE, in ZTEST()
281 k_thread_create(&worker_threads[1], worker_stacks[1], STACK_SIZE, in ZTEST()
300 k_thread_create(&worker_threads[0], worker_stacks[0], STACK_SIZE, in ZTEST()
306 k_thread_create(&worker_threads[1], worker_stacks[1], STACK_SIZE, in ZTEST()
/Zephyr-latest/tests/kernel/fifo/fifo_api/src/
Dtest_fifo_cancel.c9 #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) macro
16 static K_THREAD_STACK_DEFINE(tstack, STACK_SIZE);
27 k_tid_t tid = k_thread_create(&thread, tstack, STACK_SIZE, in tfifo_thread_thread()

123456