Lines Matching refs:i

60 	uint64_t i, offset;  in test_hash_readwrite_worker()  local
67 for (i = 0; i < rte_lcore_count(); i++) { in test_hash_readwrite_worker()
68 if (worker_core_ids[i] == lcore_id) in test_hash_readwrite_worker()
71 offset = tbl_rw_test_param.num_insert * i; in test_hash_readwrite_worker()
79 for (i = offset; i < offset + tbl_rw_test_param.num_insert; i++) { in test_hash_readwrite_worker()
82 tbl_rw_test_param.keys + i) > 0) in test_hash_readwrite_worker()
85 ret[i - offset] = rte_hash_add_key(tbl_rw_test_param.h, in test_hash_readwrite_worker()
86 tbl_rw_test_param.keys + i); in test_hash_readwrite_worker()
87 if (ret[i - offset] < 0) in test_hash_readwrite_worker()
91 uint32_t rand = rte_rand() % (i + 1 - offset); in test_hash_readwrite_worker()
114 __atomic_fetch_add(&ginsertions, i - offset, __ATOMIC_RELAXED); in test_hash_readwrite_worker()
116 for (; i < offset + tbl_rw_test_param.num_insert; i++) in test_hash_readwrite_worker()
117 tbl_rw_test_param.keys[i] = RTE_RWTEST_FAIL; in test_hash_readwrite_worker()
126 unsigned int i; in init_params() local
186 for (i = 0; i < TOTAL_ENTRY; i++) in init_params()
187 keys[i] = i; in init_params()
201 unsigned int i; in test_hash_readwrite_functional() local
241 i = *(const uint32_t *)next_key; in test_hash_readwrite_functional()
242 tbl_rw_test_param.found[i]++; in test_hash_readwrite_functional()
245 for (i = 0; i < tbl_rw_test_param.rounded_tot_insert; i++) { in test_hash_readwrite_functional()
246 if (tbl_rw_test_param.keys[i] != RTE_RWTEST_FAIL) { in test_hash_readwrite_functional()
247 if (tbl_rw_test_param.found[i] > 1) { in test_hash_readwrite_functional()
251 if (tbl_rw_test_param.found[i] == 0) { in test_hash_readwrite_functional()
253 printf("key %d is lost\n", i); in test_hash_readwrite_functional()
294 uint64_t i; in test_rw_reader() local
299 for (i = 0; i < read_cnt; i++) { in test_rw_reader()
302 tbl_rw_test_param.keys + i, in test_rw_reader()
304 if (i != (uint64_t)(uintptr_t)data) { in test_rw_reader()
306 "%"PRIu64"\n", i, in test_rw_reader()
314 __atomic_fetch_add(&greads, i, __ATOMIC_RELAXED); in test_rw_reader()
321 uint64_t i; in test_rw_writer() local
328 for (i = 0; i < rte_lcore_count(); i++) { in test_rw_writer()
329 if (worker_core_ids[i] == lcore_id) in test_rw_writer()
333 offset = TOTAL_INSERT / 2 + (i - (start_coreid)) * in test_rw_writer()
336 for (i = offset; i < offset + tbl_rw_test_param.num_insert; i++) { in test_rw_writer()
338 tbl_rw_test_param.keys + i, in test_rw_writer()
339 (void *)((uintptr_t)i)); in test_rw_writer()
341 printf("writer failed %"PRIu64"\n", i); in test_rw_writer()
360 uint64_t i, read_cnt; in test_hash_readwrite_perf() local
399 for (i = 0; i < TOTAL_INSERT / 2; i++) { in test_hash_readwrite_perf()
401 tbl_rw_test_param.keys + i, in test_hash_readwrite_perf()
402 (void *)((uintptr_t)i)); in test_hash_readwrite_perf()
409 perf_results->single_write = end / i; in test_hash_readwrite_perf()
413 for (i = 0; i < read_cnt; i++) { in test_hash_readwrite_perf()
416 tbl_rw_test_param.keys + i, in test_hash_readwrite_perf()
418 if (i != (uint64_t)(uintptr_t)data) { in test_hash_readwrite_perf()
420 " %"PRIu64",%"PRIu64"\n", i, in test_hash_readwrite_perf()
426 perf_results->single_read = end / i; in test_hash_readwrite_perf()
445 for (i = 0; i < TOTAL_INSERT / 2; i++) { in test_hash_readwrite_perf()
447 tbl_rw_test_param.keys + i, in test_hash_readwrite_perf()
448 (void *)((uintptr_t)i)); in test_hash_readwrite_perf()
460 for (i = 0; i < core_cnt[n]; i++) in test_hash_readwrite_perf()
463 worker_core_ids[i]); in test_hash_readwrite_perf()
467 start_coreid = i; in test_hash_readwrite_perf()
469 for (; i < core_cnt[n] * 2; i++) in test_hash_readwrite_perf()
472 worker_core_ids[i]); in test_hash_readwrite_perf()
501 for (i = 0; i < TOTAL_INSERT / 2; i++) { in test_hash_readwrite_perf()
503 tbl_rw_test_param.keys + i, in test_hash_readwrite_perf()
504 (void *)((uintptr_t)i)); in test_hash_readwrite_perf()
514 for (i = core_cnt[n]; i < core_cnt[n] * 2; i++) in test_hash_readwrite_perf()
517 worker_core_ids[i]); in test_hash_readwrite_perf()
518 for (i = 0; i < core_cnt[n]; i++) in test_hash_readwrite_perf()
521 worker_core_ids[i]); in test_hash_readwrite_perf()
523 for (i = 0; i < core_cnt[n]; i++) in test_hash_readwrite_perf()
526 worker_core_ids[i]); in test_hash_readwrite_perf()
527 for (; i < core_cnt[n] * 2; i++) in test_hash_readwrite_perf()
530 worker_core_ids[i]); in test_hash_readwrite_perf()
540 i = *(const uint32_t *)next_key; in test_hash_readwrite_perf()
541 tbl_rw_test_param.found[i]++; in test_hash_readwrite_perf()
544 for (i = 0; i < tbl_rw_test_param.rounded_tot_insert; i++) { in test_hash_readwrite_perf()
545 if (tbl_rw_test_param.keys[i] != RTE_RWTEST_FAIL) { in test_hash_readwrite_perf()
546 if (tbl_rw_test_param.found[i] > 1) { in test_hash_readwrite_perf()
550 if (tbl_rw_test_param.found[i] == 0) { in test_hash_readwrite_perf()
552 printf("key %"PRIu64" is lost\n", i); in test_hash_readwrite_perf()
615 unsigned int i = 0, core_id = 0; in test_hash_rw_perf_main() local
623 worker_core_ids[i] = core_id; in test_hash_rw_perf_main()
624 i++; in test_hash_rw_perf_main()
673 for (i = 0; i < NUM_TEST; i++) { in test_hash_rw_perf_main()
674 printf("+++ core_cnt: %u +++\n", core_cnt[i]); in test_hash_rw_perf_main()
676 printf(" read only: %u\n", htm_results.read_only[i]); in test_hash_rw_perf_main()
677 printf(" write only: %u\n", htm_results.write_only[i]); in test_hash_rw_perf_main()
678 printf(" read-write read: %u\n", htm_results.read_write_r[i]); in test_hash_rw_perf_main()
679 printf(" read-write write: %u\n", htm_results.read_write_w[i]); in test_hash_rw_perf_main()
682 printf(" read only: %u\n", non_htm_results.read_only[i]); in test_hash_rw_perf_main()
683 printf(" write only: %u\n", non_htm_results.write_only[i]); in test_hash_rw_perf_main()
685 non_htm_results.read_write_r[i]); in test_hash_rw_perf_main()
687 non_htm_results.read_write_w[i]); in test_hash_rw_perf_main()
703 unsigned int i = 0, core_id = 0; in test_hash_rw_func_main() local
711 worker_core_ids[i] = core_id; in test_hash_rw_func_main()
712 i++; in test_hash_rw_func_main()