>From 80267d6d1f600e5e9327027c5883701f5218c43e Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 29 Mar 2022 20:37:15 +0000 Subject: [PATCH 18/20] sys/prctl.h: add PR_SET_VMA_ANON_NAME from linux v5.17 allows setting a name for anonymous VMAs that is displayed in /proc/pid/maps and /proc/pid/smaps, see linux commit 9a10064f5625d5572c3626c1516e0bebc6c9fe9b mm: add a field to store names for private anonymous memory --- include/sys/prctl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/sys/prctl.h b/include/sys/prctl.h index 755d1665..f23ab234 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -188,6 +188,9 @@ struct prctl_mm_map { #define PR_SCHED_CORE_SCOPE_THREAD_GROUP 1 #define PR_SCHED_CORE_SCOPE_PROCESS_GROUP 2 +#define PR_SET_VMA 0x53564d41 +#define PR_SET_VMA_ANON_NAME 0 + int prctl (int, ...); #ifdef __cplusplus -- 2.35.1