Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/tests/kernel/smp/src/
Dmain.c218 unsigned int num_threads = arch_num_cpus(); in spin_for_threads_exit() local
220 for (int i = 0; i < num_threads - 1; i++) { in spin_for_threads_exit()
270 unsigned int num_threads = arch_num_cpus(); in cleanup_resources() local
272 for (int i = 0; i < num_threads; i++) { in cleanup_resources()
318 unsigned int num_threads = arch_num_cpus(); in ZTEST() local
327 for (i = 0; i < num_threads; i++) { in ZTEST()
348 for (i = 0; i < num_threads; i++) { in ZTEST()
353 for (i = 0; i < num_threads; i++) { in ZTEST()
370 unsigned int num_threads = arch_num_cpus(); in ZTEST() local
376 spawn_threads(K_PRIO_COOP(10), num_threads, !EQUAL_PRIORITY, in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/wait_queues/src/
Dmain.c40 static void dummy_threads_init(unsigned int num_threads) in dummy_threads_init() argument
45 bucket_size = (num_threads / CONFIG_NUM_PREEMPT_PRIORITIES) + 1; in dummy_threads_init()
47 for (i = 0; i < num_threads; i++) { in dummy_threads_init()
53 static void cycles_reset(unsigned int num_threads) in cycles_reset() argument
57 for (i = 0; i < num_threads; i++) { in cycles_reset()
68 static void test_decreasing_priority(_wait_q_t *q, unsigned int num_threads) in test_decreasing_priority() argument
76 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
87 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
96 static void test_increasing_priority(_wait_q_t *q, unsigned int num_threads) in test_increasing_priority() argument
105 for (i = 0; i < num_threads; i++) { in test_increasing_priority()
[all …]
/Zephyr-latest/tests/benchmarks/sched_queues/src/
Dmain.c68 static void start_threads(unsigned int num_threads) in start_threads() argument
81 bucket_size = (num_threads / CONFIG_NUM_PREEMPT_PRIORITIES) + 1; in start_threads()
90 static void cycles_reset(unsigned int num_threads) in cycles_reset() argument
94 for (i = 0; i < num_threads; i++) { in cycles_reset()
100 static void test_decreasing_priority(unsigned int num_threads) in test_decreasing_priority() argument
106 for (i = num_threads; i > 0; i--) { in test_decreasing_priority()
113 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
121 static void test_increasing_priority(unsigned int num_threads) in test_increasing_priority() argument
127 for (i = num_threads; i > 0; i--) { in test_increasing_priority()
129 z_unready_thread(&test_thread[num_threads - i]); in test_increasing_priority()
[all …]
/Zephyr-latest/tests/arch/common/timing/src/
Dmain.c105 unsigned int num_threads = arch_num_cpus(); in ZTEST() local
107 for (i = 0; i < num_threads; i++) { in ZTEST()
115 for (i = 0; i < num_threads; i++) { in ZTEST()
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/
Dthread_apis.c69 uint32_t i, num_threads, max_num_threads = 5U; in thread2() local
80 num_threads = osThreadEnumerate(thread_array, max_num_threads); in thread2()
81 zassert_equal(num_threads, 2, in thread2()
84 for (i = 0U; i < num_threads; i++) { in thread2()
/Zephyr-latest/tests/lib/p4workq/src/
Dmain.c185 unsigned int num_threads = NUM_THREADS; in ZTEST() local
203 zassert_equal(active_count(), num_threads, in ZTEST()