Home
last modified time | relevance | path

Searched refs:zram_dev (Results 1 – 2 of 2) sorted by relevance

/system/memory/libmeminfo/
Dsysmeminfo.cpp178 bool SysMemInfo::MemZramDevice(const char* zram_dev, uint64_t* mem_zram_dev) const { in MemZramDevice() argument
179 std::string mmstat = ::android::base::StringPrintf("%s/%s", zram_dev, "mm_stat"); in MemZramDevice()
185 PLOG(ERROR) << "Malformed mm_stat file in: " << zram_dev; in MemZramDevice()
193 ::android::base::StringPrintf("%s/mem_used_total", zram_dev), &content)) { in MemZramDevice()
196 PLOG(ERROR) << "Malformed mem_used_total file for zram dev: " << zram_dev in MemZramDevice()
204 LOG(ERROR) << "Can't find memory status under: " << zram_dev; in MemZramDevice()
241 bool SysMemInfo::GetTotalMemCompacted(const char* zram_dev, uint64_t* out_mem_compacted) { in GetTotalMemCompacted() argument
242 std::string mmstat = ::android::base::StringPrintf("%s/%s", zram_dev, "mm_stat"); in GetTotalMemCompacted()
250 PLOG(ERROR) << "Malformed mm_stat file in: " << zram_dev; in GetTotalMemCompacted()
/system/memory/libmeminfo/include/meminfo/
Dsysmeminfo.h115 uint64_t mem_zram_kb(const char* zram_dev = nullptr) const;
116 uint64_t mem_compacted_kb(const char* zram_dev = nullptr);
120 bool MemZramDevice(const char* zram_dev, uint64_t* mem_zram_dev) const;
121 bool GetTotalMemCompacted(const char* zram_dev, uint64_t* out_mem_compacted);