[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qemu-xen stable-4.14] linux-user/strace.list: fix epoll_create{,1} -strace output



commit 160546b81ec54a08153305e40db7e524723904ab
Author:     Sergei Trofimovich <slyfox@xxxxxxxxxx>
AuthorDate: Thu Apr 16 18:59:57 2020 +0100
Commit:     Michael Roth <mdroth@xxxxxxxxxxxxxxxxxx>
CommitDate: Tue Aug 25 14:31:34 2020 -0500

    linux-user/strace.list: fix epoll_create{,1} -strace output
    
    Fix syscall name and parameters priinter.
    
    Before the change:
    
    ```
    $ alpha-linux-user/qemu-alpha -strace -L /usr/alpha-unknown-linux-gnu/ 
/tmp/a
    ...
    1274697 
%s(%d)(2097152,274903156744,274903156760,274905840712,274877908880,274903235616)
 = 3
    1274697 exit_group(0)
    ```
    
    After the change:
    
    ```
    $ alpha-linux-user/qemu-alpha -strace -L /usr/alpha-unknown-linux-gnu/ 
/tmp/a
    ...
    1273719 epoll_create1(2097152) = 3
    1273719 exit_group(0)
    ```
    
    Fixes: 9cbc0578cb6 ("Improve output of various syscalls")
    Signed-off-by: Sergei Trofimovich <slyfox@xxxxxxxxxx>
    CC: Riku Voipio <riku.voipio@xxxxxx>
    CC: Laurent Vivier <laurent@xxxxxxxxx>
    Cc: qemu-stable@xxxxxxxxxx
    Reviewed-by: Philippe Mathieu-Daudé <f4bug@xxxxxxxxx>
    Message-Id: <20200416175957.1274882-1-slyfox@xxxxxxxxxx>
    Signed-off-by: Laurent Vivier <laurent@xxxxxxxxx>
    (cherry picked from commit fd568660b7ae9b9e45cbb616acc91ae4c065c32d)
    Signed-off-by: Michael Roth <mdroth@xxxxxxxxxxxxxxxxxx>
---
 linux-user/strace.list | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/linux-user/strace.list b/linux-user/strace.list
index d49a1e92a8..9281c0a758 100644
--- a/linux-user/strace.list
+++ b/linux-user/strace.list
@@ -125,10 +125,10 @@
 { TARGET_NR_dup3, "dup3" , "%s(%d,%d,%d)", NULL, NULL },
 #endif
 #ifdef TARGET_NR_epoll_create
-{ TARGET_NR_epoll_create, "%s(%d)", NULL, NULL, NULL },
+{ TARGET_NR_epoll_create, "epoll_create", "%s(%d)", NULL, NULL },
 #endif
 #ifdef TARGET_NR_epoll_create1
-{ TARGET_NR_epoll_create1, "%s(%d)", NULL, NULL, NULL },
+{ TARGET_NR_epoll_create1, "epoll_create1", "%s(%d)", NULL, NULL },
 #endif
 #ifdef TARGET_NR_epoll_ctl
 { TARGET_NR_epoll_ctl, "epoll_ctl" , NULL, NULL, NULL },
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#stable-4.14



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.