Skip to content

Commit

Permalink
lib/py: add VMA_AREA_MEMFD constant
Browse files Browse the repository at this point in the history
The VMA_AREA_MEMFD constant was introduced with commit

29a1a88
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 <[email protected]>
  • Loading branch information
rst0git authored and avagin committed Aug 18, 2023
1 parent 2199220 commit e1cda9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions coredump/criu_coredump/coredump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions lib/py/images/pb2dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]

Expand Down

0 comments on commit e1cda9f

Please sign in to comment.