Home | History | Annotate | Download | only in memtest

Lines Matching full:printf

72     printf( "Usage: %s <test> <options>\n"
156 printf("memcpy() performance test is running, please wait...\n");
206 printf("%9s %9s %9s\n", "size", "MB/s", "MB/s (nc)");
208 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
211 printf("memcpy() validation test is running, please wait...\n");
229 if (nb) printf("%d error(s) found\n", nb);
230 else printf("success!\n");
244 printf("*** memcpy(%p,%p,%zd) destination != source\n",s,d,size);
249 printf("*** memcpy(%p,%p,%zd) clobbered past end of destination!\n",s,d,size);
254 printf("*** memcpy(%p,%p,%zd) clobbered before start of destination!\n",s,d,size);
281 printf("memset() performance test is running, please wait...\n");
322 printf("%9s %9s %9s\n", "size", "MB/s", "MB/s (cached)");
324 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
327 printf("memset() validation test is running, please wait...\n");
337 if (nb) printf("%d error(s) found\n", nb);
338 else printf("success!\n");
353 printf("*** memset(%p,%02x,%zd) clobbered past end of destination!\n",d,(int)c,size);
357 printf("*** memset(%p,%02x,%zd) clobbered before start of destination!\n",d,(int)c,size);
362 printf("*** memset(%p,%02x,%zd) failed at offset %zd\n",d,(int)c,size, i);
395 //printf("%d, %d\n", a, b);
397 printf("*** memcmp(%p,%p,%zd) failed %d should be %d\n",s,d,size,b,a);
419 printf("memcmp() performance test is running, please wait...\n");
454 //printf("size %d, memcmp -> %d\n", size, (int)c);
467 printf("%9s %9s %9s\n", "size", "MB/s", "MB/s (nc)");
469 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
472 printf("memcmp() validation test is running, please wait...\n");
502 if (nb) printf("%d error(s) found\n", nb);
503 else printf("success!\n");
531 printf("strlen() performance test is running, please wait...\n");
576 printf("%9s %9s %9s\n", "size", "MB/s", "MB/s (cached)");
578 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
601 printf("size = %9zd failed\n", size);
605 printf("size = %9zd, addr = %p (total = %9zd (%zd MB))\n",
608 printf("filling...\n");
615 printf("done. allocated %zd MB\n", total / (1024*1024));
628 printf("Allocating %zd MB... ", size/(1024*1024)); fflush(stdout);
630 printf("%p (%s)\n", addr1, addr1==(void*)-1 ? "failed" : "OK"); fflush(stdout);
632 printf("touching %p...\n", addr1); fflush(stdout);
635 printf("advising DONTNEED...\n"); fflush(stdout);
638 printf("reading back %p...\n", addr1); fflush(stdout);
640 printf("madvise freed some pages\n");
642 printf("pages are still there\n");
644 printf("getting garbage back\n");
647 printf("Allocating %zd MB... ", size/(1024*1024)); fflush(stdout);
649 printf("%p (%s)\n", addr2, addr2==(void*)-1 ? "failed" : "OK"); fflush(stdout);
651 printf("touching %p...\n", addr2); fflush(stdout);
654 printf("unmap %p ...\n", addr2); fflush(stdout);
657 printf("touching %p...\n", addr1); fflush(stdout);
660 printf("unmap %p ...\n", addr1); fflush(stdout);
664 printf("Done\n"); fflush(stdout);
677 printf("CLOCK_REALTIME resolution: %lu ns\n", res.tv_nsec);
679 printf("CLOCK_MONOTONIC resolution: %lu ns\n", res.tv_nsec);
681 printf("CLOCK_PROCESS_CPUTIME_ID resolution: %lu ns\n", res.tv_nsec);
683 printf("CLOCK_THREAD_CPUTIME_ID resolution: %lu ns\n", res.tv_nsec);
686 printf("CLOCK_REALTIME_HR resolution: %lu ns\n", res.tv_nsec);
688 printf("CLOCK_REALTIME_HR not supported\n");
691 printf("CLOCK_MONOTONIC_HR resolution: %lu ns\n", res.tv_nsec);
693 printf("CLOCK_MONOTONIC_HR not supported\n");
695 printf("\nEstimating the CPU frequency, please wait...\n");
709 printf("this CPU frequency: %ld MHz\n", long(freq+0.5f));
720 printf("about to crash...\n");
735 printf("corrupting our stack...\n");