summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-31 17:06:05 +0100
committerAndreas Kling <kling@serenityos.org>2021-10-31 21:07:29 +0100
commit248ff8e971c6bee821a3ec1b86fa23ed7b580f44 (patch)
tree3f5853c814ac3d0cc0801d97e44dd564d605a905 /Userland/Utilities
parent472401a51e4f33bdf201ff465866bb4afa95d422 (diff)
downloadserenity-248ff8e971c6bee821a3ec1b86fa23ed7b580f44.zip
strace: Teach mmap() pretty-printer about more MAP_FOO flags
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/strace.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Utilities/strace.cpp b/Userland/Utilities/strace.cpp
index 6164e429de..f9e0bfd4f1 100644
--- a/Userland/Utilities/strace.cpp
+++ b/Userland/Utilities/strace.cpp
@@ -581,6 +581,14 @@ struct Formatter<MmapFlags> : StandardFormatter {
active_flags.append("MAP_PRIVATE");
if (flags & MAP_FIXED)
active_flags.append("MAP_FIXED");
+ if (flags & MAP_RANDOMIZED)
+ active_flags.append("MAP_RANDOMIZED");
+ if (flags & MAP_STACK)
+ active_flags.append("MAP_STACK");
+ if (flags & MAP_NORESERVE)
+ active_flags.append("MAP_NORESERVE");
+ if (flags & MAP_PURGEABLE)
+ active_flags.append("MAP_PURGEABLE");
builder.join(" | ", active_flags);
}
};