Lines Matching defs:low
26 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high)
53 *low = start;
74 unsigned long low, high, size;
85 assert(search_proc_maps("[vdso]", &low, &high) == 0);
86 size = high - low + 1;
87 printf("VDSO is at 0x%lx-0x%lx (%lu bytes)\n", low, high, size);
96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED);
97 assert(search_proc_maps("[vdso]", &low, &high) == 0);
98 size = high - low + 1;
99 printf("VDSO moved to 0x%lx-0x%lx (%lu bytes)\n", low, high, size);
105 assert(munmap((void *)low, size) == 0);
109 assert(search_proc_maps("[vdso]", &low, &high) != 0);
112 assert(search_proc_maps("[stack]", &low, &high) == 0);
113 size = high - low + 1;
114 mprotect((void *)low, size, PROT_READ|PROT_WRITE|PROT_EXEC);