Lines Matching refs:bounces
7 * This test allocates two virtual areas and bounces the physical
45 static int bounces;
56 "# Run anonymous memory test on 100MiB region with 99999 bounces:\n"
58 "# Run share memory test on 1GiB region with 99 bounces:\n"
60 "# Run hugetlb memory test on 256MiB region with 50 bounces:\n"
64 "# 10MiB-~6GiB 999 bounces anonymous test, "
70 fprintf(stderr, "\nUsage: ./uffd-stress <test type> <MiB> <bounces>\n\n");
97 if (!(bounces & BOUNCE_RANDOM)) {
98 page_nr = -bounces;
99 if (!(bounces & BOUNCE_RACINGFAULTS))
104 if (bounces & BOUNCE_RANDOM) {
191 if (bounces & BOUNCE_POLL) {
227 if (bounces & BOUNCE_POLL) {
266 while (bounces--) {
267 printf("bounces: %d, mode:", bounces);
268 if (bounces & BOUNCE_RANDOM)
270 if (bounces & BOUNCE_RACINGFAULTS)
272 if (bounces & BOUNCE_VERIFY)
274 if (bounces & BOUNCE_POLL)
281 if (bounces & BOUNCE_POLL)
343 if (bounces & BOUNCE_VERIFY)
449 bounces = atoi(argv[3]);
450 if (bounces <= 0) {
451 _err("invalid bounces");