Searched refs:vma (Results 1 – 6 of 6) sorted by relevance
/system/memory/libmeminfo/tools/ |
D | showmap.cpp | 37 Vma vma; member 42 VmaInfo(const Vma& v) : vma(v), is_bss(false), count(1) {} in VmaInfo() 43 VmaInfo(const Vma& v, bool bss) : vma(v), is_bss(bss), count(1) {} in VmaInfo() 44 VmaInfo(const Vma& v, const std::string& name, bool bss) : vma(v), is_bss(bss), count(1) { in VmaInfo() 45 vma.name = name; in VmaInfo() 80 return (a.vma.start < b.vma.start || (a.vma.start == b.vma.start && a.vma.end < b.vma.end)); in insert_before() 83 return strcmp(a.vma.name.c_str(), b.vma.name.c_str()) < 0; in insert_before() 86 static void collect_vma(const Vma& vma) { in collect_vma() argument 88 g_vmas.emplace_back(vma); in collect_vma() 92 VmaInfo current(vma); in collect_vma() [all …]
|
D | procmem.cpp | 101 for (auto& vma : maps) { in show() local 102 const MemUsage& vma_stats = vma.usage; in show() 111 if (vma.flags & PROT_READ) flags_str[0] = 'r'; in show() 112 if (vma.flags & PROT_WRITE) flags_str[1] = 'w'; in show() 113 if (vma.flags & PROT_EXEC) flags_str[2] = 'x'; in show() 115 ss << ::android::base::StringPrintf("%7s ", flags_str.c_str()) << vma.name << std::endl; in show()
|
/system/memory/libmeminfo/ |
D | procmeminfo.cpp | 150 auto collect_vmas = [&](const Vma& vma) { in Smaps() argument 151 if (std::find(g_blacklisted_vmas.begin(), g_blacklisted_vmas.end(), vma.name) == in Smaps() 153 maps_.emplace_back(vma); in Smaps() 228 bool ProcMemInfo::PageMap(const Vma& vma, std::vector<uint64_t>* pagemap) { in PageMap() argument 238 uint64_t nr_pages = (vma.end - vma.start) / getpagesize(); in PageMap() 242 off64_t start_addr = (vma.start / getpagesize()) * sizeof(uint64_t); in PageMap() 298 for (auto& vma : maps_) { in ReadMaps() local 299 if (!ReadVmaStats(pagemap_fd.get(), vma, get_wss, use_pageidle)) { in ReadMaps() 300 LOG(ERROR) << "Failed to read page map for vma " << vma.name << "[" << vma.start << "-" in ReadMaps() 301 << vma.end << "]"; in ReadMaps() [all …]
|
D | libmeminfo_test.cpp | 150 for (const Vma& vma : maps) { in TEST() local 151 if (vma.start == addr) { in TEST() 152 test_vma = &vma; in TEST()
|
/system/core/libunwindstack/benchmarks/ |
D | Utils.cpp | 51 for (auto& vma : maps) { in GatherRss() local 52 if (vma.name == "[anon:libc_malloc]" || android::base::StartsWith(vma.name, "[anon:scudo:") || in GatherRss() 53 android::base::StartsWith(vma.name, "[anon:GWP-ASan")) { in GatherRss() 54 android::meminfo::Vma update_vma(vma); in GatherRss()
|
/system/memory/libmeminfo/include/meminfo/ |
D | procmeminfo.h | 53 bool FillInVmaStats(Vma& vma); 93 bool PageMap(const Vma& vma, std::vector<uint64_t>* pagemap); 99 bool ReadVmaStats(int pagemap_fd, Vma& vma, bool get_wss, bool use_pageidle);
|