/third_party/musl/src/thread/ |
D | pthread_getattr_np.c | 16 size_t l = PAGE_SIZE; in pthread_getattr_np() 17 p += -(uintptr_t)p & PAGE_SIZE-1; in pthread_getattr_np() 19 while (mremap(p-l-PAGE_SIZE, PAGE_SIZE, 2*PAGE_SIZE, 0)==MAP_FAILED && errno==ENOMEM) in pthread_getattr_np() 20 l += PAGE_SIZE; in pthread_getattr_np()
|
/third_party/libunwind/tests/ |
D | Ltest-mem-validate.c | 46 #define PAGE_SIZE 4096 macro 55 mprotect((void*)((uintptr_t)stack_start & ~(PAGE_SIZE - 1)), in do_backtrace() 56 PAGE_SIZE, PROT_NONE); in do_backtrace() 90 mprotect((void*)((uintptr_t)stack_start & ~(PAGE_SIZE - 1)), in do_backtrace() 91 PAGE_SIZE, PROT_READ|PROT_WRITE); in do_backtrace() 122 char string[PAGE_SIZE]; in main()
|
/third_party/musl/porting/liteos_a/user_debug/src/malloc/ |
D | malloc.c | 181 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 304 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc() 307 len += PAGE_SIZE << 1; in malloc() 313 if (mprotect(base, PAGE_SIZE, PROT_NONE) || in malloc() 314 mprotect(base + len - PAGE_SIZE, PAGE_SIZE, PROT_NONE)) { in malloc() 317 base += PAGE_SIZE; in malloc() 323 c->csize -= PAGE_SIZE << 1; in malloc() 396 if (n >= PAGE_SIZE) in calloc() 397 n = mal0_clear(p, PAGE_SIZE, n); in calloc() 429 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc() [all …]
|
/third_party/ltp/testcases/commands/mkswap/ |
D | mkswap01.sh | 20 PAGE_SIZE=`tst_getconf PAGESIZE` 25 DEVICE_SIZE=$((($real_size/$PAGE_SIZE * $PAGE_SIZE)/1024)) 52 local pagesize=$PAGE_SIZE 66 if [ $pagesize -ne $PAGE_SIZE ]; then
|
/third_party/glib/tests/ |
D | slice-threadinit.c | 25 #define PAGE_SIZE (128) /* must be <= minimum GSlice alignment bloc… macro 55 guint i, j, n_trials = N_PAGES * PAGE_SIZE / SAMPLE_SIZE; /* upper bound */ in allocate_from_known_page() 59 void *p = (void*) (PAGE_SIZE * ((gsize) b / PAGE_SIZE)); in allocate_from_known_page() 85 void *p = (void*) (PAGE_SIZE * ((gsize) b / PAGE_SIZE)); in main()
|
/third_party/musl/libc-test/src/common/ |
D | vmfill.c | 7 #ifndef PAGE_SIZE 8 #define PAGE_SIZE sysconf(_SC_PAGE_SIZE) macro 20 for (i=n=*start; i>=PAGE_SIZE; i/=2) { in mmax() 30 return n & -PAGE_SIZE; in mmax()
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/asm/ |
D | page.h | 40 #ifndef PAGE_SIZE 41 #define PAGE_SIZE (0x1000U) macro 43 #define PAGE_MASK (~(PAGE_SIZE - 1))
|
/third_party/musl/src/malloc/ |
D | expand_heap.c | 47 if (n > SIZE_MAX/2 - PAGE_SIZE) { in __expand_heap() 51 n += -n & PAGE_SIZE-1; in __expand_heap() 55 brk += -brk & PAGE_SIZE-1; in __expand_heap() 65 size_t min = (size_t)PAGE_SIZE << mmap_step/2; in __expand_heap()
|
D | malloc.c | 175 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 292 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc() 366 if (n >= PAGE_SIZE) in calloc() 367 n = mal0_clear(p, PAGE_SIZE, n); in calloc() 392 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc() 396 newlen = (newlen + PAGE_SIZE-1) & -PAGE_SIZE; in realloc() 499 uintptr_t a = (uintptr_t)self + SIZE_ALIGN+PAGE_SIZE-1 & -PAGE_SIZE; in __bin_chunk() 500 uintptr_t b = (uintptr_t)next - SIZE_ALIGN & -PAGE_SIZE; in __bin_chunk()
|
/third_party/ltp/testcases/kernel/io/direct_io/ |
D | dma_thread_diotest.c | 117 #define PAGE_SIZE getpagesize() macro 119 #define MAX_WORKERS (READSIZE/PAGE_SIZE) 271 worker[j].offset = offset + j * PAGE_SIZE; in dma_thread_diotest_verify() 273 buffer + align + j * PAGE_SIZE; in dma_thread_diotest_verify() 274 worker[j].length = PAGE_SIZE; in dma_thread_diotest_verify() 278 READSIZE - PAGE_SIZE * (workers - 1); in dma_thread_diotest_verify() 350 if (align < 0 || align > PAGE_SIZE) in setup() 422 if (posix_memalign((void **)&buffer, PAGE_SIZE, READSIZE + align) != 0) in setup()
|
/third_party/musl/src/mman/ |
D | mprotect.c | 8 start = (size_t)addr & -PAGE_SIZE; in __mprotect() 9 end = (size_t)((char *)addr + len + PAGE_SIZE-1) & -PAGE_SIZE; in __mprotect()
|
/third_party/libunwind/src/s390x/ |
D | Ginit.c | 96 #define PAGE_SIZE 4096 macro 97 #define PAGE_START(a) ((a) & ~(PAGE_SIZE-1)) 166 for (i = 0; i < (len + PAGE_SIZE - 1) / PAGE_SIZE; i++) in mincore_validate() 189 while ((ret = mincore ((void*)addr, PAGE_SIZE, mvec)) == -1 && in tdep_init_mem_validate() 216 len = PAGE_SIZE; in validate_mem() 218 len = PAGE_SIZE * 2; in validate_mem()
|
/third_party/elfio/examples/writer/ |
D | writer.cpp | 42 const Elf_Xword PAGE_SIZE = 0x1000; variable 43 const Elf64_Addr DATA_ADDR = CODE_ADDR + PAGE_SIZE; 83 text_seg->set_align( PAGE_SIZE ); in main() 107 data_seg->set_align( PAGE_SIZE ); in main()
|
/third_party/ltp/testcases/kernel/controllers/memcg/control/ |
D | memcg_control_test.sh | 44 PAGE_SIZE=$(tst_getconf PAGESIZE) 46 TOT_MEM_LIMIT=$PAGE_SIZE 47 ACTIVE_MEM_LIMIT=$PAGE_SIZE 48 PROC_MEM=$((PAGE_SIZE * 2))
|
/third_party/musl/porting/liteos_a/user/src/malloc/ |
D | malloc.c | 175 if (*n-1 > PTRDIFF_MAX - SIZE_ALIGN - PAGE_SIZE) { in adjust_size() 292 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc() 363 if (n >= PAGE_SIZE) in calloc() 364 n = mal0_clear(p, PAGE_SIZE, n); in calloc() 389 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc() 393 newlen = (newlen + PAGE_SIZE-1) & -PAGE_SIZE; in realloc() 496 uintptr_t a = (uintptr_t)self + SIZE_ALIGN+PAGE_SIZE-1 & -PAGE_SIZE; in __bin_chunk() 497 uintptr_t b = (uintptr_t)next - SIZE_ALIGN & -PAGE_SIZE; in __bin_chunk()
|
/third_party/musl/porting/liteos_a/kernel/include/ |
D | limits.h | 10 #ifndef PAGE_SIZE 11 #define PAGE_SIZE 4096 macro 14 #define PAGESIZE PAGE_SIZE
|
/third_party/libunwind/src/x86/ |
D | Ginit.c | 77 #define PAGE_SIZE 4096 macro 78 #define PAGE_START(a) ((a) & ~(PAGE_SIZE-1)) 95 len = PAGE_SIZE; in validate_mem() 97 len = PAGE_SIZE * 2; in validate_mem()
|
/third_party/libunwind/src/arm/ |
D | Ginit.c | 74 #define PAGE_SIZE 4096 macro 75 #define PAGE_START(a) ((a) & ~(PAGE_SIZE-1)) 89 len = PAGE_SIZE; in validate_mem() 91 len = PAGE_SIZE * 2; in validate_mem()
|
/third_party/libunwind/src/riscv/ |
D | Ginit.c | 100 #define PAGE_SIZE 4096 macro 101 #define PAGE_START(a) ((a) & ~(PAGE_SIZE-1)) 216 while ((ret = mincore ((void*)addr, PAGE_SIZE, (unsigned char *)mvec)) == -1 && in tdep_init_mem_validate() 312 len = PAGE_SIZE; in validate_mem() 314 len = PAGE_SIZE * 2; in validate_mem()
|
/third_party/libunwind/src/x86_64/ |
D | Ginit.c | 76 #define PAGE_SIZE 4096 macro 77 #define PAGE_START(a) ((a) & ~(PAGE_SIZE-1)) 197 while ((ret = mincore ((void*)addr, PAGE_SIZE, (unsigned char *)mvec)) == -1 && in tdep_init_mem_validate() 293 len = PAGE_SIZE; in validate_mem() 295 len = PAGE_SIZE * 2; in validate_mem()
|
/third_party/musl/porting/liteos_a/user/ldso/ |
D | dynlink.c | 174 size_t pgsz = PAGE_SIZE; in laddr_pg() 554 reclaim(dso, ph->p_vaddr & -PAGE_SIZE, ph->p_vaddr); in reclaim_gaps() 556 ph->p_vaddr+ph->p_memsz+PAGE_SIZE-1 & -PAGE_SIZE); in reclaim_gaps() 651 dso->relro_start = ph->p_vaddr & -PAGE_SIZE; in map_library() 652 dso->relro_end = (ph->p_vaddr + ph->p_memsz) & -PAGE_SIZE; in map_library() 684 map = mmap(0, ph->p_memsz + (ph->p_vaddr & PAGE_SIZE-1), in map_library() 686 fd, ph->p_offset & -PAGE_SIZE); in map_library() 692 (ph->p_vaddr & PAGE_SIZE-1); in map_library() 697 size_t brk = (ph->p_vaddr & PAGE_SIZE-1) in map_library() 699 size_t pgbrk = brk + PAGE_SIZE-1 & -PAGE_SIZE; in map_library() [all …]
|
/third_party/musl/porting/liteos_a/user_debug/ldso/ |
D | dynlink.c | 174 size_t pgsz = PAGE_SIZE; in laddr_pg() 554 reclaim(dso, ph->p_vaddr & -PAGE_SIZE, ph->p_vaddr); in reclaim_gaps() 556 ph->p_vaddr+ph->p_memsz+PAGE_SIZE-1 & -PAGE_SIZE); in reclaim_gaps() 651 dso->relro_start = ph->p_vaddr & -PAGE_SIZE; in map_library() 652 dso->relro_end = (ph->p_vaddr + ph->p_memsz) & -PAGE_SIZE; in map_library() 684 map = mmap(0, ph->p_memsz + (ph->p_vaddr & PAGE_SIZE-1), in map_library() 686 fd, ph->p_offset & -PAGE_SIZE); in map_library() 692 (ph->p_vaddr & PAGE_SIZE-1); in map_library() 697 size_t brk = (ph->p_vaddr & PAGE_SIZE-1) in map_library() 699 size_t pgbrk = brk + PAGE_SIZE-1 & -PAGE_SIZE; in map_library() [all …]
|
/third_party/libunwind/src/dwarf/ |
D | Gfind_unwind_table.c | 38 #ifndef PAGE_SIZE 39 #define PAGE_SIZE 4096 macro 78 if (path == NULL || strlen(path) > PAGE_SIZE || max_load_addr < min_load_addr) { in dwarf_find_unwind_table() 127 if ((phdr[i].p_offset & (-PAGE_SIZE)) == mapoff) in dwarf_find_unwind_table() 196 load_base = segbase - (ptxt->p_vaddr & (-PAGE_SIZE)); in dwarf_find_unwind_table()
|
/third_party/libunwind/src/aarch64/ |
D | Ginit.c | 91 #define PAGE_SIZE 4096 macro 92 #define PAGE_START(a) ((a) & ~(PAGE_SIZE-1)) 207 while ((ret = mincore ((void*)addr, PAGE_SIZE, (unsigned char *)mvec)) == -1 && in tdep_init_mem_validate() 303 len = PAGE_SIZE; in validate_mem() 305 len = PAGE_SIZE * 2; in validate_mem()
|
/third_party/musl/src/internal/ |
D | libc.h | 32 #ifndef PAGE_SIZE 33 #define PAGE_SIZE libc.page_size macro
|