diff mbox series

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

Message ID Y5iiED4PpnGAHpyz@p100 (mailing list archive)
State New, archived
Headers show
Series linux-user: Add missing MAP_HUGETLB and MAP_STACK flags in strace | expand

Commit Message

Helge Deller Dec. 13, 2022, 4:02 p.m. UTC
Add two missing mmap flags.

Signed-off-by: Helge Deller <deller@gmx.de>

Comments

Laurent Vivier Jan. 25, 2023, 1:14 p.m. UTC | #1
Le 13/12/2022 à 17:02, Helge Deller a écrit :
> Add two missing mmap flags.
> 
> Signed-off-by: Helge Deller <deller@gmx.de>
> 
> diff --git a/linux-user/strace.c b/linux-user/strace.c
> index 8fa5c1ec3d..3ea91084fb 100644
> --- a/linux-user/strace.c
> +++ b/linux-user/strace.c
> @@ -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: Laurent Vivier <laurent@vivier.eu>
Laurent Vivier Jan. 25, 2023, 1:19 p.m. UTC | #2
Le 13/12/2022 à 17:02, Helge Deller a écrit :
> Add two missing mmap flags.
> 
> Signed-off-by: Helge Deller <deller@gmx.de>
> 
> diff --git a/linux-user/strace.c b/linux-user/strace.c
> index 8fa5c1ec3d..3ea91084fb 100644
> --- a/linux-user/strace.c
> +++ b/linux-user/strace.c
> @@ -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
diff mbox series

Patch

diff --git a/linux-user/strace.c b/linux-user/strace.c
index 8fa5c1ec3d..3ea91084fb 100644
--- a/linux-user/strace.c
+++ b/linux-user/strace.c
@@ -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,
 };