/aosp12/system/extras/memory_replay/tests/ |
H A D | AllocTest.cpp | 27 AllocEntry entry; in TEST() 38 AllocEntry entry; in TEST() 47 AllocEntry entry; in TEST() 58 AllocEntry entry; in TEST() 64 AllocEntry entry; in TEST() 75 AllocEntry entry; in TEST() 87 AllocEntry entry; in TEST() 98 AllocEntry entry; in TEST() 110 AllocEntry entry; in TEST() 121 AllocEntry entry; in TEST() [all …]
|
H A D | ThreadsTest.cpp | 35 AllocEntry thread_done = {.type = THREAD_DONE}; in TEST() 70 AllocEntry thread_done = {.type = THREAD_DONE}; in TEST() 99 std::vector<AllocEntry> mallocs(kAllocEntries); in TEST() 100 std::vector<AllocEntry> frees(kAllocEntries); in TEST() 116 AllocEntry thread_done = {.type = THREAD_DONE}; in TEST()
|
H A D | FileTest.cpp | 49 AllocEntry* entries; in TEST() 74 AllocEntry* entries; in TEST() 84 AllocEntry* entries; in TEST() 109 AllocEntry* entries; in TEST()
|
/aosp12/system/extras/memory_replay/ |
H A D | Alloc.cpp | 29 void AllocGetData(const std::string& line, AllocEntry* entry) { in AllocGetData() 83 bool AllocDoesFree(const AllocEntry& entry) { in AllocDoesFree() 99 static uint64_t MallocExecute(const AllocEntry& entry, Pointers* pointers) { in MallocExecute() 111 static uint64_t CallocExecute(const AllocEntry& entry, Pointers* pointers) { in CallocExecute() 123 static uint64_t ReallocExecute(const AllocEntry& entry, Pointers* pointers) { in ReallocExecute() 140 static uint64_t MemalignExecute(const AllocEntry& entry, Pointers* pointers) { in MemalignExecute() 152 static uint64_t FreeExecute(const AllocEntry& entry, Pointers* pointers) { in FreeExecute() 163 uint64_t AllocExecute(const AllocEntry& entry, Pointers* pointers) { in AllocExecute()
|
H A D | Alloc.h | 33 struct AllocEntry { struct 45 void AllocGetData(const std::string& line, AllocEntry* entry); argument 47 bool AllocDoesFree(const AllocEntry& entry); 49 uint64_t AllocExecute(const AllocEntry& entry, Pointers* pointers);
|
H A D | File.cpp | 79 void GetUnwindInfo(const char* filename, AllocEntry** entries, size_t* num_entries) { in GetUnwindInfo() 125 mem = mmap(nullptr, *num_entries * sizeof(AllocEntry), PROT_READ | PROT_WRITE, in GetUnwindInfo() 128 err(1, "Unable to allocate a shared map of size %zu", *num_entries * sizeof(AllocEntry)); in GetUnwindInfo() 130 *entries = reinterpret_cast<AllocEntry*>(mem); in GetUnwindInfo() 169 void FreeEntries(AllocEntry* entries, size_t num_entries) { in FreeEntries() 170 munmap(entries, num_entries * sizeof(AllocEntry)); in FreeEntries()
|
H A D | Thread.h | 24 struct AllocEntry; 42 void SetAllocEntry(const AllocEntry* entry) { entry_ = entry; } in SetAllocEntry() 43 const AllocEntry& GetAllocEntry() { return *entry_; } in GetAllocEntry() 56 const AllocEntry* entry_;
|
H A D | File.h | 24 struct AllocEntry; 29 void GetUnwindInfo(const char* filename, AllocEntry** entries, size_t* num_entries); 31 void FreeEntries(AllocEntry* entries, size_t num_entries);
|
H A D | main.cpp | 39 static size_t GetMaxAllocs(const AllocEntry* entries, size_t num_entries) { in GetMaxAllocs() 73 static void ProcessDump(const AllocEntry* entries, size_t num_entries, size_t max_threads) { in ProcessDump() 92 const AllocEntry& entry = entries[i]; in ProcessDump() 179 AllocEntry* entries; in main()
|
H A D | Threads.cpp | 38 const AllocEntry& entry = thread->GetAllocEntry(); in ThreadRunner() 148 AllocEntry thread_done = {.type = THREAD_DONE}; in FinishAll()
|
H A D | TraceBenchmark.cpp | 43 AllocEntry* entries = nullptr; 102 AllocEntry* entry = &trace_data->entries[i]; in GetTraceData() 159 const AllocEntry& entry = trace_data->entries[i]; in RunTrace()
|
/aosp12/bionic/libc/malloc_debug/ |
H A D | RecordData.h | 66 class AllocEntry : public RecordEntry { 68 explicit AllocEntry(void* pointer); 69 virtual ~AllocEntry() = default; 75 BIONIC_DISALLOW_COPY_AND_ASSIGN(AllocEntry); 78 class MallocEntry : public AllocEntry { 92 class FreeEntry : public AllocEntry {
|
H A D | RecordData.cpp | 55 AllocEntry::AllocEntry(void* pointer) : pointer_(pointer) {} in AllocEntry() function in AllocEntry 57 MallocEntry::MallocEntry(void* pointer, size_t size) : AllocEntry(pointer), size_(size) {} in MallocEntry() 63 FreeEntry::FreeEntry(void* pointer) : AllocEntry(pointer) {} in FreeEntry()
|
/aosp12/frameworks/av/media/utils/ |
H A D | MemoryLeakTrackUtil.cpp | 75 struct AllocEntry { in dumpMemoryAddresses() struct 81 const AllocEntry * const e = (AllocEntry *)(leak_info.buffer + i * leak_info.info_size); in dumpMemoryAddresses()
|