Lines Matching refs:addr1
629 void* addr1 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test() local
630 printf("%p (%s)\n", addr1, addr1==(void*)-1 ? "failed" : "OK"); fflush(stdout); in madvise_test()
632 printf("touching %p...\n", addr1); fflush(stdout); in madvise_test()
633 memset(addr1, 0x55, size); in madvise_test()
636 madvise(addr1, size, MADV_DONTNEED); in madvise_test()
638 printf("reading back %p...\n", addr1); fflush(stdout); in madvise_test()
639 if (*(long*)addr1 == 0) { in madvise_test()
641 } else if (*(long*)addr1 == 0x55555555) { in madvise_test()
657 printf("touching %p...\n", addr1); fflush(stdout); in madvise_test()
658 memset(addr1, 0x55, size); in madvise_test()
660 printf("unmap %p ...\n", addr1); fflush(stdout); in madvise_test()
661 munmap(addr1, size); in madvise_test()