Searched refs:addr1 (Results 1 – 1 of 1) sorted by relevance
/system/extras/tests/memtest/ |
D | memtest.cpp | 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() [all …]
|