Skip to contentSkip to conversation

linux-user: Add missing MAP_HUGETLB and MAP_STACK flags in strace

PATCH Applied Helge Deller 2 participants 3 messages Dec 13, 2022 – Jan 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Add missing MAP_HUGETLB and MAP_STACK flags in strace

Add two missing mmap flags.

linux-user/strace.c +2 -0
index 8fa5c1ec3d..3ea91084fb 100644
@@ -1089,6 +1089,8 @@ UNUSED static struct flags mmap_flags[] = {
 #ifdef TARGET_MAP_UNINITIALIZED
     FLAG_TARGET(MAP_UNINITIALIZED),
 #endif
+    FLAG_TARGET(MAP_HUGETLB),
+    FLAG_TARGET(MAP_STACK),
     FLAG_END,
 };
 
Reviewed-by on v1 1/1
#1 lore raw

Le 13/12/2022 à 17:02, Helge Deller a écrit :

Quoted 10 lines

Add two missing mmap flags.

linux-user/strace.c +0 -0
index 8fa5c1ec3d..3ea91084fb 100644

linux-user/strace.c UNUSED static struct flags mmap_flags[] = { · line 1096

Quoted 8 lines
linux-user/strace.c +2 -0
@@ -1089,6 +1089,8 @@ UNUSED static struct flags mmap_flags[] = {
  #ifdef TARGET_MAP_UNINITIALIZED
      FLAG_TARGET(MAP_UNINITIALIZED),
  #endif
+    FLAG_TARGET(MAP_HUGETLB),
+    FLAG_TARGET(MAP_STACK),
      FLAG_END,
  };
 
#2 lore raw
In reply to Helge Deller

Le 13/12/2022 à 17:02, Helge Deller a écrit :

Quoted 10 lines

Add two missing mmap flags.

linux-user/strace.c +0 -0
index 8fa5c1ec3d..3ea91084fb 100644

linux-user/strace.c UNUSED static struct flags mmap_flags[] = { · line 1096

Quoted 8 lines
linux-user/strace.c +2 -0
@@ -1089,6 +1089,8 @@ UNUSED static struct flags mmap_flags[] = {
  #ifdef TARGET_MAP_UNINITIALIZED
      FLAG_TARGET(MAP_UNINITIALIZED),
  #endif
+    FLAG_TARGET(MAP_HUGETLB),
+    FLAG_TARGET(MAP_STACK),
      FLAG_END,
  };
 

Applied to my linux-user-for-8.0 branch.

Thanks,
Laurent