• Home
  • Raw
  • Download

Lines Matching refs:buf

67     for (auto& buf : bufs) {  in PrintDmaBufTable()  local
68 pid_set.insert(buf.pids().begin(), buf.pids().end()); in PrintDmaBufTable()
83 for (auto& buf : bufs) { in PrintDmaBufTable() local
85 static_cast<uintmax_t>(buf.inode()), buf.size() / 1024, buf.fdrefs().size(), in PrintDmaBufTable()
86 buf.maprefs().size()); in PrintDmaBufTable()
91 if (buf.fdrefs().count(pid) == 1) { in PrintDmaBufTable()
94 pid_refs += buf.fdrefs().at(pid); in PrintDmaBufTable()
95 if (buf.maprefs().count(pid) == 1) { in PrintDmaBufTable()
96 pid_refs += buf.maprefs().at(pid); in PrintDmaBufTable()
107 per_pid_size[pid] += buf.size() / 1024; in PrintDmaBufTable()
113 dmabuf_total_size += buf.size() / 1024; in PrintDmaBufTable()
137 for (auto& buf : bufs) { in PrintDmaBufPerProcess() local
138 for (auto pid : buf.pids()) { in PrintDmaBufPerProcess()
139 pid_to_inodes[pid].insert(buf.inode()); in PrintDmaBufPerProcess()
141 total_size += buf.size(); in PrintDmaBufPerProcess()
142 if (buf.fdrefs().empty() && buf.maprefs().empty()) { in PrintDmaBufPerProcess()
143 kernel_rss += buf.size(); in PrintDmaBufPerProcess()
148 for (auto buf : bufs) { in PrintDmaBufPerProcess() local
149 inode_to_dmabuf[buf.inode()] = buf; in PrintDmaBufPerProcess()
160 DmaBuffer& buf = inode_to_dmabuf[inode]; in PrintDmaBufPerProcess() local
161 uint64_t proc_pss = buf.Pss(pid); in PrintDmaBufPerProcess()
163 buf.name().empty() ? "<unknown>" : buf.name().c_str(), buf.size() / 1024, in PrintDmaBufPerProcess()
164 proc_pss / 1024, buf.pids().size(), static_cast<uintmax_t>(buf.inode())); in PrintDmaBufPerProcess()
165 rss += buf.size(); in PrintDmaBufPerProcess()