/external/ltp/testcases/kernel/controllers/memcg/functional/ |
memcg_move_charge_at_immigrate_test.sh | 37 test_move_charge "--mmap-anon" $PAGESIZE $PAGESIZE 0 0 0 $PAGESIZE 0 43 test_move_charge "--mmap-anon --shm --mmap-file" $PAGESIZE \ 44 $((PAGESIZE*3)) 1 $PAGESIZE 0 0 $((PAGESIZE*2)) 50 test_move_charge "--mmap-anon --shm --mmap-file" $PAGESIZE \ 51 $((PAGESIZE*3)) 2 0 $((PAGESIZE*2)) $PAGESIZE [all...] |
memcg_stat_rss.sh | 36 test_mem_stat "--mmap-anon" $PAGESIZE $PAGESIZE "rss" $PAGESIZE false 41 test_mem_stat "--mmap-file" $PAGESIZE $PAGESIZE "rss" 0 false 46 test_mem_stat "--shm -k 3" $PAGESIZE $PAGESIZE "rss" 0 false 52 $PAGESIZE $((PAGESIZE*3)) "rss" $PAGESIZE fals [all...] |
memcg_usage_in_bytes_test.sh | 37 test_mem_stat "--mmap-anon" $((PAGESIZE*1024)) $((PAGESIZE*1024)) \ 38 "memory.usage_in_bytes" $((PAGESIZE*1024)) false 49 echo $((PAGESIZE*2048)) > memory.limit_in_bytes 50 echo $((PAGESIZE*2048)) > memory.memsw.limit_in_bytes 51 test_mem_stat "--mmap-anon" $((PAGESIZE*1024)) $((PAGESIZE*1024)) \ 52 "memory.memsw.usage_in_bytes" $((PAGESIZE*1024)) false
|
memcg_subgroup_charge.sh | 36 test_subgroup $PAGESIZE $((2*PAGESIZE)) 41 test_subgroup $PAGESIZE $PAGESIZE 46 test_subgroup $PAGESIZE 0
|
memcg_stat_test.sh | 37 test_mem_stat "--shm -k 3" $PAGESIZE $PAGESIZE "cache" $PAGESIZE false 43 test_mem_stat "--mmap-file" $PAGESIZE $PAGESIZE \ 44 "mapped_file" $PAGESIZE false 50 test_mem_stat "--mmap-lock1" $PAGESIZE $PAGESIZE \ 51 "unevictable" $PAGESIZE false 57 test_mem_stat "--mmap-lock2" $PAGESIZE $PAGESIZE [all...] |
memcg_max_usage_in_bytes_test.sh | 37 test_max_usage_in_bytes "--mmap-anon" $((PAGESIZE*1024)) \ 38 "memory.max_usage_in_bytes" $((PAGESIZE*1024)) 0 49 echo $((PAGESIZE*2048)) > memory.limit_in_bytes 50 echo $((PAGESIZE*2048)) > memory.memsw.limit_in_bytes 51 test_max_usage_in_bytes "--mmap-anon" $((PAGESIZE*1024)) \ 52 "memory.memsw.max_usage_in_bytes" $((PAGESIZE*1024)) 0 58 test_max_usage_in_bytes "--mmap-anon" $((PAGESIZE*1024)) \ 59 "memory.max_usage_in_bytes" $((PAGESIZE*1024)) 1 70 echo $((PAGESIZE*2048)) > memory.limit_in_bytes 71 echo $((PAGESIZE*2048)) > memory.memsw.limit_in_byte [all...] |
memcg_failcnt.sh | 36 echo $PAGESIZE > memory.limit_in_bytes 37 malloc_free_memory "--mmap-anon" $(($PAGESIZE*2)) 43 echo $PAGESIZE > memory.limit_in_bytes 44 malloc_free_memory "--mmap-file" $(($PAGESIZE*2)) 50 echo $PAGESIZE > memory.limit_in_bytes 51 malloc_free_memory "--shm" $(($PAGESIZE*2))
|
memcg_limit_in_bytes.sh | 36 test_proc_kill $PAGESIZE "--mmap-lock1" $((PAGESIZE*2)) 0 41 test_proc_kill $PAGESIZE "--mmap-lock2" $((PAGESIZE*2)) 0 48 test_proc_kill $PAGESIZE "--mmap-anon" $((PAGESIZE*2)) 0 55 test_proc_kill $PAGESIZE "--mmap-file" $((PAGESIZE*2)) 0 62 test_proc_kill $PAGESIZE "--shm -k 18" $((PAGESIZE*2)) [all...] |
memcg_use_hierarchy_test.sh | 38 echo $PAGESIZE > memory.limit_in_bytes 42 test_proc_kill $((PAGESIZE*3)) "--mmap-lock1" $((PAGESIZE*2)) 0
|
memcg_memsw_limit_in_bytes_test.sh | 36 test_proc_kill $PAGESIZE "--mmap-lock1" $((PAGESIZE*2)) 1 41 test_proc_kill $PAGESIZE "--mmap-lock2" $((PAGESIZE*2)) 1 46 test_proc_kill 0 "--mmap-anon" $PAGESIZE 1 51 test_proc_kill 0 "--mmap-file" $PAGESIZE 1 56 test_proc_kill 0 "--shm -k 21" $PAGESIZE 1 61 test_limit_in_bytes $((PAGESIZE-1)) 1 66 test_limit_in_bytes $((PAGESIZE+1)) 1
|
memcg_force_empty.sh | 36 memcg_process --mmap-anon -s $PAGESIZE & 40 signal_memcg_process $pid $PAGESIZE
|
memcg_lib.sh | 32 PAGESIZE=$(getconf PAGESIZE) 34 tst_brkm TBROK "getconf PAGESIZE failed" 316 # Test limit_in_bytes will be aligned to PAGESIZE 336 if [ \( $(($PAGESIZE*($1/$PAGESIZE))) -eq $limit \) \ 337 -o \( $(($PAGESIZE*(($1+$PAGESIZE-1)/$PAGESIZE))) -eq $limit \) ]; then 407 tst_resm TINFO "Running memcg_process --mmap-anon -s $PAGESIZE" [all...] |
/toolchain/binutils/binutils-2.27/libiberty/ |
getpagesize.c | 41 # ifdef PAGESIZE 42 # define GNU_OUR_PAGESIZE PAGESIZE 43 # else /* no PAGESIZE */ 60 # endif /* PAGESIZE */
|
/external/ltp/testcases/kernel/syscalls/mprotect/ |
mprotect03.c | 51 #ifndef PAGESIZE 52 #define PAGESIZE 4096 85 * mmap the PAGESIZE bytes as read only.
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_mmap.py | 8 PAGESIZE = mmap.PAGESIZE
29 f.write('\0'* PAGESIZE)
31 f.write('\0'* (PAGESIZE-3) )
33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
39 self.assertEqual(m.find('foo'), PAGESIZE)
41 self.assertEqual(len(m), 2*PAGESIZE)
52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar'
57 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0') [all...] |
/external/python/cpython2/Lib/test/ |
test_mmap.py | 8 PAGESIZE = mmap.PAGESIZE 29 f.write('\0'* PAGESIZE) 31 f.write('\0'* (PAGESIZE-3) ) 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 39 self.assertEqual(m.find('foo'), PAGESIZE) 41 self.assertEqual(len(m), 2*PAGESIZE) 52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar' 57 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0' [all...] |
/external/python/cpython3/Lib/test/ |
test_mmap.py | 14 PAGESIZE = mmap.PAGESIZE 35 f.write(b'\0'* PAGESIZE) 37 f.write(b'\0'* (PAGESIZE-3) ) 39 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 46 self.assertEqual(m.find(b'foo'), PAGESIZE) 48 self.assertEqual(len(m), 2*PAGESIZE) 59 m[PAGESIZE +3: PAGESIZE +3+3] = b'bar' 64 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], b'\0foobar\0' [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_mmap.py | 8 PAGESIZE = mmap.PAGESIZE 29 f.write('\0'* PAGESIZE) 31 f.write('\0'* (PAGESIZE-3) ) 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 39 self.assertEqual(m.find('foo'), PAGESIZE) 41 self.assertEqual(len(m), 2*PAGESIZE) 52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar' 57 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0' [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_mmap.py | 8 PAGESIZE = mmap.PAGESIZE 29 f.write('\0'* PAGESIZE) 31 f.write('\0'* (PAGESIZE-3) ) 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 39 self.assertEqual(m.find('foo'), PAGESIZE) 41 self.assertEqual(len(m), 2*PAGESIZE) 52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar' 57 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0' [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_mmap.py | 8 PAGESIZE = mmap.PAGESIZE 29 f.write('\0'* PAGESIZE) 31 f.write('\0'* (PAGESIZE-3) ) 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 39 self.assertEqual(m.find('foo'), PAGESIZE) 41 self.assertEqual(len(m), 2*PAGESIZE) 52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar' 57 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_mmap.py | 8 PAGESIZE = mmap.PAGESIZE 29 f.write('\0'* PAGESIZE) 31 f.write('\0'* (PAGESIZE-3) ) 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 39 self.assertEqual(m.find('foo'), PAGESIZE) 41 self.assertEqual(len(m), 2*PAGESIZE) 52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar' 57 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0' [all...] |
/external/valgrind/none/tests/solaris/ |
mmap_noreserve.c | 18 void *addr = mmap(0, PAGESIZE, PROT_READ | PROT_WRITE, flags, -1, 0);
|
/external/ltp/testcases/commands/du/ |
du01.sh | 76 page_size=$(getconf PAGESIZE)
|
/external/ltp/testcases/kernel/controllers/memcg/control/ |
memcg_control_test.sh | 44 PAGE_SIZE=$(getconf PAGESIZE)
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/ |
UsbHcMem.c | 46 PageNumber = sizeof(USBHC_MEM_BLOCK)/PAGESIZE +1;
68 PageNumber = (Block->BitsLen)/PAGESIZE +1;
292 PageNumber = sizeof(USBHC_MEM_POOL)/PAGESIZE +1;
|