diff options
author | Brendan Coles <bcoles@gmail.com> | 2020-12-23 21:41:29 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-24 10:26:39 +0100 |
commit | b156c5a8ebcc91a5a3b3e43dcfef2fea5941aa03 (patch) | |
tree | 248262fe484e5e52acca4cf14c95e631ec73d456 /Kernel | |
parent | 0729c8ed65cf284fa9a275cbaf4cfa490aeb5309 (diff) | |
download | serenity-b156c5a8ebcc91a5a3b3e43dcfef2fea5941aa03.zip |
ProcFS: pid_vm: Replace duplicated purgeable key with kernel+cacheable
ProcFS /proc/<pid>/vm map info no longer contains two `purgeable` keys.
The second `purgeable` key has been removed and replaced with keys for
`kernel` and `cacheable`.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/FileSystem/ProcFS.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index f223f40dd3..2a261a1e1d 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -333,7 +333,8 @@ static OwnPtr<KBuffer> procfs$pid_vm(InodeIdentifier identifier) if (region.vmobject().is_purgeable()) { region_object.add("volatile", static_cast<const PurgeableVMObject&>(region.vmobject()).is_volatile()); } - region_object.add("purgeable", region.vmobject().is_purgeable()); + region_object.add("cacheable", region.is_cacheable()); + region_object.add("kernel", region.is_kernel()); region_object.add("address", region.vaddr().get()); region_object.add("size", region.size()); region_object.add("amount_resident", region.amount_resident()); |