Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/tests/kernel/sched/deadline/src/
Dmain.c10 #define NUM_THREADS 8 macro
16 struct k_thread worker_threads[NUM_THREADS];
17 k_tid_t worker_tids[NUM_THREADS];
19 K_THREAD_STACK_ARRAY_DEFINE(worker_stacks, NUM_THREADS, STACK_SIZE);
21 int thread_deadlines[NUM_THREADS];
27 int exec_order[NUM_THREADS];
36 zassert_true(tidx >= 0 && tidx < NUM_THREADS, ""); in worker()
37 zassert_true(n_exec >= 0 && n_exec < NUM_THREADS, ""); in worker()
61 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
91 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/kernel/smp_abort/src/
Dmain.c16 #define NUM_THREADS CONFIG_MP_MAX_NUM_CPUS macro
19 K_THREAD_STACK_ARRAY_DEFINE(thread_stack, NUM_THREADS, STACK_SIZE);
20 struct k_thread thread[NUM_THREADS];
28 volatile bool sync[NUM_THREADS];
30 struct isr_args isr_args[NUM_THREADS];
71 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
73 isr_args[i].wait = &sync[(i + 1) % NUM_THREADS]; in ZTEST()
74 isr_args[i].target = &thread[(i + 1) % NUM_THREADS]; in ZTEST()
77 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
85 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
/Zephyr-Core-3.7.0/samples/kernel/condition_variables/simple/src/
Dmain.c10 #define NUM_THREADS 20 macro
13 K_THREAD_STACK_ARRAY_DEFINE(tstacks, NUM_THREADS, STACK_SIZE);
15 static struct k_thread t[NUM_THREADS];
49 k_tid_t tid[NUM_THREADS]; in main()
53 for (int i = 0; i < NUM_THREADS; i++) { in main()
66 while (done < NUM_THREADS) { in main()
68 __func__, done, (int)NUM_THREADS); in main()
82 __func__, (int)NUM_THREADS); in main()
/Zephyr-Core-3.7.0/tests/kernel/smp_suspend/src/
Dmain.c17 #define NUM_THREADS 6 macro
19 K_THREAD_STACK_ARRAY_DEFINE(thread_stack, NUM_THREADS, STACK_SIZE);
20 struct k_thread thread[NUM_THREADS];
22 volatile uint64_t thread_counter[NUM_THREADS];
58 uint64_t counter[NUM_THREADS] = {}; in ZTEST()
64 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
68 i < (NUM_THREADS - 1) ? &thread[i + 1] : NULL, in ZTEST()
87 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
/Zephyr-Core-3.7.0/tests/posix/pthread_pressure/src/
Dmain.c24 #define NUM_THREADS MIN(32, MIN(CONFIG_TEST_NUM_CPUS, CONFIG_POSIX_THREAD_THREADS_MAX)) macro
33 static bool alive[NUM_THREADS];
36 static K_THREAD_STACK_ARRAY_DEFINE(thread_stacks, NUM_THREADS, STACK_SIZE);
38 static struct k_thread k_threads[NUM_THREADS];
39 static uint64_t counters[NUM_THREADS];
40 static uint64_t prev_counters[NUM_THREADS];
45 for (int i = 0; i < NUM_THREADS; ++i) { in print_stats()
62 printk("NUM_THREADS: %u\n", NUM_THREADS); in test_create_join_common()
67 for (i = 0; i < NUM_THREADS; ++i) { in test_create_join_common()
82 for (i = 0; i < NUM_THREADS; ++i) { in test_create_join_common()
[all …]
/Zephyr-Core-3.7.0/tests/subsys/logging/log_immediate/src/
Dlog_immediate_test.c27 #define NUM_THREADS 5 macro
29 K_THREAD_STACK_ARRAY_DEFINE(stacks, NUM_THREADS, STACK_SIZE);
30 static struct k_thread threads[NUM_THREADS];
31 static k_tid_t tids[NUM_THREADS];
63 for (intptr_t i = 0; i < NUM_THREADS; i++) { in ZTEST()
71 for (int i = 0; i < NUM_THREADS; i++) { in ZTEST()
/Zephyr-Core-3.7.0/tests/arch/xtensa/save_restore_hifi/src/
Dmain.c10 #define NUM_THREADS (CONFIG_MP_MAX_NUM_CPUS * 2) macro
12 K_THREAD_STACK_ARRAY_DEFINE(thread_stack, NUM_THREADS, STACK_SIZE);
14 struct k_thread thread[NUM_THREADS];
24 if (index < (NUM_THREADS - 1)) { in thread_entry()
66 for (i = 0; i < NUM_THREADS; i++) { in ZTEST()
/Zephyr-Core-3.7.0/tests/kernel/threads/tls/src/
Dmain.c14 #define NUM_THREADS 3 macro
46 static K_THREAD_STACK_ARRAY_DEFINE(tls_stack, NUM_THREADS, STACK_SIZE);
48 static struct k_thread tls_thread[NUM_THREADS];
50 K_APP_BMEM(part_common) static k_tid_t tls_tid[NUM_THREADS];
51 K_APP_BMEM(part_common) static enum test_result tls_result[NUM_THREADS];
156 for (i = 0; i < NUM_THREADS; i++) { in start_tls_test()
168 for (i = 0; i < NUM_THREADS; i++) { in start_tls_test()
175 for (i = 0; i < NUM_THREADS; i++) { in start_tls_test()
224 for (i = 0; i < NUM_THREADS; i++) { in thread_tls_setup()
/Zephyr-Core-3.7.0/tests/kernel/sched/preempt/src/
Dmain.c49 #define NUM_THREADS ARRAY_SIZE(worker_priorities) macro
59 struct k_thread worker_threads[NUM_THREADS];
61 K_THREAD_STACK_ARRAY_DEFINE(worker_stacks, NUM_THREADS, STACK_SIZE);
65 struct k_sem worker_sems[NUM_THREADS];
104 for (int i = 0; i < NUM_THREADS; i++) { in wakeup_src_thread()
129 for (int src = 0; src < NUM_THREADS; src++) { in manager()
130 for (wakeup_target = 0; wakeup_target < NUM_THREADS; wakeup_target++) { in manager()
238 zassert_true(id >= 0 && id < NUM_THREADS, ""); in worker()
307 for (int i = 0; i < NUM_THREADS; i++) { in ZTEST()
349 for (int i = 0; i < NUM_THREADS; i++) { in ZTEST()
/Zephyr-Core-3.7.0/samples/kernel/condition_variables/condvar/src/
Dmain.c9 #define NUM_THREADS 3 macro
20 K_THREAD_STACK_ARRAY_DEFINE(tstacks, NUM_THREADS, STACK_SIZE);
22 static struct k_thread t[NUM_THREADS];
97 for (i = 0; i < NUM_THREADS; i++) { in main()
102 NUM_THREADS, count); in main()
/Zephyr-Core-3.7.0/tests/kernel/ipi_optimize/src/
Dmain.c16 #define NUM_THREADS (CONFIG_MP_MAX_NUM_CPUS - 1) macro
20 static struct k_thread thread[NUM_THREADS];
25 static K_THREAD_STACK_ARRAY_DEFINE(stack, NUM_THREADS, STACK_SIZE);
131 for (i = 0; i < NUM_THREADS; i++) { in busy_threads_create()
160 for (i = 0; i < NUM_THREADS; i++) { in busy_threads_priority_set()
306 alt_thread_create(priority - 1 - NUM_THREADS, "High"); in ZTEST()
376 for (j = 0; j < NUM_THREADS; j++) { in ZTEST()
382 zassert_true(j < NUM_THREADS, in ZTEST()
414 alt_thread_create(priority - 1 - NUM_THREADS, "High"); in ZTEST()
461 for (i = 0; i < NUM_THREADS; i++) { in cleanup_threads()
/Zephyr-Core-3.7.0/samples/kernel/metairq_dispatch/src/
Dmain.c22 } threads[NUM_THREADS];
24 K_THREAD_STACK_ARRAY_DEFINE(thread_stacks, NUM_THREADS, STACK_SIZE);
39 uint32_t latencies[MAX_EVENTS * 2 / NUM_THREADS];
40 } threads[NUM_THREADS];
159 for (int i = 0; i < NUM_THREADS; i++) { in record_latencies()
227 for (long i = 0; i < NUM_THREADS; i++) { in main()
234 int prio = (-NUM_THREADS/2) + i; in main()
Dmsgdev.h23 #define NUM_THREADS 4 macro
Dmsgdev.c62 m.target = rand32() % NUM_THREADS; in dev_timer_expired()
/Zephyr-Core-3.7.0/tests/lib/p4workq/src/
Dmain.c12 #define NUM_THREADS (arch_num_cpus() * 2) macro
185 unsigned int num_threads = NUM_THREADS; in ZTEST()
/Zephyr-Core-3.7.0/tests/kernel/ipi_cascade/src/
Dmain.c46 #define NUM_THREADS (CONFIG_MP_MAX_NUM_CPUS - 1) macro