All of lore.kernel.org
 help / color / mirror / Atom feed
From: Filip Bozuta <Filip.Bozuta@syrmia.com>
To: qemu-devel@nongnu.org
Cc: Riku Voipio <riku.voipio@iki.fi>,
	Laurent Vivier <laurent@vivier.eu>,
	Filip Bozuta <Filip.Bozuta@syrmia.com>
Subject: [PATCH v2 0/3] Adding support for printing contents of 'struct termios' which is used by ioctls of group 'ioctl_tty'
Date: Thu, 23 Jul 2020 23:02:30 +0200	[thread overview]
Message-ID: <20200723210233.349690-1-Filip.Bozuta@syrmia.com> (raw)

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



             reply	other threads:[~2020-07-23 21:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-23 21:02 Filip Bozuta [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200723210233.349690-1-Filip.Bozuta@syrmia.com \
    --to=filip.bozuta@syrmia.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.