Lines Matching refs:addr
26 void *addr; in find_base_addr() local
30 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr()
31 if (addr == MAP_FAILED) { in find_base_addr()
36 if (munmap(addr, size) != 0) { in find_base_addr()
40 return (unsigned long)addr; in find_base_addr()
46 unsigned long flags, addr, size, page_size; in main() local
63 addr = base_addr; in main()
65 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
67 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
76 if (munmap((void *)addr, 5 * page_size) != 0) { in main()
84 addr = base_addr + page_size; in main()
86 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
87 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
104 addr = base_addr; in main()
106 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
107 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
125 addr = base_addr + (2 * page_size); in main()
127 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
128 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
145 addr = base_addr + (3 * page_size); in main()
147 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
148 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
165 addr = base_addr; in main()
167 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
168 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
185 addr = base_addr; in main()
187 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
188 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
205 addr = base_addr + (4 * page_size); in main()
207 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
208 printf("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p); in main()
216 addr = base_addr; in main()
218 if (munmap((void *)addr, size) != 0) { in main()