Lines Matching refs:zram_dev
180 uint64_t SysMemInfo::mem_zram_kb(const std::string& zram_dev) { in mem_zram_kb() argument
182 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() local
192 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() argument
210 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()
226 PLOG(ERROR) << "Malformed mem_used_total file for zram dev: " << zram_dev in MemZramDevice()
234 LOG(ERROR) << "Can't find memory status under: " << zram_dev; in MemZramDevice()