[PATCH] linux-user: add strace for dup3

Andreas Schwab posted 1 patch 6 years, 1 month ago
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test docker-clang@ubuntu failed
Test asan passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/mvmsgoe17l5.fsf@suse.de
Maintainers: Riku Voipio <riku.voipio@iki.fi>, Laurent Vivier <laurent@vivier.eu>
linux-user/strace.list | 3 +++
1 file changed, 3 insertions(+)
[PATCH] linux-user: add strace for dup3
Posted by Andreas Schwab 6 years, 1 month ago
Signed-off-by: Andreas Schwab <schwab@suse.de>
---
 linux-user/strace.list | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/linux-user/strace.list b/linux-user/strace.list
index 63a946642d..863283418e 100644
--- a/linux-user/strace.list
+++ b/linux-user/strace.list
@@ -121,6 +121,9 @@
 #ifdef TARGET_NR_dup2
 { TARGET_NR_dup2, "dup2" , NULL, NULL, NULL },
 #endif
+#ifdef TARGET_NR_dup3
+{ TARGET_NR_dup3, "dup3" , NULL, NULL, NULL },
+#endif
 #ifdef TARGET_NR_epoll_create
 { TARGET_NR_epoll_create, "epoll_create" , NULL, NULL, NULL },
 #endif
-- 
2.23.0


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Re: [PATCH] linux-user: add strace for dup3
Posted by Philippe Mathieu-Daudé 6 years, 1 month ago
On 9/30/19 11:01 AM, Andreas Schwab wrote:
> Signed-off-by: Andreas Schwab <schwab@suse.de>
> ---
>   linux-user/strace.list | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/linux-user/strace.list b/linux-user/strace.list
> index 63a946642d..863283418e 100644
> --- a/linux-user/strace.list
> +++ b/linux-user/strace.list
> @@ -121,6 +121,9 @@
>   #ifdef TARGET_NR_dup2
>   { TARGET_NR_dup2, "dup2" , NULL, NULL, NULL },
>   #endif
> +#ifdef TARGET_NR_dup3
> +{ TARGET_NR_dup3, "dup3" , NULL, NULL, NULL },
> +#endif
>   #ifdef TARGET_NR_epoll_create
>   { TARGET_NR_epoll_create, "epoll_create" , NULL, NULL, NULL },
>   #endif
> 

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>


Re: [PATCH] linux-user: add strace for dup3
Posted by Laurent Vivier 6 years ago
Le 30/09/2019 à 11:01, Andreas Schwab a écrit :
> Signed-off-by: Andreas Schwab <schwab@suse.de>
> ---
>  linux-user/strace.list | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/linux-user/strace.list b/linux-user/strace.list
> index 63a946642d..863283418e 100644
> --- a/linux-user/strace.list
> +++ b/linux-user/strace.list
> @@ -121,6 +121,9 @@
>  #ifdef TARGET_NR_dup2
>  { TARGET_NR_dup2, "dup2" , NULL, NULL, NULL },
>  #endif
> +#ifdef TARGET_NR_dup3
> +{ TARGET_NR_dup3, "dup3" , NULL, NULL, NULL },
> +#endif
>  #ifdef TARGET_NR_epoll_create
>  { TARGET_NR_epoll_create, "epoll_create" , NULL, NULL, NULL },
>  #endif
> 

Applied to my linux-user branch.

Thanks,
Laurent