diff options
author | Elliott Hughes <enh@google.com> | 2016-08-23 17:47:49 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-08-23 17:47:49 -0700 |
commit | 9eed624c760b9c70de9a8f75ff84c5f085d62fdc (patch) | |
tree | 2f8b3a9b0d1678fc2ba2eebd54d21687cd3db8ac /procmem | |
parent | cb0112fe640d7b8a9668f91d2cad7234bd63f880 (diff) | |
download | extras-9eed624c760b9c70de9a8f75ff84c5f085d62fdc.tar.gz |
Don't invent our own pagemap constants.
Use the uapi ones instead, so I don't have to think about whether ours
are correct.
Bug: http://b/31044648
Change-Id: Ibe4a078ad3223419301a5f585e8ed24dd7366ce2
Diffstat (limited to 'procmem')
-rw-r--r-- | procmem/procmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/procmem/procmem.c b/procmem/procmem.c index 17a72121..45459ae0 100644 --- a/procmem/procmem.c +++ b/procmem/procmem.c @@ -206,14 +206,14 @@ int main(int argc, char *argv[]) { fprintf(stderr, "error getting flags for frame.\n"); } - if ((ws != WS_ONLY) || (flags & PM_PAGE_REFERENCED)) { + if ((ws != WS_ONLY) || (flags & KPF_REFERENCED)) { if (count > 1) { - if (flags & PM_PAGE_DIRTY) + if (flags & KPF_DIRTY) mi->shared_dirty++; else mi->shared_clean++; } else { - if (flags & PM_PAGE_DIRTY) + if (flags & KPF_DIRTY) mi->private_dirty++; else mi->private_clean++; |