Searched refs:zram_dev (Results 1 – 2 of 2) sorted by relevance
180 uint64_t SysMemInfo::mem_zram_kb(const std::string& zram_dev) { in mem_zram_kb() argument182 if (!zram_dev.empty()) { in mem_zram_kb()183 if (!MemZramDevice(zram_dev, &mem_zram_total)) { in mem_zram_kb()191 std::string zram_dev = ::android::base::StringPrintf("/sys/block/zram%u/", i); in mem_zram_kb() local192 if (access(zram_dev.c_str(), F_OK)) { in mem_zram_kb()199 if (!MemZramDevice(zram_dev, &mem_zram_dev)) { in mem_zram_kb()209 bool SysMemInfo::MemZramDevice(const std::string& zram_dev, uint64_t* mem_zram_dev) { in MemZramDevice() argument210 std::string mmstat = ::android::base::StringPrintf("%s/%s", zram_dev.c_str(), "mm_stat"); in MemZramDevice()216 PLOG(ERROR) << "Malformed mm_stat file in: " << zram_dev; in MemZramDevice()223 if (::android::base::ReadFileToString(zram_dev + "mem_used_total", &content)) { in MemZramDevice()[all …]
78 uint64_t mem_zram_kb(const std::string& zram_dev = "");82 bool MemZramDevice(const std::string& zram_dev, uint64_t* mem_zram_dev);