OSDN Git Service

procrank: prefer new zram ABI
authorGreg Hackmann <ghackmann@google.com>
Wed, 9 Dec 2015 22:55:53 +0000 (14:55 -0800)
committerGreg Hackmann <ghackmann@google.com>
Thu, 10 Dec 2015 21:33:43 +0000 (13:33 -0800)
commitfbc3d45c787fe0eb63c3a7bb1a650c7ede5ab16e
tree63f5979d34758048a70c81326c3f061ec584ce8c
parent763bdf6fa9765b1804950e773efc84200b569d47
procrank: prefer new zram ABI

Starting with Linux 4.1, reading from /dev/block/zram*/mem_used_total
logs this warning:

"Attribute mem_used_total (and others) will be removed. See zram
documentation."

mem_used_total and several related counters are now consolidated under a
new node mm_stat.  Prefer that when it's available.

Bug: 25951511

Change-Id: Ida732ee56a1e39e01c390f61bb40b3f52f643004
Signed-off-by: Greg Hackmann <ghackmann@google.com>
procrank/procrank.c