Searched refs:procfs_path (Results 1 – 3 of 3) sorted by relevance
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo.cpp | 55 const std::string& procfs_path) { in ReadDmaBufFdInfo() argument 57 ::android::base::StringPrintf("%s/%d/fdinfo/%d", procfs_path.c_str(), pid, fd); in ReadDmaBufFdInfo() 111 const std::string& procfs_path) { in ReadDmaBufFdRefs() argument 118 ::android::base::StringPrintf("%s/%d/fdinfo", procfs_path.c_str(), pid); in ReadDmaBufFdRefs() 148 &is_dmabuf_file, procfs_path); in ReadDmaBufFdRefs() 169 ::android::base::StringPrintf("%s/%d/fd/%d", procfs_path.c_str(), pid, fd); in ReadDmaBufFdRefs() 203 const std::string& procfs_path, in ReadDmaBufMapRefs() argument 205 std::string mapspath = ::android::base::StringPrintf("%s/%d/maps", procfs_path.c_str(), pid); in ReadDmaBufMapRefs() 288 const std::string& procfs_path, const std::string& dmabuf_sysfs_path) { in ReadDmaBufInfo() argument 292 if (!ReadDmaBufFdRefs(pid, dmabufs, procfs_path)) { in ReadDmaBufInfo() [all …]
|
D | dmabufinfo_test.cpp | 295 procfs_path = fs::current_path() / "proc"; in SetUp() 297 ASSERT_TRUE(fs::create_directory(procfs_path)); in SetUp() 298 pid_path = procfs_path / android::base::StringPrintf("%d", pid); in SetUp() 305 fs::remove_all(procfs_path); in TearDown() 348 std::filesystem::path procfs_path; member in DmaBufProcessStatsTest 369 ASSERT_TRUE(ReadDmaBufInfo(pid, &dmabufs, true, procfs_path, dmabuf_sysfs_path)); in TEST_F() 399 ASSERT_TRUE(ReadDmaBufFdRefs(pid, &dmabufs, procfs_path)); in TEST_F() 446 ASSERT_TRUE(ReadDmaBufMapRefs(pid, &dmabufs, procfs_path, dmabuf_sysfs_path)); in TEST_F()
|
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/ |
D | dmabufinfo.h | 102 const std::string& procfs_path = "/proc", 113 const std::string& procfs_path = "/proc"); 120 const std::string& procfs_path = "/proc", 127 bool ReadDmaBufPss(int pid, uint64_t* pss, const std::string& procfs_path = "/proc",
|