Lines Matching refs:threshold_mb
384 static long long remap_region(struct config c, unsigned int threshold_mb, in remap_region() argument
394 if (threshold_mb == VALIDATION_NO_THRESHOLD) in remap_region()
397 threshold = MIN(threshold_mb * _1MB, c.region_size); in remap_region()
638 unsigned int threshold_mb, in run_mremap_test_case() argument
641 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case()
657 if (threshold_mb == VALIDATION_NO_THRESHOLD || in run_mremap_test_case()
658 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case()
678 static int parse_args(int argc, char **argv, unsigned int *threshold_mb, in parse_args() argument
687 *threshold_mb = atoi(optarg); in parse_args()
712 unsigned int threshold_mb = VALIDATION_DEFAULT_THRESHOLD; in main() local
732 if (parse_args(argc, argv, &threshold_mb, &pattern_seed) < 0) in main()
736 threshold_mb, pattern_seed); in main()
742 if (!threshold_mb) in main()
746 rand_size = MAX(MIN(threshold_mb * _1MB, in main()
826 run_perf_tests = (threshold_mb == VALIDATION_NO_THRESHOLD) || in main()
827 (threshold_mb * _1MB >= _1GB); in main()
833 run_mremap_test_case(test_cases[i], &failures, threshold_mb, in main()
856 threshold_mb, pattern_seed, in main()