1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 01:25:09 +00:00

Kernel+SystemMonitor: Show VM region "shared" and "stack" bits in UI

Expose these two region bits through /proc/PID/vm and show them in the
SystemMonitor process memory map view.
This commit is contained in:
Andreas Kling 2019-11-17 12:14:13 +01:00
parent 794758df3a
commit 02f89dc419
2 changed files with 6 additions and 0 deletions

View file

@ -258,6 +258,8 @@ Optional<KBuffer> procfs$pid_vm(InodeIdentifier identifier)
auto region_object = array.add_object();
region_object.add("readable", region.is_readable());
region_object.add("writable", region.is_writable());
region_object.add("stack", region.is_stack());
region_object.add("shared", region.is_shared());
region_object.add("address", region.vaddr().get());
region_object.add("size", (u32)region.size());
region_object.add("amount_resident", (u32)region.amount_resident());