Lines Matching refs:printf
39 printf("Usage: %s <test> <options>\n" in usage()
117 printf("size = %9zd failed\n", size); in malloc_test()
121 printf("size = %9zd, addr = %p (total = %9zd (%zd MB))\n", in malloc_test()
124 printf("filling...\n"); in malloc_test()
131 printf("done. allocated %zd MB\n", total / (1024*1024)); in malloc_test()
138 printf("Allocating %zd MB... ", size/(1024*1024)); fflush(stdout); in madvise_test()
140 printf("%p (%s)\n", addr1, addr1==(void*)-1 ? "failed" : "OK"); fflush(stdout); in madvise_test()
142 printf("touching %p...\n", addr1); fflush(stdout); in madvise_test()
145 printf("advising DONTNEED...\n"); fflush(stdout); in madvise_test()
148 printf("reading back %p...\n", addr1); fflush(stdout); in madvise_test()
150 printf("madvise freed some pages\n"); in madvise_test()
152 printf("pages are still there\n"); in madvise_test()
154 printf("getting garbage back\n"); in madvise_test()
157 printf("Allocating %zd MB... ", size/(1024*1024)); fflush(stdout); in madvise_test()
159 printf("%p (%s)\n", addr2, addr2==(void*)-1 ? "failed" : "OK"); fflush(stdout); in madvise_test()
161 printf("touching %p...\n", addr2); fflush(stdout); in madvise_test()
164 printf("unmap %p ...\n", addr2); fflush(stdout); in madvise_test()
167 printf("touching %p...\n", addr1); fflush(stdout); in madvise_test()
170 printf("unmap %p ...\n", addr1); fflush(stdout); in madvise_test()
174 printf("Done\n"); fflush(stdout); in madvise_test()
180 printf("corrupting our stack...\n"); in stack_smasher_test()