Message ID | 20200611155109.3648-1-filip.bozuta@syrmia.com (mailing list archive) |
---|---|
Headers | show |
Series | Add strace support for printing arguments of selected syscalls | expand |
Patchew URL: https://patchew.org/QEMU/20200611155109.3648-1-filip.bozuta@syrmia.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200611155109.3648-1-filip.bozuta@syrmia.com Subject: [PATCH v3 0/6] Add strace support for printing arguments of selected syscalls Type: series === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test' 013fd5b linux-user: Add strace support for printing arguments of fallocate() 5e6db1c linux-user: Add strace support for printing arguments of chown()/lchown() 1a68f0d linux-user: Add strace support for printing arguments of lseek() f6287a2 linux-user: Add strace support for printing argument of syscalls used for extended attributes a6be0b5 linux-user: Add strace support for a group of syscalls 065de90 linux-user: Extend strace support to enable argument printing after syscall execution === OUTPUT BEGIN === 1/6 Checking commit 065de9028073 (linux-user: Extend strace support to enable argument printing after syscall execution) 2/6 Checking commit a6be0b55e6e5 (linux-user: Add strace support for a group of syscalls) 3/6 Checking commit f6287a23537e (linux-user: Add strace support for printing argument of syscalls used for extended attributes) 4/6 Checking commit 1a68f0dc91b3 (linux-user: Add strace support for printing arguments of lseek()) 5/6 Checking commit 5e6db1ccb67c (linux-user: Add strace support for printing arguments of chown()/lchown()) 6/6 Checking commit 013fd5b8be2f (linux-user: Add strace support for printing arguments of fallocate()) ERROR: storage class should be at the beginning of the declaration #70: FILE: linux-user/strace.c:1147: +UNUSED static struct flags falloc_flags[] = { total: 1 errors, 0 warnings, 104 lines checked Patch 6/6 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. === OUTPUT END === Test command exited with code: 1 The full log is available at http://patchew.org/logs/20200611155109.3648-1-filip.bozuta@syrmia.com/testing.checkpatch/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-devel@redhat.com
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(-)