qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Aleksandar Markovic <aleksandar.m.mail@gmail.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v7 00/74] linux-user: Split do_syscall
Date: Wed, 22 May 2019 07:29:08 -0400	[thread overview]
Message-ID: <b367612d-8113-e342-8843-7db1a1a7dd0f@linaro.org> (raw)
In-Reply-To: <CAL1e-=i_=EQ02A1DGmVgqNi1ik=h39FZTOsxkGWfMa4ZoM6rjg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1336 bytes --]

[Adding the mailing list back in.]

On 5/22/19 2:47 AM, Aleksandar Markovic wrote:
>> > Version 6 was
>> > https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04794.html
>> >
>> > Since v5, I've fixed the ioctl failure that Laurent found, and
>> > have done a few more syscalls.
>> >
>> > I've tried to do more testing with LTP....
> 
> Running LTP is certainly a very important way of testing this series. However,
> it is not sufficient. This is because this series completely replaces internal
> QEMU strace mechanism for involved system calls,

What you missed because of the very large time lag between iterations, and
because I was lazy and only referenced v6 in this cover letter, is that in an
early revision the major objection was that I *wasn't* replacing strace, and
thus we were retaining lots of duplicate logic in multiple places.


> and any bug in such
> replacement would not be captured by LTP results. How did you test new strace
> bits and peaces? Can you provide logs of such tests (for example, before/after
> comparisons of strace output for relevant system calls, or similar)?

My strace testing is totally ad-hoc.  Run something with -strace and eyeball it.

Here are before/after logs for busybox ls (aka linux-user-test-0.3, which has
for some reason vanished from the qemu wiki?) for alpha-linux-user.

[-- Attachment #2: ls-strace-before --]
[-- Type: text/plain, Size: 2691 bytes --]

657 uname(0x40008014b8) = 0
657 brk(NULL) = 0x000000012006a000
657 access("/etc/ld.so.nohwcap",F_OK) = -1 errno=2 (No such file or directory)
657 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x000000400082e000
657 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
657 open("/etc/ld.so.cache",O_RDONLY) = 3
657 fstat64(3,0x0000004000800c30) = 0
657 close(3) = 0
657 open("/lib/tls/libc.so.6.1",O_RDONLY) = -1 errno=2 (No such file or directory)
657 stat64("/lib/tls",0x0000004000800bb0) = -1 errno=2 (No such file or directory)
657 open("/lib/libc.so.6.1",O_RDONLY) = 3
657 read(3,0x800da8,640) = 640
657 fstat64(3,0x0000004000800c30) = 0
657 mmap(NULL,927824,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x0000004000830000
657 mprotect(0x00000040008f2000,133200,PROT_NONE) = 0
657 mmap(0x0000004000902000,65536,PROT_EXEC|PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xc2000) = 0x0000004000902000
657 mmap(0x0000004000912000,2128,PROT_EXEC|PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x0000004000912000
657 close(3) = 0
657 mprotect(0x000000400082a000,8192,PROT_READ) = 0
657 getxuid(274886302098,4832112143,77,24,4831859744,274886356864) = 1000
657 getxgid(274886302098,4832112143,77,0,1000,274886356864) = 1000
657 setgid(1000,4832112143,77,0,1000,274886356864) = 0
657 setuid(1000,4832112143,77,0,1000,274886356864) = 0
657 ioctl(1,1074295912,274886301072,0,1000,274886356864) = 0
657 lstat64("dummyfile",0x0000004000801510) = 0
657 brk(NULL) = 0x000000012006a000
657 brk(0x000000012008c000) = 0x000000012008c000
657 open("/etc/localtime",O_RDONLY) = 3
657 fstat64(3,0x0000004000801360) = 0
657 fstat64(3,0x00000040008011f0) = 0
657 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000004000914000
657 read(3,0x914000,4096) = 3545
657 close(3) = 0
657 munmap(0x0000004000914000,8192) = 0
657 fstat64(1,0x0000004000800c70) = 0
657 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000004000916000
657 open("/etc/passwd",O_RDONLY) = 3
657 fstat64(3,0x0000004000801290) = 0
657 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000004000918000
657 read(3,0x918000,4096) = 2727
657 close(3) = 0
657 munmap(0x0000004000918000,8192) = 0
657 open("/etc/group",O_RDONLY) = 3
657 fstat64(3,0x0000004000801290) = 0
657 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x000000400091a000
657 read(3,0x91a000,4096) = 1043
657 close(3) = 0
657 munmap(0x000000400091a000,8192) = 0
657 gettimeofday(274886300912,0,1,0,103,1024) = 0
657 write(1,0x916000,66) = 66
657 munmap(0x0000004000916000,8192) = 0
657 exit_group(0)

[-- Attachment #3: ls-strace-after --]
[-- Type: text/plain, Size: 2899 bytes --]

17862 uname(0x40008014b8) = 0
17862 brk(NULL) = 0x000000012006a000
17862 access("/etc/ld.so.nohwcap", F_OK) = -1 errno=2 (No such file or directory)
17862 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x000000400082e000
17862 access("/etc/ld.so.preload", R_OK) = -1 errno=2 (No such file or directory)
17862 open("/etc/ld.so.cache", O_RDONLY, 01) = 3
17862 fstat64(3,0x0000004000800c30) = 0
17862 close(3) = 0
17862 open("/lib/tls/libc.so.6.1", O_RDONLY, 014) = -1 errno=2 (No such file or directory)
17862 stat64("/lib/tls",0x0000004000800bb0) = -1 errno=2 (No such file or directory)
17862 open("/lib/libc.so.6.1", O_RDONLY, 014) = 3
17862 read(3, 0x0000004000800da8, 640) = 640
17862 fstat64(3,0x0000004000800c30) = 0
17862 mmap(NULL, 927824, PROT_EXEC|PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x0000004000830000
17862 mprotect(0x00000040008f2000, 133200, PROT_NONE) = 0
17862 mmap(0x0000004000902000, 65536, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED, 3, 794624) = 0x0000004000902000
17862 mmap(0x0000004000912000, 2128, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED, -1, 0) = 0x0000004000912000
17862 close(3) = 0
17862 mprotect(0x000000400082a000, 8192, PROT_READ) = 0
17862 getxuid(274886302098,4832112143,77,24,4831859744,274886356864) = 1000
17862 getxgid(274886302098,4832112143,77,0,1000,274886356864) = 1000
17862 setgid(1000,4832112143,77,0,1000,274886356864) = 0
17862 setuid(1000,4832112143,77,0,1000,274886356864) = 0
17862 ioctl(1, 40087468) = 0
17862 lstat64("dummyfile",0x0000004000801510) = 0
17862 brk(NULL) = 0x000000012006a000
17862 brk(0x000000012008c000) = 0x000000012008c000
17862 open("/etc/localtime", O_RDONLY, 0666) = 3
17862 fstat64(3,0x0000004000801360) = 0
17862 fstat64(3,0x00000040008011f0) = 0
17862 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x0000004000914000
17862 read(3, 0x0000004000914000, 4096) = 3545
17862 close(3) = 0
17862 munmap(0x0000004000914000, 8192) = 0
17862 fstat64(1,0x0000004000800c70) = 0
17862 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x0000004000916000
17862 open("/etc/passwd", O_RDONLY, 0666) = 3
17862 fstat64(3,0x0000004000801290) = 0
17862 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x0000004000918000
17862 read(3, 0x0000004000918000, 4096) = 2727
17862 close(3) = 0
17862 munmap(0x0000004000918000, 8192) = 0
17862 open("/etc/group", O_RDONLY, 0666) = 3
17862 fstat64(3,0x0000004000801290) = 0
17862 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x000000400091a000
17862 read(3, 0x000000400091a000, 4096) = 1043
17862 close(3) = 0
17862 munmap(0x000000400091a000, 8192) = 0
17862 gettimeofday(0x00000040008014f0) = 0
17862 write(1, 0x0000004000916000, 66) = 66
17862 munmap(0x0000004000916000, 8192) = 0
17862 exit_group(0)

      parent reply	other threads:[~2019-05-22 11:30 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-19 20:36 [Qemu-devel] [PATCH v7 00/74] linux-user: Split do_syscall Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 01/74] linux-user: Setup split syscall infrastructure Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 02/74] linux-user: Split out open, open_at Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 03/74] linux-user: Share more code for open and openat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 04/74] linux-user: Tidy do_openat loop over fakes Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 05/74] linux-user: Split out readlink, readlinkat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 06/74] linux-user: Split out close Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 07/74] linux-user: Split out read, write Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 08/74] linux-user: Reduce regpairs_aligned & target_offset64 ifdefs Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 09/74] linux-user: Split out readv, writev Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 10/74] linux-user: Split out pread64, pwrite64 Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 11/74] linux-user: Split out preadv, pwritev Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 12/74] linux-user: Split out name_to_handle_at, open_by_handle_at Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 13/74] linux-user: Split out ipc syscalls Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 14/74] linux-user: Split out memory syscalls Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 15/74] linux-user: Split out exit Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 16/74] linux-user: Split out brk Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 17/74] linux-user: Split out clone, fork, vfork Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 18/74] linux-user: Split out wait4, waitid, waitpid Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 19/74] linux-user: Implement rusage argument to waitid Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 20/74] linux-user: Split out creat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 21/74] linux-user: Split out link, linkat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 22/74] linux-user: Split out unlink, unlinkat, rmdir Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 23/74] linux-user: Split out execve Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 24/74] linux-user: Implement execveat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 25/74] linux-user: Split out chdir Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 26/74] linux-user: Split out time Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 27/74] linux-user: Split out mknod, mknodat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 28/74] linux-user: Split out chmod, fchmod, fchmodat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 29/74] linux-user: Split out lseek, llseek Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 30/74] linux-user: Split out getpid, getppid, getxpid Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 31/74] linux-user: Split out mount Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 32/74] linux-user: Split out umount, umount2 Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 33/74] linux-user: Split out stime Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 34/74] linux-user: Split out alarm, pause Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 35/74] linux-user: Split out utime, utimes, futimesat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 36/74] linux-user: Split out access, faccessat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 37/74] linux-user: Split out nice Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 38/74] linux-user: Split out sync, syncfs Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 39/74] linux-user: Split out kill Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 40/74] linux-user: Split out rename, renameat, renameat2 Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 41/74] linux-user: Split out mkdir, mkdirat Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 42/74] linux-user: Split out dup, dup2, dup3 Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 43/74] linux-user: Split out pipe, pipe2 Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 44/74] linux-user: Split out times Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 45/74] linux-user: Split out acct Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 46/74] linux-user: Move syscall_init to the end Richard Henderson
2019-05-19 20:36 ` [Qemu-devel] [PATCH v7 47/74] linux-user: Split out ioctl Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 48/74] linux-user: Fix types in ioctl logging Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 49/74] linux-user: Remove sentinel from ioctl_entries Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 50/74] linux-user: Split out fcntl, fcntl64 Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 51/74] linux-user: Split out setpgid Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 52/74] linux-user: Split out umask Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 53/74] linux-user: Split out chroot Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 54/74] linux-user: Split out getpgid, getpgrp Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 55/74] linux-user: Split out getsid, setsid Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 56/74] linux-user: Split out sigaction, rt_sigaction Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 57/74] linux-user: Split out sgetmask, ssetmask Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 58/74] linux-user: Split out sigprocmask, rt_sigprocmask Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 59/74] linux-user: Split out sigpending, rt_sigpending Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 60/74] linux-user: Split out sigsuspend, rt_sigsuspend Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 61/74] linux-user: Split out rt_sigtimedwait Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 62/74] linux-user: Split out rt_sigqueueinfo, rt_tgsigqueueinfo Richard Henderson
2019-05-20  6:04   ` Aleksandar Markovic
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 63/74] linux-user: Split out sigreturn, rt_sigreturn Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 64/74] linux-user: Split out gethostname, sethostname Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 65/74] linux-user: Split out getrlimit, setrlimit Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 66/74] linux-user: Split out getrusage Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 67/74] linux-user: Split out gettimeofday, settimeofday Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 68/74] linux-user: Split out select, _newselect Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 69/74] linux-user: Split out pselect6 Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 70/74] linux-user: Split out symlink, symlinkat Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 71/74] linux-user: Split out swapon, swapoff Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 72/74] linux-user: Split out reboot Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 73/74] linux-user: Split out truncate, truncate64, ftruncate, ftruncate64 Richard Henderson
2019-05-19 20:37 ` [Qemu-devel] [PATCH v7 74/74] linux-user: Split out getpriority, setpriority Richard Henderson
2019-05-20  6:21 ` [Qemu-devel] [PATCH v7 00/74] linux-user: Split do_syscall Laurent Vivier
2019-05-20  9:42 ` Peter Maydell
2019-05-20 10:13   ` Aleksandar Markovic
2019-05-22  6:11 ` Aleksandar Markovic
     [not found]   ` <CAL1e-=i_=EQ02A1DGmVgqNi1ik=h39FZTOsxkGWfMa4ZoM6rjg@mail.gmail.com>
2019-05-22 11:29     ` Richard Henderson [this message]

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=b367612d-8113-e342-8843-7db1a1a7dd0f@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=aleksandar.m.mail@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).