Lines Matching refs:p

141 	struct test_params *p = arg;  in run_test()  local
156 p->slots, p->backing_src, in run_test()
157 p->partition_vcpu_memory_access); in run_test()
159 pr_info("Random seed: %u\n", p->random_seed); in run_test()
160 memstress_set_random_seed(vm, p->random_seed); in run_test()
161 memstress_set_write_percent(vm, p->write_percent); in run_test()
166 pages_per_slot = host_num_pages / p->slots; in run_test()
168 bitmaps = memstress_alloc_bitmaps(p->slots, pages_per_slot); in run_test()
209 memstress_enable_dirty_logging(vm, p->slots); in run_test()
214 memstress_set_write_percent(vm, p->write_percent); in run_test()
215 memstress_set_random_access(vm, p->random_access); in run_test()
217 while (iteration < p->iterations) { in run_test()
238 memstress_get_dirty_log(vm, bitmaps, p->slots); in run_test()
247 memstress_clear_dirty_log(vm, bitmaps, p->slots, in run_test()
267 memstress_disable_dirty_logging(vm, p->slots); in run_test()
280 avg = timespec_div(get_dirty_log_total, p->iterations); in run_test()
282 p->iterations, get_dirty_log_total.tv_sec, in run_test()
286 avg = timespec_div(clear_dirty_log_total, p->iterations); in run_test()
288 p->iterations, clear_dirty_log_total.tv_sec, in run_test()
292 memstress_free_bitmaps(bitmaps, p->slots); in run_test()
344 struct test_params p = { in main() local
364 p.random_access = true; in main()
383 p.iterations = atoi_positive("Number of iterations", optarg); in main()
392 p.partition_vcpu_memory_access = false; in main()
395 p.phys_offset = strtoull(optarg, NULL, 0); in main()
398 p.random_seed = atoi_positive("Random seed", optarg); in main()
401 p.backing_src = parse_backing_src_type(optarg); in main()
409 p.write_percent = atoi_non_negative("Write percentage", optarg); in main()
410 TEST_ASSERT(p.write_percent <= 100, in main()
414 p.slots = atoi_positive("Number of slots", optarg); in main()
428 TEST_ASSERT(p.iterations >= 2, "The test should have at least two iterations"); in main()
430 pr_info("Test iterations: %"PRIu64"\n", p.iterations); in main()
432 for_each_guest_mode(run_test, &p); in main()