blob: 47ffe026dc9afbf38ff605058d63425985248882 [file] [log] [blame]
Dmitry V. Levine1fec332016-10-04 18:19:20 +00001Noteworthy changes in release 4.14 (2016-10-04)
Dmitry V. Levin15144482016-07-27 09:19:37 +00002===============================================
3
Dmitry V. Levinb9bc2162016-07-29 17:51:54 +00004* Changes in behavior
5 * When using -p option without a command and no processes has been attached,
6 strace exits with exit status 1.
7
Dmitry V. Levine1fec332016-10-04 18:19:20 +00008* Improvements
9 * Added printing of the mode argument of open and openat syscalls
10 when O_TMPFILE flag is set. (Addresses Fedora bug #1377846).
11 * Enhanced -e abbrev=set, -e raw=set, and -e verbose=set.
12 * Enhanced decoding of futex, keyctl, quotactl, timerfd_settime,
13 and aio family syscalls.
14 * Implemented fetching of the 7th subcall argument on mips o32.
15 * Updated lists of BPF_*, ETH_P_*, KEXEC_ARCH_*, SCTP_*, TCP_*, and *_MAGIC
16 constants.
17 * Updated lists of ioctl commands from Linux 4.8.
18 * Added decoding of new syscalls on sh and sh64.
19 * Added RISC-V architecture support.
20
21* Bug fixes
22 * Marked io_setup and io_destroy as memory mapping related syscalls.
23 * Fixed leakage of placeholder descriptors to tracees.
24 * Fixed printing of mode_t, umode_t, and umask types.
25 * Fixed decoding of iovec arrays without a limit on total data size.
26 * Fixed decoding of fadvise64, fallocate, futex, keyctl, quotactl, readahead,
27 and ipc family syscalls.
28 * Fixed decoding of invalid syscalls mapped to indirect subcalls.
29 * Fixed decoding of struct btrfs_ioctl_vol_args_v2 on non-native
30 personalities.
31 * Fixed decoding of PTRACE_DETACH on sparc and sparc64.
32 * Fixed decoding of struct stat64 on sparc64.
33 * Fixed decoding of uid and gid-related syscalls on sparc64.
34 * Fixed decoding of the forth argument of semctl syscall on sparc64.
35 * Fixed values of tty ioctl constants on sparc64.
36 * Fixed sparc personality support on sparc64.
37
Dmitry V. Levin02fb1752016-07-26 16:17:18 +000038Noteworthy changes in release 4.13 (2016-07-26)
Dmitry V. Levin5577dd22016-06-01 23:56:14 +000039===============================================
40
Dmitry V. Levinf922fcc2016-07-24 23:40:14 +000041* Improvements
42 * Implemented a general netlink socket parser.
43 * Enhanced decoding of socket addresses.
44 * Enhanced decoding of cmsghdr, msghdr, and mmsghdr structures.
45 * Enhanced decoding of accept, accept4, bind, getpeername, getsockname,
46 ipc, recvfrom, recvmsg, recvmmsg, sendto, sendmmsg, and socketcall syscalls.
47 * Updated lists of AF_*, BPF_MAP_TYPE_*, KEY_*, KEYCTL_*, RWF_*, SS_*,
48 and *_MAGIC constants.
49 * Updated lists of ioctl commands from Linux 4.7.
50
51* Bug fixes
52 * Fixed decoding of pid_t argument of prlimit64 syscall.
53 * Fixed sign extension issues in the parser of struct rusage.
54 * Fixed race condition in decoding of timeout argument of recvmmsg and
55 rt_sigtimedwait syscalls.
56 * Fixed build with fresh linux kernel headers.
57
Dmitry V. Levined1f2062016-05-31 11:12:13 +000058Noteworthy changes in release 4.12 (2016-05-31)
Dmitry V. Levincbde4e22015-12-22 04:26:56 +000059===============================================
60
Dmitry V. Levin97cbf692015-12-24 16:53:07 +000061* Improvements
Dmitry V. Levinfa8c2862016-01-22 14:37:14 +000062 * Implemented simultaneous use of -p option and tracing of a command.
63 (addresses Debian bug #549942).
Dmitry V. Levin3c17d1b2016-02-01 23:14:59 +000064 * Implemented caching of netlink conversations to reduce amount of time
65 spent in decoding socket details in -yy mode.
Dmitry V. Levin0cf24d92016-05-24 18:11:47 +000066 * Implemented -yy mode decoding of protocol:portid pairs associated with
67 netlink socket descriptors.
Dmitry V. Levina6dd0942016-05-11 00:42:10 +000068 * Implemented decoding of copy_file_range, preadv2, and pwritev2 syscalls.
69 * Implemented dumping of preadv, preadv2, pwritev, pwritev2, and vmsplice
70 syscalls.
Dmitry V. Levin0cf24d92016-05-24 18:11:47 +000071 * Implemented decoding of BTRFS_* and UFFDIO_* ioctl commands.
Dmitry V. Levin43c8a5d2016-05-27 00:49:08 +000072 * Enhanced decoding of BLK*, EVIOC*, RTC_*, and VIDIOC_* ioctl commands.
Dmitry V. Levin0cf24d92016-05-24 18:11:47 +000073 * Enhanced decoding of fstatfs, fstatfs64, get_mempolicy, getdents,
74 getdents64, getgroups, getpriority, kill, mbind, migrate_pages, mknod,
75 mknodat, personality, poll, ppoll, quotactl, rt_sigpending,
76 rt_sigqueueinfo, rt_sigtimedwait, rt_tgsigqueueinfo, sched_getaffinity,
77 sched_setaffinity, seccomp, set_mempolicy, setgroups, setpriority, statfs,
78 statfs64, tgkill, waitid, and xattr family syscalls.
79 * Enhanced decoding of getxpid, getxuid, and getxgid syscalls on alpha.
80 * Enhanced decoding of pipe syscall on alpha, ia64, mips, sh, and sparc.
81 * Added decoding of bind, listen, and setsockopt direct syscalls on sparc.
82 * Added decoding of osf_statfs64 and osf_fstatfs64 syscalls on alpha.
83 * Added decoding of fadvise64 and fadvise64_64 on s390.
84 * Updated lists of AF_*, BPF_MAP_TYPE_*, CLONE_*, EPOLL*, IPV6_*, MADV_*,
85 MSG_*, PTRACE_*, SEGV_*, SO_*, SOL_*, *_MAGIC, and quotactl constants.
Dmitry V. Levin91647222016-05-17 16:19:48 +000086 * Updated lists of ioctl commands from Linux 4.6.
Dmitry V. Levin97cbf692015-12-24 16:53:07 +000087
Dmitry V. Levindd1a80c2015-12-24 15:40:55 +000088* Bug fixes
89 * Fixed build on arc, metag, nios2, or1k, and tile architectures.
Dmitry V. Levinbe1cb922016-01-07 14:20:17 +000090 * Fixed decoding of 32-bit times syscall return value on 64-bit architectures.
Dmitry V. Levinb1110542016-01-09 21:50:30 +000091 * Fixed decoding of mlock2 syscall on sparc.
Dmitry V. Levin0cf24d92016-05-24 18:11:47 +000092 * Fixed decoding of osf_shmat syscall on alpha.
Dmitry V. Levin1763fa52016-01-13 20:53:41 +000093 * Fixed decoding of syscalls unknown to the kernel on s390/s390x.
94 (addresses Debian bug #485979 and Fedora bug #1298294).
Dmitry V. Levinc98ab882016-03-30 18:04:00 +000095 * Fixed decoding of preadv syscall in case of short read.
Dmitry V. Levin05a0af62016-01-20 00:17:02 +000096 * Fixed decoding and dumping of readv syscall in case of short read.
Dmitry V. Levind44707d2016-01-20 04:56:25 +000097 * Fixed dumping of recvmsg and recvmmsg syscalls in case of short read.
Dmitry V. Levindfea1da2016-01-29 01:51:54 +000098 * Fixed decoding of mincore syscall's last argument.
Dmitry V. Levin4ab20402016-02-12 19:50:38 +000099 * Fixed remaining errors in mapping between syscall numbers and numbers
100 of syscall arguments.
Dmitry V. Levin0cf24d92016-05-24 18:11:47 +0000101 * Applied various fixes to strace-graph script.
Dmitry V. Levindd1a80c2015-12-24 15:40:55 +0000102
Dmitry V. Levin2acb0652015-12-21 20:21:22 +0000103Noteworthy changes in release 4.11 (2015-12-21)
Dmitry V. Levin91bdbb42015-03-09 22:05:40 +0000104===============================================
105
Dmitry V. Levin7405b122015-12-19 20:57:30 +0000106* Changes in behavior
107 * Some syscalls have different names depending on architecture and
108 personality. In these cases, syscall filtering and printing now
109 consistently uses the names that match corresponding __NR_* kernel
110 macros of the tracee's architecture and personality.
111 * Added strace prefix to all diagnostic messages.
112
113* Improvements
114 * Enhanced and extended test suite.
115 * Implemented reliable tracing of processes whose personality differs
116 from the personality of strace, fixed decoding of 32-bit personality
117 syscalls on 64-bit architectures.
118 * When some data referenced by syscall arguments is irrelevant or cannot
119 be read from tracee's memory, strace now prints its address consistently.
120 * When a syscall is restarted using restart_syscall mechanism, strace now
121 shows the syscall name on architectures that expose this information.
122 * Print values returned by epoll_create1, eventfd, eventfd2, fanotify_init,
123 inotify_init1, perf_event_open, pipe, pipe2, signalfd, signalfd4, socket,
124 socketpair, timerfd, and timerfd_create syscalls, as well as F_DUPFD and
125 F_DUPFD_CLOEXEC fcntl commands, as file descriptors.
126 * Optimized decoding of indirect socket syscalls.
127 * Implemented decoding of nanoseconds along with seconds in stat family
128 syscalls (addresses Fedora bug #1251176).
129 * Implemented decoding of struct statfs.f_flags in statfs syscall.
130 * Implemented decoding of siginfo_t.si_syscall and siginfo_t.si_arch
131 in SIGSYS signal.
132 * Implemented decoding of indirect syscall on mips o32.
133 * Implemented decoding of IPPROTO_IP control messages.
134 * Implemented decoding of setsockopt syscall multicast arguments.
135 * Enhanced decoding of struct sigevent.
136 * Enhanced decoding of block, loop, mtd, ptp, rtc, SG_IO, socket, tty,
137 and v4l2 ioctl syscall arguments.
138 * Enhanced decoding of epoll_create, fcntl, fcntl64, futex, getdents,
139 getdents64, getsockopt, io_*, mount, msgctl, prctl, quotactl, recvfrom,
140 sendfile, setsockopt, and shmctl syscalls.
141 * Implemented decoding of bpf, execveat, ioperm, iopl, kcmp, kexec_file_load,
142 lookup_dcookie, membarrier, memfd_create, mlock2, name_to_handle_at,
143 open_by_handle_at, sched_getattr, sched_setattr, and userfaultfd syscalls.
144 * Updated lists of AF_*, EPOLL_*, FALLOC_FL_*, F_*, INPUT_PROP_*, IPPROTO_*,
145 IPV6_*, IP_*, KEY_*, LOCK_*, MNT_*, MS_*, PACKET_*, PERF_FLAG_*, PF_*,
146 PR_*, PTRACE_O_*, RENAME_*, SCTP_*, SECBIT_*, SO_*, TCP_*, and siginfo_t
147 constants.
148 * Added Nios II architecture support.
149 * Added new syscall entries to match Linux 4.4.
150
151* Bug fixes
152 * Fixed potential short read of strings from tracee's memory.
153 * Fixed -qq option in conjunction with -o option.
154 * Fixed filtering of <unavailable> syscalls.
155 * Fixed decoding of ioctl syscall command on aarch64 and 32-bit architectures
156 with 64-bit aligned structures.
157 * Fixed decoding of eventfd2, epoll_create1, signalfd4, and sync_file_range2
158 syscall flags arguments.
159 * Fixed decoding of 4th argument of clock_nanosleep syscall.
160 * Fixed decoding of getpagesize syscall on m68k.
161 * Fixed decoding of getrandom and seccomp syscalls on aarch64.
162 * Fixed decoding of timezone argument of gettimeofday and settimeofday
163 * syscalls.
164 * Fixed decoding of offset argument of mmap2 syscall on arm, sparc,
165 and sparc64.
166 * Fixed decoding of pipe syscall on alpha and mips.
167 * Fixed decoding of pipe2 syscall on ia64, sh, sparc, and sparc64.
168 * Fixed decoding of signal mask argument of pselect6 syscall on x32.
169 * Fixed decoding of signal mask of rt_sigreturn syscall on aarch64, m68k,
170 and x32.
171 * Fixed decoding of 4th argument of semctl indirect syscall.
172 * Fixed decoding of sa_restorer and sa_mask of sigaction syscall on m68k.
173 * Fixed decoding of statfs64 and fstatfs64 syscalls on arm eabi.
174 * Fixed decoding of struct dirent on x32.
175 * Fixed decoding of times syscall return value on mips n32 and x32.
176 * Fixed decoding of path argument of umount2 syscall
177 (addresses Debian bug #785050).
178 * Worked around a kernel bug in tracing privileged executables.
179 * Fixed various errors in mapping between syscall numbers and associated
180 information like the number of syscall arguments, the name of syscall,
181 and syscall decoder.
182
Dmitry V. Levindfabccf2015-03-06 13:14:15 +0000183Noteworthy changes in release 4.10 (2015-03-06)
184===============================================
Dmitry V. Levine277a902014-08-19 11:34:44 +0000185
Dmitry V. Levina671a2c2015-02-23 20:24:00 +0000186* Improvements
187 * Added -yy option to print protocol and address information associated with
188 socket descriptors.
189 * Extended "-e read=set" and "-e write=set" options to cover sendmsg,
190 recvmsg, sendmmsg, and recvmmsg syscalls.
191 * Implemented full 32-bit decoding of ioctl commands
Dmitry V. Levindfabccf2015-03-06 13:14:15 +0000192 (addresses Debian bug #692913 and Fedora bug #902788).
193 * Implemented PTRACE_GETREGS API support on ia64.
194 * Implemented PTRACE_GETREGS API support on mips.
195 * Implemented PTRACE_GETREGSET API support on s390/s390x.
Dmitry V. Levina671a2c2015-02-23 20:24:00 +0000196 * Implemented decoding of getrandom and seccomp syscalls.
197 * Implemented full decoding of 64-bit capability sets.
198 * Implemented decoding of all prctl commands.
199 * Implemented decoding of parametrized ioctl commands.
200 * Implemented decoding of evdev ioctl commands.
201 * Implemented decoding of v4l ioctl commands.
202 * Implemented decoding of SG_IO v4 ioctl commands.
203 * Implemented decoding of FIFREEZE/FITHAW/FITRIM ioctl commands.
204 * Implemented decoding of FALLOC_FL_* fallocate flags.
Dmitry V. Levindfabccf2015-03-06 13:14:15 +0000205 * Implemented decoding of rt_sigreturn signal mask on aarch64,
206 x32, and x86_64.
Dmitry V. Levina671a2c2015-02-23 20:24:00 +0000207 * Enhanced socket decoder to support bluetooth sockets.
208 * Enhanced decoding of unlisted ioctl commands.
209 * Enhanced decoding of getsockopt and setsockopt syscall.
210 * Enhanced decoding of sysinfo syscall.
211 * Enhanced decoding of struct cmsghdr.
212 * Enhanced decoding of wait status.
213 * Enhanced aio support on non-x86 architectures by using external libaio.h.
214 * Added O_TMPFILE to the list of recognized open mode flags.
215 * Updated the list of filesystem type constants that is used in decoding
216 statfs family syscalls.
217 * Updated lists of CAP_*, PR_*, PTRACE_*, SCHED_*, SO_*, SOL_*, SWAP_FLAG_*,
218 and TFD_* constants.
219 * Updated lists of signal constants from Linux 3.19.
220 * Updated lists of errno constants from Linux 3.19.
221 * Updated lists of ioctl commands from Linux 3.9.
222 * Added new syscall entries to match Linux 3.19.
223
224* Bug fixes
225 * Fixed various errors in mapping between syscall numbers and associated
226 information like the number of syscall arguments, the name of syscall,
227 and syscall decoder.
228 * Fixed quoting issues in printing descriptors, filenames, network interface
229 names, struct utsname members, device/volume names of BLK* ioctl commands.
230 * Fixed uid_t/git_t decoding.
231 * Fixed potential out-of-bounds read issues in getdents/getdents64 decoders.
232 * Fixed potential open flags truncation on some architectures.
233 * Fixed decoding of struct ifreq.ifr_name.
234 * Fixed decoding of SIOCSIFNAME ioctl command.
235 * Fixed decoding of RENAME_* renameat2 flags.
236 * Fixed decoding of UTIME_NOW/UTIME_OMIT timeval structures.
237 * Fixed decoding of indirect ipc subcalls on some architectures.
238 * Fixed decoding of fanotify_mark syscall on 32-bit architectures.
239 * Fixed decoding of 32-bit stat structures on 64-bit architectures.
240 * Fixed decoding of 32-bit struct cmsghdr on 64-bit architectures.
241 * Fixed decoding of 32-bit preadv/pwritev offset on 64-bit architectures.
Dmitry V. Levindfabccf2015-03-06 13:14:15 +0000242 * Fixed decoding of sigreturn/rt_sigreturn signal mask on ia64, ppc, ppc64,
243 sparc, sparc64, mips, and s390.
Dmitry V. Levina671a2c2015-02-23 20:24:00 +0000244 * Fixed instruction pointer output (-i option) on architectures that support
245 several personalities.
246 * Fixed behaviour of "-e read=set" and "-e write=set" when read and write
247 sets intersect.
248 * Fixed build on systems where struct sigaction has no sa_restorer member.
249 * Fixed build with uclibc and musl libc.
250
251* Portability
252 * Linux kernel >= 2.5.46 is required.
253 Older versions without a decent PTRACE_SETOPTIONS support will not work.
Dmitry V. Levindfabccf2015-03-06 13:14:15 +0000254 * On mips, linux kernel >= 2.6.15 is required.
255 Older versions without a decent PTRACE_GETREGS support will not work.
256 * On s390 and s390x, linux kernel >= 2.6.27 is required.
257 Older versions without a decent PTRACE_GETREGSET support will not work.
Dmitry V. Levina671a2c2015-02-23 20:24:00 +0000258
Dmitry V. Levine4db4c42014-08-15 13:14:15 +0000259Noteworthy changes in release 4.9 (2014-08-15)
Dmitry V. Levin02d2c702013-06-05 21:33:45 +0000260==============================================
261
Dmitry V. Levin327102c2014-06-03 13:31:37 +0000262* Changes in behavior
263 * Disabled OABI support on ARM EABI systems by default,
264 added --enable-arm-oabi option to enable it at configure time.
265
Mark Hillse53bf232014-05-28 17:52:40 +0100266* Improvements
Dmitry V. Levin2734a702014-06-18 15:34:27 +0000267 * Added experimental -k option to print stack trace after each traced syscall.
Dmitry V. Levin327102c2014-06-03 13:31:37 +0000268 * Added -w option to produce stats on syscall latency.
269 (addresses Debian bug #457497).
270 * Added ARC architecture support.
271 * Added PTRACE_GETREGS API support on PowerPC.
272 * Enhanced Bionic libc and musl libc support.
273 * Enhanced tracing of x86 personality processes on x86_64 and x32.
274 * Enhanced tracing of ARM personality processes on AArch64.
275 * Enhanced 32/64bit personality detection on PowerPC.
Dmitry V. Levin6d32e462014-08-15 00:36:36 +0000276 * Implemented decoding of add_key, ioprio_get, ioprio_set, kexec_load, keyctl,
277 renameat2, and request_key syscalls.
Dmitry V. Levin327102c2014-06-03 13:31:37 +0000278 * Robustified decoding of select, pselect, and io_submit syscalls.
Dmitry V. Levin6d32e462014-08-15 00:36:36 +0000279 * Enhanced decoding of delete_module, fanotify_init, fanotify_mark, fcntl,
280 setdomainname, sethostname, setns, and sync_file_range syscalls.
Dmitry V. Levin327102c2014-06-03 13:31:37 +0000281 * Enhanced decoding of signal bitmasks.
282 * Enhanced decoding of file descriptors.
283 * Enhanced siginfo_t decoding.
284 * Enhanced PF_NETLINK decoding.
285 * Updated CLOCK_* constants
286 (addresses Fedora bug #1088455).
Dmitry V. Levin6d32e462014-08-15 00:36:36 +0000287 * Added new syscall entries to match Linux 3.16.
Dmitry V. Levin327102c2014-06-03 13:31:37 +0000288
289* Bug fixes
290 * Added shmat and shmdt to the set of memory mapping related syscalls.
291 * Fixed detaching from stopped processes.
292 * Fixed fanotify_mark decoding on 32bit architectures.
293 * Fixed offset decoding in preadv and pwritev syscalls.
294 * Fixed select decoding for glibc in _FORTIFY_SOURCE mode.
295 * Fixed decoding of epoll_ctl syscall with EPOLL_CTL_DEL argument.
296 * Fixed build when <sys/ptrace.h> and <linux/ptrace.h> conflict
297 (addresses Fedora bug #993384).
298 * Miscellaneous corrections in the manual page.
299 (Addresses Debian bug #725987).
Mark Hillse53bf232014-05-28 17:52:40 +0100300
Dmitry V. Levind8454112013-06-03 12:34:56 +0000301Noteworthy changes in release 4.8 (2013-06-03)
Dmitry V. Levindce75932013-04-30 23:52:12 +0000302==============================================
Dmitry V. Levin503faaa2012-05-02 23:00:34 +0000303
Dmitry V. Levind8454112013-06-03 12:34:56 +0000304* Changes in behavior
305 * In case of normal strace termination, when the trace output is
306 redirected to a pipe, strace now closes it and waits for the pipe
307 process termination before exit.
308
309* Improvements
310 * Implemented tracing using PTRACE_SEIZE API (when available).
311 * Implemented more reliable PTRACE_GETREGSET-based process personality
312 detection on x86-64 and x32 (when available).
313 * Added -e trace=memory option for tracing memory mapping related syscalls.
314 * Documented -b option.
315 * Allowed exit status messages to be suppressed by giving -q option twice.
316 * Added AArch64 architecture support
317 (addresses Debian bug #693074 and Fedora bug #969858).
318 * Added support for OpenRISC 1000, Meta, and Xtensa architectures.
319 * Added tilegx personality support for Tile.
320 * Enhanced support of NOMMU architectures.
321 * Enhanced decoding of getdents, mmap, perf_event_open, ptrace, and
322 quotactl syscalls.
323 * Added new syscall entries to match Linux 3.9.
Dmitry V. Levin1cd3f5f2013-06-03 16:24:53 +0000324 * Regenerated the list of common ioctl names from Linux 3.9.
Dmitry V. Levind8454112013-06-03 12:34:56 +0000325 * Updated the list of errno constants.
326 * Updated lists of AF_*, MADV_*, MAP_*, MSG_*, MS_*, PF_*, PR_*,
327 PTRACE_O_*, and TCP_* constants.
328 * Implemented decoding of UBI ioctls.
329 * Removed redundant "*32" ioctl names.
330
331* Bug fixes
332 * Fixed ERESTARTNOINTR leaking to userspace on ancient kernels
333 (addresses Fedora bug #659382).
334 * Fixed kernel release string parsing
335 (addresses Debian bug #702309).
336 * Fixed decoding of *xattr syscalls
337 (addresses Fedora bug #885233).
338 * Fixed handling of files with 64-bit inode numbers by 32-bit strace
339 (addresses Fedora bug #912790).
340 * Fixed tracing forks on SPARC.
341 * Fixed decoding of fadvise64, fallocate, ftruncate64, io_submit, pread,
342 preadv, pwrite, pwritev, readahead, sigaltstack, sync_file_range, sysctl,
343 and truncate64 syscalls.
344 * Fixed categories of multiple syscalls on most of supported architectures.
345 * Fixed decoding of non-native 32-bit personality recv[m]msg syscalls.
346 * Fixed decoding of multiple 32-bit personality syscalls on x32.
347 * Fixed decoding of long long syscall arguments on ARM, MIPS/o32, PowerPC,
348 S390x, and Tile architectures.
349 * Fixed semtimedop decoding on S390x.
350 * Fixed sram_alloc decoding on Blackfin.
351 * Fixed build when process_vm_readv is a stab.
352 * Fixed build with older versions of libaio.h.
353
Dmitry V. Levindce75932013-04-30 23:52:12 +0000354Noteworthy changes in release 4.7 (2012-05-02)
355==============================================
Dmitry V. Levin84e50fc2012-04-20 17:32:50 +0000356
357* Changes in behavior
358 * strace no longer suspends waitpid until there is a child
359 for waitpid'ing process to collect status from.
360 * strace no longer detaches from a tracee which is supposed
361 to be going to die.
362 * strace now issues a new message: "+++ exited with EXITCODE +++"
363 which shows exact moment strace got exit notification,
364 analogous to existing "+++ killed by SIG +++" message.
365
366* Improvements
Mike Frysinger9b4fca22012-04-27 19:13:55 -0400367 * Added x32 personality support (x86_64 architecture).
Dmitry V. Levin84e50fc2012-04-20 17:32:50 +0000368 * Added -y and -P options to print file descriptor paths and
369 filter by those paths.
370 * Added -I option to control strace interactivity.
371 * Allowed -p option to take comma or whitespace-separated list of PIDs.
372 * Added strace_log_merge script helper to merge timestamped "strace -ff"
373 log files.
374 * Implemented decoding of clock_adjtime, get_robust_list, migrate_pages,
375 preadv, prlimit64, process_vm_readv, process_vm_writev, pwritev,
Dmitry V. Levin4ef30632012-05-01 21:04:18 +0000376 recvmmsg, recvmsg, rt_tgsigqueueinfo, sendmmsg, setns, set_robust_list,
Dmitry V. Levin84e50fc2012-04-20 17:32:50 +0000377 sched_rr_get_interval, splice, syslog, tee and vmsplice syscalls.
378 * Enhanced decoding of capget, capset, getrlimit, flistxattr, io_submit,
379 listxattr, setrlimit and swapon syscalls.
380 * Implemented decoding of loop and mtd ioctls.
381 * Added syscall entries for new linux syscalls.
382 * Added syscall entries for direct socket system calls on powerpc.
383 * Updated the list of errno constants.
Dmitry V. Levina28fbfd2012-05-01 21:17:51 +0000384 * Updated lists of MSG_*, STA_*, and TCP_* constants.
Dmitry V. Levin84e50fc2012-04-20 17:32:50 +0000385 * Regenerated the list of ioctl names from Linux 3.3.
386 * Enhanced switching between processes with different personalities.
387 * Enhanced signals reporting by using short signal names.
388 * Made ERESTART* messages more descriptive.
389 * Made parsing of numbers from strings more robust.
390 * Added support for compat_statfs64 and statfs64.f_flags.
391 * Changed read of data blocks to use single process_vm_readv syscall
392 (when available) instead of several PTRACE_PEEKDATA operations.
393 * Changed read of registers on x86 and x86-64 to use single PTRACE_GETREGS
394 operation instead of several PTRACE_PEEKUSER operations.
395 * Applied various optimizations to make strace work faster.
396
397* Bug fixes
398 * Implemented proper handling of real SIGTRAPs on kernels supporting
399 PTRACE_O_TRACESYSGOOD.
400 (Addresses Fedora bug #162774).
401 * Fixed sockaddr_un.sun_path name in decoded output.
402 (Addresses Debian bug #554946).
403 * Fixed to avoid potential core file clobbering on exit.
404 (Addresses Debian bug #656398).
405 * Fixed a typo in documentation.
406 (Addresses Debian bug #653309).
407 * Fixed decoding of timer id returned by timer_create.
408 * Fixed epoll_create1, epoll_wait and epoll_pwait decoding.
409 * Fixed *at syscalls flags decoding.
410 * Fixed ARM EABI 64-bit syscall's arguments decoding.
411 * Fixed semtimedop decoding on s390.
412 * Fixed osf_sigprocmask decoding on alpha.
413 * Fixed ipc and socket subcall decoding on several architectures.
414 * Corrected syscall entries for epoll_pwait, epoll_create, epoll_ctl,
415 epoll_wait, mincore, mlockall, prctl, reboot, sendfile, sendfile64,
416 sendmsg, sgetmask, ssetmask, swapon, tgkill and tkill syscalls.
Mike Frysinger9b4fca22012-04-27 19:13:55 -0400417 * Corrected io_* syscall entries on ARM.
Dmitry V. Levin84e50fc2012-04-20 17:32:50 +0000418 * Fixed PID prefix printing in "strace -oLOG -ff -p1 -p2 -p3" case.
419 * Fixed logging of unfinished lines in "strace -oLOG -ff" case.
420 * Fixed build when libaio-devel is not available.
421 * Fixed configure checks for PTRACE_* constants.
422 * Fixed compilation warnings remained on several architectures.
423
424* Portability
425 * Removed all non-Linux code. After years of neglect, that dead code
426 just hampered further strace development.
Dmitry V. Levin4ef30632012-05-01 21:04:18 +0000427 * Linux kernel >= 2.6.18 is recommended. Older versions might still
428 work but they haven't been thoroughly tested with this release.
Dmitry V. Levin84e50fc2012-04-20 17:32:50 +0000429
Dmitry V. Levindce75932013-04-30 23:52:12 +0000430Noteworthy changes in release 4.6 (2011-03-15)
431==============================================
Dmitry V. Levin50e69cb2011-02-21 22:58:59 +0000432
433* Changes in behavior
434 * Print diagnostic information about changes in personality mode to
435 standard error instead of standard output.
436
437* Improvements
438 * Implemented a new method of following clone, fork, and vfork
439 syscalls using the Linux kernel's explicit facilities for tracing
440 creation of threads and child processes.
441 * Implemented CLONE_PARENT and CLONE_UNTRACED flags handling.
442 * Implemented decoding of TLS syscalls on m68k.
443 * Implemented biarch support on powerpc64.
444 * Implemented biarch support for getrlimit() and setrlimit().
445 * Implemented decoding of struct ucred in getsockopt SO_PEERCRED.
446 * Implemented SOL_SCTP socket options decoding.
447 * Added HDIO_* ioctl names.
448 (Addresses Debian bug #450953).
449 * Added LOOP_* ioctl names.
450 * Updated lists of CLOCK_*, CLONE_*, MS_*, and SOL_* constants
451 to match Linux 2.6.37.
452 * Updated the list of IPPROTO_* constants to match netinet/in.h.
453 * Implemented decoding of HDIO_* and BLK* ioctls.
454 * Added MicroBlaze architecture support.
455 * Added new syscall entries to match Linux 2.6.37.
456 * Regenerated list of ioctl names from Linux 2.6.37.
457 * Enhanced signal notification decoding.
458 * Documented -C and -D options.
459
460* Bug fixes
461 * Fixed fetching syscall arguments on m68k.
462 * Fixed an error when judging whether a process has children.
463 * Fixed get/set_robust_list syscall numbers for powerpc.
464 * Fixed a corner case in printing clone flags.
465 * Fixed cross-compiling issues.
466 * Fixed build issues on powerpc64, SH and SPARC.
467 * Fixed syscall flags of fstatat*, mmap, mmap2, fadvise64*, swapoff,
468 fgetxattr, flistxattr, fremovexattr, epoll_create, fallocate,
469 fanotify_init, and fanotify_mark syscalls.
470 * Fixed decoding of get[ug]id, gete[ug]id and setfs[ug]id return values.
471 * Fixed biarch support in IO dumping.
472 * Fixed raw exit_group decoding.
473 * Fixed decoding of file descriptors on 64-bit architectures.
474 * Fixed a corner case in waitpid handling.
475 (Addresses Red Hat bug #663547).
476 * Fixed stat64 decoding on mips
477 (Addresses Debian bug #599028).
478 * Fixed misleading italics in the manual page.
479 (Addresses Debian bug #589323).
480
Dmitry V. Levindce75932013-04-30 23:52:12 +0000481Noteworthy changes in release 4.5.20 (2010-04-13)
482=================================================
Dmitry V. Levinacbe5182010-04-06 23:46:43 +0000483
484* Improvements
485 * Implemented decoding of new linux syscalls: inotify_init1, recvmmsg.
486 * Implemented basic decoding of new linux syscalls: preadv, pwritev,
487 rt_tgsigqueueinfo, perf_event_open.
488 * Enhanced decoding of recently added syscalls on non-x86 architectures
489 by replacing a bare decoder with elaborate parsers enabled earlier
490 for x86/x86-64.
491 * Implemented -C option to combine regular and -c output.
492 (Addresses Debian bug #466196)
493 * Enhanced decoding of mbind and mremap syscalls.
494 * Enhanced SOL_PACKET socket options decoding.
495 * Regenerated list of ioctl names from linux 2.6.33.
496 * Added TILE architecture support.
497
498* Bug fixes
499 * Fixed build with Linux kernel headers 2.6.32-rc5+.
500 (Addresses Debian bug #560516 and Fedora bug #539044)
501 * Fixed build on mips.
502 * Fixed handling of Linux systems without struct statfs64.
503 * Fixed reporting signal mask by sigreturn on powerpc.
504 * Fixed potential stack buffer overflow in select decoder.
505 (Addresses Fedora bug #556678)
506 * Corrected msgsnd indirect ipccall decoding.
507 * Corrected decoding of 64bit syscalls.
508 (Addresses Debian bug #570603)
509 * Corrected getsockopt decoding on architectures where
510 sizeof(long) > sizeof(int).
511 (Addresses Debian bug #494844)
512 * Corrected decoding of epoll_pwait.
513 (Addresses Debian bug #513014)
514 * Corrected handling of killed threads.
515
Dmitry V. Levindce75932013-04-30 23:52:12 +0000516Noteworthy changes in release 4.5.19 (2009-10-21)
517=================================================
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000518
519* Changes in behavior
520 * When command exits, strace now exits with the same exit status.
521 If command is terminated by a signal, strace terminates itself
522 with the same signal, so that strace can be used as a wrapper
523 process transparent to the invoking parent process.
524 When using -p option, the exit status of strace is zero unless
525 there was an unexpected error in doing the tracing.
526 (Addresses Fedora bug #105371 and Debian bug #37665)
527
528* Improvements
529 * Implemented decoding of new Linux syscalls: accept4, dup3,
530 epoll_create1, eventfd2, inotify_init1, pipe2, signalfd4.
531 * Implemented decoding of socket type flags introduced in Linux 2.6.27.
532 * Implemented decoding of accept4 socketcall.
533 * Enhanced prctl decoding.
534 * Enhanced nanosleep decoding.
535 * Enhanced ptrace decoding.
536 * Enhanced futex decoding.
537 * Enhanced CAP_* decoding.
538 * Enhanced SIOCS* ioctls decoding.
539 * Enhanced fcntl F_* flags decoding.
Dmitry V. Levind7bb8b42009-10-08 22:28:57 +0000540 * Enhanced semop/semtimedop decoding.
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000541 * Updated ARM architecture support.
542 * Added Blackfin architecture support.
543 * Added AVR32 architecture support.
544 * Added CRIS architecture support.
545 * Made strace detect when traced process suddenly disappeared.
546
547* Bug fixes
548 * Fixed syscall numbers for tee and sync_file_range.
549 (Addresses Debian bug #503124)
550 * Fixed several bugs in strings decoder, including potential heap
551 memory corruption.
552 (Addresses Fedora bugs #470529, #478324 and #511035)
553 * Marked sendfile(2) as a network syscall.
554 (Addresses Debian bug #509499)
555 * Fixed accept(2) decoding.
Dmitry V. Levinacbe5182010-04-06 23:46:43 +0000556 (Addresses Debian bug #507573)
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000557 * Fixed sigtimedwait(2) decoding.
558 * Fixed build on ARM EABI.
559 (Addresses Debian bugs #520084 and #535564, and Fedora bug #507576)
560 * Fixed display of 32-bit fcntl(F_SETLK) on 64-bit architectures.
561 (Addresses Red Hat bug #471169)
562 * Fixed display of 32-bit argv array on 64-bit architectures.
563 (Addresses Fedora bug #519480)
564 * Fixed display of 32-bit struct sigaction on 64-bit architectures.
Dmitry V. Levin84c693e2009-10-06 10:40:17 +0000565 * Fixed HPPA architecture support.
566 (Addresses Debian bugs #437928 and #546619)
Dmitry V. Levinfbfed222009-09-14 16:34:34 +0000567
Roland McGrath09db7052008-08-28 22:00:46 +0000568Changes in 4.5.18
569==============
570* Bug fixes.
571* Support new Linux/PPC system call subpage_prot and PROT_SAO flag.
572* In sigaction system call, display sa_flags value along with SIG_DFL/SIG_IGN.
573
Roland McGrath55dd2782008-07-18 02:21:11 +0000574Changes in 4.5.17
575==============
576* Many bug fixes.
577* -F is now deprecated, -f has traced vfork too on Linux for a long time now.
578* Print O_CLOEXEC, MSG_CMSG_CLOEXEC flag bits.
579* Improved output for prctl system call on Linux.
580* Improved support for Linux/ARM.
581* SA_NOMASK is now spelled SA_NODEFER, and SA_ONESHOT is spelled SA_RESETHAND.
582
Roland McGrath47d32232007-08-03 10:28:55 +0000583Changes in 4.5.16
584==============
585* Bug fixes.
586* Improved output for delete_module, futex, and mbind system calls on Linux.
587* Improved output for SG_IO ioctls on Linux.
588* Support new Linux system calls move_pages, utimensat, signalfd, timerfd,
589 eventfd, getcpu, epoll_pwait.
590
Roland McGrath16a3a522007-01-11 22:22:42 +0000591Changes in 4.5.15
592==============
593* Bug fixes.
594* Several biarch improvements.
Roland McGrath0a45fae2007-01-16 23:25:34 +0000595* Improved output for adjtimex, sysctl, quotactl, mount, umount.
Roland McGrath16a3a522007-01-11 22:22:42 +0000596* Support new Linux system calls *at, inotify*, pselect6, ppoll and unshare.
597
Roland McGrathf4d9b492006-01-17 06:22:57 +0000598Changes in 4.5.14
599==============
600* Bug fixes.
601* Accept numeric system calls in -e.
602
Roland McGrathcab43802005-08-03 11:42:35 +0000603Changes in 4.5.13
604==============
605* Bug fixes.
606* Introduce "-e trace=desc".
607
Roland McGrath182cbf42005-06-10 03:56:16 +0000608Changes in 4.5.12
609==============
610* Bug fixes.
611* Better x86-64 support for IA32 processes.
612* Update PowerPC system calls.
613* Better printing for Linux aio system calls.
614
Roland McGrath7147a3d2005-03-22 23:12:39 +0000615Changes in 4.5.11
616==============
617* Quick fix release for build issues.
618* One fix for Linux/ARM system call table.
619
Roland McGrathd8184032005-03-15 02:40:12 +0000620Changes in 4.5.10
621==============
622* Bug fixes.
623* Print fault address for SIGSEGV/SIGBUS signals when available.
624
Roland McGrathd63311a2005-02-04 09:29:04 +0000625Changes in 4.5.9
626==============
627* Bug fixes.
628* Improve socket ioctl printing.
629* Update Linux/IA64 syscall list.
630* Fix Linux/x86-64 syscall argument extraction for 32-bit processes.
631* Improve mount flags printing.
632* Support symbolic printing of x86_64 arch_prctl parameters.
633
Roland McGrathf041d472004-10-20 02:17:52 +0000634Changes in 4.5.8
635==============
636* Bug fixes.
637* Update syscall tables for Alpha, ARM, HPPA.
638* Support new Linux syscalls mbind, set_mempolicy, get_mempolicy, waitid.
639* Support Linux syscalls fadvise64, fadvise64_64, and epoll_*.
640* Improve ioctl command name matching.
641* Print RTC_* ioctl structure contents.
642* Support newer RLIMIT_* values.
643* Print struct cmsghdr details in sendmsg.
644
Roland McGrathb93f9182004-08-31 08:17:20 +0000645Changes in 4.5.7
646==============
647* Bug fixes.
648* Print attribute values in *xattr system calls on Linux.
649* Include pread and pwrite calls in -e read and -e write tracing.
650* Update SO_* and IP_* value lists and add IPV6_* values for socket options.
651* Print clock_t values symbolically in Linux clock_* system calls.
652
Roland McGrath785a0262004-07-12 07:55:48 +0000653Changes in 4.5.6
654==============
655* Bug fixes, Linux ioctl updates.
656* David Miller contributed support for Linux/SPARC64.
657
Roland McGrathb7e2ca12004-06-28 05:24:29 +0000658Changes in 4.5.5
659==============
660* Just bug fixes.
661
Roland McGrathed8e77e2004-06-04 02:35:58 +0000662Changes in 4.5.4
663==============
664* Update Linux ioctl lists.
665* Update PF_* and AF_* value lists.
666* The 4.5.3 -p behavior for NPTL threads applies only under -f, and got fixed.
667
Roland McGrath62412202004-04-09 00:25:38 +0000668Changes in 4.5.3
669==============
670* Bug fixes.
671* On Linux using NPTL threads, -p will now attach to all threads in a process.
Roland McGrath5e169a12004-04-16 21:54:56 +0000672* Handle new mq_* system calls in Linux 2.6.6 and later.
Roland McGrath62412202004-04-09 00:25:38 +0000673
Roland McGrathb66e9362004-03-02 06:38:35 +0000674Changes in 4.5.2
675==============
676* Bug fixes.
677* Report some new VM_* bit values on Linux.
678* Better output for Linux sched_* system calls.
679
Roland McGrath00eb84e2003-11-14 02:57:22 +0000680Changes in 4.5.1
681==============
682* Bug fixes.
683* Display multiple ioctl name matches on Linux.
684
Roland McGratha3bc12e2003-09-24 22:22:38 +0000685Changes in 4.5
Michal Ludvig53b320f2002-09-23 13:30:09 +0000686==============
Roland McGrathf57204d2002-12-18 04:36:59 +0000687* New port to AMD's x86-64 architecture. One strace binary can
Michal Ludvig53b320f2002-09-23 13:30:09 +0000688 handle both new x86-64 and old i386 processes.
689* Fixed support for LFS64 calls.
Roland McGrathde6e5332003-01-24 04:31:23 +0000690* New switch -E to add/remove environment variables for the command.
Michal Ludvig81a3a9a2002-11-06 13:19:15 +0000691* Merged s390/s390x port.
Roland McGrathf57204d2002-12-18 04:36:59 +0000692* Trace an unbounded number of processes.
Roland McGrath5694e802003-01-09 06:56:39 +0000693* Handle numerous new system calls in Linux 2.5, and new threads semantics.
Roland McGrathf57204d2002-12-18 04:36:59 +0000694* Fixed bugs with attach/detach leaving things stopped.
Roland McGrath044c8d22002-12-22 03:36:03 +0000695* Fixed traced process seeing ECHILD despite live, traced children
696 in waitpid calls with WNOHANG.
Roland McGrath1b86e2d2003-03-31 01:21:36 +0000697* Stuart Menefy contributed a port to Linux/SH.
Roland McGrathcb612142003-07-17 09:23:56 +0000698* Stephen Thomas contributed a port to Linux/SH64.
Roland McGrathacd3cd72003-06-11 05:37:56 +0000699* Many other bug fixes.
Michal Ludvig53b320f2002-09-23 13:30:09 +0000700
Wichert Akkermand22c4a12001-08-19 11:57:48 +0000701Changes in 4.4
702==============
703* Fix Linux/ia64 support, looks like someone renamed a few things on us
704* Fix the ioctl setup for Linux, turned out it did not really work.
705 Improve the ioctl extracter as well so we decode some more ones.
706
Wichert Akkermane70bbe52001-04-07 21:47:30 +0000707Changes in 4.3.1
708================
709* compile fixes for Linux/mips
710
Wichert Akkerman12f75d12000-02-14 16:23:40 +0000711Changes in 4.3
712==============
Wichert Akkermanb07296a2001-04-01 14:05:04 +0000713* Linux ia64 and hppa ports added
Wichert Akkerman7987cdf2000-07-05 16:05:39 +0000714* The usual Linux syscall updates (includes 32bit uid/gid support),
Wichert Akkermana9667852001-03-17 17:26:34 +0000715* Linux ioctl list updated
Wichert Akkermanf1850652001-02-16 20:29:03 +0000716* Support IPv6 scope ids
Wichert Akkermanb07296a2001-04-01 14:05:04 +0000717* FreeBSD/i386 port added
718* UnixWare and Solaris updates
719* Better support for tracing multithreaded processes in Linux
Wichert Akkerman12f75d12000-02-14 16:23:40 +0000720
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000721Changes in 4.2
722==============
723* Compiles on glibc2.0 systems again
724* Linux/S390 port added
Roland McGrathf57204d2002-12-18 04:36:59 +0000725* The usual Linux syscall updates
Wichert Akkerman9148a3b1999-12-24 23:13:55 +0000726* we can follow fork on arm now
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000727
Wichert Akkerman2a64b431999-11-26 00:29:05 +0000728Changes in 4.1
729================
730* Linux/MIPS port added
731* Lots of Linux updates again
732* Improved IPv6 support
733* Add strace-graph
734
Wichert Akkerman4a01ca01999-07-25 12:29:49 +0000735Changes in 4.0.1
736================
737* Minor bugfixes
738* Compiles on glibc2.0 systems again
739
Wichert Akkerman8dc9a1a1999-07-09 14:08:14 +0000740Changes in 4.0
741==============
742* Get stat structure properly on Linux 64bit archs
743* Personalities work again
744* Compile correctly on SunOS again
745* IRIX64 updates
746* Solaris updates
747
Wichert Akkerman3f7f49d1999-06-09 13:12:11 +0000748Changes in 3.99.1
Wichert Akkerman8dc9a1a1999-07-09 14:08:14 +0000749=================
Wichert Akkerman3f7f49d1999-06-09 13:12:11 +0000750* Linux (ultra)sparc fixes
751* Linux alpha fixes
752* Minor cleanups
753
Wichert Akkermanb859bea1999-04-18 22:50:50 +0000754Changes in 3.99
755===============
Wichert Akkerman1786d811999-04-15 20:34:14 +0000756* New maintainer
757* add support for more Linux architectures (powerpc, sparc, arm)
758* support lots more Linux syscalls
759* fix signal handling
760* add IPX and IPIP support
761* check stray syscall after execv
762* fix hanging children
763
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000764Changes in version 3.1
765======================
766
767* Irix5 is supported
768* Linux 68k is supported
769* Linux alpha is supported
770* configure is upgraded to autoconf 2.x
771* using -f in combination with -e now works correctly
772* output can be piped to a program
773* tracing setuid programs works better
774* it is now reasonable to install strace setuid to root in some circumstances
775* new useful tracing names like file and process to trace whole
776 classes of system calls, e.g. -efile traces all system calls that
777 take a file name as an argument
778* IPC calls on SunOS 4.1.x are decoded
779* Linux program memory is reliably dereferenced
780* Linux decodes at least the name of all syscalls as of pre2.0.4
781* various cosmetic changes and bug fixes
782
783Changes from versions 2.x to version 3.0
784========================================
785
786* filename arguments are neither abbreviated nor stringified
787* string arguments are now true C strings using octal instead of hex by default
788* preprocessor constants are never shortened (e.g. was RDONLY => now O_RDONLY)
789* by default the output for multiple processes now goes into one file
790* all structures, vectors, bitsets, etc. use consistent output formats
791* the -c option now means count calls, -i does what the old -c used to do
792
793New Features in version 3.0
794===========================
795
796* non-ascii strings can be optionally printed entirely in hex
797* the output format is readable when mutiple processes are generating output
798* exit values are printed in an alignment column
799* is is possible to suppress messages about attaching and detaching
800* various tracing features can be enabled on a per syscall/signal/desc basis
801* selective tracing of syscalls
802* selective printing of syscall structures
803* selective abbreviation of long structures on a per syscall basis
804* selective printing of raw syscall arguments and results
805* selective tracing of signals
806* selective dumping of all I/O read from file descriptors
807* selective dumping of all I/O written to file descriptors
808* optional counting of time, calls, and errors for each syscall