Home
last modified time | relevance | path

Searched refs:dmabufs (Results 1 – 3 of 3) sorted by relevance

/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp204 std::vector<DmaBuffer> dmabufs; in TEST() local
205 EXPECT_TRUE(ReadDmaBufInfo(&dmabufs, path)); in TEST()
207 EXPECT_EQ(dmabufs.size(), 2UL); in TEST()
209 EXPECT_EQ(dmabufs[0].size(), 45056UL); in TEST()
210 EXPECT_EQ(dmabufs[0].inode(), 22069UL); in TEST()
211 EXPECT_EQ(dmabufs[0].count(), 2UL); in TEST()
212 EXPECT_EQ(dmabufs[0].exporter(), "ion"); in TEST()
213 EXPECT_TRUE(dmabufs[0].name().empty()); in TEST()
214 EXPECT_EQ(dmabufs[0].total_refs(), 0ULL); in TEST()
215 EXPECT_TRUE(dmabufs[0].fdrefs().empty()); in TEST()
[all …]
Ddmabufinfo.cpp99 static bool ReadDmaBufFdRefs(pid_t pid, std::vector<DmaBuffer>* dmabufs) { in ReadDmaBufFdRefs() argument
150 auto buf = std::find_if(dmabufs->begin(), dmabufs->end(), in ReadDmaBufFdRefs()
152 if (buf != dmabufs->end()) { 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() argument
187 auto buf = std::find_if(dmabufs->begin(), dmabufs->end(), in ReadDmaBufMapRefs()
189 if (buf != dmabufs->end()) { 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() argument
220 dmabufs->clear(); in ReadDmaBufInfo()
[all …]
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/
Ddmabufinfo.h96 bool ReadDmaBufInfo(std::vector<DmaBuffer>* dmabufs,
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);