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() function 37 DmaBuffer() = default; 38 ~DmaBuffer() = default; 67 bool operator==(const DmaBuffer& rhs) { argument 95 bool ReadDmaBufInfo(std::vector<DmaBuffer>* dmabufs, argument 101 bool ReadDmaBufInfo(pid_t pid, std::vector<DmaBuffer>* dmabufs, bool read_fdrefs = true, 112 bool ReadDmaBufFdRefs(int pid, std::vector<DmaBuffer>* dmabufs, 119 bool ReadDmaBufMapRefs(pid_t pid, std::vector<DmaBuffer>* dmabufs,
|
/system/memory/libmeminfo/libdmabufinfo/tools/ |
D | dmabuf_dump.cpp | 37 using DmaBuffer = ::android::dmabufinfo::DmaBuffer; typedef 62 static void PrintDmaBufTable(const std::vector<DmaBuffer>& bufs) { in PrintDmaBufTable() 130 static void PrintDmaBufPerProcess(const std::vector<DmaBuffer>& bufs) { in PrintDmaBufPerProcess() 150 std::unordered_map<ino_t, DmaBuffer> inode_to_dmabuf; in PrintDmaBufPerProcess() 163 DmaBuffer& buf = inode_to_dmabuf[inode]; in PrintDmaBufPerProcess() 182 static bool ReadDmaBufs(std::vector<DmaBuffer>* bufs) { in ReadDmaBufs() 296 std::vector<DmaBuffer> bufs; in main()
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo.cpp | 110 bool ReadDmaBufFdRefs(int pid, std::vector<DmaBuffer>* dmabufs, in ReadDmaBufFdRefs() 186 [&inode](const DmaBuffer& dbuf) { return dbuf.inode() == inode; }); in ReadDmaBufFdRefs() 195 DmaBuffer& db = dmabufs->emplace_back(inode, size, count, exporter, name); in ReadDmaBufFdRefs() 202 bool ReadDmaBufMapRefs(pid_t pid, std::vector<DmaBuffer>* dmabufs, in ReadDmaBufMapRefs() 225 [&mapinfo](const DmaBuffer& dbuf) { return dbuf.inode() == mapinfo.inode; }); in ReadDmaBufMapRefs() 237 DmaBuffer& dbuf = dmabufs->emplace_back(mapinfo.inode, mapinfo.end - mapinfo.start, 0, in ReadDmaBufMapRefs() 253 bool ReadDmaBufInfo(std::vector<DmaBuffer>* dmabufs, const std::string& path) { in ReadDmaBufInfo() 287 bool ReadDmaBufInfo(pid_t pid, std::vector<DmaBuffer>* dmabufs, bool read_fdrefs, in ReadDmaBufInfo()
|
D | dmabufinfo_test.cpp | 208 std::vector<DmaBuffer> dmabufs; in TEST() 368 std::vector<DmaBuffer> dmabufs; in TEST_F() 374 [](const DmaBuffer& dmabuf) { return dmabuf.inode() == 2; }); in TEST_F() 383 [](const DmaBuffer& dmabuf) { return dmabuf.inode() == 4; }); in TEST_F() 398 std::vector<DmaBuffer> dmabufs; in TEST_F() 403 [](const DmaBuffer& dmabuf) { return dmabuf.inode() == 2; }); in TEST_F() 419 [](const DmaBuffer& dmabuf) { return dmabuf.inode() == 3; }); in TEST_F() 445 std::vector<DmaBuffer> dmabufs; in TEST_F() 450 [](const DmaBuffer& dmabuf) { return dmabuf.inode() == 2; }); in TEST_F() 466 [](const DmaBuffer& dmabuf) { return dmabuf.inode() == 3; }); in TEST_F() [all …]
|