Revision 8142bd82a59e452fefea7b21113101d6a87d9fa8 authored by Arnaldo Carvalho de Melo on 25 March 2019, 14:34:04 UTC, committed by Arnaldo Carvalho de Melo on 28 March 2019, 17:41:11 UTC
To pick up the changes introduced in the following csets: 2b188cc1bb85 ("Add io_uring IO interface") edafccee56ff ("io_uring: add support for pre-mapped user IO buffers") 3eb39f47934f ("signal: add pidfd_send_signal() syscall") This makes 'perf trace' to become aware of these new syscalls, so that one can use them like 'perf trace -e ui_uring*,*signal' to do a system wide strace-like session looking at those syscalls, for instance. For example: # perf trace -s io_uring-cp ~acme/isos/RHEL-x86_64-dvd1.iso ~/bla Summary of events: io_uring-cp (383), 1208866 events, 100.0% syscall calls total min avg max stddev (msec) (msec) (msec) (msec) (%) -------------- ------ -------- ------ ------- ------- ------ io_uring_enter 605780 2955.615 0.000 0.005 33.804 1.94% openat 4 459.446 0.004 114.861 459.435 100.00% munmap 4 0.073 0.009 0.018 0.042 44.03% mmap 10 0.054 0.002 0.005 0.026 43.24% brk 28 0.038 0.001 0.001 0.003 7.51% io_uring_setup 1 0.030 0.030 0.030 0.030 0.00% mprotect 4 0.014 0.002 0.004 0.005 14.32% close 5 0.012 0.001 0.002 0.004 28.87% fstat 3 0.006 0.001 0.002 0.003 35.83% read 4 0.004 0.001 0.001 0.002 13.58% access 1 0.003 0.003 0.003 0.003 0.00% lseek 3 0.002 0.001 0.001 0.001 9.00% arch_prctl 2 0.002 0.001 0.001 0.001 0.69% execve 1 0.000 0.000 0.000 0.000 0.00% # # perf trace -e io_uring* -s io_uring-cp ~acme/isos/RHEL-x86_64-dvd1.iso ~/bla Summary of events: io_uring-cp (390), 1191250 events, 100.0% syscall calls total min avg max stddev (msec) (msec) (msec) (msec) (%) -------------- ------ -------- ------ ------ ------ ------ io_uring_enter 597093 2706.060 0.001 0.005 14.761 1.10% io_uring_setup 1 0.038 0.038 0.038 0.038 0.00% # More work needed to make the tools/perf/examples/bpf/augmented_raw_syscalls.c BPF program to copy the 'struct io_uring_params' arguments to perf's ring buffer so that 'perf trace' can use the BTF info put in place by pahole's conversion of the kernel DWARF and then auto-beautify those arguments. This patch produces the expected change in the generated syscalls table for x86_64: --- /tmp/build/perf/arch/x86/include/generated/asm/syscalls_64.c.before 2019-03-26 13:37:46.679057774 -0300 +++ /tmp/build/perf/arch/x86/include/generated/asm/syscalls_64.c 2019-03-26 13:38:12.755990383 -0300 @@ -334,5 +334,9 @@ static const char *syscalltbl_x86_64[] = [332] = "statx", [333] = "io_pgetevents", [334] = "rseq", + [424] = "pidfd_send_signal", + [425] = "io_uring_setup", + [426] = "io_uring_enter", + [427] = "io_uring_register", }; -#define SYSCALLTBL_x86_64_MAX_ID 334 +#define SYSCALLTBL_x86_64_MAX_ID 427 This silences these perf build warnings: Warning: Kernel ABI header at 'tools/include/uapi/asm-generic/unistd.h' differs from latest version at 'include/uapi/asm-generic/unistd.h' diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl' diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com> Cc: Christian Brauner <christian@brauner.io> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Jens Axboe <axboe@kernel.dk> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Martin KaFai Lau <kafai@fb.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Song Liu <songliubraving@fb.com> Cc: Yonghong Song <yhs@fb.com> Link: https://lkml.kernel.org/n/tip-p0ars3otuc52x5iznf21shhw@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 8239251
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 5.1 KB |
Makefile | -rw-r--r-- | 918 bytes |
acl.h | -rw-r--r-- | 2.4 KB |
auth.c | -rw-r--r-- | 2.1 KB |
auth.h | -rw-r--r-- | 378 bytes |
blocklayout.c | -rw-r--r-- | 11.2 KB |
blocklayoutxdr.c | -rw-r--r-- | 5.2 KB |
blocklayoutxdr.h | -rw-r--r-- | 1.4 KB |
cache.h | -rw-r--r-- | 1.8 KB |
current_stateid.h | -rw-r--r-- | 1.4 KB |
export.c | -rw-r--r-- | 31.8 KB |
export.h | -rw-r--r-- | 3.0 KB |
fault_inject.c | -rw-r--r-- | 3.7 KB |
flexfilelayout.c | -rw-r--r-- | 3.4 KB |
flexfilelayoutxdr.c | -rw-r--r-- | 2.7 KB |
flexfilelayoutxdr.h | -rw-r--r-- | 1.1 KB |
idmap.h | -rw-r--r-- | 2.3 KB |
lockd.c | -rw-r--r-- | 1.7 KB |
netns.h | -rw-r--r-- | 4.0 KB |
nfs2acl.c | -rw-r--r-- | 9.3 KB |
nfs3acl.c | -rw-r--r-- | 6.6 KB |
nfs3proc.c | -rw-r--r-- | 24.4 KB |
nfs3xdr.c | -rw-r--r-- | 27.4 KB |
nfs4acl.c | -rw-r--r-- | 21.8 KB |
nfs4callback.c | -rw-r--r-- | 31.8 KB |
nfs4idmap.c | -rw-r--r-- | 16.2 KB |
nfs4layouts.c | -rw-r--r-- | 18.6 KB |
nfs4proc.c | -rw-r--r-- | 76.4 KB |
nfs4recover.c | -rw-r--r-- | 35.5 KB |
nfs4state.c | -rw-r--r-- | 188.5 KB |
nfs4xdr.c | -rw-r--r-- | 116.3 KB |
nfscache.c | -rw-r--r-- | 15.3 KB |
nfsctl.c | -rw-r--r-- | 33.7 KB |
nfsd.h | -rw-r--r-- | 16.9 KB |
nfsfh.c | -rw-r--r-- | 18.5 KB |
nfsfh.h | -rw-r--r-- | 7.5 KB |
nfsproc.c | -rw-r--r-- | 21.3 KB |
nfssvc.c | -rw-r--r-- | 21.6 KB |
nfsxdr.c | -rw-r--r-- | 13.3 KB |
pnfs.h | -rw-r--r-- | 2.7 KB |
state.h | -rw-r--r-- | 23.1 KB |
stats.c | -rw-r--r-- | 2.7 KB |
stats.h | -rw-r--r-- | 1.5 KB |
trace.c | -rw-r--r-- | 48 bytes |
trace.h | -rw-r--r-- | 4.4 KB |
vfs.c | -rw-r--r-- | 51.4 KB |
vfs.h | -rw-r--r-- | 5.8 KB |
xdr.h | -rw-r--r-- | 3.6 KB |
xdr3.h | -rw-r--r-- | 7.2 KB |
xdr4.h | -rw-r--r-- | 24.4 KB |
xdr4cb.h | -rw-r--r-- | 1.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...