1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

Kernel: Expose the VMObject type of each Region in /proc/PID/vm

This commit is contained in:
Andreas Kling 2020-02-28 20:58:57 +01:00
parent 8fbdda5a2d
commit 5f7056d62c
6 changed files with 11 additions and 0 deletions

View file

@ -315,6 +315,7 @@ Optional<KBuffer> procfs$pid_vm(InodeIdentifier identifier)
region_object.add("amount_dirty", (u32)region.amount_dirty());
region_object.add("cow_pages", region.cow_pages());
region_object.add("name", region.name());
region_object.add("vmobject", region.vmobject().class_name());
StringBuilder pagemap_builder;
for (size_t i = 0; i < region.page_count(); ++i) {