1 Noteworthy changes in release ?.?? (????-??-??)
2 ===============================================
4 * Changes in command line syntax
5 * Syscall classes specified in -e trace= option now have % prefix (like
6 -e trace=%process). Old style class names without leading % are still
7 supported, but considered deprecated now.
10 * Optimized syscall filtering.
11 * Enhanced decoding of sched_setattr syscall.
12 * Added -e trace=%stat option for tracing variants of stat syscall.
13 * Added -e trace=%lstat option for tracing variants of lstat syscall.
14 * Added -e trace=%fstat option for tracing variants of fstat and fstatat
16 * Added -e trace=%%stat option for tracing syscalls used for querying file
17 status information (stat, lstat, fstat, fstatat, statx, and their
19 * Added -e trace=%statfs option for tracing statfs, statfs64 and statvfs
21 * Added -e trace=%fstatfs option for tracing fstatfs, fstatfs64 and fstatvfs
23 * Added -e trace=%%statfs option for tracing syscalls used for querying file
24 system statistics information (statfs-like, fstatfs-like and ustat).
25 * Added -e trace=/regex option for filtering syscalls using regular
27 * Implemented decoding of signal mask in rt_sigreturn syscall on alpha, arc,
28 arm, avr32, bfin, cris, hppa, m68k, metag, microblaze, mips, nios2, or1k,
29 powerpc, powerpc64, riscv, sh, sh64, sparc, sparc64, tile, x86, and xtensa
31 * Implemented decoding of statx syscall.
32 * Implemented decoding of NS_* ioctl commands.
33 * Implemented decoding of the remaining V4L2_BUF_TYPE_* types.
34 * Implemented decoding of NLMSG_ERROR netlink messages.
35 * Updated lists of ioctl commands from Linux 4.11.
38 * Fixed decoding of flags argument of preadv2 and pwritev2 syscalls on x32.
39 * Fixed the number of arguments and tracing flags of alpha specific syscalls.
40 * Fixed decoding of netlink messages received within struct msghdr.
42 Noteworthy changes in release 4.16 (2017-02-14)
43 ===============================================
46 * Implemented syscall return value injection (-e inject=SET:retval= option).
47 * Implemented signal injection (-e inject=SET:signal= option).
48 * Implemented decoding of SUID_DUMP_* constants in PR_[GS]ET_DUMPABLE.
49 * Implemented decoding of all SG_* ioctl commands.
50 * Implemented decoding of ustat syscall.
51 * Implemented decoding of BPF_OBJ_PIN, BPF_OBJ_GET, BPF_PROG_ATTACH,
52 and BPF_PROG_DETACH commands of bpf syscall.
53 * Enhanced decoding of sg_io_hdr and sg_io_v4 structures.
54 * Enhanced decoding of get_robust_list, getrandom, io_submit, set_robust_list
56 * Enhanced decoding of entities of kernel long type on x32 and mips n32 ABIs.
57 * Updated lists of IP_*, IPV6_*, and LOOP_* constants.
58 * Updated lists of ioctl commands from Linux 4.10.
59 * Added decoding of recently added syscalls on avr32, microblaze, ppc,
63 * Fixed pathmatch of oldselect syscall on 64-bit architectures.
64 * Fixed decoding of mmap2 syscall on s390 when arguments are not available.
65 * Fixed decoding of kexec_file_load, mprotect, pkey_mprotect, prctl, preadv*,
66 and pwritev* syscalls on x32.
67 * Fixed printing of string arguments of getxattr and setxattr syscalls
68 when -s option is used to limit the printed string size.
69 * Fixed decoding of ifconf, ifreq, and loop_info structures on non-native
71 * Fixed decoding of SG_* and LOOP_* ioctl commands.
72 * Fixed build on mips with musl libc.
73 * Fixed cross-building of ioctlsort.
74 * Applied minor formatting fixes to the manual page.
76 Noteworthy changes in release 4.15 (2016-12-14)
77 ===============================================
80 * Time stamps are now printed according to ISO 8601.
81 * Changed output format of val3 parameter of futex FUTEX_WAKE_OP operation.
82 * The last argument of mincore, sched_getaffinity, and sched_setaffinity
83 syscalls is now formatted as an array.
86 * Implemented syscall fault injection (-e fault=... option).
87 * Implemented decoding of DM_* ioctl commands.
88 * Implemented decoding of attr parameter of perf_event_open syscall.
89 * Implemented decoding of pkey_alloc, pkey_free, and pkey_mprotect syscalls.
90 * Implemented dumping of mq_timedsend and mq_timedreceive syscalls.
91 * Implemented decoding of PR_SET_FP_MODE and PR_GET_FP_MODE operations
93 * Implemented PTRACE_GETREGS API support on m68k.
94 * Updated lists of ARCH_*, BPF_*, BTRFS_*, FALLOC_*, MS_*, *_MAGIC,
96 * Updated lists of ioctl commands from Linux 4.9.
97 * Added decoding of recently added syscalls on arc, x32, and xtensa.
98 * Enhanced manual page.
101 * Fixed corner cases in decoding of exit, exit_group, futimesat, getgroups,
102 getresuid, init_module, inotify_init1, kcmp, kexec_load, lookup_dcookie,
103 mq_getsetattr, mq_notify, mq_open, mq_timedreceive, mq_timedsend,
104 name_to_handle_at, prctl, process_vm_readv, process_vm_writev, setfsuid,
105 setgroups, setns, unshare, and utimes syscalls.
106 * Fixed handling of verbose flag in printing of controls array
107 of struct v4l2_ext_controls.
108 * Fixed omission of field names in the output of capability, sigaction,
109 sigevent, statfs, timespec, timeval, and utimbuf structures.
110 * Fixed printing of unknown syscalls in siginfo structure.
111 * Fixed decoding of ioctl constants on m68k.
112 * Fixed cris architecture support.
113 * Fixed cross build when host compiler does not support the same
114 set of warning flags as the cross compiler.
115 * Fixed build on SLE10 and SLE11.
117 Noteworthy changes in release 4.14 (2016-10-04)
118 ===============================================
120 * Changes in behavior
121 * When using -p option without a command and no processes has been attached,
122 strace exits with exit status 1.
125 * Added printing of the mode argument of open and openat syscalls
126 when O_TMPFILE flag is set. (Addresses Fedora bug #1377846).
127 * Enhanced -e abbrev=set, -e raw=set, and -e verbose=set.
128 * Enhanced decoding of futex, keyctl, quotactl, timerfd_settime,
129 and aio family syscalls.
130 * Implemented fetching of the 7th subcall argument on mips o32.
131 * Updated lists of BPF_*, ETH_P_*, KEXEC_ARCH_*, SCTP_*, TCP_*, and *_MAGIC
133 * Updated lists of ioctl commands from Linux 4.8.
134 * Added decoding of new syscalls on sh and sh64.
135 * Added RISC-V architecture support.
138 * Marked io_setup and io_destroy as memory mapping related syscalls.
139 * Fixed leakage of placeholder descriptors to tracees.
140 * Fixed printing of mode_t, umode_t, and umask types.
141 * Fixed decoding of iovec arrays without a limit on total data size.
142 * Fixed decoding of fadvise64, fallocate, futex, keyctl, quotactl, readahead,
143 and ipc family syscalls.
144 * Fixed decoding of invalid syscalls mapped to indirect subcalls.
145 * Fixed decoding of struct btrfs_ioctl_vol_args_v2 on non-native
147 * Fixed decoding of PTRACE_DETACH on sparc and sparc64.
148 * Fixed decoding of struct stat64 on sparc64.
149 * Fixed decoding of uid and gid-related syscalls on sparc64.
150 * Fixed decoding of the forth argument of semctl syscall on sparc64.
151 * Fixed values of tty ioctl constants on sparc64.
152 * Fixed sparc personality support on sparc64.
154 Noteworthy changes in release 4.13 (2016-07-26)
155 ===============================================
158 * Implemented a general netlink socket parser.
159 * Enhanced decoding of socket addresses.
160 * Enhanced decoding of cmsghdr, msghdr, and mmsghdr structures.
161 * Enhanced decoding of accept, accept4, bind, getpeername, getsockname,
162 ipc, recvfrom, recvmsg, recvmmsg, sendto, sendmmsg, and socketcall syscalls.
163 * Updated lists of AF_*, BPF_MAP_TYPE_*, KEY_*, KEYCTL_*, RWF_*, SS_*,
164 and *_MAGIC constants.
165 * Updated lists of ioctl commands from Linux 4.7.
168 * Fixed decoding of pid_t argument of prlimit64 syscall.
169 * Fixed sign extension issues in the parser of struct rusage.
170 * Fixed race condition in decoding of timeout argument of recvmmsg and
171 rt_sigtimedwait syscalls.
172 * Fixed build with fresh linux kernel headers.
174 Noteworthy changes in release 4.12 (2016-05-31)
175 ===============================================
178 * Implemented simultaneous use of -p option and tracing of a command.
179 (addresses Debian bug #549942).
180 * Implemented caching of netlink conversations to reduce amount of time
181 spent in decoding socket details in -yy mode.
182 * Implemented -yy mode decoding of protocol:portid pairs associated with
183 netlink socket descriptors.
184 * Implemented decoding of copy_file_range, preadv2, and pwritev2 syscalls.
185 * Implemented dumping of preadv, preadv2, pwritev, pwritev2, and vmsplice
187 * Implemented decoding of BTRFS_* and UFFDIO_* ioctl commands.
188 * Enhanced decoding of BLK*, EVIOC*, RTC_*, and VIDIOC_* ioctl commands.
189 * Enhanced decoding of fstatfs, fstatfs64, get_mempolicy, getdents,
190 getdents64, getgroups, getpriority, kill, mbind, migrate_pages, mknod,
191 mknodat, personality, poll, ppoll, quotactl, rt_sigpending,
192 rt_sigqueueinfo, rt_sigtimedwait, rt_tgsigqueueinfo, sched_getaffinity,
193 sched_setaffinity, seccomp, set_mempolicy, setgroups, setpriority, statfs,
194 statfs64, tgkill, waitid, and xattr family syscalls.
195 * Enhanced decoding of getxpid, getxuid, and getxgid syscalls on alpha.
196 * Enhanced decoding of pipe syscall on alpha, ia64, mips, sh, and sparc.
197 * Added decoding of bind, listen, and setsockopt direct syscalls on sparc.
198 * Added decoding of osf_statfs64 and osf_fstatfs64 syscalls on alpha.
199 * Added decoding of fadvise64 and fadvise64_64 on s390.
200 * Updated lists of AF_*, BPF_MAP_TYPE_*, CLONE_*, EPOLL*, IPV6_*, MADV_*,
201 MSG_*, PTRACE_*, SEGV_*, SO_*, SOL_*, *_MAGIC, and quotactl constants.
202 * Updated lists of ioctl commands from Linux 4.6.
205 * Fixed build on arc, metag, nios2, or1k, and tile architectures.
206 * Fixed decoding of 32-bit times syscall return value on 64-bit architectures.
207 * Fixed decoding of mlock2 syscall on sparc.
208 * Fixed decoding of osf_shmat syscall on alpha.
209 * Fixed decoding of syscalls unknown to the kernel on s390/s390x.
210 (addresses Debian bug #485979 and Fedora bug #1298294).
211 * Fixed decoding of preadv syscall in case of short read.
212 * Fixed decoding and dumping of readv syscall in case of short read.
213 * Fixed dumping of recvmsg and recvmmsg syscalls in case of short read.
214 * Fixed decoding of mincore syscall's last argument.
215 * Fixed remaining errors in mapping between syscall numbers and numbers
216 of syscall arguments.
217 * Applied various fixes to strace-graph script.
219 Noteworthy changes in release 4.11 (2015-12-21)
220 ===============================================
222 * Changes in behavior
223 * Some syscalls have different names depending on architecture and
224 personality. In these cases, syscall filtering and printing now
225 consistently uses the names that match corresponding __NR_* kernel
226 macros of the tracee's architecture and personality.
227 * Added strace prefix to all diagnostic messages.
230 * Enhanced and extended test suite.
231 * Implemented reliable tracing of processes whose personality differs
232 from the personality of strace, fixed decoding of 32-bit personality
233 syscalls on 64-bit architectures.
234 * When some data referenced by syscall arguments is irrelevant or cannot
235 be read from tracee's memory, strace now prints its address consistently.
236 * When a syscall is restarted using restart_syscall mechanism, strace now
237 shows the syscall name on architectures that expose this information.
238 * Print values returned by epoll_create1, eventfd, eventfd2, fanotify_init,
239 inotify_init1, perf_event_open, pipe, pipe2, signalfd, signalfd4, socket,
240 socketpair, timerfd, and timerfd_create syscalls, as well as F_DUPFD and
241 F_DUPFD_CLOEXEC fcntl commands, as file descriptors.
242 * Optimized decoding of indirect socket syscalls.
243 * Implemented decoding of nanoseconds along with seconds in stat family
244 syscalls (addresses Fedora bug #1251176).
245 * Implemented decoding of struct statfs.f_flags in statfs syscall.
246 * Implemented decoding of siginfo_t.si_syscall and siginfo_t.si_arch
248 * Implemented decoding of indirect syscall on mips o32.
249 * Implemented decoding of IPPROTO_IP control messages.
250 * Implemented decoding of setsockopt syscall multicast arguments.
251 * Enhanced decoding of struct sigevent.
252 * Enhanced decoding of block, loop, mtd, ptp, rtc, SG_IO, socket, tty,
253 and v4l2 ioctl syscall arguments.
254 * Enhanced decoding of epoll_create, fcntl, fcntl64, futex, getdents,
255 getdents64, getsockopt, io_*, mount, msgctl, prctl, quotactl, recvfrom,
256 sendfile, setsockopt, and shmctl syscalls.
257 * Implemented decoding of bpf, execveat, ioperm, iopl, kcmp, kexec_file_load,
258 lookup_dcookie, membarrier, memfd_create, mlock2, name_to_handle_at,
259 open_by_handle_at, sched_getattr, sched_setattr, and userfaultfd syscalls.
260 * Updated lists of AF_*, EPOLL_*, FALLOC_FL_*, F_*, INPUT_PROP_*, IPPROTO_*,
261 IPV6_*, IP_*, KEY_*, LOCK_*, MNT_*, MS_*, PACKET_*, PERF_FLAG_*, PF_*,
262 PR_*, PTRACE_O_*, RENAME_*, SCTP_*, SECBIT_*, SO_*, TCP_*, and siginfo_t
264 * Added Nios II architecture support.
265 * Added new syscall entries to match Linux 4.4.
268 * Fixed potential short read of strings from tracee's memory.
269 * Fixed -qq option in conjunction with -o option.
270 * Fixed filtering of <unavailable> syscalls.
271 * Fixed decoding of ioctl syscall command on aarch64 and 32-bit architectures
272 with 64-bit aligned structures.
273 * Fixed decoding of eventfd2, epoll_create1, signalfd4, and sync_file_range2
274 syscall flags arguments.
275 * Fixed decoding of 4th argument of clock_nanosleep syscall.
276 * Fixed decoding of getpagesize syscall on m68k.
277 * Fixed decoding of getrandom and seccomp syscalls on aarch64.
278 * Fixed decoding of timezone argument of gettimeofday and settimeofday
280 * Fixed decoding of offset argument of mmap2 syscall on arm, sparc,
282 * Fixed decoding of pipe syscall on alpha and mips.
283 * Fixed decoding of pipe2 syscall on ia64, sh, sparc, and sparc64.
284 * Fixed decoding of signal mask argument of pselect6 syscall on x32.
285 * Fixed decoding of signal mask of rt_sigreturn syscall on aarch64, m68k,
287 * Fixed decoding of 4th argument of semctl indirect syscall.
288 * Fixed decoding of sa_restorer and sa_mask of sigaction syscall on m68k.
289 * Fixed decoding of statfs64 and fstatfs64 syscalls on arm eabi.
290 * Fixed decoding of struct dirent on x32.
291 * Fixed decoding of times syscall return value on mips n32 and x32.
292 * Fixed decoding of path argument of umount2 syscall
293 (addresses Debian bug #785050).
294 * Worked around a kernel bug in tracing privileged executables.
295 * Fixed various errors in mapping between syscall numbers and associated
296 information like the number of syscall arguments, the name of syscall,
299 Noteworthy changes in release 4.10 (2015-03-06)
300 ===============================================
303 * Added -yy option to print protocol and address information associated with
305 * Extended "-e read=set" and "-e write=set" options to cover sendmsg,
306 recvmsg, sendmmsg, and recvmmsg syscalls.
307 * Implemented full 32-bit decoding of ioctl commands
308 (addresses Debian bug #692913 and Fedora bug #902788).
309 * Implemented PTRACE_GETREGS API support on ia64.
310 * Implemented PTRACE_GETREGS API support on mips.
311 * Implemented PTRACE_GETREGSET API support on s390/s390x.
312 * Implemented decoding of getrandom and seccomp syscalls.
313 * Implemented full decoding of 64-bit capability sets.
314 * Implemented decoding of all prctl commands.
315 * Implemented decoding of parametrized ioctl commands.
316 * Implemented decoding of evdev ioctl commands.
317 * Implemented decoding of v4l ioctl commands.
318 * Implemented decoding of SG_IO v4 ioctl commands.
319 * Implemented decoding of FIFREEZE/FITHAW/FITRIM ioctl commands.
320 * Implemented decoding of FALLOC_FL_* fallocate flags.
321 * Implemented decoding of rt_sigreturn signal mask on aarch64,
323 * Enhanced socket decoder to support bluetooth sockets.
324 * Enhanced decoding of unlisted ioctl commands.
325 * Enhanced decoding of getsockopt and setsockopt syscall.
326 * Enhanced decoding of sysinfo syscall.
327 * Enhanced decoding of struct cmsghdr.
328 * Enhanced decoding of wait status.
329 * Enhanced aio support on non-x86 architectures by using external libaio.h.
330 * Added O_TMPFILE to the list of recognized open mode flags.
331 * Updated the list of filesystem type constants that is used in decoding
332 statfs family syscalls.
333 * Updated lists of CAP_*, PR_*, PTRACE_*, SCHED_*, SO_*, SOL_*, SWAP_FLAG_*,
335 * Updated lists of signal constants from Linux 3.19.
336 * Updated lists of errno constants from Linux 3.19.
337 * Updated lists of ioctl commands from Linux 3.9.
338 * Added new syscall entries to match Linux 3.19.
341 * Fixed various errors in mapping between syscall numbers and associated
342 information like the number of syscall arguments, the name of syscall,
344 * Fixed quoting issues in printing descriptors, filenames, network interface
345 names, struct utsname members, device/volume names of BLK* ioctl commands.
346 * Fixed uid_t/git_t decoding.
347 * Fixed potential out-of-bounds read issues in getdents/getdents64 decoders.
348 * Fixed potential open flags truncation on some architectures.
349 * Fixed decoding of struct ifreq.ifr_name.
350 * Fixed decoding of SIOCSIFNAME ioctl command.
351 * Fixed decoding of RENAME_* renameat2 flags.
352 * Fixed decoding of UTIME_NOW/UTIME_OMIT timeval structures.
353 * Fixed decoding of indirect ipc subcalls on some architectures.
354 * Fixed decoding of fanotify_mark syscall on 32-bit architectures.
355 * Fixed decoding of 32-bit stat structures on 64-bit architectures.
356 * Fixed decoding of 32-bit struct cmsghdr on 64-bit architectures.
357 * Fixed decoding of 32-bit preadv/pwritev offset on 64-bit architectures.
358 * Fixed decoding of sigreturn/rt_sigreturn signal mask on ia64, ppc, ppc64,
359 sparc, sparc64, mips, and s390.
360 * Fixed instruction pointer output (-i option) on architectures that support
361 several personalities.
362 * Fixed behaviour of "-e read=set" and "-e write=set" when read and write
364 * Fixed build on systems where struct sigaction has no sa_restorer member.
365 * Fixed build with uclibc and musl libc.
368 * Linux kernel >= 2.5.46 is required.
369 Older versions without a decent PTRACE_SETOPTIONS support will not work.
370 * On mips, linux kernel >= 2.6.15 is required.
371 Older versions without a decent PTRACE_GETREGS support will not work.
372 * On s390 and s390x, linux kernel >= 2.6.27 is required.
373 Older versions without a decent PTRACE_GETREGSET support will not work.
375 Noteworthy changes in release 4.9 (2014-08-15)
376 ==============================================
378 * Changes in behavior
379 * Disabled OABI support on ARM EABI systems by default,
380 added --enable-arm-oabi option to enable it at configure time.
383 * Added experimental -k option to print stack trace after each traced syscall.
384 * Added -w option to produce stats on syscall latency.
385 (addresses Debian bug #457497).
386 * Added ARC architecture support.
387 * Added PTRACE_GETREGS API support on PowerPC.
388 * Enhanced Bionic libc and musl libc support.
389 * Enhanced tracing of x86 personality processes on x86_64 and x32.
390 * Enhanced tracing of ARM personality processes on AArch64.
391 * Enhanced 32/64bit personality detection on PowerPC.
392 * Implemented decoding of add_key, ioprio_get, ioprio_set, kexec_load, keyctl,
393 renameat2, and request_key syscalls.
394 * Robustified decoding of select, pselect, and io_submit syscalls.
395 * Enhanced decoding of delete_module, fanotify_init, fanotify_mark, fcntl,
396 setdomainname, sethostname, setns, and sync_file_range syscalls.
397 * Enhanced decoding of signal bitmasks.
398 * Enhanced decoding of file descriptors.
399 * Enhanced siginfo_t decoding.
400 * Enhanced PF_NETLINK decoding.
401 * Updated CLOCK_* constants
402 (addresses Fedora bug #1088455).
403 * Added new syscall entries to match Linux 3.16.
406 * Added shmat and shmdt to the set of memory mapping related syscalls.
407 * Fixed detaching from stopped processes.
408 * Fixed fanotify_mark decoding on 32bit architectures.
409 * Fixed offset decoding in preadv and pwritev syscalls.
410 * Fixed select decoding for glibc in _FORTIFY_SOURCE mode.
411 * Fixed decoding of epoll_ctl syscall with EPOLL_CTL_DEL argument.
412 * Fixed build when <sys/ptrace.h> and <linux/ptrace.h> conflict
413 (addresses Fedora bug #993384).
414 * Miscellaneous corrections in the manual page.
415 (Addresses Debian bug #725987).
417 Noteworthy changes in release 4.8 (2013-06-03)
418 ==============================================
420 * Changes in behavior
421 * In case of normal strace termination, when the trace output is
422 redirected to a pipe, strace now closes it and waits for the pipe
423 process termination before exit.
426 * Implemented tracing using PTRACE_SEIZE API (when available).
427 * Implemented more reliable PTRACE_GETREGSET-based process personality
428 detection on x86-64 and x32 (when available).
429 * Added -e trace=memory option for tracing memory mapping related syscalls.
430 * Documented -b option.
431 * Allowed exit status messages to be suppressed by giving -q option twice.
432 * Added AArch64 architecture support
433 (addresses Debian bug #693074 and Fedora bug #969858).
434 * Added support for OpenRISC 1000, Meta, and Xtensa architectures.
435 * Added tilegx personality support for Tile.
436 * Enhanced support of NOMMU architectures.
437 * Enhanced decoding of getdents, mmap, perf_event_open, ptrace, and
439 * Added new syscall entries to match Linux 3.9.
440 * Regenerated the list of common ioctl names from Linux 3.9.
441 * Updated the list of errno constants.
442 * Updated lists of AF_*, MADV_*, MAP_*, MSG_*, MS_*, PF_*, PR_*,
443 PTRACE_O_*, and TCP_* constants.
444 * Implemented decoding of UBI ioctls.
445 * Removed redundant "*32" ioctl names.
448 * Fixed ERESTARTNOINTR leaking to userspace on ancient kernels
449 (addresses Fedora bug #659382).
450 * Fixed kernel release string parsing
451 (addresses Debian bug #702309).
452 * Fixed decoding of *xattr syscalls
453 (addresses Fedora bug #885233).
454 * Fixed handling of files with 64-bit inode numbers by 32-bit strace
455 (addresses Fedora bug #912790).
456 * Fixed tracing forks on SPARC.
457 * Fixed decoding of fadvise64, fallocate, ftruncate64, io_submit, pread,
458 preadv, pwrite, pwritev, readahead, sigaltstack, sync_file_range, sysctl,
459 and truncate64 syscalls.
460 * Fixed categories of multiple syscalls on most of supported architectures.
461 * Fixed decoding of non-native 32-bit personality recv[m]msg syscalls.
462 * Fixed decoding of multiple 32-bit personality syscalls on x32.
463 * Fixed decoding of long long syscall arguments on ARM, MIPS/o32, PowerPC,
464 S390x, and Tile architectures.
465 * Fixed semtimedop decoding on S390x.
466 * Fixed sram_alloc decoding on Blackfin.
467 * Fixed build when process_vm_readv is a stab.
468 * Fixed build with older versions of libaio.h.
470 Noteworthy changes in release 4.7 (2012-05-02)
471 ==============================================
473 * Changes in behavior
474 * strace no longer suspends waitpid until there is a child
475 for waitpid'ing process to collect status from.
476 * strace no longer detaches from a tracee which is supposed
478 * strace now issues a new message: "+++ exited with EXITCODE +++"
479 which shows exact moment strace got exit notification,
480 analogous to existing "+++ killed by SIG +++" message.
483 * Added x32 personality support (x86_64 architecture).
484 * Added -y and -P options to print file descriptor paths and
485 filter by those paths.
486 * Added -I option to control strace interactivity.
487 * Allowed -p option to take comma or whitespace-separated list of PIDs.
488 * Added strace_log_merge script helper to merge timestamped "strace -ff"
490 * Implemented decoding of clock_adjtime, get_robust_list, migrate_pages,
491 preadv, prlimit64, process_vm_readv, process_vm_writev, pwritev,
492 recvmmsg, recvmsg, rt_tgsigqueueinfo, sendmmsg, setns, set_robust_list,
493 sched_rr_get_interval, splice, syslog, tee and vmsplice syscalls.
494 * Enhanced decoding of capget, capset, getrlimit, flistxattr, io_submit,
495 listxattr, setrlimit and swapon syscalls.
496 * Implemented decoding of loop and mtd ioctls.
497 * Added syscall entries for new linux syscalls.
498 * Added syscall entries for direct socket system calls on powerpc.
499 * Updated the list of errno constants.
500 * Updated lists of MSG_*, STA_*, and TCP_* constants.
501 * Regenerated the list of ioctl names from Linux 3.3.
502 * Enhanced switching between processes with different personalities.
503 * Enhanced signals reporting by using short signal names.
504 * Made ERESTART* messages more descriptive.
505 * Made parsing of numbers from strings more robust.
506 * Added support for compat_statfs64 and statfs64.f_flags.
507 * Changed read of data blocks to use single process_vm_readv syscall
508 (when available) instead of several PTRACE_PEEKDATA operations.
509 * Changed read of registers on x86 and x86-64 to use single PTRACE_GETREGS
510 operation instead of several PTRACE_PEEKUSER operations.
511 * Applied various optimizations to make strace work faster.
514 * Implemented proper handling of real SIGTRAPs on kernels supporting
515 PTRACE_O_TRACESYSGOOD.
516 (Addresses Fedora bug #162774).
517 * Fixed sockaddr_un.sun_path name in decoded output.
518 (Addresses Debian bug #554946).
519 * Fixed to avoid potential core file clobbering on exit.
520 (Addresses Debian bug #656398).
521 * Fixed a typo in documentation.
522 (Addresses Debian bug #653309).
523 * Fixed decoding of timer id returned by timer_create.
524 * Fixed epoll_create1, epoll_wait and epoll_pwait decoding.
525 * Fixed *at syscalls flags decoding.
526 * Fixed ARM EABI 64-bit syscall's arguments decoding.
527 * Fixed semtimedop decoding on s390.
528 * Fixed osf_sigprocmask decoding on alpha.
529 * Fixed ipc and socket subcall decoding on several architectures.
530 * Corrected syscall entries for epoll_pwait, epoll_create, epoll_ctl,
531 epoll_wait, mincore, mlockall, prctl, reboot, sendfile, sendfile64,
532 sendmsg, sgetmask, ssetmask, swapon, tgkill and tkill syscalls.
533 * Corrected io_* syscall entries on ARM.
534 * Fixed PID prefix printing in "strace -oLOG -ff -p1 -p2 -p3" case.
535 * Fixed logging of unfinished lines in "strace -oLOG -ff" case.
536 * Fixed build when libaio-devel is not available.
537 * Fixed configure checks for PTRACE_* constants.
538 * Fixed compilation warnings remained on several architectures.
541 * Removed all non-Linux code. After years of neglect, that dead code
542 just hampered further strace development.
543 * Linux kernel >= 2.6.18 is recommended. Older versions might still
544 work but they haven't been thoroughly tested with this release.
546 Noteworthy changes in release 4.6 (2011-03-15)
547 ==============================================
549 * Changes in behavior
550 * Print diagnostic information about changes in personality mode to
551 standard error instead of standard output.
554 * Implemented a new method of following clone, fork, and vfork
555 syscalls using the Linux kernel's explicit facilities for tracing
556 creation of threads and child processes.
557 * Implemented CLONE_PARENT and CLONE_UNTRACED flags handling.
558 * Implemented decoding of TLS syscalls on m68k.
559 * Implemented biarch support on powerpc64.
560 * Implemented biarch support for getrlimit() and setrlimit().
561 * Implemented decoding of struct ucred in getsockopt SO_PEERCRED.
562 * Implemented SOL_SCTP socket options decoding.
563 * Added HDIO_* ioctl names.
564 (Addresses Debian bug #450953).
565 * Added LOOP_* ioctl names.
566 * Updated lists of CLOCK_*, CLONE_*, MS_*, and SOL_* constants
567 to match Linux 2.6.37.
568 * Updated the list of IPPROTO_* constants to match netinet/in.h.
569 * Implemented decoding of HDIO_* and BLK* ioctls.
570 * Added MicroBlaze architecture support.
571 * Added new syscall entries to match Linux 2.6.37.
572 * Regenerated list of ioctl names from Linux 2.6.37.
573 * Enhanced signal notification decoding.
574 * Documented -C and -D options.
577 * Fixed fetching syscall arguments on m68k.
578 * Fixed an error when judging whether a process has children.
579 * Fixed get/set_robust_list syscall numbers for powerpc.
580 * Fixed a corner case in printing clone flags.
581 * Fixed cross-compiling issues.
582 * Fixed build issues on powerpc64, SH and SPARC.
583 * Fixed syscall flags of fstatat*, mmap, mmap2, fadvise64*, swapoff,
584 fgetxattr, flistxattr, fremovexattr, epoll_create, fallocate,
585 fanotify_init, and fanotify_mark syscalls.
586 * Fixed decoding of get[ug]id, gete[ug]id and setfs[ug]id return values.
587 * Fixed biarch support in IO dumping.
588 * Fixed raw exit_group decoding.
589 * Fixed decoding of file descriptors on 64-bit architectures.
590 * Fixed a corner case in waitpid handling.
591 (Addresses Red Hat bug #663547).
592 * Fixed stat64 decoding on mips
593 (Addresses Debian bug #599028).
594 * Fixed misleading italics in the manual page.
595 (Addresses Debian bug #589323).
597 Noteworthy changes in release 4.5.20 (2010-04-13)
598 =================================================
601 * Implemented decoding of new linux syscalls: inotify_init1, recvmmsg.
602 * Implemented basic decoding of new linux syscalls: preadv, pwritev,
603 rt_tgsigqueueinfo, perf_event_open.
604 * Enhanced decoding of recently added syscalls on non-x86 architectures
605 by replacing a bare decoder with elaborate parsers enabled earlier
607 * Implemented -C option to combine regular and -c output.
608 (Addresses Debian bug #466196)
609 * Enhanced decoding of mbind and mremap syscalls.
610 * Enhanced SOL_PACKET socket options decoding.
611 * Regenerated list of ioctl names from linux 2.6.33.
612 * Added TILE architecture support.
615 * Fixed build with Linux kernel headers 2.6.32-rc5+.
616 (Addresses Debian bug #560516 and Fedora bug #539044)
617 * Fixed build on mips.
618 * Fixed handling of Linux systems without struct statfs64.
619 * Fixed reporting signal mask by sigreturn on powerpc.
620 * Fixed potential stack buffer overflow in select decoder.
621 (Addresses Fedora bug #556678)
622 * Corrected msgsnd indirect ipccall decoding.
623 * Corrected decoding of 64bit syscalls.
624 (Addresses Debian bug #570603)
625 * Corrected getsockopt decoding on architectures where
626 sizeof(long) > sizeof(int).
627 (Addresses Debian bug #494844)
628 * Corrected decoding of epoll_pwait.
629 (Addresses Debian bug #513014)
630 * Corrected handling of killed threads.
632 Noteworthy changes in release 4.5.19 (2009-10-21)
633 =================================================
635 * Changes in behavior
636 * When command exits, strace now exits with the same exit status.
637 If command is terminated by a signal, strace terminates itself
638 with the same signal, so that strace can be used as a wrapper
639 process transparent to the invoking parent process.
640 When using -p option, the exit status of strace is zero unless
641 there was an unexpected error in doing the tracing.
642 (Addresses Fedora bug #105371 and Debian bug #37665)
645 * Implemented decoding of new Linux syscalls: accept4, dup3,
646 epoll_create1, eventfd2, inotify_init1, pipe2, signalfd4.
647 * Implemented decoding of socket type flags introduced in Linux 2.6.27.
648 * Implemented decoding of accept4 socketcall.
649 * Enhanced prctl decoding.
650 * Enhanced nanosleep decoding.
651 * Enhanced ptrace decoding.
652 * Enhanced futex decoding.
653 * Enhanced CAP_* decoding.
654 * Enhanced SIOCS* ioctls decoding.
655 * Enhanced fcntl F_* flags decoding.
656 * Enhanced semop/semtimedop decoding.
657 * Updated ARM architecture support.
658 * Added Blackfin architecture support.
659 * Added AVR32 architecture support.
660 * Added CRIS architecture support.
661 * Made strace detect when traced process suddenly disappeared.
664 * Fixed syscall numbers for tee and sync_file_range.
665 (Addresses Debian bug #503124)
666 * Fixed several bugs in strings decoder, including potential heap
668 (Addresses Fedora bugs #470529, #478324 and #511035)
669 * Marked sendfile(2) as a network syscall.
670 (Addresses Debian bug #509499)
671 * Fixed accept(2) decoding.
672 (Addresses Debian bug #507573)
673 * Fixed sigtimedwait(2) decoding.
674 * Fixed build on ARM EABI.
675 (Addresses Debian bugs #520084 and #535564, and Fedora bug #507576)
676 * Fixed display of 32-bit fcntl(F_SETLK) on 64-bit architectures.
677 (Addresses Red Hat bug #471169)
678 * Fixed display of 32-bit argv array on 64-bit architectures.
679 (Addresses Fedora bug #519480)
680 * Fixed display of 32-bit struct sigaction on 64-bit architectures.
681 * Fixed HPPA architecture support.
682 (Addresses Debian bugs #437928 and #546619)
687 * Support new Linux/PPC system call subpage_prot and PROT_SAO flag.
688 * In sigaction system call, display sa_flags value along with SIG_DFL/SIG_IGN.
693 * -F is now deprecated, -f has traced vfork too on Linux for a long time now.
694 * Print O_CLOEXEC, MSG_CMSG_CLOEXEC flag bits.
695 * Improved output for prctl system call on Linux.
696 * Improved support for Linux/ARM.
697 * SA_NOMASK is now spelled SA_NODEFER, and SA_ONESHOT is spelled SA_RESETHAND.
702 * Improved output for delete_module, futex, and mbind system calls on Linux.
703 * Improved output for SG_IO ioctls on Linux.
704 * Support new Linux system calls move_pages, utimensat, signalfd, timerfd,
705 eventfd, getcpu, epoll_pwait.
710 * Several biarch improvements.
711 * Improved output for adjtimex, sysctl, quotactl, mount, umount.
712 * Support new Linux system calls *at, inotify*, pselect6, ppoll and unshare.
717 * Accept numeric system calls in -e.
722 * Introduce "-e trace=desc".
727 * Better x86-64 support for IA32 processes.
728 * Update PowerPC system calls.
729 * Better printing for Linux aio system calls.
733 * Quick fix release for build issues.
734 * One fix for Linux/ARM system call table.
739 * Print fault address for SIGSEGV/SIGBUS signals when available.
744 * Improve socket ioctl printing.
745 * Update Linux/IA64 syscall list.
746 * Fix Linux/x86-64 syscall argument extraction for 32-bit processes.
747 * Improve mount flags printing.
748 * Support symbolic printing of x86_64 arch_prctl parameters.
753 * Update syscall tables for Alpha, ARM, HPPA.
754 * Support new Linux syscalls mbind, set_mempolicy, get_mempolicy, waitid.
755 * Support Linux syscalls fadvise64, fadvise64_64, and epoll_*.
756 * Improve ioctl command name matching.
757 * Print RTC_* ioctl structure contents.
758 * Support newer RLIMIT_* values.
759 * Print struct cmsghdr details in sendmsg.
764 * Print attribute values in *xattr system calls on Linux.
765 * Include pread and pwrite calls in -e read and -e write tracing.
766 * Update SO_* and IP_* value lists and add IPV6_* values for socket options.
767 * Print clock_t values symbolically in Linux clock_* system calls.
771 * Bug fixes, Linux ioctl updates.
772 * David Miller contributed support for Linux/SPARC64.
780 * Update Linux ioctl lists.
781 * Update PF_* and AF_* value lists.
782 * The 4.5.3 -p behavior for NPTL threads applies only under -f, and got fixed.
787 * On Linux using NPTL threads, -p will now attach to all threads in a process.
788 * Handle new mq_* system calls in Linux 2.6.6 and later.
793 * Report some new VM_* bit values on Linux.
794 * Better output for Linux sched_* system calls.
799 * Display multiple ioctl name matches on Linux.
803 * New port to AMD's x86-64 architecture. One strace binary can
804 handle both new x86-64 and old i386 processes.
805 * Fixed support for LFS64 calls.
806 * New switch -E to add/remove environment variables for the command.
807 * Merged s390/s390x port.
808 * Trace an unbounded number of processes.
809 * Handle numerous new system calls in Linux 2.5, and new threads semantics.
810 * Fixed bugs with attach/detach leaving things stopped.
811 * Fixed traced process seeing ECHILD despite live, traced children
812 in waitpid calls with WNOHANG.
813 * Stuart Menefy contributed a port to Linux/SH.
814 * Stephen Thomas contributed a port to Linux/SH64.
815 * Many other bug fixes.
819 * Fix Linux/ia64 support, looks like someone renamed a few things on us
820 * Fix the ioctl setup for Linux, turned out it did not really work.
821 Improve the ioctl extracter as well so we decode some more ones.
825 * compile fixes for Linux/mips
829 * Linux ia64 and hppa ports added
830 * The usual Linux syscall updates (includes 32bit uid/gid support),
831 * Linux ioctl list updated
832 * Support IPv6 scope ids
833 * FreeBSD/i386 port added
834 * UnixWare and Solaris updates
835 * Better support for tracing multithreaded processes in Linux
839 * Compiles on glibc2.0 systems again
840 * Linux/S390 port added
841 * The usual Linux syscall updates
842 * we can follow fork on arm now
846 * Linux/MIPS port added
847 * Lots of Linux updates again
848 * Improved IPv6 support
854 * Compiles on glibc2.0 systems again
858 * Get stat structure properly on Linux 64bit archs
859 * Personalities work again
860 * Compile correctly on SunOS again
866 * Linux (ultra)sparc fixes
873 * add support for more Linux architectures (powerpc, sparc, arm)
874 * support lots more Linux syscalls
875 * fix signal handling
876 * add IPX and IPIP support
877 * check stray syscall after execv
878 * fix hanging children
880 Changes in version 3.1
881 ======================
884 * Linux 68k is supported
885 * Linux alpha is supported
886 * configure is upgraded to autoconf 2.x
887 * using -f in combination with -e now works correctly
888 * output can be piped to a program
889 * tracing setuid programs works better
890 * it is now reasonable to install strace setuid to root in some circumstances
891 * new useful tracing names like file and process to trace whole
892 classes of system calls, e.g. -efile traces all system calls that
893 take a file name as an argument
894 * IPC calls on SunOS 4.1.x are decoded
895 * Linux program memory is reliably dereferenced
896 * Linux decodes at least the name of all syscalls as of pre2.0.4
897 * various cosmetic changes and bug fixes
899 Changes from versions 2.x to version 3.0
900 ========================================
902 * filename arguments are neither abbreviated nor stringified
903 * string arguments are now true C strings using octal instead of hex by default
904 * preprocessor constants are never shortened (e.g. was RDONLY => now O_RDONLY)
905 * by default the output for multiple processes now goes into one file
906 * all structures, vectors, bitsets, etc. use consistent output formats
907 * the -c option now means count calls, -i does what the old -c used to do
909 New Features in version 3.0
910 ===========================
912 * non-ascii strings can be optionally printed entirely in hex
913 * the output format is readable when mutiple processes are generating output
914 * exit values are printed in an alignment column
915 * is is possible to suppress messages about attaching and detaching
916 * various tracing features can be enabled on a per syscall/signal/desc basis
917 * selective tracing of syscalls
918 * selective printing of syscall structures
919 * selective abbreviation of long structures on a per syscall basis
920 * selective printing of raw syscall arguments and results
921 * selective tracing of signals
922 * selective dumping of all I/O read from file descriptors
923 * selective dumping of all I/O written to file descriptors
924 * optional counting of time, calls, and errors for each syscall