/third_party/ltp/testcases/kernel/syscalls/madvise/ |
H A D | madvise03.c | 16 #define MAP_SIZE (8 * 1024) macro 24 memset(addr, 1, MAP_SIZE); in run() 26 TEST(madvise(addr, MAP_SIZE, MADV_DONTNEED)); in run() 29 addr, MAP_SIZE, MADV_DONTNEED); in run() 32 for (i = 0; i < MAP_SIZE; i++) { in run() 41 if (i == MAP_SIZE) { in run() 50 addr = SAFE_MMAP(NULL, MAP_SIZE, in setup() 59 SAFE_MUNMAP(addr, MAP_SIZE); in cleanup()
|
H A D | madvise10.c | 52 #define MAP_SIZE (16 * 1024) macro 54 static char pattern[MAP_SIZE]; 55 static char zero[MAP_SIZE]; 65 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 0, 69 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 1, 71 {MAP_SIZE, MADV_WIPEONFORK, MADV_KEEPONFORK, pattern, 0, 115 ptr = SAFE_MMAP(NULL, MAP_SIZE, in mem_map() 120 memcpy(ptr, pattern, MAP_SIZE); in mem_map() 157 SAFE_MUNMAP(addr, MAP_SIZE); in test_madvise() 164 for (i = 0; i < MAP_SIZE; in setup() [all...] |
H A D | madvise02.c | 46 #define MAP_SIZE (4 * 1024) macro 143 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup() 189 SAFE_MUNMAP(shared_anon, MAP_SIZE); in cleanup()
|
/third_party/skia/third_party/externals/d3d12allocator/tools/D3d12maDumpVis/ |
H A D | D3d12maDumpVis.py | 32 MAP_SIZE = 24
variable 80 iImgSizeY += len(lDedicatedAllocations) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE)
84 iImgSizeY += len(lDefaultPoolBlocks) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE)
90 iImgSizeY += len(lBlocks) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE)
125 draw.rectangle([IMG_MARGIN, y, IMG_MARGIN + iSizePixels, y + MAP_SIZE], fill=TypeToColor(tAlloc[0], tAlloc[2], tAlloc[3]), outline=COLOR_OUTLINE)
132 draw.rectangle([IMG_MARGIN, y, IMG_MARGIN + iSizePixels, y + MAP_SIZE], fill=TypeToColor('FREE', 0, 0), outline=None)
144 draw.rectangle([IMG_MARGIN + iX, y, IMG_MARGIN + iXEnd, y + MAP_SIZE], fill=TypeToColor(sType, iFlags, iLayout), outline=COLOR_OUTLINE)
147 draw.line([IMG_MARGIN + iX, y, IMG_MARGIN + iX, y + MAP_SIZE], fill=COLOR_OUTLINE_HARD)
149 draw.line([IMG_MARGIN + iX, y, IMG_MARGIN + iX, y + MAP_SIZE], fill=COLOR_OUTLINE_HARD)
243 y += MAP_SIZE [all...] |
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_pt_vsplit.c | 34 #define MAP_SIZE 256 macro 57 unsigned fetches[MAP_SIZE]; 58 ushort draws[MAP_SIZE]; 94 hash = fetch % MAP_SIZE; in vsplit_add_cache() 133 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_ubyte() 151 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_ushort() 176 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_uint()
|
/third_party/ltp/testcases/kernel/mem/tunable/ |
H A D | min_free_kbytes.c | 40 #define MAP_SIZE (1UL<<20) macro 168 addrs = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in eatup_mem() 177 memset(addrs, 1, MAP_SIZE); in eatup_mem()
|
/third_party/glfw/examples/ |
H A D | heightmap.c | 45 #define MAP_SIZE (10.0f) macro 212 GLfloat step = MAP_SIZE / (MAP_NUM_VERTICES - 1); in init_map() 296 *center_x = (MAP_SIZE * rand()) / (float) RAND_MAX; in generate_heightmap__circle() 297 *center_y = (MAP_SIZE * rand()) / (float) RAND_MAX; in generate_heightmap__circle()
|