Go to file
Dmitry V. Levin f639f90241 netlink: do not print extra braces around payloadless nlmsghdr
* netlink.c (decode_nlmsghdr_with_payload): Print braces before
print_nlmsghdr and after decode_payload iff decode_payload is invoked.
* tests/netlink_audit.c (test_nlmsg_type): Update expected output.
* tests/netlink_netfilter.c: Likewise.
* tests/netlink_selinux.c: Likewise.
* tests/netlink_protocol.c (send_query): Likewise.
* tests/netlink_route.c (test_nlmsg_type, test_nlmsg_flags): Likewise.
* tests/netlink_sock_diag.c: Likewise.
* tests/netlink_xfrm.c: Likewise.
2017-06-18 21:43:39 +00:00
debian Unify capitalisation of (c) in copyright notices 2017-05-26 19:43:11 +00:00
linux Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
m4 Enable coverage when strace is self terminated by signal 2017-05-27 18:58:31 +00:00
maint Add copyright headers 2017-05-22 17:33:51 +00:00
qemu_multiarch_testing qemu_multiarch_testing/*: make it easier to do debug in sandboxes 2015-03-24 20:54:26 +01:00
test Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
tests netlink: do not print extra braces around payloadless nlmsghdr 2017-06-18 21:43:39 +00:00
xlat Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
.gitignore .gitignore: add missing files that should be ignored 2017-01-20 18:30:11 +00:00
.mailmap .mailmap: add addresses of JingPiao Chen 2017-02-13 21:08:41 +00:00
.travis.yml travis: switch from gcc-6 to gcc-7 2017-06-04 14:20:16 +00:00
access.c access.c: make use of RVAL_DECODED 2015-07-20 22:03:07 +00:00
affinity.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
aio.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
alpha.c alpha: fix decoding of osf_statfs and osf_fstatfs syscalls 2016-04-25 23:52:03 +00:00
AUTHORS 2002-12-22 Roland McGrath <roland@redhat.com> 2002-12-30 00:51:30 +00:00
bjm.c Add copyright headers 2017-05-22 17:33:51 +00:00
block.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
bootstrap tests: generate pure_executables part of check_PROGRAMS automatically 2017-04-17 00:53:19 +00:00
bpf.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
btrfs.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
build_static_example.sh Use bootstrap script consistently 2014-05-30 21:31:08 +00:00
cacheflush.c Add copyright headers 2017-05-22 17:33:51 +00:00
capability.c Add copyright headers 2017-05-22 17:33:51 +00:00
caps0.h Move CAP_* definitions out to header files 2015-02-19 00:33:39 +00:00
caps1.h Move CAP_* definitions out to header files 2015-02-19 00:33:39 +00:00
ChangeLog-CVS Generate ChangeLog from git log 2009-07-08 21:01:21 +00:00
chdir.c chdir.c: make use of RVAL_DECODED 2015-07-20 22:03:07 +00:00
chmod.c Fix printing of mode_t, umode_t, and umask types 2016-08-03 23:27:03 +00:00
clone.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
configure.ac Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
copy_file_range.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
COPYING Unify capitalisation of (c) in copyright notices 2017-05-26 19:43:11 +00:00
copyright-year-gen Derive copyright year from the git commit date 2017-04-19 08:29:46 +00:00
count.c Fix a few sizeof style issues 2017-06-17 18:49:58 +00:00
CREDITS.in CREDITS.in: add Jian Zhen 2015-11-25 19:10:56 +00:00
defs.h Strip argument name of type "struct tcb *" from function prototypes 2017-06-17 23:46:01 +00:00
desc.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
dirent64.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
dirent.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
dm.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
empty.h Add mpers support 2015-08-28 08:46:23 +00:00
epoll.c Add copyright headers 2017-05-22 17:33:51 +00:00
evdev.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
eventfd.c Add copyright headers to some files which lack them 2015-12-17 17:56:48 +00:00
execve.c Add copyright headers 2017-05-22 17:33:51 +00:00
fadvise.c Add copyright headers 2017-05-22 17:33:51 +00:00
fallocate.c fallocate: change print format of offset and len arguments to signed 2016-09-27 18:02:07 +00:00
fanotify.c Add copyright headers 2017-05-22 17:33:51 +00:00
fchownat.c fchownat.c: make use of RVAL_DECODED 2015-07-20 22:03:07 +00:00
fcntl.c Add copyright headers 2017-05-22 17:33:51 +00:00
fetch_seccomp_fprog.c Add copyright headers 2017-05-22 17:33:51 +00:00
fetch_struct_flock.c Add copyright headers 2017-05-22 17:33:51 +00:00
fetch_struct_mmsghdr.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
fetch_struct_msghdr.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
fetch_struct_stat64.c Add copyright headers 2017-05-22 17:33:51 +00:00
fetch_struct_stat.c Add copyright headers 2017-05-22 17:33:51 +00:00
fetch_struct_statfs.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
file_handle.c Add copyright headers 2017-05-22 17:33:51 +00:00
file_ioctl.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
flock.c Add copyright headers 2017-05-22 17:33:51 +00:00
flock.h Add copyright headers 2017-05-22 17:33:51 +00:00
fs_x_ioctl.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
fstatfs64.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
fstatfs.c Fix decoding of statfs family syscalls 2016-04-26 01:35:31 +00:00
futex.c Add copyright headers 2017-05-22 17:33:51 +00:00
gcc_compat.h Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
generate_mpers_am.sh Consistently use extended regular expressions where appropriate 2016-07-28 18:32:18 +00:00
generate_sen.sh Generate SEN numbers in a locale independent order 2016-10-04 08:19:27 +00:00
get_robust_list.c Add copyright headers to some files which lack them 2015-12-17 17:56:48 +00:00
getcpu.c getcpu.c: use printnum_int and printaddr 2015-07-20 22:03:07 +00:00
getcwd.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
getrandom.c getrandom: print string as hex-escaped 2017-01-06 11:43:50 +00:00
git-set-file-times Update auxiliary maintainer mode build tools 2015-01-21 21:17:08 +00:00
git-version-gen Add copyright headers 2017-05-22 17:33:51 +00:00
gitlog-to-changelog Update auxiliary maintainer mode build tools 2015-01-21 21:17:08 +00:00
HACKING-scripts Move errnoent.sh, signalent.sh, and syscallent.sh to maint subdirectory 2017-05-16 02:11:35 +00:00
hdio.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
hostname.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
inotify.c Add copyright headers to some files which lack them 2015-12-17 17:56:48 +00:00
INSTALL INSTALL: regenerate from install.texi 2017-03-05 16:29:41 +00:00
INSTALL-git.md Update information on how to build strace from git repository 2017-03-08 09:10:03 +00:00
install.texi install.texi: remove irrelevant sections 2017-03-05 16:29:41 +00:00
io.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
ioctl_iocdef.c ioctlsort: get ioctl definitions from host, not build 2017-01-13 03:17:37 +00:00
ioctl.c Add copyright headers 2017-05-22 17:33:51 +00:00
ioctlsort.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
ioperm.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
iopl.c Implement iopl syscall decoding 2015-11-22 23:10:12 +00:00
ioprio.c Add copyright headers 2017-05-22 17:33:51 +00:00
ipc_defs.h Fix macros encosure in a do/while loop 2017-06-17 21:51:48 +00:00
ipc_msg.c Add copyright headers 2017-05-22 17:33:51 +00:00
ipc_msgctl.c Add copyright headers 2017-05-22 17:33:51 +00:00
ipc_sem.c Add copyright headers 2017-05-22 17:33:51 +00:00
ipc_shm.c Add copyright headers 2017-05-22 17:33:51 +00:00
ipc_shmctl.c Add copyright headers 2017-05-22 17:33:51 +00:00
ipc.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
kcmp.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
kernel_types.h Add copyright headers 2017-05-22 17:33:51 +00:00
kexec.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
keyctl.c Add copyright headers 2017-05-22 17:33:51 +00:00
ldt.c Add copyright headers 2017-05-22 17:33:51 +00:00
link.c Add copyright headers to some files which lack them 2015-12-17 17:56:48 +00:00
lookup_dcookie.c Add copyright headers 2017-05-22 17:33:51 +00:00
loop.c Add copyright headers 2017-05-22 17:33:51 +00:00
lseek.c lseek: simplify _llseek syscall decoder 2016-12-26 11:19:18 +00:00
make-dist make-dist: use HEAD for making distribution package 2016-11-18 12:57:02 +00:00
make-dsc Consistently use extended regular expressions where appropriate 2016-07-28 18:32:18 +00:00
Makefile.am netlink: add a basic socket diag parser of AF_SMC messages 2017-06-15 23:52:47 +00:00
mem.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
membarrier.c Add copyright headers 2017-05-22 17:33:51 +00:00
memfd_create.c Add copyright headers 2017-05-22 17:33:51 +00:00
mknod.c Add copyright headers 2017-05-22 17:33:51 +00:00
mmsghdr.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
mount.c Add copyright headers 2017-05-22 17:33:51 +00:00
mpers_test.sh Add copyright headers 2017-05-22 17:33:51 +00:00
mpers_type.h Add copyright headers 2017-05-22 17:33:51 +00:00
mpers.awk Add copyright headers 2017-05-22 17:33:51 +00:00
mpers.sh Add copyright headers 2017-05-22 17:33:51 +00:00
mq.c Add copyright headers 2017-05-22 17:33:51 +00:00
msghdr.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
msghdr.h Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
mtd.c Add copyright headers 2017-05-22 17:33:51 +00:00
native_defs.h Simplify use of mpers printers 2015-09-16 00:14:55 +00:00
net.c print_mreq: remove superfluous print_quoted_string calls 2017-06-16 00:00:42 +00:00
netlink_sock_diag.c netlink: add a basic socket diag parser of AF_SMC messages 2017-06-15 23:52:47 +00:00
netlink.c netlink: do not print extra braces around payloadless nlmsghdr 2017-06-18 21:43:39 +00:00
NEWS Fix a few misspellings in comments 2017-06-17 10:40:05 +00:00
nsfs.c Implement decoding of NS_* ioctl commands 2017-04-13 15:46:49 +00:00
nsfs.h Implement decoding of NS_* ioctl commands 2017-04-13 15:46:49 +00:00
nsig.h Introduce NSIG_BYTES 2016-12-27 23:32:44 +00:00
numa.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
oldstat.c Add copyright headers 2017-05-22 17:33:51 +00:00
open.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
or1k_atomic.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
pathtrace.c Fix a few initialization style issues 2017-06-17 20:49:09 +00:00
perf_event_struct.h Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
perf.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
personality.c Handle unlikely errors from personality syscall 2015-12-27 00:18:35 +00:00
pkeys.c Remove getarg_klu 2016-12-26 10:43:35 +00:00
poll.c Add copyright headers 2017-05-22 17:33:51 +00:00
prctl.c Add copyright headers 2017-05-22 17:33:51 +00:00
print_dev_t.c Move device number printing code into a separate routine 2016-12-29 00:11:24 +00:00
print_mq_attr.c Add copyright headers 2017-05-22 17:33:51 +00:00
print_msgbuf.c Add copyright headers 2017-05-22 17:33:51 +00:00
print_sg_req_info.c scsi: implement decoding of all SG_* ioctl commands 2017-01-10 00:05:17 +00:00
print_sigevent.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
print_statfs.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
print_struct_stat.c Add copyright headers 2017-05-22 17:33:51 +00:00
print_time.c Add copyright headers 2017-05-22 17:33:51 +00:00
print_timespec.c msghdr: print SCM_TIMESTAMP* control messages 2017-06-15 23:52:48 +00:00
print_timeval.c msghdr: print SCM_TIMESTAMP* control messages 2017-06-15 23:52:48 +00:00
print_timex.c Add copyright headers 2017-05-22 17:33:51 +00:00
printmode.c Add copyright headers 2017-05-22 17:33:51 +00:00
printrusage.c Add copyright headers 2017-05-22 17:33:51 +00:00
printsiginfo.c Add copyright headers 2017-05-22 17:33:51 +00:00
printsiginfo.h Unify usage of #include guards 2016-08-08 09:54:01 +00:00
process_vm.c Add copyright headers 2017-05-22 17:33:51 +00:00
process.c Add copyright headers 2017-05-22 17:33:51 +00:00
ptp.c Add copyright headers 2017-05-22 17:33:51 +00:00
ptrace.h Remove NEED_PTRACE_PROTOTYPE_WORKAROUND 2016-12-20 14:58:57 +00:00
qualify.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
quota.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
readahead.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
readlink.c Add copyright headers 2017-05-22 17:33:51 +00:00
README Update homepage URL 2017-02-27 23:11:07 +00:00
README-hacking Update information on how to build strace from git repository 2017-03-08 09:10:03 +00:00
README-linux-ptrace README-linux-ptrace: correct the description of suppressed signals 2012-02-09 19:57:52 +01:00
README-mpers mpers: add support of conditionally compiled printers 2016-05-21 22:53:06 +00:00
README.md README.md: rework guidelines about sending bug reports 2017-03-08 13:43:47 +00:00
reboot.c printstr: rename to printstrn, add printstr as a thin wrapper 2016-12-25 11:32:45 +00:00
regs.h Unify usage of #include guards 2016-08-08 09:54:01 +00:00
renameat.c renameat.c: make use of RVAL_DECODED 2015-07-18 00:01:40 +00:00
resource.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
rt_sigframe.c Introduce get_rt_sigframe_addr function 2017-03-13 15:22:50 +00:00
rt_sigreturn.c Implement proper decoding of rt_sigreturn syscall 2017-03-13 15:22:50 +00:00
rtc.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
sched_attr.h Move definition of struct sched_attr to a separate header file 2017-02-18 09:58:52 +00:00
sched.c Add copyright headers 2017-05-22 17:33:51 +00:00
scno.am scno.am: include config.h before syscallent.h 2017-05-30 22:44:47 +00:00
scno.head Generate scno.h without invoking a generated executable helper 2017-01-01 20:59:11 +00:00
scsi.c scsi: implement decoding of all SG_* ioctl commands 2017-01-10 00:05:17 +00:00
seccomp_fprog.h Unify usage of #include guards 2016-08-08 09:54:01 +00:00
seccomp.c Add copyright headers 2017-05-22 17:33:51 +00:00
sendfile.c Add copyright headers 2017-05-22 17:33:51 +00:00
sg_io_v3.c sg_io: cleanup printing of sg_io buffers 2017-01-10 00:05:17 +00:00
sg_io_v4.c sg_io_v4: print din_resid and dout_resid fields as signed integers 2017-01-10 00:05:17 +00:00
sigaltstack.c Add copyright headers 2017-05-22 17:33:51 +00:00
sigevent.h Unify usage of #include guards 2016-08-08 09:54:01 +00:00
signal.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
signalfd.c Add copyright headers 2017-05-22 17:33:51 +00:00
sigreturn.c Move NSIG ifdefery to a separate header file 2016-12-27 23:18:21 +00:00
sock.c Add copyright headers 2017-05-22 17:33:51 +00:00
sockaddr.c Introduce print_inet_addr 2017-06-15 23:52:47 +00:00
socketcall.c Do not print too many arguments of socketcall syscall 2016-07-21 12:32:14 +00:00
socketutils.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
sram_alloc.c Use printflags64 instead of printflags_long 2016-12-25 21:55:01 +00:00
stat64.c Add copyright headers 2017-05-22 17:33:51 +00:00
stat.c Add copyright headers 2017-05-22 17:33:51 +00:00
stat.h Add copyright headers 2017-05-22 17:33:51 +00:00
statfs64.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
statfs.c Fix decoding of statfs family syscalls 2016-04-26 01:35:31 +00:00
statfs.h Change #include guard trailing part comments 2016-08-07 22:02:46 +00:00
statx.c Always print raw values of time data fields 2017-04-24 23:14:57 +00:00
statx.h Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
strace-graph Unify capitalisation of (c) in copyright notices 2017-05-26 19:43:11 +00:00
strace-log-merge strace-log-merge: fix file suffix calculation 2012-03-26 12:10:01 +00:00
strace.1 Add copyright headers 2017-05-22 17:33:51 +00:00
strace.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
strace.spec.in Post-release administrivia 2017-05-25 19:42:20 +00:00
swapon.c swap: always print priority value 2016-12-01 00:05:09 +00:00
sync_file_range2.c Add copyright headers 2017-05-22 17:33:51 +00:00
sync_file_range.c Add copyright headers 2017-05-22 17:33:51 +00:00
syscall.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
sysctl.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
sysent.h Implement -e trace=%stat option 2017-04-21 19:49:03 +00:00
sysinfo.c Add copyright headers 2017-05-22 17:33:51 +00:00
syslog.c Add copyright headers 2017-05-22 17:33:51 +00:00
sysmips.c Add copyright headers 2017-05-22 17:33:51 +00:00
term.c Add copyright headers 2017-05-22 17:33:51 +00:00
time.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
times.c Add copyright headers 2017-05-22 17:33:51 +00:00
travis-build.sh travis: use mainline kernel uapi headers for coverage 2017-04-13 18:24:09 +00:00
travis-install.sh travis: use mainline kernel uapi headers for coverage 2017-04-13 18:24:09 +00:00
truncate.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
ubi.c Add copyright headers 2017-05-22 17:33:51 +00:00
uid16.c Fix decoding of 16-bit *chown and [gs]et*[gu]id syscalls 2014-12-16 01:07:12 +00:00
uid.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
umask.c Fix printing of mode_t, umode_t, and umask types 2016-08-03 23:27:03 +00:00
umount.c Update umount2 flags 2015-12-07 00:38:38 +00:00
uname.c Fix macros encosure in a do/while loop 2017-06-17 21:51:48 +00:00
unwind.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
upeek.c Add copyright headers 2017-05-22 17:33:51 +00:00
upoke.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
userfaultfd.c Add copyright headers 2017-05-22 17:33:51 +00:00
ustat.c Implement decoding of ustat syscall 2017-01-20 18:30:11 +00:00
util.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
utime.c Always print raw values of time data fields 2017-04-24 23:14:57 +00:00
utimes.c Add copyright headers 2017-05-22 17:33:51 +00:00
v4l2.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
wait.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
xattr.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2016-12-26 10:43:34 +00:00
xlat.c Fix a few spacing style issues 2017-06-17 22:54:08 +00:00
xlat.h Unify usage of #include guards 2016-08-08 09:54:01 +00:00
xlate.el Tidy up includes and copyright notices, fix indentation 2012-03-16 12:02:22 +01:00
xmalloc.c Fix a few initialization style issues 2017-06-17 20:49:09 +00:00

strace - the linux syscall tracer

This is strace -- a diagnostic, debugging and instructional userspace utility with a traditional command-line interface for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.

strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.

See the file NEWS for information on what has changed in recent versions.

Please read the file INSTALL-git for installation instructions.

The user discussion and development of strace take place on the strace mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to strace-devel@lists.sourceforge.net. The mailing list archives are available at https://sourceforge.net/p/strace/mailman/strace-devel/ and other archival sites.

Build Status Code Coverage