All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Adding support for printing contents of 'struct termios' which is used by ioctls of group 'ioctl_tty'
@ 2020-07-23 21:02 Filip Bozuta
  2020-07-23 21:02 ` [PATCH v2 1/3] linux-user: Add generic 'termbits.h' for some archs Filip Bozuta
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Filip Bozuta @ 2020-07-23 21:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Riku Voipio, Laurent Vivier, Filip Bozuta

This series introduces strace printing functionality for
contents of 'struct termios'.

The first patch in the series introduces a generic 'termbits.h'
file for some architectures which have same 'struct termios'
flag values and 'ioctl_tty' definitions.

The second patch introduces some missing types and flag
values for 'struct termios' which are needed to print
it's contents.

The third patch introduces the 'strace' argument printing
functionality itself by using existing functions and macros
in 'strace.c'.

Testing method:

    The argument printing functionality was tested using mini
    test program, which were cross compiled for certain
    architectures ('ppc','ppc64','mips','mips64','mipsel'),
    in which the ioctls of group 'ioctl_tty' were used.
    These programs were cross executed with QEMU with "-strace"
    to check if the contents 'struct termios' are getting
    correctly printed.

Based-on: <20200722200437.312767-1-Filip.Bozuta@syrmia.com>

Filip Bozuta (5):
  linux-user: Add generic 'termbits.h' for some archs
  linux-user: Add missing termbits types and values definitions
  linux-user: Add strace support for printing arguments for ioctls used
    for terminals and serial lines

 include/exec/user/thunk.h        |   1 +
 linux-user/aarch64/termbits.h    | 228 +----------------
 linux-user/alpha/termbits.h      |   1 +
 linux-user/arm/termbits.h        | 223 +----------------
 linux-user/cris/termbits.h       |  18 +-
 linux-user/generic/termbits.h    | 318 +++++++++++++++++++++++
 linux-user/hppa/termbits.h       |  17 +-
 linux-user/i386/termbits.h       | 233 +----------------
 linux-user/m68k/termbits.h       | 234 +----------------
 linux-user/microblaze/termbits.h | 220 +---------------
 linux-user/mips/termbits.h       |  17 +-
 linux-user/nios2/termbits.h      | 228 +----------------
 linux-user/openrisc/termbits.h   | 302 +---------------------
 linux-user/ppc/termbits.h        |  21 +-
 linux-user/qemu.h                |   1 +
 linux-user/riscv/termbits.h      | 228 +----------------
 linux-user/s390x/termbits.h      | 289 +--------------------
 linux-user/sh4/termbits.h        |  19 +-
 linux-user/sparc/termbits.h      |  18 +-
 linux-user/sparc64/termbits.h    |  18 +-
 linux-user/strace.c              | 415 ++++++++++++++++++++++++++++++-
 linux-user/strace.list           |  17 +-
 linux-user/syscall.c             |  35 +--
 linux-user/tilegx/termbits.h     | 276 +-------------------
 linux-user/x86_64/termbits.h     | 254 +------------------
 linux-user/xtensa/termbits.h     |  53 ++--
 thunk.c                          |  23 +-
 27 files changed, 900 insertions(+), 2807 deletions(-)
 create mode 100644 linux-user/generic/termbits.h

-- 
2.25.1



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

end of thread, other threads:[~2020-08-24 20:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 21:02 [PATCH v2 0/3] Adding support for printing contents of 'struct termios' which is used by ioctls of group 'ioctl_tty' Filip Bozuta
2020-07-23 21:02 ` [PATCH v2 1/3] linux-user: Add generic 'termbits.h' for some archs Filip Bozuta
2020-08-07 13:10   ` Laurent Vivier
2020-08-24 20:38   ` Laurent Vivier
2020-07-23 21:02 ` [PATCH v2 2/3] linux-user: Add missing termbits types and values definitions Filip Bozuta
2020-07-23 21:25   ` Max Filippov
2020-07-23 21:27     ` Max Filippov
2020-08-07 13:13   ` Laurent Vivier
2020-08-24 20:39   ` Laurent Vivier
2020-07-23 21:02 ` [PATCH v2 3/3] linux-user: Add strace support for printing arguments for ioctls used for terminals and serial lines Filip Bozuta
2020-08-07 13:18   ` Laurent Vivier
2020-08-24 20:50   ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.