Lines Matching refs:threshold_mb
215 static long long remap_region(struct config c, unsigned int threshold_mb, in remap_region() argument
224 if (threshold_mb == VALIDATION_NO_THRESHOLD) in remap_region()
227 threshold = MIN(threshold_mb * _1MB, c.region_size); in remap_region()
307 unsigned int threshold_mb, in run_mremap_test_case() argument
310 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case()
326 if (threshold_mb == VALIDATION_NO_THRESHOLD || in run_mremap_test_case()
327 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case()
347 static int parse_args(int argc, char **argv, unsigned int *threshold_mb, in parse_args() argument
356 *threshold_mb = atoi(optarg); in parse_args()
381 unsigned int threshold_mb = VALIDATION_DEFAULT_THRESHOLD; in main() local
391 if (parse_args(argc, argv, &threshold_mb, &pattern_seed) < 0) in main()
395 threshold_mb, pattern_seed); in main()
451 run_perf_tests = (threshold_mb == VALIDATION_NO_THRESHOLD) || in main()
452 (threshold_mb * _1MB >= _1GB); in main()
458 run_mremap_test_case(test_cases[i], &failures, threshold_mb, in main()
468 threshold_mb, pattern_seed); in main()