Lines Matching +full:asan +full:- +full:noleaks
8 * http://www.apache.org/licenses/LICENSE-2.0
27 #include <android-base/macros.h>
28 #include <android-base/strings.h>
79 malloc_iterate(heap_mapping.begin, heap_mapping.end - heap_mapping.begin, in HeapIterate()
93 heap_walker_.Mapping(it->begin, it->end); in CollectAllocations()
105 MEM_ALOGV("Heap mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
111 MEM_ALOGV("Anon mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
112 heap_walker_.Allocation(it->begin, it->end); in CollectAllocations()
116 MEM_ALOGV("Globals mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
117 heap_walker_.Root(it->begin, it->end); in CollectAllocations()
122 if (thread_it->stack.first >= it->begin && thread_it->stack.first <= it->end) { in CollectAllocations()
123 MEM_ALOGV("Stack %" PRIxPTR "-%" PRIxPTR " %s", thread_it->stack.first, it->end, it->name); in CollectAllocations()
124 heap_walker_.Root(thread_it->stack.first, it->end); in CollectAllocations()
127 heap_walker_.Root(thread_it->regs); in CollectAllocations()
175 … reinterpret_cast<void*>(it.range.begin), leak->backtrace.frames, leak->backtrace.max_frames); in GetUnreachableMemory()
177 leak->backtrace.num_frames = num_backtrace_frames; in GetUnreachableMemory()
179 auto inserted = backtrace_map.emplace(leak->backtrace, leak); in GetUnreachableMemory()
184 Leak* similar_leak = inserted.first->second; in GetUnreachableMemory()
185 similar_leak->similar_count++; in GetUnreachableMemory()
186 similar_leak->similar_size += it.range.size(); in GetUnreachableMemory()
187 similar_leak->similar_referenced_count += it.referenced_count; in GetUnreachableMemory()
188 similar_leak->similar_referenced_size += it.referenced_size; in GetUnreachableMemory()
189 similar_leak->total_size += it.range.size(); in GetUnreachableMemory()
190 similar_leak->total_size += it.referenced_size; in GetUnreachableMemory()
195 leak->begin = it.range.begin; in GetUnreachableMemory()
196 leak->size = it.range.size(); in GetUnreachableMemory()
197 leak->referenced_count = it.referenced_count; in GetUnreachableMemory()
198 leak->referenced_size = it.referenced_size; in GetUnreachableMemory()
199 leak->total_size = leak->size + leak->referenced_size; in GetUnreachableMemory()
200 memcpy(leak->contents, reinterpret_cast<void*>(it.range.begin), in GetUnreachableMemory()
201 std::min(leak->size, Leak::contents_length)); in GetUnreachableMemory()
238 if (it->execute) { in ClassifyMappings()
239 current_lib = it->name; in ClassifyMappings()
243 if (!it->read) { in ClassifyMappings()
247 const allocator::string mapping_name{it->name, allocator_}; in ClassifyMappings()
258 android::base::StartsWith(mapping_name, "[anon:GWP-ASan")) { in ClassifyMappings()
261 } else if (has_prefix(mapping_name, "[anon:dalvik-")) { in ClassifyMappings()
309 PtracerThread thread{[&]() -> int { in GetUnreachableMemory()
438 // Re-enable malloc so the collection thread can fork. in GetUnreachableMemory()
543 oss << it->ToString(log_contents); in ToString()
559 // Disable and re-enable malloc to flush the jemalloc tcache to make sure in ~UnreachableMemoryInfo()
586 MEM_ALOGE("%s", it->ToString(log_contents).c_str()); in LogUnreachableMemory()
591 bool NoLeaks() { in NoLeaks() function