Lines Matching refs:vma

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()
95 if (vma.name.empty()) { in collect_vma()
96 if (last.vma.end == current.vma.start && is_library(last.vma.name)) { in collect_vma()
97 current.vma.name = last.vma.name; in collect_vma()
100 current.vma.name = "[anon]"; in collect_vma()
106 if (g_merge_by_names && (it->vma.name == current.vma.name)) { in collect_vma()
107 it->vma.usage.vss += current.vma.usage.vss; in collect_vma()
108 it->vma.usage.rss += current.vma.usage.rss; in collect_vma()
109 it->vma.usage.pss += current.vma.usage.pss; in collect_vma()
111 it->vma.usage.shared_clean += current.vma.usage.shared_clean; in collect_vma()
112 it->vma.usage.shared_dirty += current.vma.usage.shared_dirty; in collect_vma()
113 it->vma.usage.private_clean += current.vma.usage.private_clean; in collect_vma()
114 it->vma.usage.private_dirty += current.vma.usage.private_dirty; in collect_vma()
115 it->vma.usage.swap += current.vma.usage.swap; in collect_vma()
116 it->vma.usage.swap_pss += current.vma.usage.swap_pss; in collect_vma()
168 printf("%16" PRIx64 " %16" PRIx64 " ", v.vma.start, v.vma.end); in print_vmainfo()
173 v.vma.usage.vss, v.vma.usage.rss, v.vma.usage.pss, v.vma.usage.shared_clean, in print_vmainfo()
174 v.vma.usage.shared_dirty, v.vma.usage.private_clean, v.vma.usage.private_dirty, in print_vmainfo()
175 v.vma.usage.swap, v.vma.usage.swap_pss); in print_vmainfo()
184 if (v.vma.flags & PROT_READ) flags_str[0] = 'r'; in print_vmainfo()
185 if (v.vma.flags & PROT_WRITE) flags_str[1] = 'w'; in print_vmainfo()
186 if (v.vma.flags & PROT_EXEC) flags_str[2] = 'x'; in print_vmainfo()
205 g_total.vma.usage.vss += v.vma.usage.vss; in showmap()
206 g_total.vma.usage.rss += v.vma.usage.rss; in showmap()
207 g_total.vma.usage.pss += v.vma.usage.pss; in showmap()
209 g_total.vma.usage.private_clean += v.vma.usage.private_clean; in showmap()
210 g_total.vma.usage.private_dirty += v.vma.usage.private_dirty; in showmap()
211 g_total.vma.usage.shared_clean += v.vma.usage.shared_clean; in showmap()
212 g_total.vma.usage.shared_dirty += v.vma.usage.shared_dirty; in showmap()
214 g_total.vma.usage.swap += v.vma.usage.swap; in showmap()
215 g_total.vma.usage.swap_pss += v.vma.usage.swap_pss; in showmap()
218 if (g_terse && !(v.vma.usage.private_dirty || v.vma.usage.private_clean)) { in showmap()
223 printf("%s%s\n", v.vma.name.c_str(), v.is_bss ? " [bss]" : ""); in showmap()