Searched refs:alloc_size (Results 1 – 3 of 3) sorted by relevance
/tools/testing/selftests/vm/ |
D | mlock-random-test.c | 138 int test_mlock_within_limit(char *p, int alloc_size) in test_mlock_within_limit() argument 147 if (cur.rlim_cur < alloc_size) { in test_mlock_within_limit() 149 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_within_limit() 162 int lock_size = rand() % alloc_size; in test_mlock_within_limit() 163 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_within_limit() 174 p, alloc_size, in test_mlock_within_limit() 190 if (locked_vm_size > PAGE_ALIGN(alloc_size, page_size) + page_size) { in test_mlock_within_limit() 192 locked_vm_size, alloc_size); in test_mlock_within_limit() 215 int test_mlock_outof_limit(char *p, int alloc_size) in test_mlock_outof_limit() argument 223 if (cur.rlim_cur >= alloc_size) { in test_mlock_outof_limit() [all …]
|
/tools/testing/selftests/powerpc/stringloops/ |
D | memcmp.c | 76 unsigned long alloc_size = comp_size + MAX_OFFSET_DIFF_S1_S2; in testcase() local 79 s1 = memalign(128, alloc_size); in testcase() 85 s2 = memalign(128, alloc_size); in testcase() 99 for (j = 0; j < alloc_size; j++) in testcase() 125 for (j = 0; j < alloc_size; j++) in testcase()
|
/tools/lib/api/fs/ |
D | fs.c | 360 size_t size = 0, alloc_size = 0; in filename__read_str() local 370 if (size == alloc_size) { in filename__read_str() 371 alloc_size += BUFSIZ; in filename__read_str() 372 nbf = realloc(bf, alloc_size); in filename__read_str() 381 n = read(fd, bf + size, alloc_size - size); in filename__read_str()
|