Lines Matching refs:bounces
7 * This test allocates two virtual areas and bounces the physical
70 static int bounces;
116 "# Run anonymous memory test on 100MiB region with 99999 bounces:\n"
118 "# Run share memory test on 1GiB region with 99 bounces:\n"
120 "# Run hugetlb memory test on 256MiB region with 50 bounces (using /dev/hugepages/hugefile):\n"
124 "# 10MiB-~6GiB 999 bounces anonymous test, "
130 fprintf(stderr, "\nUsage: ./userfaultfd <test type> <MiB> <bounces> "
369 if (bounces & BOUNCE_RANDOM) {
370 seed = (unsigned int) time(NULL) - bounces;
371 if (!(bounces & BOUNCE_RACINGFAULTS))
380 page_nr = -bounces;
381 if (!(bounces & BOUNCE_RACINGFAULTS))
386 if (bounces & BOUNCE_RANDOM) {
405 if (bounces & BOUNCE_VERIFY) {
576 if (bounces & BOUNCE_VERIFY &&
723 if (bounces & BOUNCE_POLL) {
763 if (bounces & BOUNCE_POLL) {
1296 while (bounces--) {
1299 printf("bounces: %d, mode:", bounces);
1300 if (bounces & BOUNCE_RANDOM)
1302 if (bounces & BOUNCE_RACINGFAULTS)
1304 if (bounces & BOUNCE_VERIFY)
1306 if (bounces & BOUNCE_POLL)
1311 if (bounces & BOUNCE_POLL)
1396 if (bounces & BOUNCE_VERIFY) {
1405 bounces = 0;
1522 bounces = atoi(argv[3]);
1523 if (bounces <= 0) {
1524 fprintf(stderr, "invalid bounces\n");