Home
last modified time | relevance | path

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

/system/extras/tests/pagingtest/
Dmmap_test.c10 int mmap_test(int test_runs, unsigned long long alloc_size) { in mmap_test() argument
24 buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in mmap_test()
34 munmap(buf, alloc_size); in mmap_test()
46 munmap(buf, alloc_size); // unreached? in mmap_test()
Dpagingtest.c141 unsigned long long alloc_size = 0ULL; in main() local
154 alloc_size = strtoull(argv[2], NULL, 10); in main()
156 if (!alloc_size) { in main()
157 alloc_size = ALLOC_SIZE; in main()
166 rc = mmap_test(test_runs, alloc_size); in main()
Dpagingtest.h16 int mmap_test(int test_runs, unsigned long long alloc_size);
/system/extras/simpleperf/
Dutils.cpp64 size_t alloc_size = std::max(size, unit_size_); in AllocateString() local
65 char* p = new char[alloc_size]; in AllocateString()
68 end_ = p + alloc_size; in AllocateString()
DRecordReadThread.cpp635 size_t alloc_size = auxtrace.size() + auxtrace.data->aux_size; in ReadAuxDataFromKernelBuffer() local
637 if ((record_buffer_.GetFreeSize() < alloc_size + record_buffer_critical_level_) || in ReadAuxDataFromKernelBuffer()
638 (p = record_buffer_.AllocWriteSpace(alloc_size)) == nullptr) { in ReadAuxDataFromKernelBuffer()
/system/core/debuggerd/
Ddebuggerd_test.cpp1555 size_t alloc_size; member
1586 name += testing::PrintToString(params.alloc_size); in __anon23e615a12a02()
1680 char* volatile p = reinterpret_cast<char* volatile>(malloc(params.alloc_size)); in TEST_P()
1691 p = reinterpret_cast<char* volatile>(malloc(params.alloc_size)); in TEST_P()
1692 char* volatile p2 = reinterpret_cast<char* volatile>(malloc(params.alloc_size)); in TEST_P()