diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-02 19:58:46 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-02 20:13:44 +0100 |
commit | 47d0ca85e8da188be0d829192008a4eee9d92e39 (patch) | |
tree | c944a22e1ac897e4ba575274319df50f5fba9897 /Userland/Utilities | |
parent | 823186031d9250217f9a51829d34a96b74113334 (diff) | |
download | serenity-47d0ca85e8da188be0d829192008a4eee9d92e39.zip |
pmap+SystemMonitor: Mark syscall regions with 'C'
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/pmap.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Userland/Utilities/pmap.cpp b/Userland/Utilities/pmap.cpp index 1b4b8477d9..e0a6a17611 100644 --- a/Userland/Utilities/pmap.cpp +++ b/Userland/Utilities/pmap.cpp @@ -63,9 +63,9 @@ int main(int argc, char** argv) printf("%s:\n", pid); if (extended) { - printf("Address Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name\n"); + printf("Address Size Resident Dirty Access VMObject Type Purgeable CoW Pages Name\n"); } else { - printf("Address Size Access Name\n"); + printf("Address Size Access Name\n"); } auto file_contents = file->read_all(); @@ -82,11 +82,12 @@ int main(int argc, char** argv) auto address = map.get("address").to_int(); auto size = map.get("size").to_string(); - auto access = String::format("%s%s%s%s", + auto access = String::formatted("{}{}{}{}{}", (map.get("readable").to_bool() ? "r" : "-"), (map.get("writable").to_bool() ? "w" : "-"), (map.get("executable").to_bool() ? "x" : "-"), - (map.get("shared").to_bool() ? "s" : "-")); + (map.get("shared").to_bool() ? "s" : "-"), + (map.get("syscall").to_bool() ? "c" : "-")); printf("%08x ", address); printf("%10s ", size.characters()); |