Searched refs:ptrs (Results 1 – 6 of 6) sorted by relevance
55 void* ptrs[max_allocs]; in BenchmarkMalloc() local60 ptrs[entries[i].idx] = malloc(entries[i].size); in BenchmarkMalloc()63 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 10; in BenchmarkMalloc()66 ptrs[entries[i].idx] = calloc(entries[i].arg2, entries[i].size); in BenchmarkMalloc()69 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 20; in BenchmarkMalloc()72 ptrs[entries[i].idx] = memalign(entries[i].arg2, entries[i].size); in BenchmarkMalloc()75 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 30; in BenchmarkMalloc()79 ptrs[entries[i].idx] = realloc(nullptr, entries[i].size); in BenchmarkMalloc()81 ptrs[entries[i].idx] = realloc(ptrs[entries[i].arg2 - 1], entries[i].size); in BenchmarkMalloc()85 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 40; in BenchmarkMalloc()[all …]
53 std::vector<void*> ptrs; in RunMalloptPurge() local62 ptrs.push_back(ptr); in RunMalloptPurge()67 for (auto ptr : ptrs) { in RunMalloptPurge()70 ptrs.clear(); in RunMalloptPurge()
104 void* ptrs[numAllocs]; in MallocMultiple() local107 benchmark::DoNotOptimize(ptrs[i] = reinterpret_cast<uint8_t*>(malloc(nbytes))); in MallocMultiple()108 MakeAllocationResident(ptrs[i], nbytes, pagesize); in MallocMultiple()112 free(ptrs[i]); in MallocMultiple()
834 void* ptrs[kMaxAllocs] = {}; in TEST() local838 ptrs[i] = malloc(size); in TEST()839 ASSERT_TRUE(ptrs[i] != nullptr); in TEST()842 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST()852 for (void* ptr : ptrs) { in TEST()877 void* ptrs[kMaxAllocs] = {}; in TEST() local895 ptrs[i] = malloc(size); in TEST()896 ASSERT_TRUE(ptrs[i] != nullptr); in TEST()914 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST()924 for (void* ptr : ptrs) { in TEST()[all …]
2636 static void AllocPtrsWithBacktrace(std::vector<void*>* ptrs) { in AllocPtrsWithBacktrace() argument2641 ptrs->push_back(ptr); in AllocPtrsWithBacktrace()2647 ptrs->push_back(ptr); in AllocPtrsWithBacktrace()2653 ptrs->push_back(ptr); in AllocPtrsWithBacktrace()2674 std::vector<void*> ptrs; in TEST_F() local2675 AllocPtrsWithBacktrace(&ptrs); in TEST_F()2688 for (auto ptr : ptrs) { in TEST_F()2691 ptrs.clear(); in TEST_F()2706 std::vector<void*> ptrs; in TEST_F() local2707 AllocPtrsWithBacktrace(&ptrs); in TEST_F()[all …]
191 struct btrfs_key_ptr ptrs[]; member