qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Add strace support for printing arguments of selected syscalls
@ 2020-06-11 15:51 Filip Bozuta
  2020-06-11 15:51 ` [PATCH v3 1/6] linux-user: Extend strace support to enable argument printing after syscall execution Filip Bozuta
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Filip Bozuta @ 2020-06-11 15:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: laurent

From: Filip Bozuta <Filip.Bozuta@syrmia.com>

This series covers strace support for printing arguments of following syscalls:

    *acct()           *lgetxattr()       *removexattr()       *lchown()
    *fsync()          *fgetxattr()       *lremovexattr()      *fallocate()
    *fdatasync()      *listxattr()       *fremovexattr()
    *listen()         *llistxattr()      *lseek()
    *getxattr()       *flistxattr()      *chown()

The implementation details for strace support is described in this series patch
commit messages.

Testing method:

    Mini test programs were written that run these syscalls for different arguments.
    Those programs were compiled (sometimes using cross-compilers) for the following
    architectures:

        * Intel 64-bit (little endian) (gcc)
        * Power pc 32-bit (big endian) (powerpc-linux-gnu-gcc)
        * Power pc 64-bit (big endian) (powerpc64-linux-gnu-gcc)
        * Mips 32-bit (little endian) (mipsel-linux-gnu-gcc)
        * Mips 64-bit (little endian) (mips64el-linux-gnuabi64-gcc)

    The corresponding native programs were executed with strace, without using
    QEMU, on Intel Core i7-4790K (x86_64) host.

    All applicable compiled programs were in turn executed with "-strace"
    through QEMU and the strace printing results obtained were the same 
    ones gotten for native execution.

v2:

    * Added patch that extends strace support by enabling argument printing
      after syscall execution
    * Added strace support for argument printing for syscalls:
      removexattr(), lremovexattr(), fremovexattr()
    * Added "print_syscall_ret_listxattr()" that prints list of extended
      attributes after execution of syscalls: listxattr(), llistxattr(),
      flistxattr()
    * Corrected formats in some printing functions
    * Moved target_offset64() function definition from "syscall.c" to
      "qemu.h"

v3:

    * Added generic function SYSCALL_RET_ERR() that checks the return value
      and prints the approppriate error message
    * Added "print_syscall_ret_llistxattr" and "print_syscall_ret_flistxattr"
      in strace.list for "llistxattr()" and "flistxattr()" that have same
      definition as "print_syscall_ret_listxattr"


Filip Bozuta (6):
  linux-user: Extend strace support to enable argument printing after
    syscall execution
  linux-user: Add strace support for a group of syscalls
  linux-user: Add strace support for printing argument of syscalls used
    for extended attributes
  linux-user: Add strace support for printing arguments of lseek()
  linux-user: Add strace support for printing arguments of
    chown()/lchown()
  linux-user: Add strace support for printing arguments of fallocate()

 linux-user/qemu.h      |  20 +++-
 linux-user/strace.c    | 263 ++++++++++++++++++++++++++++++++++++-----
 linux-user/strace.list |  31 ++---
 linux-user/syscall.c   |  18 +--
 4 files changed, 271 insertions(+), 61 deletions(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-06-15 12:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-11 15:51 [PATCH v3 0/6] Add strace support for printing arguments of selected syscalls Filip Bozuta
2020-06-11 15:51 ` [PATCH v3 1/6] linux-user: Extend strace support to enable argument printing after syscall execution Filip Bozuta
2020-06-15 11:44   ` Laurent Vivier
2020-06-11 15:51 ` [PATCH v3 2/6] linux-user: Add strace support for a group of syscalls Filip Bozuta
2020-06-11 15:51 ` [PATCH v3 3/6] linux-user: Add strace support for printing argument of syscalls used for extended attributes Filip Bozuta
2020-06-15 11:52   ` Laurent Vivier
2020-06-11 15:51 ` [PATCH v3 4/6] linux-user: Add strace support for printing arguments of lseek() Filip Bozuta
2020-06-11 15:51 ` [PATCH v3 5/6] linux-user: Add strace support for printing arguments of chown()/lchown() Filip Bozuta
2020-06-11 15:51 ` [PATCH v3 6/6] linux-user: Add strace support for printing arguments of fallocate() Filip Bozuta
2020-06-15 11:58   ` Laurent Vivier
2020-06-15 12:42     ` Filip Bozuta
2020-06-11 19:58 ` [PATCH v3 0/6] Add strace support for printing arguments of selected syscalls no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).