Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/mm/
A Dmlock-random-test.c141 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 strerror(errno), p, alloc_size, in test_mlock_within_limit()
178 __func__, locked_vm_size, alloc_size); in test_mlock_within_limit()
207 if (cur.rlim_cur >= alloc_size) in test_mlock_outof_limit()
209 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_outof_limit()
215 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit()
217 int start_offset = rand() % (alloc_size - lock_size); in test_mlock_outof_limit()
[all …]
A Ddroppable.c20 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/
A Dmemcmp.c76 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/
A Drseq.c122 unsigned int alloc_size = rseq_size; in get_rseq_min_alloc_size() local
124 if (alloc_size < ORIG_RSEQ_ALLOC_SIZE) in get_rseq_min_alloc_size()
125 alloc_size = ORIG_RSEQ_ALLOC_SIZE; in get_rseq_min_alloc_size()
126 return alloc_size; in get_rseq_min_alloc_size()
/tools/testing/selftests/vDSO/
A Dvdso_test_getrandom.c64 size_t alloc_size, num = sysconf(_SC_NPROCESSORS_ONLN); /* Just a decent heuristic. */ in vgetrandom_get_state() local
69 alloc_size = (num * state_size_aligned + page_size - 1) & (~(page_size - 1)); in vgetrandom_get_state()
70 num = (page_size / state_size_aligned) * (alloc_size / page_size); in vgetrandom_get_state()
71 new_block = mmap(0, alloc_size, vgrnd.params.mmap_prot, vgrnd.params.mmap_flags, -1, 0); in vgetrandom_get_state()
92 munmap(new_block, alloc_size); in vgetrandom_get_state()
/tools/testing/selftests/resctrl/
A Dcat_test.c74 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/
A Dmetricgroup.c1594 size_t alloc_size; in metricgroup__copy_metric_events() local
1628 alloc_size = sizeof(*new_expr->metric_refs); in metricgroup__copy_metric_events()
1629 new_expr->metric_refs = calloc(nr + 1, alloc_size); in metricgroup__copy_metric_events()
1636 nr * alloc_size); in metricgroup__copy_metric_events()
1644 alloc_size = sizeof(*new_expr->metric_events); in metricgroup__copy_metric_events()
1645 new_expr->metric_events = calloc(nr + 1, alloc_size); in metricgroup__copy_metric_events()
/tools/hv/
A Dhv_kvp_daemon.c780 size_t alloc_size = 0, remaining = buffer_len - 1; in kvp_get_gateway() local
790 while ((num_chars = getline(&line, &alloc_size, f)) > 0) { in kvp_get_gateway()

Completed in 17 milliseconds