Lines Matching refs:i

42 	unsigned int i;  in dummy_threads_init()  local
47 for (i = 0; i < num_threads; i++) { in dummy_threads_init()
48 z_init_thread_base(&dummy_thread[i], i / bucket_size, in dummy_threads_init()
55 unsigned int i; in cycles_reset() local
57 for (i = 0; i < num_threads; i++) { in cycles_reset()
58 add_cycles[i] = 0ULL; in cycles_reset()
59 remove_cycles[i] = 0ULL; in cycles_reset()
70 unsigned int i; in test_decreasing_priority() local
76 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
78 z_pend_thread((struct k_thread *)&dummy_thread[i], in test_decreasing_priority()
82 add_cycles[i] += timing_cycles_get(&start, &finish); in test_decreasing_priority()
87 for (i = 0; i < num_threads; i++) { in test_decreasing_priority()
89 z_unpend_thread((struct k_thread *)&dummy_thread[i]); in test_decreasing_priority()
92 remove_cycles[i] += timing_cycles_get(&start, &finish); in test_decreasing_priority()
98 unsigned int i; in test_increasing_priority() local
105 for (i = 0; i < num_threads; i++) { in test_increasing_priority()
108 &dummy_thread[num_threads - i - 1]; in test_increasing_priority()
112 add_cycles[i] += timing_cycles_get(&start, &finish); in test_increasing_priority()
117 for (i = 0; i < num_threads; i++) { in test_increasing_priority()
120 &dummy_thread[num_threads - i - 1]; in test_increasing_priority()
124 remove_cycles[i] += timing_cycles_get(&start, &finish); in test_increasing_priority()
151 unsigned int i; in compute_and_report_stats() local
153 for (i = 1; i < num_threads; i++) { in compute_and_report_stats()
154 if (cycles[i] > maximum) { in compute_and_report_stats()
155 maximum = cycles[i]; in compute_and_report_stats()
158 if (cycles[i] < minimum) { in compute_and_report_stats()
159 minimum = cycles[i]; in compute_and_report_stats()
162 total += cycles[i]; in compute_and_report_stats()
171 for (i = 0; i < num_threads; i++) { in compute_and_report_stats()
172 tmp = cycles[i] / num_iterations; in compute_and_report_stats()
216 unsigned int i; in main() local
242 for (i = 0; i < CONFIG_BENCHMARK_NUM_ITERATIONS; i++) { in main()
251 for (i = 0; i < CONFIG_BENCHMARK_NUM_THREADS; i++) { in main()
253 "WaitQ.add.to.tail.%04u.waiters", i); in main()
255 dummy_thread[i].prio); in main()
256 PRINT_STATS_AVG(description, (uint32_t)add_cycles[i], in main()
266 for (i = 0; i < CONFIG_BENCHMARK_NUM_THREADS; i++) { in main()
269 CONFIG_BENCHMARK_NUM_THREADS - i); in main()
272 tag, dummy_thread[i].prio); in main()
273 PRINT_STATS_AVG(description, (uint32_t)remove_cycles[i], in main()
280 for (i = 0; i < CONFIG_BENCHMARK_NUM_ITERATIONS; i++) { in main()
289 for (i = 0; i < CONFIG_BENCHMARK_NUM_THREADS; i++) { in main()
291 "WaitQ.add.to.head.%04u.waiters", i); in main()
293 &dummy_thread[CONFIG_BENCHMARK_NUM_THREADS - i - 1]; in main()
297 PRINT_STATS_AVG(description, (uint32_t)add_cycles[i], in main()
307 for (i = 0; i < CONFIG_BENCHMARK_NUM_THREADS; i++) { in main()
310 CONFIG_BENCHMARK_NUM_THREADS - i); in main()
312 &dummy_thread[CONFIG_BENCHMARK_NUM_THREADS - i - 1]; in main()
316 PRINT_STATS_AVG(description, (uint32_t)remove_cycles[i], in main()