Searched refs:alloc_size (Results 1 – 7 of 7) sorted by relevance
| /tools/testing/selftests/mm/ |
| D | mlock-random-test.c | 132 static void test_mlock_within_limit(char *p, int alloc_size) in test_mlock_within_limit() argument 141 if (cur.rlim_cur < alloc_size) in test_mlock_within_limit() 143 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_within_limit() 154 int lock_size = rand() % alloc_size; in test_mlock_within_limit() 155 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_within_limit() 166 p, alloc_size, in test_mlock_within_limit() 176 if (locked_vm_size > PAGE_ALIGN(alloc_size, page_size) + page_size) in test_mlock_within_limit() 178 __func__, locked_vm_size, alloc_size); in test_mlock_within_limit() 199 static void test_mlock_outof_limit(char *p, int alloc_size) in test_mlock_outof_limit() argument 207 if (cur.rlim_cur >= alloc_size) in test_mlock_outof_limit() [all …]
|
| D | droppable.c | 20 size_t alloc_size = 134217728; in main() local 28 alloc = mmap(0, alloc_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_DROPPABLE, -1, 0); in main() 30 memset(alloc, 'A', alloc_size); in main() 31 for (size_t i = 0; i < alloc_size; i += page_size) in main() 42 for (size_t i = 0; i < alloc_size; i += page_size) { in main()
|
| /tools/testing/selftests/powerpc/stringloops/ |
| D | memcmp.c | 76 unsigned long i, comp_size, alloc_size; in testcase() local 81 alloc_size = comp_size + MAX_OFFSET_DIFF_S1_S2; in testcase() 89 s1 = p + MAP_SIZE - alloc_size; in testcase() 90 s2 = p + 3 * MAP_SIZE - alloc_size; in testcase() 104 for (j = 0; j < alloc_size; j++) in testcase() 130 for (j = 0; j < alloc_size; j++) in testcase()
|
| /tools/testing/selftests/rseq/ |
| D | rseq.c | 111 unsigned int alloc_size = rseq_size; in get_rseq_min_alloc_size() local 113 if (alloc_size < ORIG_RSEQ_ALLOC_SIZE) in get_rseq_min_alloc_size() 114 alloc_size = ORIG_RSEQ_ALLOC_SIZE; in get_rseq_min_alloc_size() 115 return alloc_size; in get_rseq_min_alloc_size()
|
| /tools/testing/selftests/vDSO/ |
| D | vdso_test_getrandom.c | 65 size_t alloc_size, num = sysconf(_SC_NPROCESSORS_ONLN); /* Just a decent heuristic. */ in vgetrandom_get_state() local 70 alloc_size = (num * state_size_aligned + page_size - 1) & (~(page_size - 1)); in vgetrandom_get_state() 71 num = (page_size / state_size_aligned) * (alloc_size / page_size); in vgetrandom_get_state() 72 new_block = mmap(0, alloc_size, vgrnd.params.mmap_prot, vgrnd.params.mmap_flags, -1, 0); in vgetrandom_get_state() 93 munmap(new_block, alloc_size); in vgetrandom_get_state()
|
| /tools/testing/selftests/resctrl/ |
| D | cat_test.c | 74 unsigned long alloc_size; in check_results() local 109 alloc_size = cache_portion_size(cache_total_size, current_mask, full_cache_mask); in check_results() 114 alloc_size / 64, in check_results()
|
| /tools/perf/util/ |
| D | metricgroup.c | 1793 size_t alloc_size; in metricgroup__copy_metric_events() local 1827 alloc_size = sizeof(*new_expr->metric_refs); in metricgroup__copy_metric_events() 1828 new_expr->metric_refs = calloc(nr + 1, alloc_size); in metricgroup__copy_metric_events() 1835 nr * alloc_size); in metricgroup__copy_metric_events() 1843 alloc_size = sizeof(*new_expr->metric_events); in metricgroup__copy_metric_events() 1844 new_expr->metric_events = calloc(nr + 1, alloc_size); in metricgroup__copy_metric_events()
|