Lines Matching refs:i
86 int i; in test_hash_prealloc() local
89 for (i = 0; i < max_cnt; i++) in test_hash_prealloc()
128 int i, ret; in do_test_lru() local
187 for (i = 0; i < max_cnt; i++) { in do_test_lru()
224 int i; in test_percpu_hash_prealloc() local
227 for (i = 0; i < max_cnt; i++) in test_percpu_hash_prealloc()
236 int i; in test_hash_kmalloc() local
239 for (i = 0; i < max_cnt; i++) in test_hash_kmalloc()
248 int i; in test_percpu_hash_kmalloc() local
251 for (i = 0; i < max_cnt; i++) in test_percpu_hash_kmalloc()
260 int i; in test_lpm_kmalloc() local
263 for (i = 0; i < max_cnt; i++) in test_lpm_kmalloc()
272 int i; in test_hash_lookup() local
275 for (i = 0; i < max_cnt; i++) in test_hash_lookup()
284 int i; in test_array_lookup() local
287 for (i = 0; i < max_cnt; i++) in test_array_lookup()
315 int i; in pre_test() local
317 for (i = 0; i < NR_TESTS; i++) { in pre_test()
318 if (pre_test_funcs[i] && check_test_flags(i)) { in pre_test()
319 int ret = pre_test_funcs[i](tasks); in pre_test()
332 int i; in loop() local
338 for (i = 0; i < NR_TESTS; i++) { in loop()
339 if (check_test_flags(i)) in loop()
340 test_funcs[i](cpu); in loop()
347 int i; in run_perf_test() local
351 for (i = 0; i < tasks; i++) { in run_perf_test()
352 pid[i] = fork(); in run_perf_test()
353 if (pid[i] == 0) { in run_perf_test()
354 loop(i); in run_perf_test()
356 } else if (pid[i] == -1) { in run_perf_test()
357 printf("couldn't spawn #%d process\n", i); in run_perf_test()
361 for (i = 0; i < tasks; i++) { in run_perf_test()
364 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_perf_test()
373 unsigned int i; in fill_lpm_trie() local
379 for (i = 0; i < 512; ++i) { in fill_lpm_trie()
404 int i; in fixup_map() local
410 for (i = 0; i < NR_TESTS; i++) { in fixup_map()
411 if (!strcmp(test_map_names[i], name) && in fixup_map()
412 (check_test_flags(i))) { in fixup_map()
431 int i = 0; in main() local
488 links[i] = bpf_program__attach(prog); in main()
489 if (libbpf_get_error(links[i])) { in main()
491 links[i] = NULL; in main()
494 i++; in main()
502 for (i--; i >= 0; i--) in main()
503 bpf_link__destroy(links[i]); in main()