/external/autotest/client/tests/memory_api/ |
mremaps.c | 12 #define ROUND_PAGES(memsize) ((memsize >> (PAGE_SHIFT)) << PAGE_SHIFT) 15 unsigned int memsize; local 24 memsize = strtoul(argv[1], NULL, 10); 26 memsize = ROUND_PAGES(memsize); 29 if (memsize == 0) { 30 printf("Invalid memsize\n"); 34 numpages = memsize >> PAGE_SHIFT; 36 mem = mmap(0, memsize, PROT_READ | PROT_WRITE [all...] |
memory_api.c | 15 #define ROUND_PAGES(memsize) ((memsize >> (PAGE_SHIFT)) << PAGE_SHIFT) 17 /* approximately half of memsize, page aligned */ 18 #define HALF_MEM(memsize) ((memsize >> (PAGE_SHIFT))<<(PAGE_SHIFT - 1)) 26 unsigned int memsize; local 35 memsize = strtoul(argv[1], NULL, 10); 37 memsize = ROUND_PAGES(memsize); 40 if (memsize == 0) [all...] |
/external/ltp/testcases/kernel/syscalls/mremap/ |
mremap02.c | 87 int memsize; /* memory mapped size */ variable 107 * memory region (memsize) by newsize limits using 112 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); 158 if ((memsize = getpagesize()) < 0) { 164 newsize = (memsize * 2); 167 addr = (char *)(addr + (memsize - 1));
|
mremap01.c | 91 int memsize; /* memory mapped size */ variable 110 * memory region (memsize) by newsize limits. 112 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); 153 * memory (memsize) into memory. 170 memsize = (1000 * pagesz); 173 newsize = (memsize * 2); 183 if (lseek(fildes, (off_t) memsize, SEEK_SET) != (off_t) memsize) { 185 "lseeking to %d offset pos. failed", memsize); 194 * Call mmap to map virtual memory (memsize bytes) from th [all...] |
mremap03.c | 88 int memsize; /* memory mapped size */ variable 109 * memory region (memsize) by newsize limits 114 addr = mremap(addr, memsize, newsize, MREMAP_MAYMOVE); 167 memsize = (1000 * page_sz); 170 newsize = (memsize * 2);
|
mremap04.c | 97 int memsize; /* memory mapped size */ variable 125 addr = mremap(shmaddr, memsize, newsize, 0); 180 if ((memsize = getpagesize()) < 0) { 186 newsize = (memsize * 2);
|
/external/v8/src/base/ |
sys-info.cc | 58 int64_t memsize = 0; local 59 size_t len = sizeof(memsize); 60 if (sysctl(mib, arraysize(mib), &memsize, &len, NULL, 0) != 0) { 63 return memsize;
|
/external/ltp/testcases/kernel/controllers/memcg/stress/ |
memcg_process_stress.c | 35 unsigned long memsize; variable 55 nr_page = ceil((double)memsize / pagesize); 85 memsize = strtoul(argv[1], &end, 10); 87 errx(1, "wrong memsize"); 88 memsize = memsize * 1024 * 1024;
|
/external/syslinux/com32/hdt/ |
hdt-cli-memory.c | 38 unsigned long memsize = 0; local 43 memsize = memsize_e820(map, count); 46 (memsize + (1 << 9)) >> 10, memsize);
|
hdt-dump-memory.c | 76 unsigned long memsize = 0; local 81 memsize = memsize_e820(map, count); 85 add_i("memory.total.size (KiB)", memsize); 86 add_i("memory.total.size (MiB)", (memsize + (1 << 9)) >> 10);
|
/bionic/libc/kernel/uapi/rdma/ |
cxgb3-abi.h | 35 __u32 memsize; member in struct:iwch_create_cq_resp
|
cxgb4-abi.h | 26 __u64 memsize; member in struct:c4iw_create_cq_resp
|
/external/fio/crc/ |
xxhash.h | 76 int memsize; member in struct:XXH_state32_t
|
/external/kernel-headers/original/uapi/rdma/ |
cxgb3-abi.h | 60 __u32 memsize; member in struct:iwch_create_cq_resp
|
cxgb4-abi.h | 49 __u64 memsize; member in struct:c4iw_create_cq_resp
|
/external/ltp/testcases/kernel/controllers/memcg/control/ |
mem_process.c | 45 unsigned long memsize; variable 59 memsize = strtoul(optarg, &end, 10); 68 if (memsize <= 0) 80 for (i = 0; i < memsize; i += pagesize) 89 if (munmap(p, memsize) == -1) 92 p = mmap(NULL, memsize, PROT_READ | PROT_WRITE,
|
/external/ltp/testcases/kernel/mem/mem/ |
mem02.c | 51 #define MEMSIZE 8192*8192 60 fprintf(stderr, "usage: %s -m memsize\n", progname); 75 int memsize = MEMSIZE; /* Size of memory to allocate */ local 87 memsize = atoi(optarg) * 1024 * 1024; 99 if ((pm2 = pm1 = calloc(memsize, 1)) == NULL) { 102 memsize / 1024 / 1024); 105 for (i = 0; i < memsize; i++) 112 for (i = 0; i < memsize; i++) 115 for (i = 0; i < memsize; i++ [all...] |
mem01.c | 57 static int m_opt = 0; /* memsize */ 150 size_t memsize = 0; /* at first in MB, limited to 4Gb on 32 bits */ local 163 memsize = (size_t) atoi(m_copt) * 1024 * 1024; 165 if (memsize < 1) { 182 memsize = get_memsize(); 183 if (memsize < 1) { 190 bigmalloc = p = malloc(memsize); 194 memsize / 1024 / 1024); 203 memsize / 1024 / 1024, r_opt ? "random" : "linear"); 205 loop_count = memsize / pagesize [all...] |
/external/ltp/testcases/kernel/syscalls/mmap/ |
mmap001.c | 86 unsigned int pages, memsize; local 91 memsize = pages = atoi(m_copt); 93 if (memsize < 1) { 98 memsize *= getpagesize(); /* N PAGES */ 104 memsize = pages = 1000; 105 memsize *= getpagesize(); 109 memsize); 121 if (lseek(fd, memsize, SEEK_SET) != memsize) { 134 array = mmap(0, memsize, PROT_WRITE, MAP_SHARED, fd, 0) [all...] |
/bionic/libc/kernel/uapi/linux/ |
cycx_cfm.h | 40 unsigned long memsize; member in struct:cycx_fw_info
|
/development/ndk/platforms/android-21/include/linux/ |
cycx_cfm.h | 45 unsigned long memsize; member in struct:cycx_fw_info
|
/external/kernel-headers/original/uapi/linux/ |
cycx_cfm.h | 53 * @memsize - minimum memory size 66 unsigned long memsize; member in struct:cycx_fw_info
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
cycx_cfm.h | 53 * @memsize - minimum memory size 66 unsigned long memsize; member in struct:cycx_fw_info
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
cycx_cfm.h | 53 * @memsize - minimum memory size 66 unsigned long memsize; member in struct:cycx_fw_info
|
/prebuilts/ndk/r10/platforms/android-21/arch-arm/usr/include/linux/ |
cycx_cfm.h | 45 unsigned long memsize; member in struct:cycx_fw_info
|