Searched refs:DmaBuffer (Results 1 – 4 of 4) sorted by relevance
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/ |
D | dmabufinfo.h | 30 struct DmaBuffer { struct 32 DmaBuffer(ino_t inode, uint64_t size, uint64_t count, const std::string& exporter, in DmaBuffer() argument 37 DmaBuffer() = default; 38 ~DmaBuffer() = default; 67 bool operator==(const DmaBuffer& rhs) { argument 96 bool ReadDmaBufInfo(std::vector<DmaBuffer>* dmabufs, argument 103 bool ReadDmaBufInfo(pid_t pid, std::vector<DmaBuffer>* dmabufs, bool read_fdrefs = true); 110 bool AppendDmaBufInfo(pid_t pid, std::vector<DmaBuffer>* dmabufs, bool read_fdrefs = true);
|
/system/memory/libmeminfo/libdmabufinfo/tools/ |
D | dmabuf_dump.cpp | 36 using DmaBuffer = ::android::dmabufinfo::DmaBuffer; typedef 59 static void PrintDmaBufTable(const std::vector<DmaBuffer>& bufs) { in PrintDmaBufTable() 127 static void PrintDmaBufPerProcess(const std::vector<DmaBuffer>& bufs) { in PrintDmaBufPerProcess() 147 std::unordered_map<ino_t, DmaBuffer> inode_to_dmabuf; in PrintDmaBufPerProcess() 160 DmaBuffer& buf = inode_to_dmabuf[inode]; in PrintDmaBufPerProcess() 179 static bool ReadDmaBufs(std::vector<DmaBuffer>* bufs) { in ReadDmaBufs() 248 std::vector<DmaBuffer> bufs; in main()
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo.cpp | 99 static bool ReadDmaBufFdRefs(pid_t pid, std::vector<DmaBuffer>* dmabufs) { in ReadDmaBufFdRefs() 151 [&inode](const DmaBuffer& dbuf) { return dbuf.inode() == inode; }); in ReadDmaBufFdRefs() 160 DmaBuffer& db = dmabufs->emplace_back(sb.st_ino, sb.st_blocks * 512, count, exporter, name); in ReadDmaBufFdRefs() 167 static bool ReadDmaBufMapRefs(pid_t pid, std::vector<DmaBuffer>* dmabufs) { in ReadDmaBufMapRefs() 188 [&inode](const DmaBuffer& dbuf) { return dbuf.inode() == inode; }); in ReadDmaBufMapRefs() 195 DmaBuffer& dbuf = dmabufs->emplace_back(inode, end - start, 0, "<unknown>", "<unknown>"); in ReadDmaBufMapRefs() 211 bool ReadDmaBufInfo(std::vector<DmaBuffer>* dmabufs, const std::string& path) { in ReadDmaBufInfo() 245 bool ReadDmaBufInfo(pid_t pid, std::vector<DmaBuffer>* dmabufs, bool read_fdrefs) { in ReadDmaBufInfo() 250 bool AppendDmaBufInfo(pid_t pid, std::vector<DmaBuffer>* dmabufs, bool read_fdrefs) { in AppendDmaBufInfo()
|
D | dmabufinfo_test.cpp | 204 std::vector<DmaBuffer> dmabufs; in TEST() 260 void readAndCheckDmaBuffer(std::vector<DmaBuffer>* dmabufs, pid_t pid, const std::string name, in readAndCheckDmaBuffer() 273 bool checkPidRef(DmaBuffer& dmabuf, pid_t pid, int expectFdrefs) { in checkPidRef() 323 std::vector<DmaBuffer> dmabufs; in TEST_F() 347 std::vector<DmaBuffer> dmabufs; in TEST_F() 389 std::vector<DmaBuffer> dmabufs; in TEST_F() 432 std::vector<DmaBuffer> dmabufs; in TEST_F() 462 std::vector<DmaBuffer> dmabufs; in TEST_F()
|