Lines Matching refs:i
178 int i; in read_keys() local
189 for (i = 0; i < fst.st_size; i++) { in read_keys()
190 if (b[i] == '\n') in read_keys()
238 static void run_parallel(unsigned int tasks, void (*fn)(int i, void *data), in run_parallel() argument
243 int i; in run_parallel() local
245 for (i = 0; i < tasks; i++) { in run_parallel()
246 pid[i] = fork(); in run_parallel()
247 if (pid[i] == 0) { in run_parallel()
249 fn(i, data); in run_parallel()
251 } else if (pid[i] == -1) { in run_parallel()
252 printf("couldn't spawn #%d process\n", i); in run_parallel()
259 next_sched_cpu = sched_next_online(pid[i], next_sched_cpu); in run_parallel()
261 for (i = 0; i < tasks; i++) { in run_parallel()
264 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_parallel()
274 unsigned int i; in do_test_lru_dist() local
282 for (i = 0; i < dist_key_counts; i++) { in do_test_lru_dist()
283 key = dist_keys[i] + key_offset; in do_test_lru_dist()
432 unsigned int i; in do_test_parallel_lru_loss() local
437 for (i = 0; i < nr_stable_elems; i++) { in do_test_parallel_lru_loss()
443 for (i = 0; i < nr_repeats; i++) { in do_test_parallel_lru_loss()
459 for (i = 0; i < nr_stable_elems; i++) { in do_test_parallel_lru_loss()