Skip to content

linux-user: Add more syscalls, enhance tracing & logging enhancements

Helge Deller qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 22 repliesIn review
  2. v212 patches 0 repliesSuperseded
  3. v113 patches 7 repliesSuperseded

Changes to v2 from the cover letter

- Fix build of close_range() and pidfd_*() patches on older Linux distributions (noticed by Stefan Hajnoczi)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12linux-user: Add missing signals in strace outputlinux-user/signal-common.h linux-user/signal.c linux-user/strace.c+60 -531 reply
2/12linux-user: Add missing clock_gettime64() syscall stracelinux-user/strace.c linux-user/strace.list+57 -06 replies
3/12linux-user: Add pidfd_open(), pidfd_send_signal() and pidfd_getfd() syscallslinux-user/strace.c linux-user/strace.list linux-user/syscall.c+71 -01 reply
4/12linux-user: Log failing executable in EXCP_DUMP()linux-user/cpu_loop-common.h+2 -02 replies
5/12linux-user/hppa: Use EXCP_DUMP() to show enhanced debug infolinux-user/hppa/cpu_loop.c+5 -11 reply
6/12linux-user/hppa: Dump IIR on register dumptarget/hppa/helper.c+4 -22 replies
7/12linux-user: Fix strace of chmod() if mode == 0linux-user/strace.c+5 -02 replies
8/12linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa archlinux-user/mmap.c+4 -00 replies
9/12linux-user: Add strace for clock_nanosleep()linux-user/strace.c linux-user/strace.list+17 -11 reply
10/12linux-user: Show timespec on strace for futex()linux-user/strace.c+10 -11 reply
11/12linux-user: Add close_range() syscalllinux-user/strace.list linux-user/syscall.c+19 -01 reply
12/12linux-user: Add parameters of getrandom() syscall for stracelinux-user/strace.list+1 -11 reply

Reviews trailers per patch

10 of 12 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéLaurent Vivier
1/12R-b
2/12R-b
3/12R-b
4/12R-b R-b
5/12R-b
6/12R-b R-b
7/12R-b R-b
8/12
9/12R-b
10/12R-b
11/12
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/12] linux-user: Add more syscalls, enhance tracing & logging enhancements

Here is a bunch of patches for linux-user.

Most of them add missing syscalls and enhance the tracing/logging. Some of the patches are target-hppa specific.
I've tested those on productive hppa debian buildd servers (running qemu-user).

Thanks!
Helge

Changes to v2:
- Fix build of close_range() and pidfd_*() patches on older Linux distributions (noticed by Stefan Hajnoczi)

Changes to v1:
- Dropped the faccessat2() syscall patch in favour of Richard's patch
- Various changes to the "missing signals in strace output" patch based on Richard's feedback, e.g. static arrays, fixed usage of _NSIG, fix build when TARGET_SIGIOT does not exist
- Use FUTEX_CMD_MASK in "Show timespec on strace for futex" patch unconditionally and turn into a switch statement - as suggested by Richard

Helge Deller (12):
linux-user: Add missing signals in strace output
linux-user: Add missing clock_gettime64() syscall strace
linux-user: Add pidfd_open(), pidfd_send_signal() and pidfd_getfd()
syscalls
linux-user: Log failing executable in EXCP_DUMP() linux-user/hppa: Use EXCP_DUMP() to show enhanced debug info linux-user/hppa: Dump IIR on register dump
linux-user: Fix strace of chmod() if mode == 0 linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa arch
linux-user: Add strace for clock_nanosleep()
linux-user: Show timespec on strace for futex()
linux-user: Add close_range() syscall
linux-user: Add parameters of getrandom() syscall for strace

 linux-user/cpu_loop-common.h |   2 +
 linux-user/hppa/cpu_loop.c   |   6 +-
 linux-user/mmap.c            |   4 +
 linux-user/signal-common.h   |  46 ++++++++++++
 linux-user/signal.c          |  37 +--------
 linux-user/strace.c          | 142 ++++++++++++++++++++++++++++++-----
 linux-user/strace.list       |  21 +++++-
 linux-user/syscall.c         |  50 ++++++++++++
 target/hppa/helper.c         |   6 +-
 9 files changed, 255 insertions(+), 59 deletions(-)

--
2.37.3