mbox series

[v2,0/3] Adding support for printing contents of 'struct termios' which is used by ioctls of group 'ioctl_tty'

Message ID 20200723210233.349690-1-Filip.Bozuta@syrmia.com (mailing list archive)
Headers show
Series Adding support for printing contents of 'struct termios' which is used by ioctls of group 'ioctl_tty' | expand

Message

Filip Bozuta July 23, 2020, 9:02 p.m. UTC
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