HomeSort by relevance Sort by last modified time
    Searched full:pagesize (Results 1 - 25 of 834) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/ltp/testcases/kernel/controllers/memcg/functional/
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_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_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_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_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_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_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_subgroup_charge.sh 36 test_subgroup $PAGESIZE $((2*PAGESIZE))
41 test_subgroup $PAGESIZE $PAGESIZE
46 test_subgroup $PAGESIZE 0
  /prebuilts/go/darwin-x86/src/bytes/
equal_test.go 26 pagesize := syscall.Getpagesize()
27 b := make([]byte, 4*pagesize)
28 i := pagesize
29 for ; uintptr(unsafe.Pointer(&b[i]))%uintptr(pagesize) != 0; i++ {
31 syscall.Mprotect(b[i-pagesize:i], 0)
32 syscall.Mprotect(b[i+pagesize:i+2*pagesize], 0)
33 defer syscall.Mprotect(b[i-pagesize:i], syscall.PROT_READ|syscall.PROT_WRITE)
34 defer syscall.Mprotect(b[i+pagesize:i+2*pagesize], syscall.PROT_READ|syscall.PROT_WRITE
    [all...]
  /prebuilts/go/linux-x86/src/bytes/
equal_test.go 26 pagesize := syscall.Getpagesize()
27 b := make([]byte, 4*pagesize)
28 i := pagesize
29 for ; uintptr(unsafe.Pointer(&b[i]))%uintptr(pagesize) != 0; i++ {
31 syscall.Mprotect(b[i-pagesize:i], 0)
32 syscall.Mprotect(b[i+pagesize:i+2*pagesize], 0)
33 defer syscall.Mprotect(b[i-pagesize:i], syscall.PROT_READ|syscall.PROT_WRITE)
34 defer syscall.Mprotect(b[i+pagesize:i+2*pagesize], syscall.PROT_READ|syscall.PROT_WRITE
    [all...]
  /system/core/libunwindstack/tests/
MemoryFileTest.cpp 68 size_t pagesize = getpagesize(); local
70 for (size_t i = 0; i < pagesize; i++) {
76 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 15));
84 size_t pagesize = getpagesize(); local
86 for (size_t i = 0; i < 2 * pagesize; i++) {
87 data += static_cast<char>((i / pagesize) + '0');
92 ASSERT_TRUE(memory_.Init(tf_->path, 2 * pagesize));
99 expected_str += static_cast<char>(((i + pagesize) % 10) + '0');
105 size_t pagesize = getpagesize(); local
107 for (size_t i = 0; i < 2 * pagesize; i++)
126 size_t pagesize = getpagesize(); local
168 size_t pagesize = getpagesize(); local
186 size_t pagesize = getpagesize(); local
209 size_t pagesize = getpagesize(); local
236 size_t pagesize = getpagesize(); local
253 size_t pagesize = getpagesize(); local
    [all...]
  /prebuilts/go/darwin-x86/src/crypto/sha1/
issue15617_test.go 17 const pageSize = 4 << 10
18 data, err := syscall.Mmap(0, 0, 2*pageSize, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
22 if err := syscall.Mprotect(data[pageSize:], syscall.PROT_NONE); err != nil {
25 for i := 0; i < pageSize; i++ {
26 sha1.Sum(data[pageSize-i : pageSize])
  /prebuilts/go/linux-x86/src/crypto/sha1/
issue15617_test.go 17 const pageSize = 4 << 10
18 data, err := syscall.Mmap(0, 0, 2*pageSize, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
22 if err := syscall.Mprotect(data[pageSize:], syscall.PROT_NONE); err != nil {
25 for i := 0; i < pageSize; i++ {
26 sha1.Sum(data[pageSize-i : pageSize])
  /bionic/tests/
sys_mman_test.cpp 100 size_t pagesize = sysconf(_SC_PAGESIZE); local
104 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET));
106 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET));
108 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET));
113 void* map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize);
119 ASSERT_EQ(0, munmap(map, pagesize));
121 map = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize);
126 ASSERT_STREQ(END_MSG, data+pagesize-sizeof(END_MSG))
136 size_t pagesize = sysconf(_SC_PAGESIZE); local
179 size_t pagesize = sysconf(_SC_PAGESIZE); local
200 size_t pagesize = sysconf(_SC_PAGESIZE); local
    [all...]
buffer_tests.cpp 354 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); local
356 ASSERT_TRUE(posix_memalign(reinterpret_cast<void**>(&memory), pagesize,
357 2*pagesize) == 0);
358 memset(memory, 0x23, 2*pagesize);
361 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_NONE) == 0);
363 for (size_t i = 0; i < pagesize; i++) {
364 uint8_t* buf = &memory[pagesize-i];
368 ASSERT_TRUE(mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0)
375 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); local
405 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); local
    [all...]
  /external/ltp/testcases/kernel/mem/mmapstress/
mmapstress03.c 67 static void do_test(void* brk_max, long pagesize);
72 size_t pagesize = (size_t) sysconf(_SC_PAGE_SIZE); local
79 if ((u_long) brk_start % (u_long) pagesize) {
80 if (sbrk(pagesize - ((u_long) brk_start % (u_long) pagesize))
88 if ((hole_addr = hole_start = sbrk(NUM_SEGS * 2 * pagesize)) == NEG1) {
96 do_test((void*) brk_max_addr, pagesize);
99 while (hole_addr + pagesize < brk_max_addr) {
100 if (munmap(hole_addr, pagesize) == -1) {
104 hole_addr += 2 * pagesize;
    [all...]
mmapstress05.c 62 if (munmap(mmapaddr+pagesize, pagesize) == -1) { \
65 if (munmap(mmapaddr, pagesize) == -1) { \
68 if (munmap(mmapaddr+2*pagesize, pagesize) == -1) { \
106 size_t pagesize = (size_t) sysconf(_SC_PAGE_SIZE); local
121 if (sbrk(pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == (char *)-1) {
125 if ((buf = sbrk(pagesize)) == (char *)-1) {
153 for (i = 0; i < pagesize; i++
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/
2-1.sh 4 # {PAGESIZE}.
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/
2-1.sh 4 # {PAGESIZE}.
  /external/autotest/client/site_tests/platform_DebugDaemonCupsAddPrinters/src/
GenericPostScript.ppd.gz 
  /toolchain/binutils/binutils-2.25/ld/scripttempl/
alphavms.sc 10 PAGESIZE=0x10000
24 ${RELOCATING+. = ${PAGESIZE};}
27 \$DATA\$ ALIGN (${PAGESIZE}) : {
31 \$BSS\$ ALIGN (${PAGESIZE}) : {
35 \$CODE\$ ALIGN (${PAGESIZE}) : {
39 \$LITERAL\$ ALIGN (${PAGESIZE}) : {
57 \$DWARF\$ ALIGN (${PAGESIZE}) : {
  /system/extras/mmap-perf/
mmapPerf.cpp 16 static const size_t pageSize = PAGE_SIZE;
18 static size_t pagesTotal = fsize / pageSize;
39 for (int i = 0; i < pageSize / sizeof(uint64_t); i++) {
80 for (int i = 0; i < m_size / pageSize; i++) {
86 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage;
90 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage;
94 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j;
98 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j;
119 state.SetBytesProcessed(state.iterations() * pageSize);
129 state.SetBytesProcessed(state.iterations() * pageSize);
    [all...]
  /external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/
cpuset_memory_pressure.c 48 long int pagesize = getpagesize(); local
49 long int mmap_block = use * unit / 10 / pagesize;
52 while (pagesize * mmap_block > 2 * unit) {
53 unsigned long *addr = mmap(NULL, pagesize * mmap_block,
60 memset(addr, 0xF7, pagesize * mmap_block);
62 if (total_block * pagesize >= use * unit)
  /external/ltp/testcases/kernel/mem/vma/
vma04.c 58 static unsigned long pagesize; variable
128 addr = SAFE_MMAP(cleanup, NULL, pagesize * 8, PROT_NONE,
130 SAFE_MMAP(cleanup, addr + pagesize, pagesize * 6,
134 mmap_addr = addr + pagesize;
135 memset(mmap_addr, 0, pagesize * 6);
142 addr = mmap_addr - pagesize;
143 SAFE_MUNMAP(cleanup, addr, pagesize * 8);
150 if (mbind(mmap_addr + pagesize * index, pagesize * len
    [all...]

Completed in 1313 milliseconds

1 2 3 4 5 6 7 8 91011>>