From 6ffb81b0e1b619a5b517f01367843a1582c2e68e Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sun, 13 Aug 2023 12:21:35 +0100 Subject: [PATCH] lib/py: add VMA_AREA_MEMFD constant The VMA_AREA_MEMFD constant was introduced with commit 29a1a88bcebaf9d83591077d2bec424da82c0e71 memfd: add memory mapping support This patch extends the status map used in CRIT and coredump with the value of this constant to recognize it. Signed-off-by: Radostin Stoyanov --- coredump/criu_coredump/coredump.py | 1 + lib/py/images/pb2dict.py | 1 + 2 files changed, 2 insertions(+) diff --git a/coredump/criu_coredump/coredump.py b/coredump/criu_coredump/coredump.py index 0b8a02e0aa..20ec8e5dc8 100644 --- a/coredump/criu_coredump/coredump.py +++ b/coredump/criu_coredump/coredump.py @@ -53,6 +53,7 @@ "VMA_AREA_SOCKET": 1 << 11, "VMA_AREA_VVAR": 1 << 12, "VMA_AREA_AIORING": 1 << 13, + "VMA_AREA_MEMFD": 1 << 14, "VMA_AREA_UNSUPP": 1 << 31 } diff --git a/lib/py/images/pb2dict.py b/lib/py/images/pb2dict.py index c7046429e0..fe41642d55 100644 --- a/lib/py/images/pb2dict.py +++ b/lib/py/images/pb2dict.py @@ -102,6 +102,7 @@ def _custom_conv(field): ('VMA_AREA_SOCKET', 1 << 11), ('VMA_AREA_VVAR', 1 << 12), ('VMA_AREA_AIORING', 1 << 13), + ('VMA_AREA_MEMFD', 1 << 14), ('VMA_UNSUPP', 1 << 31), ]