Lines Matching refs:v
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()
163 static void print_vmainfo(const VmaInfo& v, bool total) { in print_vmainfo() argument
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()
177 printf("%4" PRIu32 " ", v.count); 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()
204 for (const auto& v : g_vmas) { in showmap() local
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()
216 g_total.count += v.count; in showmap()
218 if (g_terse && !(v.vma.usage.private_dirty || v.vma.usage.private_clean)) { in showmap()
222 print_vmainfo(v, false); in showmap()
223 printf("%s%s\n", v.vma.name.c_str(), v.is_bss ? " [bss]" : ""); in showmap()