Lines Matching +full:ipv4 +full:- +full:no +full:- +full:config +full:- +full:for +full:- +full:cpp
1 2018-10-30 Dmitry V. Levin <ldv@altlinux.org>
3 Prepare for 4.25 release.
4 * NEWS: Update for 4.25 release.
10 2018-10-25 Dmitry V. Levin <ldv@altlinux.org>
14 2018-10-25 Elvira Khabirova <lineprinter@altlinux.org>
28 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
30 2018-10-25 Dmitry V. Levin <ldv@altlinux.org>
33 Linux commit v4.19-rc2-5-g2ecefa0a15fd0ef88b9cd5d15ceb813008136431
37 * tests/keyctl.c (main): Use designated initializers for
40 2018-10-24 Dmitry V. Levin <ldv@altlinux.org>
44 introduced by Linux commit v4.19-rc7~24^2~1.
46 to make room for new syscalls.
51 2018-10-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
54 * linux/32/ioctls_inc_align16.h: Update from linux v4.19-rc8
64 maint: update for linux 4.19-rc8.
67 2018-10-24 Dmitry V. Levin <ldv@altlinux.org>
73 Linux kernel commit v4.19-rc1~137^2~248 introduced more of such
91 2018-09-27 Dmitry V. Levin <ldv@altlinux.org>
96 2018-09-23 Dmitry V. Levin <ldv@altlinux.org>
109 2018-09-18 Dmitry V. Levin <ldv@altlinux.org>
111 Disable git-archive.
112 Since configure uses git-version-gen which in turn depends
113 on "git describe" or a .tarball-version file, raw archives
117 * README-github_gitlab-autogenerated-archives.txt: Likewise.
119 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
121 Workaround signedness bugs in system NLMSG_OK reported by -Wsign-compare
122 Introduce a replacement for NLMSG_OK provided by <linux/netlink.h> since
134 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
138 warning reported by clang -Wtautological-constant-out-of-range-compare.
140 build: enable gcc -Woverride-init and clang -Winitializer-overrides.
141 * m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Winitializer-overrides
142 and -Woverride-init.
144 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
151 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
155 ignore potential warnings reported by gcc -Woverride-init
156 and clang -Winitializer-overrides.
160 macros non-trivially defined for gcc >= 4.2 and clang >= 2.8.
166 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
168 tests: workaround clang -Wunneeded-internal-declaration bug.
170 to workaround clang -Wunneeded-internal-declaration bug.
173 to workaround clang -Wunneeded-internal-declaration bug.
177 2018-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
191 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
193 tests: check stack unwinding for signals.
194 * tests/stack-fcall-3.c: Include <signal.h>.
196 * tests/stack-fcall.c (main): Remove arguments, call f0(0) and f0(1).
197 * tests/strace-k-demangle.expected: Update expected output.
198 * tests/strace-k.expected: Likewise.
199 * tests/strace-k.test: Rewrite pattern matching code.
201 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
203 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
211 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
213 xlat: provide fallback definitions for open_access_modes constants.
224 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
235 (decode_packet_diag_msg): Decode pdiag_num as an low-level protocol.
243 * tests/net-sockaddr.c (check_x25): New function.
246 net: add support for AX.25 protocols and socket option names decoding.
262 * tests/net-sockaddr.c (AX25_ADDR): New macro.
269 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
276 * tests/futex.c: Add checks for 0xffffffff bitset mask printing.
278 Closes: Linux commit v4.16-rc1~166^2^2~2
280 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
291 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
303 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
312 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
321 (protocols): Add protocol descriptions for them.
323 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
332 for IP/IPv6 protocols.
333 (get_sockaddr_by_inode_uncached): Update protocols->get calls.
335 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
342 * tests/utimensat-Xabbrev.c: New file.
343 * tests/utimensat-Xraw.c: Likewise.
344 * tests/utimensat-Xverbose.c: Likewise.
346 * tests/pure_executables.list: Add utimensat-Xabbrev, utimensat-Xraw,
347 and utimensat-Xverbose.
349 * tests/gen_tests.in (utimensat-Xabbrev, utimensat-Xraw, utimensat-Xverbose): New
356 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
369 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
371 netlink_netfilter: use xlat styles for res_id workaround printing.
375 xlat: provide fallback definitions for epollevents.
377 constant (introduced by Linux commit v4.16-rc1~3^2~3).
380 * xlat/pollflags.in: Add fallback definitions for POLLWRNORM,
383 xlat: provide fallback values for socktypes.
389 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
391 block: move fallback definitions for ioctl commands to xlat.
399 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
407 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
420 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
424 add a sister function decode_nla_in_addr for future use.
431 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
441 commit v4.18-rc1~114^2~304^2~4^2~14.
445 v4.18-rc1~114^2~304^2~4^2~14.
453 * tests/nlattr_smc_diag_msg.c: Add checks for SMC_DIAG_SHUTDOWN.
458 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
463 * print_fields.h (PRINT_FIELD_U64): Use print_xlat_u for UINT64_MAX
466 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
469 There's no need to check whether non-NULL value is being assigned to
475 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
479 introduced by Linux commit v4.19-rc1~140^2~24^2~2^2~5.
484 introduced by Linux commit v4.19-rc1~140^2~128^2~2.
488 introduced by Linux commit v4.19-rc1~140^2~108^2~3^2~12.
490 commit v4.19-rc1~140^2~24^2~2^2~6.
493 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
496 Introduced by Linux commit v4.19-rc1~140^2~205^2~1.
502 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
504 xlat: add IPV4_DEVCONF_BC_FORWARDING-1 to inet_devconf_indices.in.
505 * xlat/inet_devconf_indices.in (IPV4_DEVCONF_BC_FORWARDING-1): New
506 constant, introduced by Linux commit v4.19-rc1~140^2~208^2~1.
508 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
511 Introduced by Linux commit v4.19-rc1~140^2~208^2~1.
517 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
520 Introduced by Linux commit v4.19-rc1~140^2~253^2~1.
528 * tests/nlattr_smc_diag_msg.c: Add checks for SMC_DIAG_FALLBACK
533 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
540 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
544 Linux commit v4.19-rc1~137^2~221.
547 v4.19-rc1~137^2~97.
549 v4.19-rc1~137^2~95.
551 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
554 Introduced by Linux commit v4.19-rc1~140^2~285^2~4.
563 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
566 Introduced by Linux commit v4.19-rc1~140^2~288^2.
573 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
577 introduced by Linux commit v4.18-rc1~114^2~252^2~2.
579 v4.19-rc1~42^2~63.
581 v4.19-rc1~42^2~62.
585 introduced by Linux commit v4.19-rc1~124^2~5.
587 rtnl_link: decode named constants for IFLA_XDP_ATTACHED attribute value.
593 * tests/nlattr_ifla_xdp.c: Add checks for IFLA_XDP_ATTACHED decoding.
595 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
598 Introduced by Linux commit v4.19-rc1~140^2~364^2~6^2~6.
602 * rtnl_link.c (ifla_xdp_nla_decoders): Add decoders for
604 * tests/nlattr_ifla_xdp.c: Add checks for new attributes.
606 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
611 by Linux commit v4.19-rc1~137^2~270.
613 commit v4.19-rc1~137^2~269.
617 commit v4.19-rc1~140^2~465^2~12.
619 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
622 The message has been added by Linux commit v4.19-rc1~140^2~507^2~1.
633 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
637 by Linux commit v4.19-rc1~140^2~518.
641 Linux commit v4.19-rc1~115^2.
644 2018-08-22 Dmitry V. Levin <ldv@altlinux.org>
646 tests: workaround systemd-nspawn habit of disabling unimplemented syscalls
650 tests: workaround systemd-nspawn habit of disabling mlockall syscall.
654 tests: workaround systemd-nspawn habit of disabling munlockall syscall.
658 2018-08-21 Eugene Syromyatnikov <evgsyr@gmail.com>
667 (diag_decoders): Remove "ifdef AF_SMC" condition for [AF_SMC], reorder
672 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
691 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
693 2018-08-19 Eugene Syromyatnikov <evgsyr@gmail.com>
698 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
701 * .gitlab-ci.yml (gcc-x86_64-libdw-mainline): New entry.
702 * .travis.yml (CC=gcc-8, KHEADERS=torvalds/linux): Likewise.
705 * .gitlab-ci.yml (image): Replace "ubuntu:17.10" with "ubuntu:18.04".
708 * ci/install-dependencies.sh: Install kernel headers after compiler
712 * ci/run-build-and-tests.sh: Honor $CPPFLAGS when printing
715 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
721 * tests/ioctl_evdev-success.c: New file.
722 * tests/ioctl_evdev-success-v.c: Likewise.
723 * tests/ioctl_evdev-success.test: New test.
724 * tests/ioctl_evdev-success-v.test: Likewise.
725 * tests/.gitignore: Add ioctl_evdev-success and ioctl_evdev-success-v.
729 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
748 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
749 Fixes: v4.10~89 "Add decoding for evdev ioctls"
751 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
760 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
761 Fixes: v4.10~89 "Add decoding for evdev ioctls"
763 2018-08-19 Pierre Marsais <pierre.marsais@lse.epita.fr>
769 sed -E -e 's/^#define\s+([^ \t]+)\s*([0-9]+).*$/printf "%-40s%s\n" \1 \2/e' \
770 -e 's/ {8}/\t/g; s/ +/\t/g'
779 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
787 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
790 Linux kernel commit v4.18-rc2-106-g421860b9d47053badce4b247576fa48df9ab4c48
792 by commit v4.13-rc1~141^2~121 because the old value was already used
804 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
806 2018-08-14 Dmitry V. Levin <ldv@altlinux.org>
808 Post-release administrivia.
809 * NEWS: Add a header line for the next release.
810 * debian/changelog.in: Add a changelog entry for 4.24-1.
813 Prepare for 4.24 release.
814 * NEWS: Update for 4.24 release.
816 2018-08-12 Dmitry V. Levin <ldv@altlinux.org>
822 2018-08-12 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
825 * linux/32/ioctls_inc_align16.h: Update from linux v4.18-rc8
834 maint: update for linux v4.18.
835 * maint/ioctls_sym.sh: Add workaround for linux/omap3isp.h file.
837 2018-08-12 Dmitry V. Levin <ldv@altlinux.org>
840 Linux kernel commit v4.18-rc1~37^2~66 introduced FS_IOC_[GS]ETFSLABEL
855 2018-08-08 Eugene Syromyatnikov <evgsyr@gmail.com>
864 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
870 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
874 to provide fallback definitions. Implement a workaround for O_NDELAY.
876 Co-Authored-by: Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
878 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
880 xlat: remove non-Linux flags from open_mode_flags.
885 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
887 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
893 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
895 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
899 to provide fallback definitions. Implement a workaround for MAP_RENAME.
901 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
903 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
910 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
912 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
919 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
924 * strace.spec.in: Compress ChangeLog and ChangeLog-CVS using gzip -9n.
926 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
928 strace.spec.in: use a SUSE-specific group name for SUSE.
934 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
936 strace.spec.in: use a SUSE-specific license name for SUSE.
939 * strace.spec.in (License): Add %{?suse_version:-3-Clause}.
941 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
943 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
949 (e.g. mock that uses systemd-nspawn).
956 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
958 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
962 are provided by kernel. Before Linux commit v3.10-rc1~201^2~11,
965 * configure.ac (AC_CHECK_TYPES): Check for s390_compat_regs.
970 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
972 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
977 Add output of ld --version to the build environment information.
978 Use printf instead of echo -e.
980 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
984 userspace running by a 64-bit kernel to trace 64-bit processes.
986 As simultaneous decoding of processes running both in 64-bit and 32-bit
988 support for quite some time, one can just install a 64-bit strace and
989 there is no more need for that strace64 kludge.
994 2018-08-04 Dmitry V. Levin <ldv@altlinux.org>
1001 * rtnl_route.c (rtmsg_nla_decoders): Add entries for RTA_IP_PROTO,
1006 * constants introduced by Linux kernel commit v4.18-rc1~114^2~165^2~2.
1009 * rtnl_link.c (ifla_brport_nla_decoders): Add entries for
1015 constant introduced by Linux kernel commit v4.15-rc1~84^2~607.
1017 commit v4.15-rc1~84^2~523^2~2.
1019 v4.18-rc1~114^2~142.
1023 by Linux kernel commit v4.18-rc1~114^2~108^2~3
1028 v4.18-rc1~114^2~90.
1030 2018-08-01 Dmitry V. Levin <ldv@altlinux.org>
1035 2018-08-01 Zhibin Li <08826794brmt@gmail.com>
1038 * tests/net-tpacket_stats.c: New file.
1039 * tests/net-tpacket_stats-success.c: Likewise.
1040 * tests/gen_tests.in (net-tpacket_stats): New test.
1041 * tests/net-tpacket_stats-success.test: Likewise.
1042 * tests/.gitignore: Add net-tpacket_stats and net-tpacket_stats-success.
1043 * tests/Makefile.am (check_PROGRAMS): Add net-tpacket_stats-success.
1044 (DECODER_TESTS): Add net-tpacket_stats-success.test.
1045 * tests/pure_executables.list: Add net-tpacket_stats.
1048 * tests/net-tpacket_req.c: New file.
1049 * tests/.gitignore: Add net-tpacket_req.
1051 * tests/gen_tests.in (net-tpacket_req): New test.
1054 * tests/net-packet_mreq.c: New file.
1055 * tests/.gitignore: Add net-packet_mreq.
1057 * tests/gen_tests.in (net-packet_mreq): New test.
1059 2018-07-20 Dmitry V. Levin <ldv@altlinux.org>
1067 2018-07-20 Zhibin Li <08826794brmt@gmail.com>
1070 * tests/quotactl-success.c: New file.
1071 * tests/quotactl-success-v.c: Likewise.
1072 * tests/quotactl-xfs-success.c: Likewise.
1073 * tests/quotactl-xfs-success-v.c: Likewise.
1074 * tests/quotactl-success.test: New test.
1075 * tests/quotactl-success-v.test: Likewise.
1076 * tests/quotactl-xfs-success.test: Likewise.
1077 * tests/quotactl-xfs-success-v.test: Likewise.
1078 * tests/.gitignore: Add quotactl-success, quotactl-success-v,
1079 quotactl-xfs-success and quotactl-xfs-success-v.
1088 * tests/quotactl-xfs.c: Likewise.
1090 2018-07-18 Dmitry V. Levin <ldv@altlinux.org>
1094 behaviour: getsockopt syscall accepts any non-negative *optlen and
1099 * net.c: Remove checks for SO_PEERCRED, SO_ATTACH_FILTER, and
1106 non-negative *optlen and writes MIN(sizeof(struct ucred), *optlen)
1114 behaviour: getsockopt syscall accepts any non-negative *optlen
1121 * net.c (print_getsockopt): Apply (ulen < 0 || rlen < 0) check for all
1126 2018-07-15 Dmitry V. Levin <ldv@altlinux.org>
1130 <asm/stat.h> introduced by glibc-2.27.9000-566-gfd70af4.
1136 2018-07-15 Eugene Syromyatnikov <evgsyr@gmail.com>
1142 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1144 tests/quotactl-xfs.c: fix indentation.
1146 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1148 tests: use check_quota for invalid quotactl commands.
1149 Use check_quota function for invalid commands instead of manual quotactl
1151 for these commands in the next commit.
1159 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1164 tests and add more tests for Q_GETFMT.
1165 * tests/quotactl-xfs.c: Improve existing tests and add more tests for
1168 tests/quotactl-xfs.c: fix typos in QCMD.
1169 * tests/quotactl-xfs.c (main): fix typos of sub-commands in QCMD.
1183 2018-07-12 Zhibin Li <08826794brmt@gmail.com>
1185 tests: extend coverage for other fcntl flags.
1186 * tests/fcntl-common.c: Include <assert.h>.
1193 2018-07-11 Dmitry V. Levin <ldv@altlinux.org>
1195 Implement -e kvm= option on all architectures.
1196 Make -e kvm= interface available on all architectures by adding a stub
1201 * strace.c (usage): Mention kvm argument of -e option unconditionally.
1203 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1205 xlat: update bpf(2)-related constants.
1208 v4.18-rc1~114^2~9^2~20^2~4.
1210 v4.18-rc1~114^2~9^2~15^2~1.
1212 commit v4.18-rc1~114^2~417^2~1^2~5.
1214 v4.18-rc1~114^2~223^2~21^2~4.
1216 v4.18-rc1~114^2~148^2~1^2~5.
1218 by Linux commit v4.18-rc1~114^2~304^2~4^2~8.
1220 v4.18-rc1~114^2~223^2~5^2~2.
1222 introduced by Linux commit v4.18-rc1~114^2~148^2~2^2~1.
1224 v4.18-rc1~114^2~9^2~15^2~1.
1227 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1231 introduced by Linux commit v4.18-rc3~7^2~2.
1233 and rseq syscalls introduced by Linux commit v4.18-rc3~33^2~2.
1234 * linux/mips/syscallent-n32.h ([6331], [6332]): Wire up rseq and
1235 io_pgetevents syscalls introduced by Linux commits v4.18-rc2~11^2~2
1236 and v4.18-rc2~11^2, respectively.
1237 * linux/mips/syscallent-n64.h ([5327], [5328]): Likewise.
1238 * linux/mips/syscallent-o32.h ([4367], [4368]): Likewise.
1240 introduced by Linux commit v4.18-rc3~14^2~2.
1243 and rseq syscalls introduced by Linux commits v4.18-rc4~18^2~1
1244 and v4.18-rc4~18^2, respectively.
1247 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1249 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1252 * maint/gen-tag-message.sh: Align the wording of the changes section
1256 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1258 2018-07-10 Dmitry V. Levin <ldv@altlinux.org>
1260 Upgrade invalid -e kvm= argument to a fatal error.
1262 error_msg in case of invalid -e kvm= argument.
1263 * tests/options-syntax.test: Check it.
1265 Mention -e inject option in "strace -h" output.
1266 * strace.c (usage): Mention inject argument of -e option.
1268 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1284 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1286 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1288 strace.1.in: document -e kvm=vcpu option.
1289 * strace.1.in (-e kvm=vcpu): Document new option.
1290 * NEWS: Mention -e kvm=vcpu option.
1292 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1294 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1299 returns control for various reasons: needs of device emulation or
1301 action for the reason.
1304 change prints the reason as auxstr if "-e kvm=vcpu" option is given,
1314 The change does three things: (1) recording the area for the given vcpu
1320 does not have a chance to do (1) if -p option is used.
1329 * strace.c (usage): Add "kvm" as a new expression for -e option.
1332 kvm_run_structure_decoder_init to enable for attaching the exit
1339 (vcpu_info): New struct definition representing the 3-tuple: vcpu file
1352 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1354 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1361 2018-07-07 Pierre Marsais <pierre.marsais@lse.epita.fr>
1364 * tests/ioctl_kvm_run-v.c: New file.
1369 * tests/gen_tests.in (ioctl_kvm_run-v): New entry.
1370 * tests/pure_executables.list: Add ioctl_kvm_run-v.
1377 (main): Add tests for cpuid related ioctl.
1379 2018-07-07 Pierre Marsais <pierre.marsais@lse.epita.fr>
1390 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1392 2018-07-07 Zhibin Li <08826794brmt@gmail.com>
1396 2018-07-03 Dmitry V. Levin <ldv@altlinux.org>
1402 2018-07-03 Dmitry V. Levin <ldv@altlinux.org>
1404 ci: robustify network-related operations.
1405 Reduce false positives by wrapping network-related operations into a loop.
1407 * ci/install-dependencies.sh (retry_if_failed): New function.
1408 Use it to invoke apt-get update, apt-get install, git clone,
1409 add-apt-repository, and pip install.
1411 2018-06-29 Zhibin Li <08826794brmt@gmail.com>
1415 v4.23-11-g15003d4.
1419 2018-06-18 Dmitry V. Levin <ldv@altlinux.org>
1435 Reported-by: Elliott Hughes <enh@google.com>
1438 2018-06-18 Eugene Syromyatnikov <evgsyr@gmail.com>
1442 introduced by Linux commit v4.18-rc1~100^2~9.
1446 Linux commit v4.18-rc1~114^2~377^2~8.
1448 2018-06-17 Dmitry V. Levin <ldv@altlinux.org>
1454 2018-06-17 Chen Jingpiao <chenjingpiao@gmail.com>
1457 As rseq syscall is not x32-specific, move it after the previous one
1458 that is not x32-specific. Fix the unused syscall number range.
1463 2018-06-17 Eugene Syromyatnikov <evgsyr@gmail.com>
1473 enums "subs", use printxval_indexn_ex for printing cmd, return sub type
1484 introduced by Linux commit v4.18-rc1~114^2~351^2~1.
1485 (TCP_INQ): New constant, introduced by Linux commit v4.18-rc1~114^2~330.
1489 commit v4.17-rc1-15-gdb78e6a.
1491 2018-06-15 Dmitry V. Levin <ldv@altlinux.org>
1493 Post-release administrivia.
1494 * NEWS: Add a header line for the next release.
1495 * debian/changelog.in: Add a changelog entry for 4.23-1.
1498 2018-06-14 Dmitry V. Levin <ldv@altlinux.org>
1500 Prepare for 4.23 release.
1501 * NEWS: Update for 4.23 release.
1508 * tests/prctl-spec-inject.test: Add copyright header.
1512 * maint/README-release: New file.
1513 * maint/gen-release-notes.sh: Likewise.
1514 * maint/gen-release-github.sh: Likewise.
1515 * maint/gen-release-gitlab.sh: Likewise.
1518 * maint/gen-tag-message.sh: Prepend every line of
1519 gen-contributors-list.sh output with an asterisk.
1521 2018-06-14 Eugene Syromyatnikov <evgsyr@gmail.com>
1525 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1528 This new syscall was introduced by Linux commit v4.17-1308-gd7822b1.
1538 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1541 * configure.ac (AC_CHECK_TYPES): Check for struct __aio_sigset
1548 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1550 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1553 Introduced by Linux commit v4.17-rc3-7-g7a074e9.
1560 wrappers for print_io_getevents.
1568 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1570 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1572 travis: re-enable testing with the latest mainline kernel headers.
1574 v4.17-rc3-7-g7a074e9 should not cause harm anymore, so let's enable
1577 * .travis.yml (matrix): Do not specify KBRANCH for KHEADERS=torvalds/linux.
1579 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1589 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1592 * tests/options-syntax.test: Add personality specification syntax
1595 tests: add basic checks for personality designation support.
1609 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1611 Add support for personality designation in regex qualifications.
1619 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1621 Add support for personality designation in syscall qualifications.
1626 (qualify_syscall_number): Use qualify_syscall_separate_personality for
1627 checking for a personality specification, call
1628 qualify_syscall_number_personality for setting number set for specific
1631 (qualify_syscall_name): Use qualify_syscall_separate_personality for
1632 checking for a personality specification, call
1633 qualify_syscall_name_personality for setting number set for specific
1638 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1641 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1643 tests: add basic checks for inject=SET:syscall= expression syntax.
1644 * tests/qual_fault-syscall.test: New test.
1645 * tests/qual_inject-error-signal-syscall.test: Likewise.
1646 * tests/qual_inject-retval-syscall.test: Likewise.
1647 * tests/qual_inject-signal-syscall.test: Likewise.
1649 * tests/qual_fault-syntax.test: Add checks for inject=SET:syscall=
1651 * tests/qual_inject-syntax.test: Likewise.
1652 * tests/qual_fault.test: Append $suffix to -e fault arguments, override
1654 * tests/qual_inject-error-signal.test: Append $suffix to -e inject
1656 * tests/qual_inject-retval.test: Likewise.
1657 * tests/qual_inject-signal.test: Likewise.
1659 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1661 Implement injection of syscalls with no side effects as an alternative to -1
1673 (tamper_with_syscall_exiting): Update the check for a failed syscall
1679 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1682 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1685 Remove the last piece of IA-32 mode support. Besides being obsolete,
1690 Complements: v4.21~17 "linux/ia64: remove IA-32 mode support"
1692 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1702 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1712 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1720 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1734 argument, use it for msg_len calculation, print square brackets
1736 (TEST_NLATTR_): New macro, a wrapper for TEST_NLATTR_EX_.
1738 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1743 * rtnl_link.c (decode_ifla_bridge_id): Provide struct definition for
1748 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1750 nlattr: specify size for ethernet protocol.
1756 Fixes: v4.22-321-gfd0cd65 "nlattr: add ethernet protocol decoder"
1758 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1770 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1779 Fixes: v4.22-328-g1e6d5a8 "rtnl_link: implement IFLA_INFO_DATA for bridges"
1780 Fixes: v4.22-329-g4eab3a4 "rtnl_link: implement IFLA_INFO_DATA for tun devices"
1782 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1785 * linux/mips/syscallent-n32.h ([6038], [6100], [6102], [6105], [6106],
1788 * linux/mips/syscallent-n64.h ([5038], [5100], [5102], [5105], [5106],
1790 * linux/mips/syscallent-o32.h ([4020], [4024], [4047], [4049], [4050],
1795 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1798 * linux/mips/syscallent-n32.h ([6109]): Add NF flag.
1799 * linux/mips/syscallent-n64.h ([5109]): Likewise.
1800 * linux/mips/syscallent-o32.h ([4065]): Likewise.
1804 2018-06-07 Eugene Syromyatnikov <evgsyr@gmail.com>
1807 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1812 2018-06-07 Dmitry V. Levin <ldv@altlinux.org>
1814 configure.ac: fix the check for struct tc_sizespec on old kernel headers
1816 <linux/pkt_sched.h> to check for struct tc_sizespec on linux kernel
1817 headers without v2.6.29-rc4~77^2~26 fix.
1819 2018-06-06 Dmitry V. Levin <ldv@altlinux.org>
1824 * ci/install-dependencies.sh (clone_repo): Add optional "branch"
1827 * .travis.yml (matrix): Specify KBRANCH=v4.17 for
1830 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1833 * configure.ac (AC_CHECK_TYPES): Check for struct ifla_cacheinfo in
1835 (AC_CHECK_DECLS): Check for IFLA_AF_SPEC in <linux/rtnetlink.h>.
1841 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1847 * configure.ac (AC_CHECK_DECLS): Check for TCA_STAB_DATA in
1857 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1859 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1867 * configure.ac (AC_CHECK_DECLS): Check for IFLA_PORT_SELF, IFLA_PROTINFO, and
1888 rtnl_link: implement IFLA_INFO_DATA for tun devices.
1899 rtnl_link: implement IFLA_INFO_DATA for bridges.
1908 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1918 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1921 Dispatch for IFLA_INFO_* attributes should be performed based on the
1931 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1957 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1968 least opts->size, limit len to opts->size.
1971 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1973 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1991 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1993 nlattr: add value processing support for xlat/flags nlattr decoders.
1994 Needed for upcoming decoder of ethernet proto which is stored in the
2005 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2013 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2018 a combination of zero decoder list size and non-zero decoder pointer
2019 for this.
2023 * nlattr.c (decode_nlattr_with_data): Handle zero size and non-NULL
2026 argument when zero size and non-NULL decoders are provided.
2029 2018-06-06 Dmitry V. Levin <ldv@altlinux.org>
2040 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2043 * tests/nlattr_ifinfomsg.c (main): Add a check for IFLA_EVENT attribute
2046 2018-06-05 Dmitry V. Levin <ldv@altlinux.org>
2050 IPV4_DEVCONF_FORWARDING-1 0
2057 2018-06-05 Eugene Syromyatnikov <evgsyr@gmail.com>
2063 non-NULL, use pos for lookup.
2065 xlat and nmemb there when xlat is non-NULL, use them for lookup.
2066 (printxvals_ex): Store the last non-NULL xlat in static variable "last".
2069 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2071 2018-06-05 Eugene Syromyatnikov <evgsyr@gmail.com>
2084 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2088 PRINT_FIELD_XVAL_SORTED_SIZED instead of PRINT_FIELD_XVAL for
2092 Provide a value for arp_hardware_types_size array.
2096 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2099 For those cases when array definition is not readily available
2104 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2107 There is no need to invoke grep using run_prog.
2109 * tests/opipe.test: Remove run_prog decoration for the grep invocation.
2111 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2114 * tests/bpf-obj_get_info_by_fd-prog-v.c: New file.
2115 * tests/bpf-obj_get_info_by_fd-prog.c: Likewise.
2116 * tests/bpf-obj_get_info_by_fd-v.c: Likewise.
2117 * tests/bpf-obj_get_info_by_fd.c: Likewise.
2118 * configure.ac (AC_CHECK_HEADERS): Check for struct bpf_insn,
2120 * tests/pure_executables.list: Add bpf-obj_get_info_by_fd,
2121 bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog, and
2122 bpf-obj_get_info_by_fd-prog-v.
2124 * tests/gen_tests.in (bpf-obj_get_info_by_fd,
2125 bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog,
2126 bpf-obj_get_info_by_fd-prog-v): New tests.
2128 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2130 2018-06-04 Dmitry V. Levin <ldv@altlinux.org>
2139 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2147 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2149 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2152 As it is needed for proper info_len printing on exiting.
2164 allocation/saving/restoring, use it for storing/printing info_len field.
2166 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2168 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2175 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2177 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2180 If xlated_prog_len is zero on entering syscall and non-zero on exiting,
2190 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2192 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2201 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2203 2018-06-02 Dmitry V. Levin <ldv@altlinux.org>
2213 v4.16-rc1~123^2~109^2~5^2~4.
2220 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2225 * tests/mknod.c (main): Cast printf argument for %#03ho format to short.
2227 * tests/net-sockaddr.c (main): Cast printf argument for %hu format
2231 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2234 Those are used for describing input device category and not specific
2242 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2245 This is needed for old Linux UAPI headers that do no contain commit
2246 v3.1-rc2~19^2~29.
2251 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2253 configure.ac: check for linux/rtnetlink.h instead of linux/if_link.h for declarations
2260 in checks for interface netlink attributes-related declarations
2263 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2266 As it turns out, old versions of gawk do not support -e option.
2271 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2277 2018-06-01 Zhibin Li <08826794brmt@gmail.com>
2280 * tests/fcntl-common.c (test_flock_einval): Check short read
2284 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2287 * tests/fcntl-common.c (test_flock_einval, test_flock): Create
2293 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2296 Check that non-faulty F_OFD_* fcntl operations are decoded properly.
2298 * tests/fcntl-common.c: Include <string.h>.
2302 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2304 tests/fcntl-common.c: define and initialize errstr.
2308 * tests/fcntl-common.c (errstr): New variable.
2315 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2317 tests/fcntl-common.c: add fd argument to invoke_test_syscall.
2318 Extend invoke_test_syscall for later use with different file
2321 * tests/fcntl-common.c (invoke_test_syscall): Add fd argument, pass it
2324 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2326 tests: move F_OFD_SETLK* checks from fcntl64.c to fcntl-common.c.
2327 This change enables F_OFD_SETLK* tests for fcntl as well.
2332 * tests/fcntl-common.c: ... here.
2340 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2342 tests: move F_OWNER_* tests to fcntl-common.c.
2343 This change enables F_OWNER_* tests for fcntl64 as well.
2347 * tests/fcntl-common.c: ... here.
2351 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2353 tests: rename struct_flock.c to fcntl-common.c.
2357 * tests/struct_flock.c: Rename to fcntl-common.c.
2359 to fcntl-common.c.
2363 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2366 * configure.ac (AC_CHECK_TYPES): Check for struct fib_rule_port_range
2375 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2377 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2385 by Linux commit v4.17-rc1~148^2~371.
2388 v4.17-rc1~148^2~328^2~4.
2392 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2394 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2402 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2404 2018-05-30 Dmitry V. Levin <ldv@altlinux.org>
2412 travis: switch from gcc-7 to gcc-8.
2413 * .travis.yml (matrix): Change gcc-7 to gcc-8.
2415 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2417 tests: use syscall() for ioctl() calls with oversized arguments.
2419 (main): Use sys_ioctl for ioctl calls with oversized arguments.
2423 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2433 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2439 for the case of incomplete read.
2441 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2450 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2458 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2460 print_array: add support for printing array indices.
2474 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2493 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2505 - tfetch_mem_func never prints anything;
2506 - tfetch_mem_func returns true if the fetch succeeded,
2555 * tests/ioctl_perf-success.c (main): Likewise.
2561 * tests/preadv-pwritev.c (main): Likewise.
2562 * tests/preadv2-pwritev2.c (dumpio): Likewise.
2566 * tests/seccomp-filter-v.c
2572 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
2574 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2590 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2600 2018-05-29 Eugene Syromyatnikov <evgsyr@gmail.com>
2607 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2618 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2632 fields only on entering, call print_bpf_obj_info for printing info field.
2636 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2638 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2640 bpf: add support for checking structures outside union bpf_attr.
2648 add support for structures outside union bpf_attr.
2650 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2652 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2665 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2668 * tests/bpf-success-v.c: New file.
2669 * tests/bpf-success.c: Likewise.
2670 * tests/bpf-success-v.test: New test.
2671 * tests/bpf-success.test: Likewise.
2672 * tests/.gitignore: Add bpf-success and bpf-success-v.
2674 (DECODER_TESTS): Add bpf-success.test and bpf-success-v.test.
2684 print_uint32_array_member instead of print_uint64_array_member for
2686 uint64_t to uint32_t), as they are 32-bit; use common trick with
2687 print_big_u64_addr for handling possible ambiguity with prog_ids
2692 bpf: add support for instruction decoding.
2698 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2703 * tests/ioctl_perf-success.c: New file.
2704 * tests/ioctl_perf-success.test: New test.
2706 (check_PROGRAMS): Add ioctl_perf-success.
2710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2712 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2731 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2733 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2736 * tests/ipc_msgbuf.test: Fix -a argument.
2738 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2744 v2.6.19-rc1~33^2.
2746 v2.6.35-rc1~473^2~594.
2748 v2.6.19-rc1~1272^2~157.
2756 constant, introduced by Linux commit v4.17-rc3-24-g00a02d0.
2757 * tests/seccomp-filter.c: Update expected output.
2758 * tests/seccomp-filter-v.c: Likewise.
2766 v4.17-rc3-15-gb617cfc.
2769 * tests/Makefile.am (check_PROGRAMS): Add prctl-spec-inject.
2770 (DECODER_TESTS): Add prctl-spec-inject.test.
2771 * tests/prctl-spec-inject.c: New file.
2772 * tests/prctl-spec-inject.test: New test.
2773 * tests/.gitignore: Add prctl-spec-inject.
2776 * tests/keyctl-Xabbrev.c: New file.
2777 * tests/keyctl-Xraw.c: Likewise.
2778 * tests/keyctl-Xverbose.c: Likewise.
2782 * tests/pure_executables.list: Add keyctl-Xabbrev, keyctl-Xraw,
2783 and keyctl-Xverbose.
2785 * tests/gen_tests.in (keyctl-Xabbrev, keyctl-Xraw, keyctl-Xverbose): New
2795 * keyctl.c (keyctl_reject_key): Use print_xlat_ex for printing error
2798 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2801 There's little reason not to decode error code for syscalls printed in
2802 raw; moreover, it creates inconsistencies for unknown syscall printing.
2805 were printed as "... = -1 1234 (Unknown error 1234)" which looked kinda
2809 (syscall_exiting_trace): Remove u_error variable, use tcp->u_error
2812 is non-zero.
2813 (syscall_exiting_trace) <if (!(sys_res & RVAL_NONE) && tcp->u_error)>:
2814 Use print_err_ret for default error printing.
2820 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2845 2018-05-24 Dmitry V. Levin <ldv@altlinux.org>
2856 2018-05-23 Dmitry V. Levin <ldv@altlinux.org>
2865 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2867 bpf: add support for BPF_RAW_TRACEPOINT_OPEN command decoding.
2873 introduced by Linux commit v4.17-rc1~148^2~19^2~4^2~3.
2886 bpf: add support for decoding struct bpf_attr.expected_attach_type field
2896 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2900 v4.7-rc1~154^2~354^2~4, for example), so we cannot use it
2901 for sanity checks.
2908 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2918 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2922 for IFLA_AF_SPEC decoding.
2927 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2930 In preparation for the forthcoming changes.
2932 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2938 for the case of incomplete read.
2940 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2942 sockaddr: add support for sockaddr_l2 without l2_bdaddr_type.
2944 field was added only by commit v3.5-rc1~35^2~3^2~18^2^2~39.
2948 (AC_CHECK_HEADERS([bluetooth/bluetooth.h])): New check, also checks for
2953 * tests/net-sockaddr.c (check_l2): Put l2_bdaddr_type usage/printing
2954 under HAVE_STRUCT_SOCKADDR_L2_L2_BDADDR_TYPE ifdef, add a check for the
2957 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2967 2018-05-22 Dmitry V. Levin <ldv@altlinux.org>
2970 Remove personality support for errnoent and signalent as
2971 there is nothing personality-specific in these files.
3006 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3008 strace.1.in: mention -Xraw in -eraw description.
3009 * strace.1.in (\fB\-e\ raw\fR=\,\fIset\fR): Mention -X raw.
3011 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3013 strace.1.in: display -k option description only if it is enabled.
3015 around mentions of -k option.
3019 condition; add a second list of options without -k and put it inside
3022 (.SS Output format) <-k>: Put it inside
3024 condition, remove the mention of --enable-stacktrace configuration
3027 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3033 tests/qual_fault.test: add -efu arguments to the interpreter.
3034 * tests/qual_fault.test (#!/bin/sh): Add -efu arguments.
3036 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3045 2018-05-21 Dmitry V. Levin <ldv@altlinux.org>
3053 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3055 xlat: add support for xlat_styles in printxval_dispatch.
3063 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3065 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3073 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3077 in preparation for printxval_dispatch generalisation.
3082 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3089 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3095 * util.c (print_quoted_string_ex, dumpstr): Add reasons for memory
3099 done in print_quoted_string_ex, add reasons for memory allocation errors.
3101 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3103 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3105 strace.1.in: fix -A description.
3106 * strace.1.in (.SS Output format) <-A>: Add missing .B.
3108 strace.1.in: document x32 64-bit syscall peculiarity.
3109 * strace.1.in (.SH NOTES): Document "#64" suffix for 64-bit syscalls on
3112 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3114 linux/x32/syscallent.h: change 64-bit syscall designation.
3115 The current way of designation of 64-bit specific syscalls in x32
3130 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3134 introduced by Linux commit v4.17-rc1~148^2~156^2~1^2~13.
3139 introduced by Linux commit v4.17-rc1~148^2~156^2~1^2~13.
3141 introduced by Linux commit v4.17-rc1~148^2~19^2^2~6.
3143 introduced by Linux commit v4.17-rc1~148^2~19^2^2~3.
3145 introduced by Linux commit v4.17-rc1~148^2~19^2^2~1.
3148 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3151 Define SO_TIMESTAMP twice, for PA-RISC and all the other architectures.
3158 2018-05-17 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
3161 * linux/32/ioctls_inc_align16.h: Update from linux v4.17-rc5
3171 maint: update for linux 4.17-rc5.
3174 2018-05-16 Dmitry V. Levin <ldv@altlinux.org>
3184 instead of printxval for decoding bpf_class and ebpf_class.
3186 * bpf.c: Use it instead of PRINT_FIELD_XVAL for decoding bpf_attach_type,
3189 2018-05-15 Dmitry V. Levin <ldv@altlinux.org>
3209 2018-05-15 Andre McCurdy <armccurdy@gmail.com>
3219 strace-4.22/tests/inject-nf.c:86:1: error: r7 cannot be used in asm here
3238 2018-05-15 Dmitry V. Levin <ldv@altlinux.org>
3247 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3249 sockaddr: use printxval_search for ARPHRD_* constants.
3253 printxval_search for printing of struct sockaddr_ll.sll_hatype field.
3255 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3263 * rtnl_link.c (decode_ifla_bridge_id): Use PRINT_FIELD_MAC for bridge
3265 * sock.c (print_ifreq) <case SIOCGIFHWADDR>: Use print_mac_addr for
3267 * sockaddr.c (print_sockaddr_data_bt): Use print_mac_addr for
3270 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3272 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3280 * tests/net-sockaddr.c (check_l2): Update expected output.
3282 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3284 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3292 * tests/net-sockaddr.c (check_l2): Update expected output.
3299 * tests/net-sockaddr.c (check_l2): Check decoding
3302 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3315 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3317 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3326 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3328 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3332 almost no checks for incorrect flags.
3344 (MSG_EOF): Commented out, as it is a synonym for MSG_FIN.
3346 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3348 2018-05-14 Dmitry V. Levin <ldv@altlinux.org>
3357 2018-05-14 Eugene Syromyatnikov <evgsyr@gmail.com>
3367 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3369 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3375 For example, glibc in -D_FORTIFY_SOURCE=2 mode and gcc 8 with
3376 -Warray-bounds enabled complain about negative offsets out of bounds.
3380 * tests/netlink_crypto.c: Use it instead of tail_malloc for nlh0 allocation.
3416 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3418 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3426 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3434 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3436 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3440 by Linux commit v4.17-rc1~52^2~21.
3443 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3445 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3449 by Linux commit v4.17-rc1~52^2~22.
3452 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3454 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3458 by Linux commit v4.17-rc1~52^2~23.
3461 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3463 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3467 constant is intended for use in setsockopt, and the latter is for
3479 * tests/sock_filter-v.c: Update expected output.
3481 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3483 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3485 tests: add sock_filtrer-v variants with different xlat verbosity levels.
3486 * tests/sock_filter-v-Xabbrev.c: New file.
3487 * tests/sock_filter-v-Xraw.c: Likewise.
3488 * tests/sock_filter-v-Xverbose.c: Likewise.
3489 * tests/sock_filter-v.c (PRINT_STMT_SYM, PRINT_STMT_SYM_,
3496 * tests/pure_executables.list: Add sock_filter-v-Xabbrev,
3497 sock_filter-v-Xraw, and sock_filter-v-Xverbose.
3499 * tests/gen_tests.in (sock_filter-v-Xabbrev, sock_filter-v-Xraw,
3500 sock_filter-v-Xverbose): New tests.
3502 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3504 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3513 2018-05-08 Dmitry V. Levin <ldv@altlinux.org>
3549 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3580 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3582 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3600 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3602 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3605 There is no need to provide duplicate fallback definitions anymore,
3618 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3620 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3630 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3632 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3640 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3642 ci: install libbluetooth-dev.
3643 * ci/install-dependencies.sh (common_packages): Add libbluetooth-dev.
3645 xlat: provide fallback definitions for HCI_CHANNEL_* constants.
3648 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3652 Linux commit v4.16-rc1~21^2~11), there's no need for a very special
3653 printing routine for command names.
3659 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3665 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3668 * tests/so_peercred-Xabbrev.c: New file.
3669 * tests/so_peercred-Xraw.c: Likewise.
3670 * tests/so_peercred-Xverbose.c: Likewise.
3671 * tests/pure_executables.list: Add so_peercred-Xabbrev,
3672 so_peercred-Xraw, and so_peercred-Xverbose.
3675 * tests/gen_tests.in (so_peercred-Xabbrev, so_peercred-Xraw,
3676 so_peercred-Xverbose): New tests.
3678 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3680 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3683 * tests/personality-Xabbrev.c: New file.
3684 * tests/personality-Xraw.c: Likewise.
3685 * tests/personality-Xverbose.c: Likewise.
3686 * tests/pure_executables.list: Add personality-Xabbrev,
3687 personality-Xraw, and personality-Xverbose.
3690 * tests/personality.test: Add support for accepting test arguments.
3691 * tests/gen_tests.in (personality-Xabbrev, personality-Xraw,
3692 personality-Xverbose): New tests.
3695 * tests/fanotify_mark-Xabbrev.c: New file.
3696 * tests/fanotify_mark-Xraw.c: Likewise.
3697 * tests/fanotify_mark-Xverbose.c: Likewise.
3698 * tests/pure_executables.list: Add fanotify_mark-Xabbev,
3699 fanotify_mark-Xraw, and fanotify_mark-Xverbose.
3703 * tests/gen_tests.in (fanotify_mark-Xabbev, fanotify_mark-Xraw,
3704 fanotify_mark-Xverbose): New tests.
3706 2018-05-07 Eugene Syromyatnikov <evgsyr@gmail.com>
3708 xlat: provide fallback definitions for IFF_* constants.
3716 v2.6.17-rc1~1175^2~206.
3718 v2.6.25-rc1~1162^2~1415.
3720 xlat: provide fallback definitions for ARPHRD_* constants.
3727 * tests/.gitignore: Add ipc_msg-Xabbrev, ipc_msg-Xraw, ipc_msg-Xverbose,
3728 ipc_msgbuf-Xabbrev, ipc_msgbuf-Xraw, ipc_msgbuf-Xverbose,
3729 ipc_sem-Xabbrev, ipc_sem-Xraw, ipc_sem-Xverbose, ipc_shm-Xabbrev,
3730 ipc_shm-Xraw, and ipc_shm-Xverbose.
3732 * tests/gen_tests.in (ipc_msg-Xabbrev, ipc_msg-Xraw, ipc_msg-Xverbose,
3733 ipc_msgbuf-Xabbrev, ipc_msgbuf-Xraw, ipc_msgbuf-Xverbose,
3734 ipc_sem-Xabbrev, ipc_sem-Xraw, ipc_sem-Xverbose, ipc_shm-Xabbrev,
3735 ipc_shm-Xraw, ipc_shm-Xverbose): New tests.
3736 * tests/ipc_msg-Xabbrev.c: New file.
3737 * tests/ipc_msg-Xraw.c: Likewise.
3738 * tests/ipc_msg-Xverbose.c: Likewise.
3739 * tests/ipc_msgbuf-Xabbrev.c: Likewise.
3740 * tests/ipc_msgbuf-Xraw.c: Likewise.
3741 * tests/ipc_msgbuf-Xverbose.c: Likewise.
3742 * tests/ipc_sem-Xabbrev.c: Likewise.
3743 * tests/ipc_sem-Xraw.c: Likewise.
3744 * tests/ipc_sem-Xverbose.c: Likewise.
3745 * tests/ipc_shm-Xabbrev.c: Likewise.
3746 * tests/ipc_shm-Xraw.c: Likewise.
3747 * tests/ipc_shm-Xverbose.c: Likewise.
3748 * tests/ipc.sh: Add support for accepting test arguments.
3756 * tests/gen_tests.in (ipc_msg, ipc_sem, ipc_shm): Add -a option.
3768 check for -mtype in msgrcv.
3774 * tests/ipc_msgbuf.test: Add -a31. Redirect output to $EXP. Call
3777 2018-05-07 Dmitry V. Levin <ldv@altlinux.org>
3779 xlat: provide fallback definitions for SKF_*_OFF constants.
3783 xlat: provide fallback definitions for BPF_* constants.
3784 * xlat/bpf_class.in: Add default values for constants.
3793 2018-05-06 Dmitry V. Levin <ldv@altlinux.org>
3799 Fixes: v4.22-122-gfa8f486 ("xlat: fix F_* fallback definitions on alpha, hppa, mips, and sparc")
3801 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3806 sed -n 's/^\(SO_[^[:space:]]*\).*/\1/p' xlat/sockoptions.in |
3809 sed -rn 's/#define[[:space:]]+('"$name"')[[:space:]]+([[:digit:]]+)$/\2\t\1/p' \
3810 /path/to/linux/include/uapi/asm-generic/socket.h
3812 sort -n |
3814 grep -EH '#define[[:space:]]+'"$name"'[[:space:]]+(0x[[:xdigit:]]+|[[:digit:]]+)' \
3816 …sed -rn 's|^[^#]*/arch/([^/]+)/include/uapi/asm/socket\.h:#define[[:space:]]+'"$name"'[[:space:]]+…
3818 awk -vname="$name" -vdef="$def" '
3829 for (i in a) {
3845 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3847 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3862 instead of printxval for decoding socket layer name.
3864 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3867 As we have all BTPROTO_* constant definitions now, there is no need
3877 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3879 xlat/gen.sh: invoke the shell interpreter with -e -u options.
3880 * xlat/gen.sh: Change interpreter from "/bin/sh" to "/bin/sh -eu".
3884 commit v4.17-rc1~107^2~2.
3886 v4.17-rc1~31^2~3.
3890 by Linux commit v4.17-rc1~52^2~14.
3892 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3894 xlat: provide fallback definitions for BTPROTO_* constants.
3895 As they are architecture-independent.
3899 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3903 by Linux commit v4.11-rc1~94^2~43^2.
3905 xlat: provide fallback definitions for V4L2_CID_* constants.
3911 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3915 include/uapi/linux/v4l2-controls.h. A few notes:
3916 - V4L2_CID_CHROMA_GAIN and V4L2_CID_COLORFX_CBCR moved in accordance
3918 - V4L2_CID_WHITENESS is removed as it has the same value as
3920 - V4L2_CID_PRIVATE_BASE is removed.
3921 - V4L2_CID_HCENTER and V4L2_CID_VCENTER that were removed by Linux
3922 commit v3.9-rc1~93^2~237, are retained for historical reasons.
3926 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3928 xlat: provide fallback definitions for V4L2_CTRL_CLASS_* constants.
3929 As those are architecture-independant. Also note that the xlat
3934 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3938 introduced by Linux commit v3.7-rc1~101^2^2~322.
3940 v3.15-rc1~85^2~192.
3942 v3.17-rc1~112^2~340.
3944 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3949 for another day.
3953 v4.17-rc1~148^2~156^2~3^2~1.
3956 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3960 by Linux commit v4.17-rc1~143^2~60.
3964 by Linux commit v4.17-rc1~148^2~379^2~3.
3968 introduced by Linux commit v4.17-rc1~148^2~191^2~2.
3970 v4.17-rc1~96^2~9.
3972 xlat: add SPARC ADI-related SIGSEGV codes.
3974 constants, introduced by Linux commit v4.17-rc1~147^2~4^2~10.
3978 v4.17-rc1~147^2~4^2~1.
3980 2018-05-05 Dmitry V. Levin <ldv@altlinux.org>
3982 build: rewrite libdw detection without pkg-config.
3983 pkg-config expected to be more convenient way to configure libdw,
3987 * ci/install-dependencies.sh (common_packages): Remove pkg-config.
3988 (STACKTRACE == "libdw"): Do not install libz-dev and liblzma-dev.
3989 * debian/control (Build-Depends): Remove pkg-config.
3990 * m4/st_libdw.m4 (st_ARG_LIBDW, st_LIBDW): Rewrite without pkg-config.
3992 2018-05-04 Dmitry V. Levin <ldv@altlinux.org>
3998 * ci/install-dependencies.sh (common_packages): Remove libdw-dev.
3999 Install libdw-dev or libunwind8-dev depending on $STACKTRACE.
4000 * ci/run-build-and-tests.sh: Specify --with-libdw=yes,
4001 --with-libunwind=yes, or --without-stacktrace depending on $STACKTRACE.
4002 * .gitlab-ci.yml (gcc-x86_64): Rename to gcc-x86_64-libdw,
4004 (gcc-x86): Rename to gcc-x86-nounwind, add STACKTRACE=no.
4005 (clang-x86_64): Rename to clang-x86_64-libdw, add STACKTRACE=libdw.
4006 (clang-x86): Rename to clang-x86-nounwind, add STACKTRACE=no.
4007 (gcc-x86_64-libunwind, gcc-x86_64-nounwind, gcc-x86-nounwind,
4008 clang-x86_64-libunwind, clang-x86_64-nounwind, clang-x86-nounwind):
4011 entries except musl-gcc, add STACKTRACE=no to other matrix entries,
4012 add test matrix entries with STACKTRACE=no variants on x86_64.
4014 2018-05-04 Eugene Syromyatnikov <evgsyr@gmail.com>
4019 v3.14-rc1~94^2~349.
4032 2018-05-04 Dmitry V. Levin <ldv@altlinux.org>
4051 with tcp->mmap_cache->free_fn.
4053 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4056 This function is no longer used and could be removed.
4061 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4063 unwind-libdw: use the mmap_notify subsystem.
4065 unwind-libdw as backend. unwind-libdw doesn't need the full set of the
4066 mmap_cache subsystem; libdw has a feature for caching a memory
4075 (2) Make unwind-libunwind use the mmap_cache subsystem directly.
4077 (3) Make unwind-libdw use the mmap_notify subsystem to know when it
4078 should call dwfl_linux_proc_report/dwfl_report_end for updating the
4084 +-------------------------------------+
4086 +------------------+------------------+
4087 | unwind-libunwind | unwind-libdw |
4088 +------------------+------------------+
4090 +------------------+ |
4092 +-------------------------------------+
4094 +-------------------------------------+
4103 * unwind-libdw.c: Include "mmap_notify.h" instead of "mmap_cache.h".
4109 (updating_mapping_generation): New utility function for updating
4111 (init): New function for registering updating_mapping_generation
4116 (tcb_walk): Call flush_cache_maybe for avoiding referring staled cache data.
4118 * unwind-libunwind.c (init): Enable the mmap_cache subsystem.
4119 (tcb_walk): Call mmap_cache_rebuild_if_invalid and unw_flush_cache for
4124 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4126 unwind-libdw: introduce indirect data structure for storing unwinding context
4127 unwind-libdw uses Dwfl as the data structure for storing unwinding
4130 This commit introduces "struct ctx" file local data type for allowing
4131 unwind-libdw to attach strace side data to the unwinding context.
4133 * unwind-libdw.c (struct ctx): New struct definition.
4137 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4139 mmap_notify: rename the macro for tracking memory mapping.
4154 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4156 mmap_notify: new subsystem for tracking the changes of memory mappings.
4157 This subsystem is a spin-off of the mmap_cache subsystem.
4163 unwind-libdw itself has the feature (1). It needs only (2).
4169 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4177 Fixes: v4.22-76-gf766447 "btrfs: use PRINT_FIELD_*"
4179 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4187 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4189 sock: use error_func_msg for printing function name.
4193 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4200 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4202 mmap_cache: fool-proofing build_mmap_cache.
4208 * mmap_cache.c (build_mmap_cache): Set cache_head to tcp->mmap_cache.
4209 Reset tcp->mmap_cache_size to 0.
4211 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4223 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4231 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4235 kernel bug any longer, there is a room for cleanup.
4244 2018-05-03 Zhibin Li <08826794brmt@gmail.com>
4253 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4255 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4261 * configure.ac (AC_CHECK_TYPES): Check for "struct f_owner_ex"
4266 2018-05-02 Masatake YAMATO <yamato@redhat.com>
4270 for a kvm vcpu in /proc/$pid/fd like:
4272 anon_inode:kvm-vcpu:0
4276 anon_inode:kvm-vcpu
4281 * tests/ioctl_kvm_run.c: Include unistd.h for using readlink(2).
4282 (vcpu_dev_should_have_cpuid): New function for detecting whether
4283 a proc entry for given fd has the cpuid suffix or not.
4287 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4290 For each constant that is accompanied by a fallback definition,
4301 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
4303 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4306 Linux kernel commit v2.6.32-rc7~23 has changed values of F_SETOWN_EX
4307 and F_GETOWN_EX constants introduced by commit v2.6.32-rc1~96 to fix
4315 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4325 to -2, -3, and -4, respectively.
4327 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4331 commits v2.6.33~17^2~2 and v4.1-rc1~150^2~1^10~6, respectively.
4336 by Linux kernel commit v3.16-rc1~30^2~6^2~1^2~7.
4345 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4348 Linux kernel commit v4.9-rc8~12^2 has changed the value of KEY_DATA
4349 constant introduced by commit v4.7-rc6~32^2~6^2 because the old value
4357 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4360 Linux kernel commit v3.15-rc1~18^2~1 has changed the value
4361 of AUDIT_FEATURE_CHANGE constant introduced by commit v3.13-rc1~19^2~20
4365 Linux kernel commit v3.15-rc1~18^2~1 also claims that the old value
4367 established convention how netlink messages for the audit system
4375 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
4377 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4386 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4394 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4396 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4399 * tests/gen_tests.in (mount, mount-Xabbrev, mount-Xraw, mount-Xverbose):
4400 Add -a33 option.
4403 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4405 2018-04-28 Dmitry V. Levin <ldv@altlinux.org>
4410 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4413 * tests/mount-Xabbrev.c: New file.
4414 * tests/mount-Xraw.c: Likewise.
4415 * tests/mount-Xverbose.c: Likewise.
4417 * tests/pure_executables.list: Add mount-Xabbrev, mount-Xraw,
4418 and mount-Xverbose.
4420 * tests/gen_tests.in (mount-Xabbrev, mount-Xraw, mount-Xverbose): New
4424 * tests/old_mmap-Xabbrev.c: New file.
4425 * tests/old_mmap-Xraw.c: Likewise.
4426 * tests/old_mmap-Xverbose.c: Likewise.
4429 * tests/pure_executables.list: Add old_mmap-Xabbrev, old_mmap-Xraw,
4430 and old_mmap-Xverbose.
4432 * tests/gen_tests.in (old_mmap-Xabbrev, old_mmap-Xraw,
4433 old_mmap-Xverbose): New tests.
4435 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4440 * tests/mmap-Xabbrev.c: New file.
4441 * tests/mmap-Xraw.c: Likewise.
4442 * tests/mmap-Xverbose.c: Likewise.
4443 * tests/mmap64-Xabbrev.c: Likewise.
4444 * tests/mmap64-Xraw.c: Likewise.
4445 * tests/mmap64-Xverbose.c: Likewise.
4451 * tests/pure_executables.list: Add mmap-Xabbrev, mmap-Xraw,
4452 mmap-Xverbose, mmap64-Xabbrev, mmap64-Xraw, and mmap64-Xverbose.
4454 * tests/gen_tests.in (mmap-Xabbrev, mmap-Xraw, mmap-Xverbose,
4455 mmap64-Xabbrev, mmap64-Xraw, mmap64-Xverbose): New tests.
4457 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4459 2018-04-27 Dmitry V. Levin <ldv@altlinux.org>
4466 2018-04-27 Dmitry V. Levin <ldv@altlinux.org>
4469 * configure.ac: Check for _Static_assert if static_assert
4474 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4480 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4483 It is no longer used.
4488 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4490 Switch to use of value-indexed xlats for evdev constants.
4505 (bit_ioctl): Use XT_SORTED for evdev_ff_types, use XT_INDEXED
4506 for other xlats.
4507 (evdev_read_ioctl): Use XT_INDEXED for all xlats.
4509 printxval for evdev_abs.
4520 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4530 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4532 Add support for value-indexed xlats.
4534 we can push the search time for them down to O(1).
4545 * xlat/gen.sh: Add support for "#value_indexed" directive.
4547 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4549 socketcall: use printxval_d for printing call argument.
4557 s390: use printxvals_ex for command printing in s390_runtime_instr.
4561 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4569 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4571 open: use print_xlat_ex for printing open modes.
4577 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4585 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4591 for socket type printing.
4593 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4595 keyctl: use printxval_d for printing keyring serial number.
4604 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4609 * ioprio.c (sprint_ioprio): Use sprintxval for producing string
4613 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4622 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4624 2018-04-26 Eugene Syromyatnikov <evgsyr@gmail.com>
4626 strace.1.in: fix typo (Ronald -> Roland)
4629 NEWS: mention that -X option addresses Debian bug #692915.
4631 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4635 there's no need to include the header.
4639 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4645 (main): Add checks for EVIOCSABS and EVIOCGBIT ioctls.
4652 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4654 xlat: provide fallback definitions for arch-independent evdev constants.
4668 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4670 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4674 SW_RFKILL_ALL and marked as deprecated by Linux commit v2.6.26-rc5~32^2.
4677 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4686 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4693 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4697 by Linux commit v4.11-rc1~82^2~7.
4699 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4702 After all, that's what printxvals for.
4704 * fcntl.c (SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Use printxvals for
4707 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4715 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4717 btrfs: use printxval_u for error types printing.
4719 BTRFS_IOC_GET_DEV_STATS>: Use printxval_u for error type printing.
4736 named values for the
4748 Use PRINT_FIELD_* macros for printing structure fields.
4760 (ioc): New macro, a wrapper for sprint_xlat_.
4765 of non-abbreviated output.
4768 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4771 For some reason, he decoder of BTRFS_IOC_QUOTA_CTL command didn't print
4778 Fixes: v4.12~100 "ioctl: add decoding support for btrfs ioctls"
4780 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4794 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4797 As it looks like there's no reason to skip their printing.
4800 for holding non-zero value.
4803 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4806 BTRFS_IOC_BALANCE_V2 ioctl might fail sometimes (for example, if it
4809 * tests/btrfs.c (btrfs_test_balance_ioctls): Print expected output for
4812 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4815 For these volumes, pend/vend should be the same for data and meta.
4821 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4829 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4836 (btrfs_test_ino_path_ioctls): Use dir_name for printing directory name.
4841 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4850 Use print_btrfs_timespec for printing stime and rtime fields.
4857 of non-abbreviated output.
4859 of non-abbreviated output.
4861 of non-abbreviated output.
4863 clone_sources field name only in case of non-abbreviated output.
4865 spaces field name only in case of non-abbreviated output.
4885 * tests/btrfs-X.test: New test.
4886 * tests/btrfs-vX.test: Likewise.
4887 * tests/btrfs-vwX.test: Likewise.
4888 * tests/btrfs-wX.test: Likewise.
4908 (main): Handle -X option.
4910 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4912 tests: check -X option syntax.
4913 * tests/options-syntax.test: Add checks for -X option with invalid
4916 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4918 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4920 Add user interface for configuring xlat output style.
4921 * strace.c (init): Handle -X option, set xlat_verbosity
4922 according to -X argument.
4923 * strace.1.in: Document -X option.
4927 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4929 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4945 2018-04-20 Dmitry V. Levin <ldv@altlinux.org>
4951 * copyright-year-gen: Likewise. When $SOURCE_DATE_EPOCH is non-empty,
4956 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4959 There is no need to call unwind_tcb_init before the tracee is attached.
4965 * unwind.c (unwind_tcb_fin): Skip if tcp->unwind_queue is NULL.
4967 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4969 strace: move setting of post-attach flags inside after_successful_attach
4971 Set TCB_ATTACHED, TCB_STARTUP, and "flags" in tcp->flags.
4974 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4977 This function is going to be used for other things that have to be done
4983 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4986 * unwind-libdw.c (tcb_init): Do not pass trailing "\n" to error_msg
4989 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4992 * file-date-gen: Consistently print the UTC date in C locale.
4993 When $SOURCE_DATE_EPOCH is non-empty, use it as fallback date
4996 Reported-by: Chris Lamb <lamby@debian.org>
4997 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896016
5000 2018-04-19 Masatake YAMATO <yamato@redhat.com>
5004 when -p is passed before -k:
5006 $ ./strace -p 1 -k
5008 ./strace: dwfl_linux_proc_attach returned an error for process 0: No such file or directory
5011 It seems that commit 54c7792b, "Fix libunwind segfault when -p is
5012 passed before -k" doesn't fix the original issue.
5017 2018-04-12 Dmitry V. Levin <ldv@altlinux.org>
5028 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5030 bpf: add support for map_name and map_ifindex fields in BPF_MAP_CREATE.
5033 v4.15-rc1~84^2~605^2~3 and v4.16-rc1~123^2~145^2~5^2~8, respectively.
5045 tests: add checks for bpf BPF_MAP_CREATE arguments.
5048 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5051 As the value of -1 has a special meaning. The issue is complicated
5058 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5063 instead of tcp->u_error mangling around umove_or_printaddr call.
5071 print_fields.h: add PRINT_FIELD_XVAL_U for printing xlat in %u format.
5074 print_fields.h: add PRINT_FIELD_U64 for printing u64 with UINT64_MAX handling
5077 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5083 * bpf_sock_filter.c (print_sock_filter_k): Use print_xlat32 for printing
5086 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5089 For those cases where inadvertent sign extension is possible.
5091 * defs.h (print_xlat32): New macro, a wrapper for print_xlat_ex.
5093 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5096 * open.c (print_dirfd): Use print_xlat_d for printing AT_FDCWD named
5100 * fanotify.c (SYS_FUNC(fanotify_mark)): Use print_xlat_d for printing
5103 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5108 * defs.h (print_xlat_u, print_xlat_d): New macro, a wrapper for
5111 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5114 As there are some possible users for it, apparently.
5119 (printxval64_d, printxval_d): New function, a shorthand for
5123 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5125 defs.h: add shorthands for printing xval with XLAT_STYLE_FMT_U.
5126 * defs.h (printxval_u, printxval64_u): New function, a shorthand for
5129 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5131 Add support for various xlat formats.
5133 used for printing xlat values, we can also employ this argument for
5141 * xlat.c (xlat_verbose, xlat_format): New macro for checking specific
5143 (get_xlat_style): Use xlat_verbose for checking xlat verbosity style.
5144 (sprint_xlat_val, print_xlat_val): New function, for easing printing
5148 Use xlat_verbose macro for xlat verbosity style checks. Use
5151 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5154 * v4la.c (print_v4l2_queryctrl): Use print_xlat for printing
5157 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5164 for printing PR_SET_PTRACER_ANY named constant.
5166 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5169 * nlattr.c (print_nlattr): Use print_xlat for printing NLA_F_NESTED and
5173 * ipc_defs.h (PRINTCTL): Use print_xlat for printing IPC_64 named
5179 (SYS_FUNC(futex)): Use print_xlat for printing FUTEX_OP_OPARG_SHIFT
5182 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5184 ipc: use printxval for printing key.
5186 to account for xlat style setting.
5189 * ipc_msg.c (SYS_FUNC(msgget)): Use printxval for printing IPC_PRIVATE.
5194 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5196 mount: use print_xlat for printing MS_MGC_VAL.
5197 * mount.c (SYS_FUNC(mount)): Use print_xlat for printing MS_MGC_VAL
5200 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5211 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5213 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5216 This will be needed later, with the introduction of user-configurable
5230 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5235 (printxvals): New macro, a wrapper for printxvals_ex.
5238 (printxval_searchn): New macro, a wrapper for printxval_searchn_ex.
5239 (printxval_search_ex): New macro, a wrapper for printxval_searchn_ex.
5241 (sprintxval): New macro, a wrapper for sprintxval_ex.
5244 (sprintflags): New macro, a wrapper for sprintflags_ex.
5257 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5260 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5263 Recent kernel siginfo changes, namely, v4.14-rc1~60^2^2~1,
5264 v4.16-rc1~159^2~37, and v4.16-rc1~159^2~39, introduced ABI regressions
5280 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5283 * strace.1.in (.SH OPTIONS) <.B \-k>: Remove " (experimental)".
5286 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5290 This change enables -k option on all architectures.
5292 * debian/control (Build-Depends) [!amd64]: Add pkg-config, libdw-dev,
5293 and libiberty-dev.
5297 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5299 Use libdw-based unwinder in ci and packages.
5300 * ci/install-dependencies.sh (common_packages): Add pkg-config,
5301 replace libunwind8-dev with libdw-dev.
5302 * debian/control (Build-Depends) [amd64]: Add pkg-config,
5303 replace libunwind-dev with libdw-dev.
5304 * debian/rules (build-udeb/Makefile): Replace --without-libunwind
5305 with --without-stacktrace.
5307 to buildrequires_stacktrace, replace libunwind-devel with
5308 either elfutils-devel or libdw-devel.
5310 tests: skip -k tests on unsupported architectures.
5311 * tests/strace-k.test: When actual strace -k output doesn't match the
5315 2018-04-11 Masatake YAMATO <yamato@redhat.com>
5318 Implement alternative libdw-based unwinder for stack tracing.
5319 Add --with-libdw configure option to control whether libdw can be used
5324 check for mutually exclusive configure options,
5326 * unwind-libdw.c: New file.
5327 * Makefile.am [USE_LIBDW] (strace_SOURCES): Append unwind-libdw.c.
5336 Co-Authored-by: Mark Wielaard <mjw@redhat.com>
5337 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5339 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5343 a tail-allocated udev_monitor_netlink_header object and pass it
5348 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5356 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5365 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5367 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5375 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5377 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5380 BPF_PROG_QUERY was introduced in Linux commit v4.15-rc1~84^2~558^2~6.
5385 (DECL_BPF_CMD_DECODER): Add priv argument for passing tcb private data.
5390 rework rc handling logic for size argument printing.
5394 * tests/bpf.c: Add checks for BPF_PROG_QUERY command.
5396 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5406 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5409 Counterparts for umoven_or_printaddr/umoven_or_printaddr_ignore_syserror
5424 (umove_or_printaddr64): New macro, a wrapper for umoven_or_printaddr64.
5425 (umoven_or_printaddr): New function, a wrapper for
5427 (umoven_or_printaddr_ignore_syserror): New function, a wrapper for
5430 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5432 bpf_filter.c: add support for decoding eBPF instruction codes.
5434 static qualifier. Add support for decoding eBPF instruction code.
5442 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5444 2018-04-08 Dmitry V. Levin <ldv@altlinux.org>
5446 unwind: prepare configure subsystem for alternative unwinders.
5447 Introduce --enable-stacktrace configure option to control whether
5448 -k option support is compiled in, --with-libunwind option remains
5456 * Makefile.am: Conditionalize checks for USE_LIBUNWIND and USE_DEMANGLE
5459 * strace.1.in: Replace libunwind with an unwinder-agnostic wording.
5462 (print_version): Print stack-trace instead of stack-unwind.
5466 * tests/strace-V.test: Update expected output.
5468 2018-04-08 Eugene Syromyatnikov <evgsyr@gmail.com>
5471 * bpf.c (BEGIN_BPF_CMD_DECODER(BPF_PROG_LOAD)): Add support for decoding
5472 of prog_name (introduced in Linux commit v4.15-rc1~84^2~605^2~4) and
5473 prog_ifindex (introduced as prog_target_ifindex in v4.15-rc1~84^2~127^2~13,
5474 renamed in v4.15-rc1~15^2~5^2~3^2~7).
5485 2018-04-08 Eugene Syromyatnikov <evgsyr@gmail.com>
5487 bpf: add support for array fields.
5491 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5493 2018-04-07 Dmitry V. Levin <ldv@altlinux.org>
5495 tests: robustify strace -k tests.
5496 Allow __getpid as an alternative name for getpid,
5499 * tests/strace-k.expected: New file.
5500 * tests/strace-k-demangle.expected: Likewise.
5502 * tests/strace-k-demangle.test (expected): Remove.
5503 * tests/strace-k.test: Likewise. Use grep to check the output.
5505 2018-04-07 Eugene Syromyatnikov <evgsyr@gmail.com>
5513 2018-04-05 Dmitry V. Levin <ldv@altlinux.org>
5518 debian: enable mpers support for ppc64el and s390x.
5519 * debian/control (Build-Depends) [ppc64el, s390x]: Add gcc-multilib.
5521 Post-release administrivia.
5522 * NEWS: Add a header line for the next release.
5523 * debian/changelog.in: Add a changelog entry for 4.22-1.
5526 Prepare for 4.22 release.
5527 * NEWS: Update for 4.22 release.
5533 2018-04-05 Eugene Syromyatnikov <evgsyr@gmail.com>
5537 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5539 unwind: split unwind code into front-end and back-end.
5540 This opens the way for alternative unwinder back-ends.
5542 * unwind.h: New file, defines the unwinder back-end interface.
5544 * unwind-libunwind.c: ... here.
5546 and unwind-libunwind.c.
5548 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5550 unwind: rename public functions in an object-oriented fashion.
5555 functions. One is for manipulating back-end itself, "unwind_" prefix
5556 is used for this type. Another is for manipulating back-end private data
5557 structure (unwind_ctx) attached to tcb, "unwind_tcb_" is used for this
5561 and the relation between unwind subsystem and back-ends.
5569 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5581 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5593 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5595 tests: robustify options-syntax.test against ash.
5596 * tests/options-syntax.test: Do not assume that shell provides $UID,
5597 use "id -u" if it doesn't.
5599 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5601 strace.c: add support for opening output file in append mode.
5603 (init): Handle -A option.
5608 Suggested-by: Philipp Marek <philipp.marek@emerion.com>
5609 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528488
5611 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5613 strace.c: support simultaneous usage of -r and -t options.
5618 * tests/options-syntax.test: Remove the check for
5619 "-tt has no effect with -r" warning.
5622 Suggested-by: Josh Triplett <josh@freedesktop.org>
5623 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5624 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466195
5626 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5632 * syscall.c (dumpio): Move check for syserror and check for fd in
5634 * tests/read-write.c: Add a check for this behaviour.
5635 * tests/pread64-pwrite64.c: Update expected output.
5638 Suggested-by: J. Bruce Fields <bfields@fieldses.org>
5639 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=436284
5641 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5652 * ci/install-dependencies.sh (common_packages): Add faketime.
5654 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5657 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5660 There is no reason to check for auxstr being non-NULL
5663 * sched.c (SYS_FUNC(sched_getscheduler)): Do not check tcp->auxstr,
5667 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5672 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5674 strace.1.in: fix formatting of -e trace class descriptions.
5679 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5685 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5687 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5692 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5697 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5700 Since pointers stored in the bpf_attr union are 64-bit regardless
5704 for attr.license.
5706 for attr.pathname.
5709 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5711 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5713 bpf: add support for file mode flags.
5714 These were introduced by Linux commit v4.15-rc1~84^2~384^2~4.
5735 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5737 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5741 checks for a specific bpf command. In order to achieve so, all the
5750 Iterate over possible attribute variants. Account for changes in
5766 (CHK): New macro, a shorthand for initialising array of struct bpf_check.
5770 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5772 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5777 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5785 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5794 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5801 * configure.ac (AC_CHECK_HEADERS([linux/bpf.h])): Check for
5849 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5853 for availability, automatically list all members of union bpf_attr we
5861 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5875 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5878 This is needed at least for bpf, btrfs, and sg_io, as 32-bit tracer
5879 cannot figure out whether the kernel is 32-bit or 64-bit,
5902 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5904 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5908 for the current personality.
5912 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5919 * configure.ac (AC_CACHE_CHECK): Check for static_assert in <assert.h>,
5924 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5935 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5944 2018-04-03 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
5946 Restore kvm ioctl definitions for aarch64 and mips architectures.
5948 of kvm-capable architectures.
5954 2018-04-03 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
5971 maint: update for linux 4.16.
5972 * maint/ioctls_sym.sh: Add workaround for linux/ndctl.h file.
5973 Update workaround for media/v4l2-common.h file.
5976 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5981 tests/bpf.c: add a check for NULL bpf_attr pointer.
5984 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5986 bpf: print byte range for extra data.
5993 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5996 It has only single user and implementation of xlat styles for it would
6001 non-zeroeness flags check.
6004 2018-04-01 Dmitry V. Levin <ldv@altlinux.org>
6012 i18n-aware tools, e.g.
6014 $ LANG=es_ES strace -qq -a38 -P /missing unlink /missing
6015 unlink("/missing") = -1 ENOENT (No existe el fichero o el directorio)
6016 unlink: no se puede deshacer el enlace '/missing': No existe el fichero o el directorio
6023 2018-03-29 Dmitry V. Levin <ldv@altlinux.org>
6031 2018-03-29 Dmitry V. Levin <ldv@altlinux.org>
6035 always print non-error syscall return codes as unsigned.
6045 * tests/inject-nf.c (main): Update expected output.
6047 2018-03-29 Dmitry V. Levin <ldv@altlinux.org>
6050 * tests/qual_inject-syntax.test: Check for negative delay injection
6051 parameters. Check for overriding delay injection parameters.
6053 2018-03-29 Eugene Syromyatnikov <evgsyr@gmail.com>
6070 tcp->u_rval as int if current_klongsize < sizeof(tcp->u_rval).
6071 * tests/inject-nf.c (main): Update.
6072 * tests/inject-nf.test: Test injection of negative return values.
6073 * tests/qual_inject-syntax.test: Remove retval=-1 check as it is now
6074 allowed, add checks for invalid retval parameters.
6076 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6078 2018-03-28 Dmitry V. Levin <ldv@altlinux.org>
6091 2018-03-28 Dmitry V. Levin <ldv@altlinux.org>
6095 as hundreds of these structures are created for each process when
6109 2018-03-27 Dmitry V. Levin <ldv@altlinux.org>
6114 Complements: v4.21-108-gba8e768 ("Implement delay injection")
6116 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6119 * xlat/mmap_flags.in (_MAP_NEW): Remove SunOS-specific comment, add
6120 a comment that this is a SPARC-specific constant (from
6122 (MAP_GROWSUP): IA-64-specific constant (from
6124 (MAP_INHERIT): Add a comment that this is a SPARC-specific constant
6126 (_MAP_INHERIT): Add a comment that this is an Alpha-specific constant
6128 (MAP_ANON): Remove, FreeBSD-specific constant.
6131 Alpha-specific constant (from arch/alpha/include/uapi/asm/mman.h).
6134 an architecture-specific constant (from
6136 (_MAP_UNALIGNED): Add a comment that this is an Alpha-specific constant
6139 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6143 * tests/kern_features-fault.test: New test.
6145 * tests/Makefile.am (DECODER_TESTS): Add kern_features-fault.test.
6149 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6151 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6162 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6164 2018-03-27 Dmitry V. Levin <ldv@altlinux.org>
6166 evdev: move mpers-specific parsers to a separate file.
6171 * evdev.c (evdev_ioctl): Un-mpersify.
6178 2018-03-26 Eugene Syromyatnikov <evgsyr@gmail.com>
6180 ci: install libunwind8-dev.
6181 While in debian/control we use libunwind-dev in Build-Depends, in case
6185 * ci/install-dependencies.sh (common_packages): Add libunwind8-dev.
6187 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6189 2018-03-23 Eugene Syromyatnikov <evgsyr@gmail.com>
6192 * tests/inject-nf.c: New file.
6193 * tests/inject-nf.test: New test.
6194 * tests/.gitignore: Add inject-nf.
6196 (MISC_TESTS): Add inject-nf.test.
6198 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6200 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6204 for some of our needs.
6237 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6242 $ sh -uc '. tests/init.sh; kernel_version_code 4.5'
6247 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6263 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6276 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6285 Optimizes: v4.21-108-gba8e768 ("Implement delay injection")
6287 2018-03-22 Eugene Syromyatnikov <evgsyr@gmail.com>
6290 As it looks like there's no compelling reason to keep it as a macro and
6292 them error-prone.
6300 2018-03-22 Eugene Syromyatnikov <evgsyr@gmail.com>
6305 2018-03-22 Elvira Khabirova <lineprinter@altlinux.org>
6315 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6317 2018-03-22 Elvira Khabirova <lineprinter@altlinux.org>
6320 Add -e inject=SET:delay_enter= and -e inject=SET:delay_exit= options.
6322 * configure.ac (AC_SEARCH_LIBS): Check for timer_create -lrt.
6353 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6355 2018-03-22 Dmitry V. Levin <ldv@altlinux.org>
6359 only when waiting for process state changes.
6365 2018-03-21 Eugene Syromyatnikov <evgsyr@gmail.com>
6373 commit v3.18-rc1~52^2~1^2~7) version. Print fields of union bpf_attr
6375 (new fields were introduced in Linux commits v3.18-rc1~52^2~1^2~4,
6376 v4.1-rc1~84^2~50, and v4.12-rc2~34^2~29^2~2).
6379 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6381 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6383 btrfs: print struct btrfs_ioctl_logical_ino_args.reserved if non-zero.
6388 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6390 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6399 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6401 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6403 mpers.m4: enhance workaround for missing gnu/stubs-*.h files.
6404 Make generated empty gnu stub files available for mpers_test.sh check.
6406 * m4/mpers.m4 (st_MPERS): Add $IFLAG to CPPFLAGS for mpers_test.sh
6409 Complements: v4.11~223 ("mpers.m4: workaround missing gnu/stubs-*.h files")
6411 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6417 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6419 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6421 INSTALL-git.md: enhance phrasing.
6422 * INSTALL-git.md: Enhance phrasing.
6424 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6426 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6432 Fixes: v4.21-93-g4bb8454 ("Move README to dist subdirectory")
6434 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6465 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6467 Fix -O option handling.
6469 nowadays, making -O option almost useless.
6475 2018-03-16 Dmitry V. Levin <ldv@altlinux.org>
6488 2018-03-16 Dmitry V. Levin <ldv@altlinux.org>
6496 2018-03-16 Eugene Syromyatnikov <evgsyr@gmail.com>
6499 * README-hacking (Requirements): Enhance phrasing.
6504 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6506 2018-03-16 Eugene Syromyatnikov <evgsyr@gmail.com>
6509 README was originally written for users of distribution tarballs.
6510 Nowadays it appears to be confusing for those who build strace
6518 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6521 2018-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
6526 2018-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
6530 infinite timeout, so no need to handle BSD-specific INFTIM.
6534 2018-03-14 Dmitry V. Levin <ldv@altlinux.org>
6536 build: do not hardcode -lrt.
6537 Depending on libc implementation, various -lrt functions can be
6538 implemented either in -lc or in -lrt. For example, starting with
6539 glibc-2.17 the clock_* suite of functions is available directly in -lc.
6542 by -lrt or by the main C library, do not link with -lrt unnecessarily.
6547 * configure.ac (AC_SEARCH_LIBS): Check for clock_gettime and mq_open
6548 in -lrt.
6550 * tests/Makefile.am (mq_LDADD): Replace -lrt with $(mq_LIBS).
6551 (threads_execve_LDADD, times_LDADD): Replace -lrt with $(clock_LIBS).
6553 2018-03-14 Dmitry V. Levin <ldv@altlinux.org>
6555 tests: do not link with -lrt unnecessarily.
6556 * tests/Makefile.am (attach_f_p_LDADD): Remove -lrt.
6560 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6575 for (i = 1; i < 1000; ++i) {
6583 for (i = 0; i < 10000000; ++i)
6589 while [ ! -s pid2tcb.wait ]; do sleep 0.1; done; \
6590 time -f '%Uuser %Ssystem %eelapsed %PCPU' \
6591 ../strace -qq -enone -esignal=none -f -p $!
6595 while [ ! -s pid2tcb.wait ]; do sleep 0.1; done; \
6596 time -f '%Uuser %Ssystem %eelapsed %PCPU' \
6597 ../strace -qq -enone -esignal=none -f -p $!
6600 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6603 It is by no means an experimental code.
6608 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6615 * ci/install-dependencies.sh (clone_repo): Use local server by default.
6616 (musl-gcc): Un-hardcode the location of musl repository.
6618 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6621 * ci/install-dependencies.sh (clone_repo): New function.
6625 * ci/run-build-and-tests.sh: Include $CC -dumpspecs output in addition
6626 to config.log when ./configure fails.
6628 ci: rename travis-build.sh and travis-install.sh scripts.
6629 * travis-build.sh: Rename to ci/run-build-and-tests.sh, all callers
6631 * travis-install.sh: Rename to ci/install-dependencies.sh, all callers
6634 tests: extend ioctl.test libc protection to -y output.
6636 descriptor arguments to -y output.
6638 2018-03-12 Harsha Sharma <harshasharmaiitr@gmail.com>
6642 (ptp_ioctl): Print field names with field values for PTP_PEROUT_REQUEST,
6645 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6647 tests: add check for decoding of netfilter subsystem.
6648 * tests/netlink_netfilter.c(test_nfgenmsg): Add check for decoding
6655 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6667 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6669 tests: add check for NETLINK_NETFILTER parser.
6684 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6692 2018-03-10 Dmitry V. Levin <ldv@altlinux.org>
6694 inject_data: make room for more injection features.
6696 uint16_t to uint8_t to make room for more injection features.
6698 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6704 2018-03-09 Dmitry V. Levin <ldv@altlinux.org>
6720 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6723 get_pagesize() has a static cache anyway, no need to duplicate it.
6728 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6733 2018-03-08 Dmitry V. Levin <ldv@altlinux.org>
6735 xlat: provide fallback definitions for arch-independent mmap flags.
6736 This is important for recently introduced MAP_SHARED_VALIDATE flag.
6741 Fixes: v4.21-67-g8c209d1 ("tests: fix remap_file_pages.test breakage on hppa")
6743 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6750 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6758 for hppa and unknown value for other architectures).
6762 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6775 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6777 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6794 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6796 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6802 Reported-by: Mike Parker
6805 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6807 strace.1.in: mention that -c suppresses regular output.
6808 As the note that -C makes strace "also print regular output" can be
6811 * strace.1.in (.SS Statistics) <.TP .B \-c>: Mention that -c supresses
6814 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6818 Linux commit v4.7-rc1~40^2~6.
6826 by Linux commit v4.15-rc1~84^2~558^2~7.
6830 by Linux commit v4.15-rc1~84^2~427^2~4.
6834 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6837 When built with --enable-gcc-Werror, s390_sthyi test build fails
6840 s390_sthyi.c:63:1: error: ‘print_u8’ defined but not used [-Werror=unused-function]
6845 values landed under verbose printing, so this function is no longer
6846 used in non-verbose mode. Let's avoid this in the future by inlining
6854 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6857 The field has been introduced in Linux commit v4.15-rc1~135^2~17.
6861 * configure.ac: Check for struct btrfs_ioctl_logical_ino_args.flags
6866 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6873 * tests/btrfs.c: Add checks for NULL in fspath and inodes fields.
6876 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6879 Sometimes, 64-bit value is expected to be interpreted as an address
6880 (in BTRFS ioctl interface, for example).
6891 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6894 These commands were introduced in Linux commit v4.15-rc1~110^2~9.
6901 (SYS_FUNC(prctl)): Add decoding for PR_SVE_GET_VL and PR_SVE_SET_VL
6905 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6914 * tests/ptrace.c (main): Add some checks for PTRACE_SECCOMP_GET_METADATA
6918 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6920 2018-03-06 Dmitry V. Levin <ldv@altlinux.org>
6922 build: prepare for -Wimplicit-fallthrough=5.
6938 * m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Wimplicit-fallthrough=5.
6942 2018-03-05 Eugene Syromyatnikov <evgsyr@gmail.com>
6944 xlat: add eBPF-based device controller constants.
6947 v4.15-rc1~84^2~120^2~2.
6953 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
6955 xlat: provide fallback definitions for input event constants.
6959 while read r; do [ -n "$r" ] &&
6960 sed -rn 's/^#define[[:space:]]+('$r'[[:space:]]+[^[:space:]]+).*/\1/p' \
6961 ~/dev/linux/include/uapi/linux/input-event-codes.h || echo;
6963 $ sort -s -n -k1,1 \
6966 | sed 's/^[0-9]* //' > xlat/evdev_keycode.in
6968 It also verifies that the values are sorted and bsearch-ready.
6972 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
6977 * xlat/evdev_keycode.in (KEY_HANGUEL): Remove, an alternative name for
6979 (KEY_DIRECTION): Remove, an alternative name for KEY_ROTATE_DISPLAY.
6980 (KEY_BRIGHTNESS_ZERO): Remove, an alternative name for
6982 (KEY_WIMAX): Remove, an alternative name for KEY_WWAN.
6983 (BTN_A): Remove, an alternative name for BTN_SOUTH.
6984 (BTN_B): Remove, an alternative name for BTN_EAST.
6985 (BTN_X): Remove, an alternative name for BTN_NORTH.
6986 (BTN_Y): Remove, an alternative name for BTN_WEST.
6987 (BTN_STYLUS3): New constant, added in Linux commit v4.15-rc1~114^2^2~1.
6988 (KEY_BRIGHTNESS_TOGGLE): Remove, an alternative name for
6991 v4.16-rc1~54^2~67.
6992 (KEY_DATA): New constant, added in Linux commit v4.9-rc8~12^2.
6994 v4.12-rc1~126^2~2^12~5.
6997 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
6999 xlat: provide fallback definitions for SCTP socket option constants.
7000 Values for SCTP_GET_PEER_ADDRS_NUM_OLD, SCTP_GET_PEER_ADDRS_OLD,
7002 from Linux commit v2.6.33-rc1~388^2~167^2~7.
7006 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7010 (SCTP_DELAYED_SACK): ...this, per Linux commit v2.6.38-rc2~33^2.
7012 v4.13-rc1~157^2~39.
7014 v4.15-rc1~84^2~567^2~3.
7016 v4.15-rc1~84^2~567^2~2.
7018 v4.16-rc1~123^2~384^2~11.
7021 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7023 xlat: provide fallback definitions for Ethernet protocol constants.
7024 As those are not architecture-specific.
7028 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7032 in Linux commit v4.16-rc1~123^2~355^2~2.
7033 (ETH_P_IBOE): New constant, introduced in commit v4.11-rc1~73^2~74.
7053 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7055 v4l2: v4l2_fourcc is endianness-agnostic.
7057 regardless of endianness (no mnemonic on big-endian architectures),
7058 so we don't need special handling for WORDS_BIGENDIAN both in decoder
7066 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7067 Fixes: v4.10~371 "Implement Video4Linux video-input ioctls decoder"
7069 2018-03-01 Dmitry V. Levin <ldv@altlinux.org>
7072 Starting with commit v4.21-37-g4f63bc70ca95012d72e288fc3c1eeb3ba26068a4,
7090 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7092 tests: check printing of block/char device numbers in -yy mode.
7093 * tests/dev-yy.c: New file.
7094 * tests/pure_executables.list: Add dev-yy.
7096 * tests/gen_tests.in (dev-yy): New test.
7098 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7100 printfd: print character/block device number in -yy mode.
7105 also for printdev. Escape opening angle bracket in addition to closing angle
7107 * tests/fsync-y.c: Update expected output.
7111 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7113 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7118 * tests/fsync-y.c (main): Update expected output.
7121 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7123 util.c: add support for additional escape characters in string_quote.
7125 brackets for that, for example. As result, mechanism for supplying
7145 * tests/fsync-y.c: Pass NULL as escape_chars argument of
7148 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7150 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7152 tests: check file name printing in strace -y mode.
7153 * tests/fsync-y.c: New file.
7154 * tests/.gitignore: Add fsync-y.
7156 * tests/gen_tests.in (fsync-y): New test.
7158 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7160 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7177 * util.c (string_quote): Change the upper limit for the next character
7183 character after octal-escaped one instead of the first one in the
7186 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7188 util.c: reduce indentation in non-hexadecimal case in string_quote.
7194 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7200 2018-02-27 Dmitry V. Levin <ldv@altlinux.org>
7208 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7212 enumeration items introduced by linux kernel commit v4.16-rc1~123^2~259.
7219 constants introduced by linux kernel commits v4.13-rc1~205^2~27 and
7220 v4.16-rc1~164^2~8, respectively.
7225 xlat: provide fallback definitions for arch-independent poll event flags
7229 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7232 POLL_BUSY_LOOP was introduced by linux kernel commit v3.11-rc1~64^2~129
7233 as POLL_LL and then renamed in v3.11-rc1~64^2~9. POLLRDHUP was
7234 introduced by linux kernel commit v2.6.17-rc1~796. POLLMSG and
7236 kernel commit v3.3-rc5~8 for internal use only.
7242 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7244 xlat: add arch-specific si_codes constants.
7245 Based on Linux commits v4.16-rc1~159^2~17, v4.16-rc1~159^2~16,
7246 v4.16-rc1~159^2~15, and v4.16-rc1~159^2~14.
7259 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7264 v4.15-rc4~13^2~5^2~2 and v4.16-rc1~123^2~139^2~5.
7271 constants introduced by linux kernel commits v4.15-rc1~84^2~557,
7272 v4.15-rc1~84^2~133^2, v4.16-rc1~123^2~91, and v4.16-rc1~123^2~24^2.
7285 kernel commit v4.16-rc1~145^2~7.
7289 * tests/net-yy-inet.c: Generalise test.
7290 * tests/net-yy-inet6.c: New file.
7291 * tests/pure_executables.list: Add net-yy-inet6.
7293 * tests/gen_tests.in (net-yy-inet6): New entry.
7295 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7298 Follow a common practice for printing address:port pair to distinguish
7307 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7310 There are rumors in circulation that some rpm-based distributions
7316 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7324 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7327 Let's avoid bloating defs.h and introduce a separate header for
7341 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7347 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7362 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7372 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7382 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7384 mmap_cache: move code for searching a mmap cache from unwind.
7386 cache. The found entry is then used for unwinding. However, a function
7387 searching for a mmap entry may be useful for other purposes than
7390 This change re-factors the function; code for searching an entry is
7391 now defined as a stand-alone function named mmap_cache_search.
7399 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7402 For making mmap cache code reusable from other areas in strace than
7421 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7424 For making mmap cache code reusable from other areas in strace
7428 This change is one of the steps for the separation. It moves
7439 2018-02-25 Dmitry V. Levin <ldv@altlinux.org>
7441 debian: sync with 4.21-1 package.
7442 Versioned dependency on debhelper is not updated for backwards
7446 * debian/control (Build-Depends): Add dependency on libbluetooth-dev.
7447 (Standards-Version): Update to 4.1.3.
7448 (Vcs-Git, Vcs-Browser): Move from alioth to salsa.d.o.
7449 (strace, strace-udeb) <Architecture>: Change to linux-any.
7450 (strace64, strace-udeb) <Priority>: Change to optional.
7454 (build/Makefile, build-udeb/Makefile, build64/Makefile): Depend on it.
7455 (binary-arch): Use build64/strace.1 for strace64 subpackage.
7459 2018-02-24 Eugene Syromyatnikov <evgsyr@gmail.com>
7461 m4/mpers.m4: fix mpers name in comments added to config.h.
7465 Fixes: v4.14~169 ("mpers.m4: check for struct stat64, struct stat, and their members")
7467 2018-02-24 Dmitry V. Levin <ldv@altlinux.org>
7477 2018-02-23 Dmitry V. Levin <ldv@altlinux.org>
7480 The old location of strace-devel mailing list is defunct, it used to
7481 lose email messages and sometimes did not deliver any mails for days.
7483 The mailing list has been moved to strace-devel@lists.strace.io.
7491 * strace-log-merge.1.in (.SH REPORTING BUGS): Likewise.
7499 2018-02-21 Dmitry V. Levin <ldv@altlinux.org>
7508 /usr/include/m68k-linux-gnu/sys/reg.h:26:3: error: expected identifier
7529 2018-02-15 Dmitry V. Levin <ldv@altlinux.org>
7533 new commits for too long.
7535 new files for too long.
7542 2018-02-15 Dmitry V. Levin <ldv@altlinux.org>
7548 2018-02-14 Dmitry V. Levin <ldv@altlinux.org>
7550 Post-release administrivia.
7551 * NEWS: Add a header line for the next release.
7552 * debian/changelog.in: Add a changelog entry for 4.21-1.
7555 2018-02-13 Dmitry V. Levin <ldv@altlinux.org>
7557 Prepare for 4.21 release.
7558 * NEWS: Update for 4.21 release.
7560 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7564 error_msg_and_skip if rc is non-zero.
7566 2018-02-13 Dmitry V. Levin <ldv@altlinux.org>
7572 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7582 Suggested-by: Elvira Khabirova <lineprinter@altlinux.org>
7583 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7585 2018-02-13 Dmitry V. Levin <ldv@altlinux.org>
7599 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7601 tests: avoid ioctl_kvm_run test failure when built with gcc -O0.
7602 When built with -O0, gcc (rightfully) generates function prologue, which
7616 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7618 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7626 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7628 tests: add compatibility layer for accept call.
7629 Recent glibc (since version 2.26) uses accept4 syscall for implementing
7632 v4.4-rc8~4^2~1.
7636 * tests/net-y-unix.c: Include accept_compat.h, use do_accept()
7638 * tests/net-yy-inet.c: Likewise.
7639 * tests/net-yy-unix.c: Likewise.
7642 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7644 debian: build strace-udeb separately.
7645 * debian/rules (extra_build_targets): Add build-udeb-stamp.
7646 (build-udeb/Makefile): New rule.
7647 (clean): Remove build-udeb.
7648 * debian/strace-udeb.install: Update.
7650 Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826223
7652 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7654 Enable symbol demangling in deb- and rpm-driven builds.
7655 * debian/control (Build-Depends) [amd64]: Add libiberty-dev.
7656 * strace.spec.in (buildrequires_libunwind_devel): Add binutils-devel.
7658 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7660 debian: re-enable -k option on x86_64.
7663 * debian/control (Build-Depends) [amd64]: Add libunwind-dev.
7665 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7667 Add "strace -V" output to build log.
7668 * strace.spec.in (%check): Print "strace -V" output before
7670 * debian/rules (%-stamp): Likewise.
7672 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7676 by linux kernel commit v4.16-rc1~93^2~72.
7680 by linux kernel commit v4.16-rc1~93^2~85.
7687 commits v4.16-rc1~93^2~70 and v4.16-rc1~93^2~69, respectively.
7693 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7695 linux/ia64: remove IA-32 mode support.
7696 There is no compat support in strace and there are no systems
7706 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7713 return value tampering to re-initialise u_rval and u_error fields
7716 2018-02-11 Eugene Syromyatnikov <evgsyr@gmail.com>
7724 2018-02-11 Dmitry V. Levin <ldv@altlinux.org>
7741 2018-02-11 Dmitry V. Levin <ldv@altlinux.org>
7754 * tests/printpath-umovestr.c: Likewise.
7758 * tests/net-y-unix.c: Do not include <sys/param.h>.
7759 * tests/net-yy-unix.c: Likewise.
7761 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7770 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7774 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7776 xlat.c: return NULL in sprintflags if there are no flags.
7779 * xlat.c (sprintflags): Return NULL if no flags were printed.
7781 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7787 string_to_uint for rval parsing. Warn if retval is clipped in compat
7803 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7806 And add support for reading of various types.
7813 for completeness.
7815 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7817 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7820 * basic_filters.c (lookup_class) <syscall_class>: Add "%pure" for
7912 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7914 tests/nsyscall-d.test: swap exp and log in diff calls.
7917 * tests/nsyscalls-d.test: swap arguments of match_diff calls.
7919 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7925 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7934 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7936 Handle very special __ARM_NR_-prefixed syscalls.
7953 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7966 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7968 Use shuffle_scno for x32 syscall numbers.
7978 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7985 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7987 Move shuffle_scno to arch-specific file.
7995 as arm_shuffle_scno and call it only for personality 1.
8000 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8014 printsiginfo.c: add a comment about personality detection for SIGSYS.
8017 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8019 linux/x86_64/set_error.c: update eax for compat personality.
8025 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8027 Mark various arch-specific syscalls with SYSCALL_NEVER_FAILS.
8036 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8062 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8064 linux/x86_64/get_error.c: do not sign-extend if no error happened.
8066 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8074 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8082 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8084 2018-02-07 Eugene Syromyatnikov <evgsyr@gmail.com>
8090 * syscall.c (syscall_exiting_trace): Check for current_klongsize instead
8091 of current_wordsize to determine the size of tcp->u_rval.
8095 …ttps://github.com/strace/strace-talks/blob/master/2012-ossdevconf-obninsk-strace_from_upstream_PoV…
8103 (.SS Output format) <-o>: de-italicize dot in "filename.pid", convert
8105 incompatibility of output piping with -ff mode.
8106 (.SS Output options) <-t>: s/time of day/wall clock time/.
8107 (.SS Statistics) <-c>: Remove "on Linux" mention, -F option mention.
8110 * README.md: Mention URLs for SourceForge, GitHub, and GitLab
8113 2018-02-07 Dmitry V. Levin <ldv@altlinux.org>
8115 tests: rewrite net-accept-connect.c without strncpy.
8116 gcc8 -Wall -Werror rejects our method of struct sockaddr_un.sun_path
8121 pre-calculated length and get rid of strncpy completely.
8123 * tests/net-accept-connect.c (main): Use memcpy to initialize sun_path.
8125 2018-02-06 Dmitry V. Levin <ldv@altlinux.org>
8127 Use kernel's fcntl.h header instead of libc's for open_mode_flags.
8138 workarounds for libc O_TMPFILE implementations.
8142 * tests/gen_tests.in (openat): Add -a option.
8144 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
8146 2018-02-06 Dmitry V. Levin <ldv@altlinux.org>
8151 v4.15-rc1~84^2~387 and v4.15-rc1~84^2~339, respectively.
8156 commit v4.15-rc1~84^2~601.
8161 by linux kernel commits v4.15-rc1~71^2^2~23 and v4.15-rc1~71^2^2~12,
8165 2018-02-06 Eugene Syromyatnikov <evgsyr@gmail.com>
8167 tests: avoid triggering -Wstringop-truncation in ioctl_dm.c.
8173 Move large file-related wrappers to a separate header.
8178 2018-01-29 Dmitry V. Levin <ldv@altlinux.org>
8185 2018-01-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
8191 2018-01-29 Eugene Syromyatnikov <evgsyr@gmail.com>
8222 * tests/s390_guarded_storage-v.c: New file.
8224 * tests/.gitignore: Add s390_guarded_storage, s390_guarded_storage-v.
8226 * tests/gen_tests.in (s390_guarded_storage, s390_guarded_storage-v):
8243 * tests/s390_sthyi-v.c: New file.
8245 * tests/.gitignore: Add s390_sthyi, s390_sthyi-v.
8260 2018-01-29 Eugene Syromyatnikov <evgsyr@gmail.com>
8271 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8273 tests: make ioctl.test more flexible, use it for the rest of ioctl tests
8274 As the remaining non-generated ioctl tests differ from ioctl.test only
8276 tests, replace the remaining non-generated ioctl tests with invocations
8280 * tests/gen_tests.in (ioctl_dm): New entry, invoke ioctl.test with -s9.
8281 (ioctl_dm-v): New entry, invoke ioctl.test with -v -s9.
8282 (ioctl_kvm_run): New entry, invoke ioctl.test with -a36 -y.
8283 (ioctl_loop-nv): New entry, invoke ioctl.test with -a22 -e verbose=none.
8284 (ioctl_nsfs): New entry, invoke ioctl.test with -esignal=none.
8285 (ioctl_sock_gifconf): New entry, invoke ioctl.test with -a28 -s1.
8286 (ioctl_evdev-v, ioctl_loop-v, ioctl_rtc-v): Invoke ioctl.test
8287 with -v option instead of ioctl-v.sh.
8288 * tests/ioctl_dm-v.test: Remove.
8291 * tests/ioctl_loop-nv.test: Likewise.
8294 * tests/ioctl-v.sh: Likewise.
8297 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8304 xlat/gen.sh: add some rudimentary support for comments.
8311 2018-01-25 Dmitry V. Levin <ldv@altlinux.org>
8313 Drop non-functional CRIS architecture support.
8315 and up to this comment that ends the agony of this non-functional code,
8324 Fixes: v4.5.18-77-gea0e6e8 ("CRIS support by Hinko Kocevar ...")
8326 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8328 Update futex test in accordance with kernel's v4.15-rc7-202-gfbe0e83.
8338 Add syscall entry for ARM-specific get_tls syscall.
8343 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8345 Fix syscall descriptions for ARM-specific system calls.
8354 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8369 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8372 We (apparently) had a long-standing test failure inside strace-ff.test
8375 behaviour indeed screwed all the syscall state tracking for the tracee.
8381 trace_syscall with TCB_RECOVERING flag being set for the current_tcp
8388 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8390 2018-01-24 Dmitry V. Levin <ldv@altlinux.org>
8394 definitions for PR_SET_PTRACER and PR_SET_PTRACER_ANY constants,
8397 2018-01-24 Dmitry V. Levin <ldv@altlinux.org>
8408 This condition used to be triggered by prctl-dumpable test that caused
8413 * tests/prctl-dumpable.c [__ia64__]: Skip the test.
8415 2018-01-24 Eugene Syromyatnikov <evgsyr@gmail.com>
8420 curcol in line_ended for the stale printing_tcp if followfork == 2.
8425 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8429 * tests/oldselect-P.c: New file.
8430 * tests/oldselect-efault-P.c: Likewise.
8431 * tests/oldselect-efault.c: Likewise.
8433 * tests/pure_executables.list: Add oldselect-efault.
8434 * tests/gen_tests.in (oldselect, oldselect-P, oldselect-efault,
8435 oldselect-efault-P): New entries.
8438 * tests/Makefile.am (check_PROGRAMS): Add oldselect-P
8439 and oldselect-efault-P.
8442 * tests/.gitignore: Add oldselect-P, oldselect-efault,
8443 and oldselect-efault-P.
8448 (main): Conditionalize expected output for those calls
8450 * tests/_newselect-P.c: New file.
8451 * tests/select-P.c: Likewise.
8452 * tests/Makefile.am (check_PROGRAMS): Add _newselect-P and select-P.
8454 * tests/gen_tests.in (_newselect-P, select-P): New entries.
8457 * tests/xselect.c: Rewrite for better coverage.
8459 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8462 Ensure that stdin descriptor is not available for output
8467 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8496 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8512 2018-01-23 Eugene Syromyatnikov <evgsyr@gmail.com>
8517 Use char * for pointer arithmetics.
8537 2018-01-23 Eugene Syromyatnikov <evgsyr@gmail.com>
8544 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8555 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8559 gawk 3, so let's support them for now.
8562 - Multidimensional arrays are replaced with single-dimensional ones.
8563 In most places it's a "][" -> ", " replacement, as awk allows some
8565 occasions (specifically for storing name and special fields) we have
8568 - "switch" statements are replaced with sets of "if ... else if ...
8570 a temporary variable in what_is order to store expression value, for
8572 - No support for array iteration ordering. This one is most ugly of
8582 access with comma-concatenated index.
8585 comma-concatenated index. Use comma-concatenated pair of (array_idx,
8590 array access with comma-concatenated index. Use for (... ; ...; ...)
8593 multidimensional array access with comma-concatenated index. Store an
8596 comma-concatenated index. Add a flag to array_names for that idx.
8599 comma-concatenated index.
8601 with comma-concatenated index. Store additional flags in
8604 multidimensional array access with comma-concatenated index. Iterate
8609 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8611 dm: add support for event_nr in DM_LIST_DEVICES result.
8612 Commit v4.13-rc1~137^2~13 (and a follow-up fix v4.14-rc4~20^2~3
8617 Unfortunately, we can't test it for now, but looks like it kinda works:
8619 # ./strace -v -eioctl -y dmsetup ls
8626 {dev=makedev(253, 1), name="fedoratesting--30-swap", event_nr=0},
8627 {dev=makedev(253, 0), name="fedoratesting--30-root"}}) = 0
8628 fedoratesting--30-swap (253:1)
8629 fedoratesting--30-root (253:0)
8636 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8655 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8657 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8672 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8696 * linux/syscall.h: Check for HAVE_ARCH_UID16_SYSCALLS instead of
8711 (getrval2): Check for HAVE_ARCH_GETRVAL2 instead of arch checks.
8712 * net.c (SYS_FUNC(pipe)): Check for HAVE_ARCH_GETRVAL2 instead of
8716 Use #if idiom instead of #ifdef for HAVE_ARCH_* macros.
8725 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8727 Rename arch-specific arch_defs.h files to arch_defs_.h.
8729 arch-specific arch_defs_.h file followed by generic arch_defs_.h file.
8744 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8752 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8761 * util.c (printpathn): Return -1 on NULL addr, nul_seen (exit code of
8764 (printstr_ex): Return -1 on NULL addr, umoven/umovestr result otherwise.
8766 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8776 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8783 ./mpers-m32/struct_blk_user_trace_setup.h:2: error: redefinition of typedef ‘mpers_ptr_t’
8789 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8791 Add support for --enable-mpers=m32|mx32.
8793 for --enable-mpers option.
8794 * m4/mpers.m4 (st_MPERS): Check for personality support if personality
8798 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8800 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8805 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8814 2018-01-18 Dmitry V. Levin <ldv@altlinux.org>
8820 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8822 strace.1.in: clarify mpers flags in strace -V output.
8825 * strace.1.in (.SH "MULTIPLE PERSONALITY SUPPORT"): Remove "no-m32" and
8826 "no-mx32", describe the situation when some of mpers flags are not
8827 present in strace -V output.
8829 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8831 Add compat support for s390x.
8834 While we are here, let's refactor the condition for old_mmap_pgoff into
8835 an arch-specific one, as it is used more than in one place.
8840 cc_flags_m32 to -m31.
8849 instead of s390_frame_ptr, __SIGNAL_FRAMESIZE, and pointer-sized type,
8866 * linux/s390x/arch_rt_sigframe.c: Conditionalize on tcp->currpers.
8881 * tests/strace-V.test: Add s390 to the list of architectures that have
8888 2018-01-18 Eugene Syromyatnikov <evgsyr@gmail.com>
8892 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
8897 (main): Conditionalize expected output for those calls
8899 * tests/ppoll-P.c: New file.
8900 * tests/pure_executables.list: Add ppoll-P.
8902 * tests/gen_tests.in (ppoll-P): New entry.
8907 (main): Conditionalize expected output for those calls
8909 * tests/poll-P.c: New file.
8910 * tests/pure_executables.list: Add poll-P.
8912 * tests/poll-P.test: New test.
8913 * tests/Makefile.am (DECODER_TESTS): Add poll-P.test.
8915 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8917 tests: enable old_mmap-P.test on s390x.
8918 As s390x is the only 64-bit architecture that has old_mmap,
8925 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8927 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8932 (main): Wrap the output for the calls that do not use TEST_FD
8934 * tests/old_mmap-P.c: New file.
8935 * tests/pure_executables.list: Add old_mmap-P.
8937 * tests/gen_tests.in: Add old_mmap-P test.
8939 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8941 Fix pathtrace for old_mmap/old_mmap_pgoff.
8946 for path matching.
8953 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8955 Test non-verbose old_mmap output.
8956 * tests/old_mmap-v-none.c: New file. Include old_mmap.c.
8957 * tests/pure_executables.list: Add old_mmap-v-none.
8959 * tests/gen_tests.in (old_mmap-v-none): New entry.
8961 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8971 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8977 As it is, it also fixes the case of non-verbose printing of old_mmap
8979 preparation for the fix of path tracing for these syscalls.
8986 Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
8988 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8990 Introduce arch-specific define HAVE_ARCH_OLD_MMAP.
9002 * mem.c: Replace condition for SYS_FUNC(old_mmap) with #ifdef
9005 Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
9007 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
9011 * tests/filtering_fd-syntax.test: New file.
9012 * tests/options-syntax.test: Move descriptor set syntax testing
9013 to filtering_fd-syntax.test.
9014 * tests/Makefile.am (MISC_TESTS): Add filtering_fd-syntax.test.
9016 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9018 strace.c: print correct out file name in error messages in case of -ff.
9028 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9034 update personality, at least for those architectures.
9037 PTRACE_GETREGSET exclusively (no HAVE_GETREGS_OLD) and should declare
9045 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9047 syscall.c: add sanity check for the target personality number.
9054 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9057 As all the personality-dependent entries are initially in sync, we can
9063 personality-dependent entries are initially in sync" true.
9068 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9070 syscall.c: always update tcp->currpers in update_personality.
9071 Sometimes (for example, switching from a process with one personality
9074 current_personality is not changed, but tcp->currpers is different.
9076 tcp->currpers if it differs from the target personality.
9081 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9088 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9090 Add support for specifying compiler options for mpers builds.
9107 * Makefile.am (mpers-m%.stamp:): Pass $(mpers_CC_FLAGS) as the second
9117 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9121 * tests/filtering_syscall-syntax.test: New file.
9122 * tests/options-syntax.test: Move syscall set syntax testing
9123 to filtering_syscall-syntax.test.
9124 * tests/qual_fault-syntax.test: Likewise.
9125 * tests/qual_inject-syntax.test: Likewise.
9126 * tests/Makefile.am (MISC_TESTS): Add filtering_syscall-syntax.test.
9128 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9134 return type. Return an empty string when no syscall set is specified.
9137 * tests/qual_fault-syntax.test: Update expected output.
9138 * tests/qual_inject-syntax.test: Likewise.
9140 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9145 qualify_tokens): Use "for" loop initial declarations.
9149 parse_inject_expression, qualify_inject_common, qualify): Use "for" loop
9156 2018-01-15 Dmitry V. Levin <ldv@altlinux.org>
9186 * linux/mips/syscallent-n32.h: Likewise.
9187 * linux/mips/syscallent-n64.h: Likewise.
9188 * linux/mips/syscallent-o32.h: Likewise.
9206 * tests/qual_fault-syntax.test: Update expected output.
9227 2018-01-14 Eugene Syromyatnikov <evgsyr@gmail.com>
9243 2018-01-13 Dmitry V. Levin <ldv@altlinux.org>
9250 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9253 configure: add --disable-mpers and --enable-mpers=check options.
9255 personalities support in strace is required for proper decoding of
9263 --enable-mpers=check (automatically detect whether required mpers
9264 support could be enabled) to --enable-mpers (terminate the build
9270 * strace.spec.in: Specify --enable-mpers=check to %configure.
9272 --enable-mpers=check to configure.
9274 Suggested-by: DJ Delorie <dj@redhat.com>
9276 2018-01-11 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
9278 Update ioctl entries from linux v4.15-rc7.
9279 * linux/32/ioctls_inc_align16.h: Update from linux v4.15-rc7 using ioctls_gen.sh.
9286 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9293 initialized with mpers support data. Use it for printing the mpers
9296 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9299 In particular, check for the recent fixes in reboot syscall decoder.
9301 * tests/gen_tests.in (reboot): Provide -s 256 option.
9305 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9308 * test/reboot.c (main): Use sprintrc instead of old-style manual
9311 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9319 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9326 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9328 Search for <libiberty/demangle.h> in addition to <demangle.h>
9329 This is the location where this header is installed on Debian-based
9332 * configure.ac: Check for libiberty/demangle.h in addition to
9338 2018-01-11 Dmitry V. Levin <ldv@altlinux.org>
9343 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9348 Add indication of mpers support to strace -V output.
9351 * tests/strace-V.test: Update expected output.
9359 Add indication of optional demangle feature strace -V output.
9360 * strace.c (print_version) [USE_DEMANGLE]: Append " stack-demangle"
9362 * tests/strace-V.test: Update expected output.
9364 configure.ac: check for mpers support on RISC-V.
9367 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9372 outptr += xsnprintf(outptr, sizeof(outstr) - (outptr - outstr), ...)
9384 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9387 Introduce a macro for handling common case of partial writes
9393 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9395 Update perf-related flags.
9396 - PERF_SAMPLE_BRANCH_TYPE_SAVE, added in v4.14-rc1~173^2~33^2~6
9397 - PERF_SAMPLE_PHYS_ADDR, added in v4.14-rc1~173^2~2
9404 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9406 perf.c: add support for struct perf_event_attr.namespaces.
9407 This field was introduced by linux kernel commit v4.12-rc1~152^2~42^2~10.
9412 Update comment for __reserved_1 field.
9416 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9425 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9427 tests: check decoding of modify_ldt with for 4-byte-available user_desc.
9432 * tests/modify_ldt.c (main): Add 4-byte-sized tail_alloc'ed variable.
9435 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9442 (print_user_desc): Add an argument for signalling which part of the
9455 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9458 As part of preparation for the introduction of [gs]et_thread_area test.
9464 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9474 return code is erroneous and set tcp->u_error appropriately along with
9477 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9479 syscall.c: add support for printing return value and error code.
9481 an error (less than -4096), but it is, in fact, erroneous (because they
9482 decide to clip the return value to 32-bit, for example).
9489 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9494 ldt.c: print lm field for 64-bit tracees.
9497 for non-compat tracees (it is ignored for compat ones).
9499 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9505 * ldt.c (print_user_desc): Use PRINT_FIELD_* macros for printing
9507 (SYS_FUNC(set_thread_area)): Change field key-value separator from ":"
9510 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9513 Add a macro for printing fields explicitly casted to specific type.
9514 This is useful for bit fields, as otherwise the magic of *_extend_to_*
9519 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9522 As uid is not the only thing that has a special treatment of the -1
9529 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9535 Fixes: v4.20-134-gc46fefc ("Add tcp arguments to netlink calls")
9537 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9546 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9554 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9557 Since they call tracee-specific socket/sendmsg/recvmsg, we'd like to
9590 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9597 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9600 In preparation to passing tcp to all tracee-related syscalls.
9608 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9616 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9620 Use it for the procdir declaration and xsprintf format string argument.
9622 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9628 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9632 rename set_sigaction() to set_sighandler() for future definition of
9638 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9645 2018-01-07 Chen Jingpiao <chenjingpiao@gmail.com>
9647 .mailmap: add canonical name for Chen Jingpiao.
9648 * .mailmap: Add canonical name for Chen Jingpiao.
9650 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9656 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9658 xlat.c: add sprintxval for printing xval to string.
9662 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9730 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9736 2018-01-05 Dmitry V. Levin <ldv@altlinux.org>
9743 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9749 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9752 Let's try to future/fool-proof code a bit by introducing variants
9754 They are deemed to be the default choice for printing to some local
9755 string buffer where no sensible error handling is implemented.
9760 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9764 when the output for a billion errors and more is cut and shown
9769 (call_summary_pers): Remove error_str. Print cc->errors
9772 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9775 Otherwise the title is quite misleading for x32 personality.
9779 2018-01-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
9782 This is a part of "Prepare for adding support for Lua scripting"
9787 (update_personality): Use personality_names for reporting personality
9790 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
9792 2018-01-04 Lubomir Rintel <lkundrak@v3.sk>
9794 strace.spec.in: include Bluetooth headers for AF_BLUETOOTH sockets decoding
9797 2018-01-04 Dmitry V. Levin <ldv@altlinux.org>
9799 Lift artificial limit on output file names in -ff mode.
9801 on output file names in -ff mode, leading to the following absurd
9804 $ strace -ff -o"$(perl -e 'print "/" x 510')/$PWD/log" /bin/true
9809 * tests/options-syntax.test: Check it.
9811 2018-01-04 Dmitry V. Levin <ldv@altlinux.org>
9816 Fixes: v4.20-85-gf9c8e8a ("unwind: demangle symbol names")
9818 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9823 for i in `git grep -l 'upeek(tcp->pid'`; do \
9824 sed -i 's/upeek(tcp->pid/upeek(tcp/g' "$i"; \
9828 tcb *tcp. Use tcp->pid instead of pid in the function's body.
9830 * linux/alpha/arch_getrval2.c: Pass tcp instead of tcp->pid to the
9869 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9874 tcp->pid.
9878 call instead of tcp->pid.
9880 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9885 for i in `git grep -l 'upoke(tcp->pid'`; do \
9886 sed -i 's/upoke(tcp->pid/upoke(tcp/g' "$i"; \
9890 tcb *tcp. Use tcp->pid instead of pid in the function's body.
9893 tcp in the first argument of the upoke call instead of tcp->pid.
9919 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9926 (#include "trace_event.h"): New header, for enum trace_event.
9929 2018-01-03 Eugene Syromyatnikov <evgsyr@gmail.com>
9931 Call get_scno during startup_tcb only for forcibly attached processes.
9936 * strace.c (attach_tcb): Set TCB_GRABBED for the tcb.
9940 Reported-by: Dmitry V. Levin <ldv@altlinux.org>
9943 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9946 There's no reason to have them out of order. This also (almost) matches
9948 v4.20-64-g61c03be.
9952 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9954 strace.c: check for (non)zero argc instead of argv[0]
9958 * strace.c (init): Check for non-zero argc before/instead of argv[0].
9960 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9962 strace.1: advertise strace-log-merge.
9963 In order to raise awareness about strace-log-merge, mention it in
9964 SEE ALSO section and -ff option description.
9966 * strace.1.in (.SS Filtering) <.TP .B \-ff>: Mention strace-log-merge.
9969 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
9973 * tests/strace-k.test (result): Update regexp.
9974 * tests/strace-k-demangle.test (expected): Update expected output.
9976 tests: check strace -k symbol names demangling.
9977 * tests/strace-k-demangle.test: New test.
9978 * tests/stack-fcall-mangled.c: New file.
9979 * tests/stack-fcall-mangled-0.c: Likewise.
9980 * tests/stack-fcall-mangled-1.c: Likewise.
9981 * tests/stack-fcall-mangled-2.c: Likewise.
9982 * tests/stack-fcall-mangled-3.c: Likewise.
9983 * tests/stack-fcall.h [MANGLE] (f0, f1, f2, f3): New macros.
9984 * tests/.gitignore: Add stack-fcall-mangled.
9987 (EXTRA_DIST): Add strace-k-demangle.test.
9990 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
9992 tests: parametrize strace-k.test.
9993 Prepare for the check of strace -k symbol names demangling.
9995 * tests/strace-k.test: Parametrize $test_prog and $expected.
9996 * tests/stack-fcall.h: New file.
9997 * tests/stack-fcall.c: Include "stack-fcall.h"
9998 * tests/stack-fcall-0.c: Likewise.
9999 * tests/stack-fcall-1.c: Likewise.
10000 * tests/stack-fcall-2.c: Likewise.
10001 * tests/stack-fcall-3.c: Likewise.
10002 * tests/Makefile.am (EXTRA_DIST): Add stack-fcall.h.
10004 2017-12-26 Masatake YAMATO <yamato@redhat.com>
10013 > /usr/lib64/libc-2.25.so(__fxstat64+0x12) [0xffd62]
10014 > /usr/lib64/libc-2.25.so(_IO_file_doallocate+0x5f) [0x717ff]
10015 > /usr/lib64/libc-2.25.so(_IO_doallocbuf+0x79) [0x81699]
10016 > /usr/lib64/libc-2.25.so(_IO_file_overflow+0x198) [0x807b8]
10017 > /usr/lib64/libc-2.25.so(_IO_file_xsputn+0xbd) [0x7ed5d]
10018 > /usr/lib64/libc-2.25.so(fwrite_unlocked+0x60) [0x7d800]
10026 > /usr/lib64/libc-2.25.so(__libc_start_main+0xea) [0x2088a]
10032 * configure.ac: Add --with-libiberty option. Check cplus_demangle
10037 2017-12-26 Masatake YAMATO <yamato@redhat.com>
10039 Define macros for renaming xmalloc and xcalloc.
10040 I'm planning to link strace with libiberty for mangling C++
10041 symbol names in stack trace enabled with -k option.
10051 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10067 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10070 This opens the way for future changes related to get_regs.
10075 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10078 This make the code less confusing and opens the way for future changes
10084 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10090 * linux/mips/syscallent-o32.h [LINUX_MIPSO32] (SYS_syscall_subcall):
10098 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10101 * syscall.c (shuffle_scno): Check for ARM_FIRST_SHUFFLED_SYSCALL
10117 2017-12-24 Harsha Sharma <harshasharmaiitr@gmail.com>
10123 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10125 tests: skip nsyscalls-d.test on mips o32.
10127 so nsyscalls-d cannot work there.
10129 * tests/nsyscalls-d.test: Skip on mips o32.
10131 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10135 commit v3.8-rc1~139^2~514, there is no need for a local copy.
10139 * configure.ac (AC_CHECK_TYPES): Check for struct ptp_sys_offset
10145 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10147 Remove linux/ubi-user.h.
10148 As linux kernel provides a compatible mtd/ubi-user.h header since
10149 commit v3.7-rc1~85^2~17, there is no need for a local copy.
10151 * linux/ubi-user.h: Remove.
10154 for struct ubi_attach_req.max_beb_per1024 in <mtd/ubi-user.h>.
10159 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10161 Remove linux/mtd-abi.h.
10162 As linux kernel provides a compatible mtd/mtd-abi.h header since
10163 commit v3.2-rc1~14^2~33, there is no need for a local copy.
10165 * linux/mtd-abi.h: Remove.
10167 * configure.ac (AC_CHECK_TYPES): Check for struct mtd_write_req
10168 in <mtd/mtd-abi.h>.
10175 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10185 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10187 travis: switch from clang-3.8 to clang.
10189 it makes sense to use default clang in clang-based test builds.
10191 * .travis.yml (matrix): Change clang-3.8 to clang.
10193 2017-12-21 Eugene Syromyatnikov <evgsyr@gmail.com>
10196 * strace.1.in (.SH SEE ALSO): Add references to perf-trace(1) and
10197 trace-cmd(1).
10199 strace.1.in: clarify -F option behaviour.
10200 * strace.1.in <.TP \-F>: Extend deprecation warning. Describe behaviour
10201 of multiple instances of -F and interoperability of -F and -f.
10203 2017-12-20 Dmitry V. Levin <ldv@altlinux.org>
10207 * tests/options-syntax.test: Replace "$strace_exp" with "$STRACE_EXE".
10210 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10213 strace.c: inform the user about -F option obsolescence.
10216 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10219 Except for the ones that enabled by configure options.
10226 2017-12-20 Eugene Syromiatnikov <esyr@redhat.com>
10229 Let's keep child's death routine as minimalistic as possible for the
10234 2017-12-20 Harsha Sharma <harshasharmaiitr@gmail.com>
10240 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10243 * tests/nsyscalls-d.c: New file.
10245 * tests/nsyscalls-d.test: New test, variant of nsyscalls.test with debug
10247 * tests/nsyscalls-nd.test: Likewise.
10249 * tests/Makefile.am (check_PROGRAMS): Add nsyscalls-d.
10250 (DECODER_TESTS): Add nsyscalls-d.test and nsyscalls-nd.test.
10252 2017-12-20 Eugene Syromiatnikov <esyr@redhat.com>
10259 2017-12-14 Dmitry V. Levin <ldv@altlinux.org>
10269 2017-12-14 Eugene Syromiatnikov <esyr@redhat.com>
10280 2017-12-14 Eugene Syromiatnikov <esyr@redhat.com>
10288 2017-12-14 Dmitry V. Levin <ldv@altlinux.org>
10291 * tests/options-syntax.test: Check error diagnostics when
10294 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10301 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10313 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10320 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10322 unwind.c: non-fatal handling of asprintf error.
10323 An error returned by asprintf is a poor excuse for dying.
10327 perror_func_msg() and usage of asprintf_error_str for a return value.
10328 (queue_print): Free tmp->output line only if it is not
10331 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10343 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10355 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10358 In order to reduce boilerplate for the cases when __func__ is desired
10365 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10371 Include <stdbool.h> for the debug_flag declaration.
10373 2017-12-04 Masatake YAMATO <yamato@redhat.com>
10383 2017-12-04 Masatake YAMATO <yamato@redhat.com>
10415 2017-12-03 Eugene Syromyatnikov <evgsyr@gmail.com>
10420 Co-Authored-by: Vitaly Chaykovsky <mgspeker@gmail.com>
10422 2017-12-03 Dmitry V. Levin <ldv@altlinux.org>
10424 tests: robustify attach-p-cmd.test against buggy kernels.
10426 and fail attach-p-cmd.test with the following diagnostics:
10428 12345 --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
10429 -12345 chdir("attach-p-cmd.test -p") = -1 ENOENT (No such file or directory)
10430 …+12345 syscall_4294967295(0xffe60934, 0x1c0, 0xffe60934, 0x1, 0xffe609b4, 0xffe60a58) = -1 (errno …
10431 +12345 chdir("attach-p-cmd.test -p") = -1 ENOSYS (Function not implemented)
10436 * tests/attach-p-cmd.h: New file.
10437 * tests/Makefile.am (EXTRA_DIST): Add attach-p-cmd.h.
10438 * tests/attach-p-cmd-cmd.c: Include "attach-p-cmd.h".
10441 * tests/attach-p-cmd-p.c: Include <time.h> and "attach-p-cmd.h".
10446 2017-12-03 Dmitry V. Levin <ldv@altlinux.org>
10449 glibc between commits glibc-2.25~130 and glibc-2.26~740 had broken
10459 2017-12-01 Masatake YAMATO <yamato@redhat.com>
10472 ioctl: add a stub for decoding kvm related ioctls.
10479 2017-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
10481 strace-log-merge: work around corner cases of strace -ttt parsing.
10482 Employing strace -ttt for the logs destined to be fed to
10483 strace-log-merge is ultimately the best solution except for the logs
10505 * strace-log-merge: Generate numeric-only key for sorting, use sort -n
10508 2017-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
10510 debian: add strace-log-merge to the list of installed files.
10511 * debian/strace.install: Add strace-log-merge.
10513 Add strace-log-merge man page.
10514 * strace-log-merge.1.in: New file.
10516 * .gitignore: Add strace-log-merge.1.
10521 strace-log-merge: add copyright header.
10523 2017-11-29 Dmitry V. Levin <ldv@altlinux.org>
10526 * .gitlab-ci.yml: New file.
10527 * travis-build.sh: Print $CC -print-multi-lib. Print config.log
10529 * travis-install.sh: Check sudo availability. Install autoconf,
10530 automake, file, gawk, gcc-multilib, git, gzip, make, and xz-utils
10531 for all targets.
10532 (musl-gcc): Install ca-certificates.
10534 2017-11-25 Dmitry V. Levin <ldv@altlinux.org>
10536 mpers: fix cross-compiling.
10542 (mpers-m%.stamp): Pass it to $(srcdir)/mpers.sh.
10550 Reported-by: Rolf Eike Beer <eb@emlix.com>
10552 2017-11-22 Dmitry V. Levin <ldv@altlinux.org>
10557 INSTALL-git.md: fix typo.
10567 2017-11-21 Dmitry V. Levin <ldv@altlinux.org>
10574 * tests/bpf.c: Add macro guard for BPF_OBJ_GET_INFO_BY_FD decoder test.
10584 for union bpf_attr field checks as the former seems to be enough
10585 for the case.
10589 * configure.ac: Check for union bpf_attr.next_id.
10595 * tests/bpf.c: Add macro guard for BPF_*_GET_*_ID decoder tests.
10608 2017-11-20 Dmitry V. Levin <ldv@altlinux.org>
10611 * configure.ac: Check for union bpf_attr.test.duration.
10616 Add macro guard for BPF_PROG_TEST_RUN decoder test.
10624 2017-11-20 Dmitry V. Levin <ldv@altlinux.org>
10627 Implement decoding of union bpf_attr.numa_node field for BPF_MAP_CREATE
10628 command introduced by linux kernel commit v4.14-rc1~130^2~196^2~1.
10630 * configure.ac: Check for numa_node member of union bpf_attr
10639 2017-11-20 Eugene Syromiatnikov <esyr@redhat.com>
10648 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10652 v3.8-rc1~175^2~36.
10659 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10663 v4.14-rc1~126^2~17.
10672 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10676 argument is NAME_MAX - strlen("memfd:").
10682 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10686 v3.8-rc1~175^2~36.
10694 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10702 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10708 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10710 Provide fallback definitions for SHM_EXEC constant.
10712 v2.6.9-rc2~23^2~93^2~78, the glibc version of <sys/shm.h> did not
10713 provide SHM_EXEC until commit glibc-2.10~238.
10718 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10722 v2.6.9-rc2~23^2~93^2~78.
10724 commit v2.6.15-rc1~622.
10729 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10731 Remove fallback definitions for SHM_STAT and SHM_INFO constants.
10732 These constants are universally available for quite a long time
10737 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10749 * tests/sockopt-sol_netlink.c (main): Check NETLINK_LIST_MEMBERSHIPS
10752 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10755 * tests/sockopt-sol_netlink.c: New file.
10756 * tests/gen_tests.in (sockopt-sol_netlink): New entry.
10757 * tests/pure_executables.list: Add sockopt-sol_netlink.
10760 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10770 2017-11-15 Dmitry V. Levin <ldv@altlinux.org>
10772 net: decode optname argument of [gs]etsockopt for SOL_NETLINK level.
10781 v4.14-rc1~130^2~376^2~6.
10792 2017-11-14 Eugene Syromyatnikov <evgsyr@gmail.com>
10799 <while [ -n "${1:-}" ]; do case "$1" in>: Add -j option parsing.
10801 <git ls-files -- "$@" | grep -vFx "$IGNORED_FILES" | while read f; do>:
10805 2017-11-14 Eugene Syromyatnikov <evgsyr@gmail.com>
10807 maint/update_copyright_years.sh: use -efu shell mode.
10808 * maint/update_copyright_years.sh: Add -efu to shebang. Adjust
10809 the script for -efu shell mode.
10811 2017-11-14 Dmitry V. Levin <ldv@altlinux.org>
10813 Post-release administrivia.
10814 * NEWS: Add a header line for the next release.
10815 * debian/changelog.in: Add a changelog entry for 4.20-1.
10818 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
10820 Prepare for 4.20 release.
10821 * NEWS: Update for 4.20 release.
10823 CREDITS.in: remove entries listed by maint/gen-contributors-list.sh.
10825 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10827 Makefile.am: use gen-contributors-list.sh for CREDITS.
10828 * Makefile.am ($(srcdir)/CREDITS): Employ maint/gen-contributors-list.sh
10829 for the contributor list generation.
10831 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10833 maint: make gen-contributors-list.sh suitable for generation of CREDITS.
10834 Implement various features in order to make it suitable for the
10836 - add an option for including contributor e-mail;
10837 - add an option to read additional list of contributors from stdin;
10838 - add shorthand for referring to the initial commit of the branch;
10839 - document all of the above in a help message.
10841 * maint/gen-contributors-list.sh (print_help): New function.
10847 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
10853 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10856 Of course there are no two persons in the whole world that share
10859 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
10861 CREDITS.in: use UTF-8 consistently.
10864 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10868 v4.19-68-g48cb633, so let's fix that omission.
10872 2017-11-13 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
10878 s390x: remove some of non-s390 KVM ioctls.
10881 maint: remove KVM_PPC_CONFIGURE_V3_MMU ioctl from non-powerpc arches.
10884 2017-11-12 Dmitry V. Levin <ldv@altlinux.org>
10887 Headers updated semi-automatically using
10894 2017-11-11 Dmitry V. Levin <ldv@altlinux.org>
10898 here-document expansion.
10900 2017-11-10 Eugene Syromiatnikov <esyr@redhat.com>
10908 2017-11-10 Eugene Syromiatnikov <esyr@redhat.com>
10913 2017-11-07 Steve McIntyre <steve@einval.com>
10915 debian: update debhelper compat level to 10, replace -s with -a in some calls
10917 debian: update Standards-Version to 3.9.8.
10919 2017-11-06 Dmitry V. Levin <ldv@altlinux.org>
10921 mpers.m4: check for size of long and kernel_long_t.
10924 * m4/mpers.m4 (st_MPERS): Check for size of long and kernel_long_t.
10926 2017-11-06 Eugene Syromyatnikov <evgsyr@gmail.com>
10930 - increases the number of concurrent jobs to twice the CPU count;
10931 - creates a circular buffer, so instead of running multiple jobs
10934 - runs gen_git and gen_make concurrently in order to squeeze in
10938 up to 15% speedup with dash and about 30-40% with bash as /bin/sh
10939 on a 4-core machine.
10943 is reached, wait for the first pid in pids instead of resetting jobs
10944 to zero and waiting for all the run jobs; put gen_git and gen_make
10947 2017-11-05 Dmitry V. Levin <ldv@altlinux.org>
10952 2017-11-04 Dmitry V. Levin <ldv@altlinux.org>
10955 Starting with commit v4.17-5-gf83b49b strace is expected
10965 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
10968 Starting with commit v4.17-8-ge97a66f strace is expected
10980 2017-11-03 Eugene Syromyatnikov <evgsyr@gmail.com>
10983 Kernel commit v4.14-rc1~162^2~8 refactored futex implementation and
10984 introduced checks for invalid shift sizes. Accommodate this change
10996 2017-11-03 Eugene Syromyatnikov <evgsyr@gmail.com>
11002 2017-11-02 Dmitry V. Levin <ldv@altlinux.org>
11014 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11022 by linux kernel commit v4.14-rc2~15^2~3.
11024 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11027 Follow linux kernel commit v4.14-rc2~15^2~4 and rename SECCOMP_RET_KILL
11032 * tests/prctl-seccomp-filter-v.c (main): Update expected output.
11033 * tests/seccomp-filter-v.c (main): Likewise.
11035 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11039 by kernel commit v4.14-rc2~15^2~6.
11041 by kernel commit v4.14-rc2~15^2~9.
11043 by kernel commit v4.14-rc2~15^2~5.
11045 * tests/seccomp-filter.c (main): Update expected output.
11046 * tests/seccomp-filter-v.c (main): Likewise.
11048 Provide fallback definitions for SECCOMP_RET_* constants.
11051 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11053 tests: robustify options-syntax.test against inquisitive musl.
11057 * tests/options-syntax.test: Check for two valid variants
11060 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11064 introduced by kernel commit v4.14-rc6~26.
11067 2017-10-31 JingPiao Chen <chenjingpiao@gmail.com>
11097 2017-10-26 JingPiao Chen <chenjingpiao@gmail.com>
11114 2017-10-26 JingPiao Chen <chenjingpiao@gmail.com>
11117 Refactor decode_nlmsg_flags to make it family-specific, just like
11126 2017-10-14 JingPiao Chen <chenjingpiao@gmail.com>
11129 When using linux kernel headers without commit v4.5-rc1~128^2~115^2~22
11130 ("netfilter: fix include files for compilation"), both <linux/ip.h>
11134 and <linux/tcp.h> when checking for linux/netfilter/xt_osf.h header.
11138 2017-09-24 JingPiao Chen <chenjingpiao@gmail.com>
11246 2017-09-20 Dmitry V. Levin <ldv@altlinux.org>
11248 ppc64: fix sigreturn parser for ppc personality.
11251 ppc64: truncate syscall args for 32-bit personality tracees.
11253 32 bits of syscall args for 32-bit personality tracees.
11256 ppc64: fix PRI__64 macro definition when compiled with -m32.
11257 * kernel_types.h [SIZEOF_LONG != 4]: Check for __powerpc64__ instead
11258 of POWERPC to handle -m32 case properly.
11260 2017-09-19 Dmitry V. Levin <ldv@altlinux.org>
11266 Update ioctl entries from linux v4.14-rc1.
11267 * linux/32/ioctls_inc_align16.h: Update from linux v4.14-rc1
11274 by kernel commit v4.13-rc7-176-g89e4fde.
11278 2017-09-19 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
11286 This approach allows to generate ioctl entries for any target
11292 (CFLAGS): Add -gdwarf-2.
11295 Change asm-generic/ioctl.h and asm/ioctl.h hook.
11299 2017-09-18 Dmitry V. Levin <ldv@altlinux.org>
11301 Remove KVM_S390_* ioctls from non-s390 architectures.
11303 Use it to exclude KVM_S390_* ioctls on non-s390 architectures.
11310 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11312 Remove some of arch-specific KVM ioctls from non-matching architectures.
11314 expressions to generalize arch-specific regular expressions.
11321 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11323 dm: add support for DM_DEV_ARM_POLL.
11324 Added in Linux commit v4.13-rc1~137^2~14.
11334 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11337 * configure.ac (AC_CHECK_TYPES): Add check for struct kcmp_epoll_slot.
11343 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11345 tests: add kcmp-y test.
11349 * tests/gen_tests.in (kcmp-y): New test.
11350 * tests/kcmp-y.c: New file, wrapper for kcmp.c
11351 * tests/kcmp.c: Add opening of some files for which info may be printed
11353 * tests/pure_executables.list: Add kcmp-y.
11356 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11359 This is a preparation for the future introduction of cross-NS PID
11360 derivation, which would enable us to print fd information for fds
11363 Note the change in output type for idx1/idx2 in KCMP_FILE command from
11368 (SYS_FUNC(kcmp)) <case KCMP_FILE>: Use printpidfd for printing
11371 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11377 * tests/gen_tests.in (kcmp): Decrease -a argument's value from 27 to 22.
11378 * tests/kcmp.c: Add checks for upper bits of pid1/pid2 and for all
11381 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11385 in order to also check for possible discrepancies between strace's
11392 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11406 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11409 Extend TEST_NESTED_NLATTR_OBJECT macro for multi-nested netlink
11425 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11428 * configure.ac (AC_CHECK_TYPES): Check for struct br_mdb_entry
11430 (AC_CHECK_MEMBERS): Check for flags and vid fields in struct br_mdb_entry.
11451 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11455 v4.14-rc1~130^2~207.
11461 * xlat/inet_diag_extended_flags.in: Add 1<<(INET_DIAG_CLASS_ID-1).
11465 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11469 introduced by kernel commit v4.14-rc1~174^2^2^4.
11475 by kernel commit v4.11-rc2~15^2~18.
11477 commits v4.14-rc1~126^2~28 and v4.14-rc1~126^2~23, repsectively.
11482 by kernel commit v4.14-rc1~126^2~17.
11488 and ETH_P_MAP introduced by kernel commits v4.14-rc1~130^2~164,
11489 v4.14-rc1~130^2~89^2~3, v4.14-rc1~130^2~90^2~2, and
11490 v4.14-rc1~130^2~78^2~2, respectively.
11495 by kernel commit v4.14-rc1~130^2~78^2~1.
11501 v4.14-rc1~130^2~123^2~8.
11503 introduced by kernel commits v4.10-rc1~202^2~271^2~2
11504 and v4.14-rc1~130^2~196^2~1, respectively.
11507 v4.14-rc1~130^2~497^2~4 and v4.14-rc1~130^2~234^2~4,
11510 introduced by kernel commit v4.14-rc1~130^2~309^2~8.
11512 by kernel commit v4.14-rc1~130^2~234^2~6.
11517 v4.14-rc1~130^2~376^2~5.
11522 introduced by kernel commit v4.14-rc1~126^2.
11525 2017-09-08 Baruch Siach <baruch@tkos.co.il>
11528 uClibc-ng declares program_invocation_name as const.
11531 error_prints.c:40:14: error: conflicting types for ‘program_invocation_name’
11535 ….../output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/errno.h:54:20: note: previous de…
11542 2017-09-07 JingPiao Chen <chenjingpiao@gmail.com>
11566 * configure.ac (AC_CHECK_TYPES): Check for gnet_stats_basic,
11569 And check for struct tc_sizespec in <linux/pkt_sched.h>.
11584 2017-09-07 Dmitry V. Levin <ldv@altlinux.org>
11594 2017-09-06 Dmitry V. Levin <ldv@altlinux.org>
11596 Post-release administrivia.
11597 * NEWS: Add a header line for the next release.
11598 * debian/changelog.in: Add a changelog entry for 4.19-1.
11601 2017-09-05 Dmitry V. Levin <ldv@altlinux.org>
11603 Prepare for 4.19 release.
11604 * NEWS: Update for 4.19 release.
11610 maint: add gen-tag-message.sh script.
11611 * maint/gen-tag-message.sh: New file.
11613 maint: add gen-contributors-list.sh script.
11614 * maint/gen-contributors-list.sh: New file.
11616 2017-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
11621 maint/update_copyright_headers.sh -c
11623 2017-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
11628 <-c>: New option, implies -a, calls git commit with GIT_COMMIT_TEMPLATE string
11631 2017-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
11641 2017-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
11645 2017-09-03 JingPiao Chen <chenjingpiao@gmail.com>
11665 * configure.ac (AC_CHECK_TYPES): Check for struct ifla_port_vsi
11685 2017-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
11687 keyctl: add support for KDF parameters decoding in KEYCTL_DH_COMPUTE.
11691 * configure.ac: Add check for struct keyctl_kdf_params presence in
11703 (main): Update expected output, add checks for struct keyctl_kdf_params
11716 2017-09-01 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
11719 * linux/s390/ioctls_arch0.h: Update from linux v4.13-rc7 using ioctls_gen.sh.
11721 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11726 Fixes: v4.18-308-gfd3447b5 ("mpers.awk: declare local variables consistently")
11728 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11739 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11749 2017-09-01 JingPiao Chen <chenjingpiao@gmail.com>
11759 * configure.ac (AC_CHECK_TYPES): Check for ifla_bridge_id
11772 * configure.ac (AC_CHECK_TYPES): Check for ndt_config
11774 (AC_CHECK_MEMBERS): Check for ndts_table_fulls field in struct ndt_stats.
11789 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11794 2017-08-31 JingPiao Chen <chenjingpiao@gmail.com>
11799 2017-08-31 Dmitry V. Levin <ldv@altlinux.org>
11806 2017-08-30 Dmitry V. Levin <ldv@altlinux.org>
11812 2017-08-29 Dmitry V. Levin <ldv@altlinux.org>
11815 The attribute of FRA_TABLE is not just a 32-bit integer, some constants
11816 have well-known symbolic names like RT_TABLE_DEFAULT.
11823 2017-08-29 Dmitry V. Levin <ldv@altlinux.org>
11826 The attribute of RTA_TABLE is not just a 32-bit integer, some constants
11827 have well-known symbolic names like RT_TABLE_DEFAULT.
11834 2017-08-29 JingPiao Chen <chenjingpiao@gmail.com>
11865 (AC_CHECK_TYPES): Check for struct fib_rule_uid_range
11882 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11886 makes no sense.
11891 * tests/qual_inject-syntax.test: Check it.
11893 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11910 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11918 for the new layout of struct inject_opts.
11922 2017-08-28 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
11924 Update ioctl entries from linux v4.13-rc7.
11925 * linux/32/ioctls_inc_align16.h: Update from linux v4.13-rc7 using ioctls_gen.sh.
11937 2017-08-28 JingPiao Chen <chenjingpiao@gmail.com>
11947 (AC_CHECK_TYPES): Check for struct rtnl_link_stats64
11949 (AC_CHECK_MEMBERS): Check for rx_nohandler field
11957 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11994 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
11996 Replace return 1 ioctl sub-decoder hack with proper flag.
11997 * defs.h (RVAL_IOCTL_PARSED): Introduce new flag for ioctl sub-decoders
11999 * ioctl.c (SYS_FUNC(ioctl)): Check for RVAL_IOCTL_PARSED flag, remove
12000 un-set it before returning the value.
12023 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12037 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12046 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12055 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12064 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12073 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12077 As returning 1 (without RVAL_DECODED) on entering makes no sense.
12088 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12094 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12097 syscall.c: define personality names for all multi-personality architectures
12098 I see no reason for not having these definitions for SPARC64 and RISC-V.
12102 <PERSONALITY_NAMES>: Define it for these architectures.
12104 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12106 copyright-year-gen: workaround for old git versions.
12108 v4.18-278-g295cf32.
12110 * copyright-year-gen <year>: Change format to format:%cD, remove --date,
12111 supply output as a -d option argument to date +%Y.
12113 2017-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
12118 * term.c (decode_termios): Use print_quoted_string for printing c_cc field
12121 2017-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
12123 update_copyright_years.sh: workaround for old git versions.
12125 date format with --date, working this around by processing git log output
12129 last_commit_year>: Change format to format:%aD, remove --date, supply
12130 output as a -d option argument to date +%Y.
12132 2017-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
12134 syscall: use spaces in tile personality names, de-duplicate definition.
12135 As Chris Metcalf, the author of v4.7-40-g0b99a8a, told in private, there
12136 is no strong reason for having tile's personality name different from
12139 name definitions for various architectures.
12144 2017-08-26 JingPiao Chen <chenjingpiao@gmail.com>
12154 * configure.ac (AC_CHECK_TYPES): Check for
12168 2017-08-25 Dmitry V. Levin <ldv@altlinux.org>
12177 2017-08-24 Dmitry V. Levin <ldv@altlinux.org>
12183 2017-08-24 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
12185 Add macros for testing QUAL_* flags.
12186 * defs.h (traced, raw, inject): Add macros for testing QUAL_TRACE,
12190 2017-08-24 Dmitry V. Levin <ldv@altlinux.org>
12198 2017-08-24 Eugene Syromiatnikov <evgsyr@gmail.com>
12208 2017-08-23 Dmitry V. Levin <ldv@altlinux.org>
12215 that the kernel is mips n64, even if "uname -m" claims it's mips.
12217 2017-08-22 Dmitry V. Levin <ldv@altlinux.org>
12274 2017-08-22 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
12278 redundant (and sometimes conflicting) for other binaries included
12287 2017-08-22 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
12301 2017-08-22 JingPiao Chen <chenjingpiao@gmail.com>
12316 2017-08-22 Dmitry V. Levin <ldv@altlinux.org>
12323 netlink_inet_diag: prepare decode_inet_addr for export.
12329 2017-08-20 Dmitry V. Levin <ldv@altlinux.org>
12332 Prepare print_inet_addr for use in structureless contexts where
12333 no structure field name is available.
12337 2017-08-19 Dmitry V. Levin <ldv@altlinux.org>
12343 2017-08-18 Dmitry V. Levin <ldv@altlinux.org>
12352 This condition is triggered and therefore tested by prctl-dumpable test.
12357 2017-08-17 Dmitry V. Levin <ldv@altlinux.org>
12362 <AC_CHECK_TYPES([struct statfs64])>: Likewise, for checks
12365 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12367 tests: fix a few harmless -Woverflow compilation warnings.
12372 xettimeofday.c:76:16: warning: overflow in implicit constant conversion [-Woverflow]
12373 tv->tv_usec = (long) 0xbadc0dedfacefeedLL;
12375 xetitimer.c:170:28: warning: overflow in implicit constant conversion [-Woverflow]
12376 p_new->it_value.tv_usec = (long) 0xbadc0dedfacefeedLL;
12379 xutimes.c:110:18: warning: overflow in implicit constant conversion [-Woverflow]
12382 futimesat.c:121:18: warning: overflow in implicit constant conversion [-Woverflow]
12386 xselect.c:94:16: warning: overflow in implicit constant conversion [-Woverflow]
12387 tv->tv_usec = (long) 0xbadc0dedfacefeedLL;
12396 Reported-by: Anatoly Pugachev <matorola@gmail.com>
12398 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12403 was aware about this arch-specific detail from the beginning, in one
12404 of many sigaction syscall invocations a non-negative signal number
12407 * tests/sigaction.c (ADDR_INT, SIGNO_INT): New arch-specific macros.
12410 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12413 Do not print more than "nlattr.nla_len - NLA_HDRLEN" bytes
12416 * nlattr.c (decode_nlattr_with_data): Specify "nla_len - NLA_HDRLEN"
12417 instead of "len - NLA_HDRLEN" as the size of unrecognized attribute
12421 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12429 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12437 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12445 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12454 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12462 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12471 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12479 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12488 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12496 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12505 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12513 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12521 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12529 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12537 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12545 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12553 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12561 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12569 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12577 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12585 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12593 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12601 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12609 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12617 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12625 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12633 2017-08-15 Dmitry V. Levin <ldv@altlinux.org>
12636 * tests/test_nlattr.h: Include <stdint.h> for definition of uint16_t
12640 * tests/netlink_route.c: Do not check for HAVE_IF_INDEXTONAME.
12645 * tests/netlink_sock_diag.c: Do not check for HAVE_IF_INDEXTONAME.
12650 * tests/nlattr_inet_diag_msg.c: Do not check for HAVE_IF_INDEXTONAME.
12655 for HAVE_IF_INDEXTONAME.
12659 * tests/nlattr_inet_diag_req_v2.c: Do not check for HAVE_IF_INDEXTONAME.
12664 * tests/nlattr_packet_diag_msg.c: Do not check for HAVE_IF_INDEXTONAME.
12670 tests/net-sockaddr: use ifindex_lo and IFINDEX_LO_STR.
12671 * tests/net-sockaddr.c (if_nametoindex): Remove declaration.
12680 tests/inet-cmsg: use IFINDEX_LO_STR.
12681 * tests/inet-cmsg.c (print_pktinfo): Use IFINDEX_LO_STR instead
12685 * tests/ip_mreq.c: Do not check for HAVE_IF_INDEXTONAME.
12690 * tests/group_req.c: Do not check for HAVE_IF_INDEXTONAME.
12700 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12707 2017-08-14 Eugene Syromyatnikov <evgsyr@gmail.com>
12713 checked for fd match in poll family syscalls to 1024 * 1024.
12717 family syscalls for fd match, break the loop on first failed umove call.
12719 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12723 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12747 * configure.ac (AC_CHECK_TYPES): Check for struct br_port_msg
12761 * configure.ac (AC_CHECK_TYPES): Check for struct netconfmsg
12776 (AC_CHECK_TYPES): Check for struct dcbmsg in <linux/dcbnl.h>.
12789 * configure.ac (AC_CHECK_TYPES): Check for struct ifaddrlblmsg
12884 2017-08-13 JingPiao Chen <chenjingpiao@gmail.com>
12897 2017-08-13 Eugene Syromyatnikov <evgsyr@gmail.com>
12907 2017-08-11 JingPiao Chen <chenjingpiao@gmail.com>
12913 2017-08-11 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
12917 but inotify_add_watch has no TF flag set.
12931 * linux/mips/syscallent-n32.h: Likewise.
12932 * linux/mips/syscallent-n64.h: Likewise.
12933 * linux/mips/syscallent-o32.h: Likewise.
12946 2017-08-11 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
12951 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12957 Generate date for the man page.
12958 * Makefile.am (dist-hook): Add .strace.1.in.date generation.
12964 Add script for generating date of the last commit for specific file.
12965 * file-date-gen: New auxiliary script.
12972 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12975 Also, add .OM and .OR macros and use { ... | ... } syntax for indicating
12979 (.SH SYNOPSYS): Format using .SY/.OP/.OM/.OR. Put -p/command inside
12982 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12984 strace.1: remove date from .TH, as it is no longer relevant.
12987 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12994 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12996 strace.1: replace .TP with .TQ between command-line option variants.
13002 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
13016 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13036 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13048 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13063 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13072 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13078 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13081 Prepare for decoding of NETLINK_KOBJECT_UEVENT. Messages of the latter,
13085 (get_fd_nl_family): Replace NL_FAMILY_ERROR with -1.
13087 Skip family specific type decoders for type < NLMSG_MIN_TYPE.
13089 for type < NLMSG_MIN_TYPE && type != NLMSG_DONE.
13093 2017-08-07 Dmitry V. Levin <ldv@altlinux.org>
13095 Make sysent_shorthand_defs.h suitable for tests.
13101 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
13105 notations for macros defined in sysent.h by moving definitions
13113 2017-08-07 JingPiao Chen <chenjingpiao@gmail.com>
13118 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
13136 * xmalloc.c: Include "config.h", <stdlib.h>, <string.h>,
13142 2017-08-07 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13144 tests: move check_* functions from options-syntax.test to separate file.
13145 * tests/options-syntax.test: Move check_* functions to ...
13149 2017-08-07 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13161 2017-08-06 Dmitry V. Levin <ldv@altlinux.org>
13165 Remove the dance around possible re-injection of WSTOPSIG(status)
13166 as the only observable stop here is the initial ptrace-stop.
13172 distinguish signal stops that should be re-injected from other kinds
13174 of initial ptrace-stop.
13180 2017-08-06 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13184 disable pathtracing for inotify_init.
13186 2017-08-06 Dmitry V. Levin <ldv@altlinux.org>
13190 (line_ended, droptcb, print_event_exit): Use it to flush tcp->outf.
13209 2017-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
13220 2017-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
13225 - detach it instead of PTRACE_CONT'ing;
13226 - send it the signal with which it has been stopped.
13234 2017-08-04 Dmitry V. Levin <ldv@altlinux.org>
13244 2017-08-04 Dmitry V. Levin <ldv@altlinux.org>
13249 cleared. As this is not a fatal condition for get_scno, do not bail out
13252 This condition is triggered and therefore tested by prctl-dumpable test.
13257 2017-08-02 Dmitry V. Levin <ldv@altlinux.org>
13260 * tests/printstrn-umoven.c: New file.
13261 * tests/printstrn-umoven-peekdata.c: Likewise.
13262 * tests/printstrn-umoven-undumpable.c: Likewise.
13263 * tests/printstrn-umoven-legacy.test: New test.
13264 * tests/Makefile.am (MISC_TESTS): Add printstrn-umoven-legacy.test.
13265 * tests/gen_tests.in (printstrn-umoven, printstrn-umoven-peekdata,
13266 printstrn-umoven-undumpable): New entries.
13267 * tests/pure_executables.list: Add printstrn-umoven,
13268 printstrn-umoven-peekdata, and printstrn-umoven-undumpable.
13276 2017-08-01 Dmitry V. Levin <ldv@altlinux.org>
13280 * tests/printpath-umovestr.c: New file.
13281 * tests/printpath-umovestr-peekdata.c: Likewise.
13282 * tests/printpath-umovestr-undumpable.c: Likewise.
13283 * tests/printpath-umovestr-legacy.test: New test.
13284 * tests/Makefile.am (MISC_TESTS): Add printpath-umovestr-legacy.test.
13285 * tests/gen_tests.in (printpath-umovestr, printpath-umovestr-peekdata,
13286 printpath-umovestr-undumpable): New entries.
13287 * tests/pure_executables.list: Add printpath-umovestr,
13288 printpath-umovestr-peekdata, and printpath-umovestr-undumpable.
13301 2017-08-01 Dmitry V. Levin <ldv@altlinux.org>
13305 pathnames, treating non-NUL-terminated pathnames as ENAMETOOLONG.
13308 (printpath): Specify PATH_MAX - 1 as the maximum pathname length
13310 up to PATH_MAX bytes from tracee's memory, but no more than first
13311 PATH_MAX - 1 bytes will be printed.
13313 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13319 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13322 Move legacy PTRACE_PEEKDATA-based support to separate functions.
13327 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13334 2017-07-31 Eugene Syromyatnikov <evgsyr@gmail.com>
13341 after non-liability disclaimer (or "(none)" in case it is empty).
13342 (print_version) [USE_LIBUNWIND]: Concatenate "stack-unwind" into features
13344 * tests/strace-V.tests (getoption): New function.
13347 2017-07-31 Eugene Syromyatnikov <evgsyr@gmail.com>
13349 tests/strace-V.test: rename getval to getstr.
13352 * tests/strace-V (getval): Rename to getstr, update all call sites.
13354 2017-07-30 Dmitry V. Levin <ldv@altlinux.org>
13356 ucopy: refactor the check for invalid tracee addresses.
13364 2017-07-29 Dmitry V. Levin <ldv@altlinux.org>
13370 2017-07-28 Dmitry V. Levin <ldv@altlinux.org>
13373 These functions are more kernel-specific compared to all other functions
13380 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13401 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13405 for BPF_MAP_CREATE command introduced by linux kernel commits
13406 v4.6-rc1~91^2~108^2~6 and v4.12-rc1~64^3~373^2~2, respectively.
13408 * configure.ac: Check for inner_map_fd member of union bpf_attr
13420 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13423 Implement decoding of union bpf_attr.prog_flags field for BPF_PROG_LOAD
13424 command introduced by linux kernel commit v4.12-rc2~34^2~29^2~2.
13426 * configure.ac: Check for prog_flags member of union bpf_attr
13436 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13441 * tests/bpf-v.c: New file.
13442 * tests/gen_tests.in (bpf-v): New entry.
13443 * tests/pure_executables.list: Add bpf-v.
13454 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13456 bpf: print unused fields of union bpf_attr if one of them is non-zero.
13457 When the size argument specifies more data than necessary for the given
13459 zero. Print this extra data when it contains non-zero bytes to enhance
13472 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13487 to command-specific parsers.
13489 2017-07-25 Dmitry V. Levin <ldv@altlinux.org>
13513 2017-07-25 Eugene Syromyatnikov <evgsyr@gmail.com>
13523 2017-07-24 Dmitry V. Levin <ldv@altlinux.org>
13526 In many places where kernel expects a NUL-terminated string of length
13527 up to a known fixed limit, e.g. when a NUL-terminated string is
13528 a fixed-size field of a structure, strace does not print the last byte
13531 Change output format for such strings to distinguish NUL-terminated
13532 strings from non-NUL-terminated ones: append ellipsis to the output
13533 when the string is not NUL-terminated.
13553 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13567 * configure.ac (AC_CHECK_TYPES): Check for crypto_report_aead,
13585 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13596 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13605 2017-07-23 Dmitry V. Levin <ldv@altlinux.org>
13615 2017-07-23 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13617 pathtrace: fix fanotify_mark path tracing on 32-bit architectures.
13618 The fanotify_mark syscall takes a 64-bit mask, and on 32-bit
13624 2017-07-22 Dmitry V. Levin <ldv@altlinux.org>
13627 * travis-build.sh [CHECK == valgrind]: Pass --enable-valgrind
13628 to configure and appropriate check-valgrind-* to make.
13629 * travis-install.sh [CHECK == valgrind]: Install valgrind.
13631 2017-07-22 JingPiao Chen <chenjingpiao@gmail.com>
13637 so technically there is no difference, but the use of wrong macro
13647 2017-07-22 Dmitry V. Levin <ldv@altlinux.org>
13650 Dependency tracking is completely useless for one-time builds,
13653 * travis-build.sh (DISTCHECK_CONFIGURE_FLAGS): Add
13654 --disable-dependency-tracking.
13656 2017-07-22 Eugene Syromyatnikov <evgsyr@gmail.com>
13659 Support for providing equal sign in define directives has been added
13670 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13672 keyctl: add support for KEYCTL_RESTRICT_KEYRING operation.
13678 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13680 tests: robustify strace-t.test.
13681 If strace -t is running too long, it might happen that time stamps
13682 before and after its invocation differ for more than a second.
13685 * tests/strace-t.test: Allow any time stamp between start and finish
13688 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13692 * xlat/archvals.in: Add fallback definitions for constants.
13694 (SYS_FUNC(arch_prctl)): Enable for [I386].
13697 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13699 tests: tweak strace-ff.test for slow startup case.
13703 * tests/strace-ff.test: Increase sleep delay.
13705 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13708 * tests/strace.supp: Add a suppression for the memleak before
13711 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13714 There is no need to copy the optarg string since it is a pointer
13721 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13724 * travis-build.sh: Print build environment information.
13726 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13728 build: add check-valgrind-* to recursive targets.
13729 As make -j$N check-valgrind cannot parallelize properly, add
13730 recursive targets for each of valgrind checks. This way one can run
13731 for t in $valgrind_enabled_tools; do
13732 make -k check-valgrind-$n || rc=$?
13737 * m4/ax_valgrind_check.m4 (AX_VALGRIND_CHECK): Add check-valgrind
13738 and check-valgrind-* to AM_EXTRA_RECURSIVE_TARGETS.
13740 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13742 tests: add check-valgrind-local make rule.
13744 are made on 'make check-valgrind' before its recipe is processed.
13746 * tests/Makefile.am (check-valgrind-local): New rule.
13749 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13754 and 'make check-valgrind' before other targets are processed.
13759 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13765 Fixes: v4.16-74-g16036030 ("tests: run every test except ksysent.test in its own subdirectory")
13767 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13771 this version does not eat check-valgrind errors.
13775 this version has no lcov version check.
13781 commit v4.13-rc1~13^2~1^2~1.
13786 v4.13-rc1~161^2~87.
13789 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13791 Move family-specific NETLINK_SOCK_DIAG parsers to separate files.
13802 * netlink_sock_diag.c: Move family-specific parsers and associated
13809 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13839 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
13855 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
13857 netlink: adjust decode_nlmsgerr for extended ACK reporting.
13859 v4.11-rc5-1382-g2d4bc93.
13863 nlmsghdr->nlmsg_flags & NLM_F_CAPPED to decode_nlmsgerr.
13867 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
13877 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13898 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13901 As struct uffdio_api.features has read-write semantics,
13910 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13913 This also fixes output correctness for struct uffdio_api.features.
13921 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13926 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13935 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13938 This also fixes output correctness for struct iocb.
13946 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13951 2017-07-16 Dmitry V. Levin <ldv@altlinux.org>
13957 v4.12-rc1~64^3~287^2~5, v4.13-rc1~157^2~271^2~5,
13958 v4.13-rc1~157^2~271^2~4, v4.13-rc1~157^2~271^2~3, and
13959 v4.13-rc1~157^2~271^2~1, respectively.
13961 by linux kernel commit v4.13-rc1~157^2~37^2~15.
13967 commit v4.13-rc1~157^2~124.
13971 by linux kernel commit v4.13-rc1~157^2~405^2~3.
13973 2017-07-16 JingPiao Chen <chenjingpiao@gmail.com>
13989 2017-07-15 Dmitry V. Levin <ldv@altlinux.org>
14000 2017-07-15 Dmitry V. Levin <ldv@altlinux.org>
14002 Provide mpers_ptr_t definition for non-mpers case.
14008 2017-07-14 Lazar Trsic <Lazar.Trsic@imgtec.com>
14012 and include it just for architectures which require it.
14019 defined in C files and will issue a -Wunused-function warrning
14046 2017-07-14 Dmitry V. Levin <ldv@altlinux.org>
14059 2017-07-13 Dmitry V. Levin <ldv@altlinux.org>
14071 2017-07-13 Lazar Trsic <Lazar.Trsic@imgtec.com>
14073 mips64: fix PRI__64 macro definition when compiled for Android.
14074 By default for MIPS64 in Android __u64 type is exported
14075 as unsigned long long. This caused compilation -Wformat warnings
14076 and would break the build if -Werror is used.
14081 2017-07-13 Dmitry V. Levin <ldv@altlinux.org>
14084 This also fixes output correctness for struct blkpg_ioctl_arg.
14090 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14102 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14107 v4.18-58-g37ef2d0d.
14109 * tests/netlink_sock_diag.c (test_netlink_diag_req): Add a check for
14112 2017-07-12 JingPiao Chen <chenjingpiao@gmail.com>
14148 2017-07-11 JingPiao Chen <chenjingpiao@gmail.com>
14174 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
14191 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
14195 for the helper macro.
14200 2017-07-10 Dmitry V. Levin <ldv@altlinux.org>
14204 commit v4.12-rc5-150-gb745fafa.
14213 print_inet_addr: use inet_addr-based output format for IPv4.
14215 <AF_INET>: Use inet_addr-based output format.
14222 2017-07-10 JingPiao Chen <chenjingpiao@gmail.com>
14239 2017-07-10 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
14241 pathtrace.c: introduce user-provided sets of paths.
14254 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14262 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14273 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14281 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14283 net: hook up MCAST_JOIN_GROUP/MCAST_LEAVE_GROUP decoding for SOL_IPV6.
14284 As multicast socket options are shared between IPv4 and IPv6,
14285 they should be decoded both for SOL_IP and SOL_IPV6.
14290 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14293 Multicast socket options are shared between IPv4 and IPv6.
14299 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14326 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14335 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14399 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14403 * tests/netlink_sock_diag-v.sh: New file.
14423 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14425 tests: fix TEST_NLATTR_OBJECT and TEST_NLATTR_ARRAY for large objects.
14426 commit v4.17-161-gdbd0605 that adjusted TEST_NLATTR_OBJECT and
14427 TEST_NLATTR_ARRAY for large objects, only changed the pattern
14437 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14445 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14453 net: accept arbitrary option length for getsockopt's SO_PEERCRED.
14459 * tests/sock_filter-v.c: New file.
14460 * tests/gen_tests.in (sock_filter-v): New entry.
14461 * tests/pure_executables.list: Add sock_filter-v.
14471 socket filter programs for SO_GET_FILTER socket option.
14473 to print socket filter programs for SO_ATTACH_FILTER
14492 net: accept arbitrary option length for getsockopt's SO_LINGER.
14500 net: accept large option length for SO_LINGER.
14508 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14511 As the last argument of getsockopt syscall has read-write semantics,
14519 * tests/net-icmp_filter.c (main): Update expected output.
14521 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14529 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14559 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14567 * tests/prctl-seccomp-filter-v.c: Likewise.
14568 * tests/seccomp-filter-v.c: Likewise.
14569 * tests/seccomp-filter.c: Likewise.
14571 2017-07-07 Dmitry V. Levin <ldv@altlinux.org>
14574 BPF_END is one of three eBPF-only opcodes for BPF_ALU class.
14579 2017-07-07 JingPiao Chen <chenjingpiao@gmail.com>
14615 for updated expected output. Change the type of "plen" variable
14630 2017-07-06 Dmitry V. Levin <ldv@altlinux.org>
14632 strace.1: remove misleading remark that -i option is weakly supported.
14633 Given that -i functionality is covered by pc.test, the remark that
14636 * strace.1 (BUGS): Remove the remark about weakly supported -i option.
14638 2017-07-06 Dmitry V. Levin <ldv@altlinux.org>
14640 Post-release administrivia.
14641 * NEWS: Add a header line for the next release.
14642 * debian/changelog.in: Add a changelog entry for 4.18-1.
14645 2017-07-05 Dmitry V. Levin <ldv@altlinux.org>
14647 Prepare for 4.18 release.
14648 * NEWS: Update for 4.18 release.
14650 2017-07-04 Dmitry V. Levin <ldv@altlinux.org>
14661 2017-07-04 Dmitry V. Levin <ldv@altlinux.org>
14665 2017-07-04 Romain Naour <romain.naour@smile.fr>
14668 Starting with linux commit v4.0-rc4~21^2, "SP" register
14677 Fixes: v4.16-34-g6117728a ("nios2: export nios2_sp_ptr")
14679 2017-07-03 Eugene Syromyatnikov <evgsyr@gmail.com>
14682 tests: add multi-process check to qual_fault.test.
14683 Check that syscall counters used for tampering are per-tcb.
14685 * tests/qual_fault.c: Include <fcntl.h> for open(),
14686 <sys/param.h> for PATH_MAX, and <sys/wait.h> for wait().
14689 (out_fd): New variable, for the expected strace output.
14694 initialization. Add per-process loop, open expfd, gotfd, out_fd, pidfd
14696 Add wait() call for each forked process.
14699 (check_fault_injection): Take additional argument for the process
14700 count, pass it to qual_fault, add filename variables for expected strace
14702 Specify -ff parameter to strace invocation.
14703 Compare write and strace output for the each process.
14708 2017-07-03 Dmitry V. Levin <ldv@altlinux.org>
14710 tests: adjust TEST_NLATTR_OBJECT and TEST_NLATTR_ARRAY for large objects
14712 support for objects larger than DEFAULT_STRLEN.
14718 Reported-by: JingPiao Chen <chenjingpiao@gmail.com>
14720 2017-07-03 Dmitry V. Levin <ldv@altlinux.org>
14738 Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
14740 2017-07-03 Eugene Syromyatnikov <evgsyr@gmail.com>
14743 * tests/init.sh (match_diff): Add -u option to the diff invocation.
14745 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14753 * tests/options-syntax.test: Check strace error diagnostics
14756 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14761 * configure.ac: Check for program_invocation_name variable.
14767 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14777 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14780 Introduce a separate header file for generic macros shared between
14790 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14797 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14815 * tests/quotactl-xfs.c: Update callers of PRINT_FIELD_* macros.
14825 2017-07-01 Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
14833 Fixes: v4.16-31-g134042a5 ("arc: export arc_sp_ptr")
14835 2017-07-01 Khem Raj <raj.khem@gmail.com>
14844 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14854 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14862 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14868 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14879 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14886 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14896 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14904 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14910 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14921 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14933 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14943 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14948 uint8_t, and zero-terminated string attributes.
14950 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14964 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
14972 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14980 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14992 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15005 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
15014 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15029 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15036 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15060 2017-06-29 Dmitry V. Levin <ldv@altlinux.org>
15071 2017-06-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
15073 Update ioctl entries from linux v4.12-rc7.
15074 * linux/32/ioctls_inc_align16.h: Update from linux v4.12-rc7
15082 2017-06-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
15086 it into several lists and then passes them to grep. If no headers from
15087 a list match the grep pattern, grep exits with a non-zero status that
15088 causes xargs to exit with a non-zero status, too.
15090 * maint/ioctls_sym.sh: Use "find -exec +" instead of xargs,
15093 2017-06-27 JingPiao Chen <chenjingpiao@gmail.com>
15099 2017-06-27 JingPiao Chen <chenjingpiao@gmail.com>
15108 for nlmsg_type == NLMSG_DONE.
15110 for type == NLMSG_DONE.
15112 for type == NLMSG_DONE.
15113 (decode_netlink_sock_diag): Skip for nlmsg_type == NLMSG_DONE.
15115 2017-06-26 Dmitry V. Levin <ldv@altlinux.org>
15127 2017-06-26 Dmitry V. Levin <ldv@altlinux.org>
15129 Check -s argument early.
15130 * util.c (printstr_ex): Move the check that -s argument
15131 does not exceed -1U / 4 ...
15133 * tests/options-syntax.test: Check it.
15135 2017-06-25 Dmitry V. Levin <ldv@altlinux.org>
15141 * tests/net-sockaddr.c: Likewise.
15149 * tests/net-yy-netlink.c: Include "netlink.h" instead
15157 2017-06-24 Dmitry V. Levin <ldv@altlinux.org>
15167 2017-06-23 Dmitry V. Levin <ldv@altlinux.org>
15171 introduced by linux kernel commit v4.12-rc1~153^2~2.
15173 2017-06-22 Dmitry V. Levin <ldv@altlinux.org>
15177 by linux kernel commit v4.12-rc1~85^2~71.
15182 introduced by linux kernel commits v3.17-rc1~112^2~363,
15183 v4.1-rc1~59^2~1^2~63, and v4.12-rc1~85^2~62, respectively.
15186 v3.17-rc1~112^2~343 and v3.17-rc1~112^2~112.
15192 by linux kernel commits v4.11-rc1~124^2~387^2~1, v4.11-rc1~124^2~387^2,
15193 v4.11-rc1~124^2~166^2~2, v4.11-rc1~124^2~166^2, v4.12-rc1~64^3~469^2,
15194 and v4.12-rc1~64^3~276, respectively.
15198 by linux kernel commit v4.12-rc1~64^3~312^2~6.
15202 by linux kernel commit v4.12-rc1~64^3~260.
15207 by linux kernel commit v4.12-rc1~123^2~7^2~2^2~3.
15211 by linux kernel commit v4.12-rc1~129^2~118^2~2.
15215 and SO_COOKIE introduced by linux kernel commits v4.12-rc1~64^3~389,
15216 v4.12-rc1~64^3~341^2, and v4.12-rc1~64^3~221^2~1, respectively.
15218 2017-06-21 Dmitry V. Levin <ldv@altlinux.org>
15224 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15232 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15244 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15256 2017-06-20 Dmitry V. Levin <ldv@altlinux.org>
15263 2017-06-19 Dmitry V. Levin <ldv@altlinux.org>
15279 unaligned struct nlmsghdr. Do not access nlh->nlmsg_len.
15281 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15289 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15301 symbolic form, for example:
15303 $ ./strace -yy -e 'sendto' ip tcp_metrics > /dev/null
15313 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15315 socketutils: build a dynamic xlat table for NETLINK_GENERIC decoding.
15321 (genl_families_xlat): New function for building the xlat table
15322 for NETLINK_GENERIC decoding.
15324 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15326 dyxlat: new interface for building xlat tables dynamically.
15329 printxval is suitable for printing struct nlmsghdr.nlmsg_type for
15334 This change introduces dyxlat functions for building xlat tables
15336 interface can be used for other purposes.
15343 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15350 2017-06-18 Dmitry V. Levin <ldv@altlinux.org>
15363 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15367 this change converts the latter form to the former for consistency.
15372 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15380 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15389 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15394 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15401 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15405 of unspecified type to functions that take no arguments.
15409 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15417 2017-06-16 Dmitry V. Levin <ldv@altlinux.org>
15420 The string returned by inet_ntoa(3) has IPv4 dotted-decimal notation,
15421 no need to quote it.
15425 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15431 2017-06-15 Miroslav Lichvar <mlichvar@redhat.com>
15434 Add support for printing control messages containing software and/or
15450 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15468 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15490 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15499 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15533 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15568 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15574 2017-06-14 Dmitry V. Levin <ldv@altlinux.org>
15583 2017-06-14 JingPiao Chen <chenjingpiao@gmail.com>
15586 * tests/printstr.c (main): Add a case for short read.
15588 2017-06-13 Dmitry V. Levin <ldv@altlinux.org>
15591 Fix checks for struct v4l2_window.global_alpha and struct
15599 2017-06-12 Dmitry V. Levin <ldv@altlinux.org>
15607 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15626 "const char *" to "void *" for passing to the callback function.
15628 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15634 receive_responses was written for decoding kernel responses of type
15638 so the function can be used for other types of communication.
15643 2017-06-12 JingPiao Chen <chenjingpiao@gmail.com>
15648 2017-06-08 Dmitry V. Levin <ldv@altlinux.org>
15652 to printxvals, takes a NULL-terminated sequence of xlat pointers.
15663 2017-06-08 JingPiao Chen <chenjingpiao@gmail.com>
15665 tests: add check for decoding netlink get and new flags.
15676 2017-06-08 JingPiao Chen <chenjingpiao@gmail.com>
15688 2017-06-08 Dmitry V. Levin <ldv@altlinux.org>
15690 xlat: provide fallback definitions for XFRM_MSG_* constants.
15694 * xlat/nl_xfrm_types.in: Add default values for constants.
15696 2017-06-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
15709 * strace.c (trace_syscall): New static replacement for old trace_syscall.
15718 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15721 nfnetlink was introduced in linux by commit v2.6.14-rc1~1035^2~217,
15722 add a guard for the case when system headers are not fresh enough.
15725 * tests/netlink_netfilter.c: Check for HAVE_LINUX_NETFILTER_NFNETLINK_H.
15727 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15766 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15787 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15794 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15825 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15836 (print_nlmsghdr): Use them for nlmsg_type decoding.
15838 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15847 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15863 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15872 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15878 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15888 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15893 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15907 2017-06-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
15910 This will be needed for the pull-style API.
15915 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15925 Reported-by: Andreas Schwab <schwab@linux-m68k.org>
15927 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15938 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15940 travis: switch from gcc-6 to gcc-7.
15941 * .travis.yml (matrix): Change gcc-6 to gcc-7.
15945 initializers. Check decoding of messages with non-integer payload.
15947 2017-06-04 JingPiao Chen <chenjingpiao@gmail.com>
15952 for checking decoding of NLMSG_DONE messages.
15955 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15961 2017-06-03 Dmitry V. Levin <ldv@altlinux.org>
15975 2017-06-03 Dmitry V. Levin <ldv@altlinux.org>
15988 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
15996 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
16005 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
16008 As strace does not use WCONTINUED flag, there is no need to handle
16014 2017-06-02 Victor Krapivensky <krapivenskiy.va@phystech.edu>
16017 This change decouples waiting for next event from reacting to it. This
16019 for implementing a pull-style API for LuaJIT.
16026 2017-05-30 Dmitry V. Levin <ldv@altlinux.org>
16028 scno.am: include config.h before syscallent.h.
16030 on mips where syscallent.h checks macros defined in config.h.
16032 * scno.am (syscallent.i): Add $(top_builddir)/config.h
16036 Reported-by: David Robins <dbrobins@i4031.net>
16038 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16056 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16065 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16074 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16077 On alpha, struct old_sigaction.sa_flags has a 32-bit type.
16096 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16104 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16118 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16128 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16131 The data collected by -fprofile-arcs during program run is saved
16136 * m4/ax_code_coverage.m4 (AX_CODE_COVERAGE): Add -DENABLE_COVERAGE_GCOV
16142 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16152 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16158 * strace.c (main): Unblock the signal raised for strace termination.
16161 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16174 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16187 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16190 In interactive mode (-I2), those signals that were blocked at startup
16191 will remain blocked for the whole period of strace execution.
16199 2017-05-26 Dmitry V. Levin <ldv@altlinux.org>
16202 * strace.c (init): Check for INTR_WHILE_WAIT mode the same way
16211 2017-05-26 Eugene Syromyatnikov <evgsyr@gmail.com>
16215 2017-05-25 Dmitry V. Levin <ldv@altlinux.org>
16217 Post-release administrivia.
16218 * NEWS: Add a header line for the next release.
16219 * debian/changelog.in: Add a changelog entry for 4.17-1.
16222 2017-05-24 Dmitry V. Levin <ldv@altlinux.org>
16224 Prepare for 4.17 release.
16225 * NEWS: Update for 4.17 release.
16232 2017-05-23 Dmitry V. Levin <ldv@altlinux.org>
16234 Fix compat personality support for sgetmask syscall.
16240 2017-05-22 Dmitry V. Levin <ldv@altlinux.org>
16255 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
16259 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
16262 Add scripts for automating copyright notices update.
16266 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
16270 unwind.c: remove non-ASCII character from comment.
16272 2017-05-21 Dmitry V. Levin <ldv@altlinux.org>
16284 * linux/mips/syscallent-o32.h: Likewise.
16296 2017-05-20 Dmitry V. Levin <ldv@altlinux.org>
16298 Fix compat personality support for old sigsuspend syscall.
16303 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
16307 intended for developers who are expected to use a git repository.
16312 * HACKING-scripts: Update.
16316 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
16319 These files are intended for developers who are expected to use
16325 2017-05-01 Eugene Syromyatnikov <evgsyr@gmail.com>
16329 linux/mtd-abi.h: remove non-ASCII character from file comment.
16331 2017-05-01 Dmitry V. Levin <ldv@altlinux.org>
16343 * linux/mips/syscallent-o32.h: Likewise.
16356 2017-05-01 Dmitry V. Levin <ldv@altlinux.org>
16358 tests: raise default timeout for individual tests.
16360 by their nature, the one minute default timeout is no longer enough
16361 for some of not so fast architectures.
16365 2017-05-01 Eugene Syromyatnikov <evgsyr@gmail.com>
16369 2017-04-29 Dmitry V. Levin <ldv@altlinux.org>
16373 by linux kernel commit v4.11-rc1~124^2~321^2.
16375 2017-04-28 Dmitry V. Levin <ldv@altlinux.org>
16379 commit v4.11-rc1~94^2~43^2~13.
16381 2017-04-27 Dmitry V. Levin <ldv@altlinux.org>
16390 2017-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
16392 tests: add -etrace=?... test.
16393 Check for some architecture-specific syscalls which are not present
16400 2017-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
16404 used for test generation.
16410 2017-04-25 Dmitry V. Levin <ldv@altlinux.org>
16415 2017-04-25 Edgar Kaziahmedov <edos@linux.com>
16418 * tests/ioctl_v4l2.c (main): Add checks for VIDIOC_G/S_TUNER's arg.
16420 v4l2: Add decoding for VIDIOC_G/S_TUNER's arg.
16423 (print_v4l2_tuner): New function. Add decoding for VIDIOC_G/S_TUNER's arg.
16424 (v4l2_ioctl): Add new cases for decoding VIDIOC_G/S_TUNER's arg.
16429 commit v2.6.11-rc4~55^2~20.
16431 v3.15-rc1~85^2~215.
16432 Add V4L2_TUNER_SDR introduced by linux kernel commit v4.4-rc1~118^2~17
16439 introduced by linux kernel commit v3.6-rc1~28^2~306.
16440 Add V4L2_TUNER_CAP_RDS introduced by linux commit v2.6.32-rc1~679^2~189.
16442 introduced by linux kernel commit v2.6.37-rc1~64^2~110.
16444 v3.6-rc1~28^2~46.
16446 v3.6-rc1~28^2~40.
16448 v3.15-rc1~85^2~214.
16454 v2.6.17-rc1~739^2~9.
16460 v2.6.32-rc1~679^2~189.
16462 2017-04-24 Dmitry V. Levin <ldv@altlinux.org>
16481 * tests/recvmmsg-timeout.c (main): Likewise.
16488 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16492 (via sprinttime) for the value stored in the argument and return value
16496 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16511 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16513 tests: add support for printing timestamp with microsecond precision.
16520 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16523 Print microseconds/nanoseconds as non-negative.
16566 (main): Add check for higher bits of tv_sec/tv_nsec.
16568 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16604 2017-04-24 Dmitry V. Levin <ldv@altlinux.org>
16634 * tests/strace-r.expected: Likewise.
16635 * tests/strace-t.test: Likewise.
16636 * tests/strace-tt.test: Likewise.
16637 * tests/strace-ttt.test: Likewise.
16638 * tests/threads-execve.c: Likewise.
16639 * tests/threads-execve.test: Likewise.
16651 2017-04-23 Eugene Syromyatnikov <evgsyr@gmail.com>
16654 * tests/time.c (main): Add check for an inaccessible pointer.
16656 2017-04-22 Dmitry V. Levin <ldv@altlinux.org>
16662 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16668 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16671 There is no sense to copy it to static buffer first.
16676 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16684 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16692 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16694 Implement -e trace=%stat option.
16697 sed -i '/statx/! s/TF|TSTA,/TF|TST|TSTA,/' linux/*/syscallent*.h
16701 * qualify.c (lookup_class): Add TRACE_STAT for "%stat".
16706 * linux/mips/syscallent-n32.h: Likewise.
16707 * linux/mips/syscallent-n64.h: Likewise.
16717 * linux/mips/syscallent-o32.h: Likewise.
16729 * linux/mips/syscallent-compat.h (bsd43_oldstat, bsd43_stat, posix_stat,
16737 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16739 Implement -e trace=%lstat option.
16742 sed -i '/TSTA,.*lx\?stat/ s/TSTA,/TLST|&/' linux/*/syscallent*.h
16746 * qualify.c (lookup_class): Add TRACE_LSTAT for "%lstat".
16751 * linux/mips/syscallent-n32.h: Likewise.
16752 * linux/mips/syscallent-n64.h: Likewise.
16762 * linux/mips/syscallent-o32.h: Likewise.
16774 * linux/mips/syscallent-compat.h (bsd43_lstat, posix_lstat, svr4_lstat,
16782 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16784 Implement -e trace=%fstat option.
16787 sed -i -e '/TSTA.*fx\?stat/ s/TSTA,/TFST|&/' \
16788 -e 's/\(TD|TF|TFST|TSTA,\)[[:space:]]/\1/' linux/*/syscallent*.h
16792 * qualify.c (lookup_class): Add TRACE_FSTAT for "%fstat".
16799 * linux/mips/syscallent-n32.h: Likewise.
16800 * linux/mips/syscallent-n64.h: Likewise.
16810 * linux/mips/syscallent-o32.h: Likewise.
16823 * linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_oldfstat, posix_fstat,
16831 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16833 Implement -e trace=%%stat option.
16836 sed -i '/TSFA\|stat[iu]s/! s/,[[:space:]]\?\([[:space:]]*SEN(.*stat\)/|TSTA,\1/' \
16841 * qualify.c (lookup_class): Add TRACE_STAT_LIKE for "%%stat".
16867 * linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_lstat, bsd43_oldfstat,
16871 * linux/mips/syscallent-n32.h (fstat, lstat, newfstatat, stat, statx): Likewise.
16872 * linux/mips/syscallent-n64.h (fstat, lstat, newfstatat, stat, statx): Likewise.
16873 * linux/mips/syscallent-o32.h (fstat, fstat64, fstatat64, lstat, lstat64,
16900 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16902 qualify: add syntax for optional non-matching syscall qualification.
16911 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16921 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16923 linux/mips/syscallent-compat.h: add some TD/TF flags for *stat* variants
16927 [1] http://math-atlas.sourceforge.net/devel/assembly/mipsabi32.pdf
16929 * linux/mips/syscallent-compat.h (*_xstat, *_lxstat, bsd43_oldstat):
16933 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16935 Implement -e trace=%%statfs option.
16938 sed -i 's/\(TSF\),[[:space:]]\?/\1|TSFA,/' linux/*/syscallent*.h
16939 sed -i 's/\(TFSF\),/\1|TSFA,/' linux/*/syscallent*.h
16940 sed -i 's/0\(,.*ustat\)/TSFA\1/' linux/*/syscallent*.h
16944 * qualify.c (lookup_class): Add SCHED_STATFS_LIKE for "%%statfs".
16950 * linux/mips/syscallent-n64.h: Likewise.
16963 * linux/mips/syscallent-n32.h: Likewise.
16964 * linux/mips/syscallent-o32.h: Likewise.
16976 * linux/mips/syscallent-compat.h (*_statfs, *_statvfs, *_fstatfs): Likewise.
16983 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16985 Implement -e trace=%fstatfs option.
16988 sed -i 's/TD,[[:space:]]\([[:space:]]*SEN.*[_"]fstatv\?fs\)/TD|TFSF,\1/' \
16993 * qualify.c (lookup_class): Add SCHED_FSTATFS for "%fstatfs".
16999 * linux/mips/syscallent-n64.h: Likewise.
17012 * linux/mips/syscallent-n32.h: Likewise.
17013 * linux/mips/syscallent-o32.h: Likewise.
17024 * linux/mips/syscallent-compat.h (*_fstatfs, *_fstatvfs): Likewise.
17031 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17036 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17047 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17058 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17069 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17081 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17083 tests/init.sh: add helpers for running set of programs.
17092 2017-04-20 Dmitry V. Levin <ldv@altlinux.org>
17097 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17100 As tests are executed in separate directories now, there is no need to
17105 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17107 tests: use fixed name for stat tests sample file.
17110 * tests/xstatx.c: Use fixed "stat.sample" name for sample file.
17111 * tests/fstat.test: Use it as an argument for -P option.
17115 2017-04-19 Eugene Syromyatnikov <evgsyr@gmail.com>
17121 * Makefile.am (dist-hook): Generate .year.
17122 * copyright-year-gen: New file.
17124 of copyright-year-gen script.
17130 * tests/strace-V.test (config_year): New variable, derived from config.h.
17131 Add sanity checks for $config_year and use it in expected output.
17133 Reported-by: Andreas Schwab <schwab@suse.de>
17135 2017-04-19 Dmitry V. Levin <ldv@altlinux.org>
17141 * tests/attach-f-p.test: Move /proc/self/task/ check ...
17142 * tests/attach-f-p-cmd.c (main): ... here.
17145 * tests/net-y-unix.test: Move /proc/self/fd/ check ...
17146 * tests/net-y-unix.c (main): ... here.
17147 * tests/net-yy-inet.test: Move /proc/self/fd/ check ...
17148 * tests/net-yy-inet.c (main): ... here.
17149 * tests/net-yy-netlink.test: Move /proc/self/fd/ check ...
17150 * tests/net-yy-netlink.c (main): ... here.
17151 * tests/net-yy-unix.test: Move /proc/self/fd/ check ...
17152 * tests/net-yy-unix.c (main): ... here.
17154 2017-04-19 Dmitry V. Levin <ldv@altlinux.org>
17156 tests: tabulate pread64-pwrite64.test.
17157 * tests/gen_tests.in (pread64-pwrite64): New entry.
17158 * tests/pread64-pwrite64.c: (main): Skip the test if /proc/self/fd/
17160 * tests/pread64-pwrite64.test: Remove.
17161 * tests/Makefile.am (DECODER_TESTS): Remove pread64-pwrite64.test.
17163 tests: tabulate read-write.test.
17164 * tests/gen_tests.in (read-write): New entry.
17165 * tests/read-write.c: (main): Skip the test if /proc/self/fd/
17167 * tests/read-write.test: Remove.
17168 * tests/Makefile.am (DECODER_TESTS): Remove read-write.test.
17186 2017-04-18 Dmitry V. Levin <ldv@altlinux.org>
17195 * tests/gen_tests.sh: Specify -r option to read.
17198 2017-04-18 Eugene Syromyatnikov <evgsyr@gmail.com>
17202 2017-04-17 Dmitry V. Levin <ldv@altlinux.org>
17256 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17263 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17274 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17280 * tests/gen_tests.in (utimes): Update -a option.
17287 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17292 that uses copy_from_user for the whole pair, too.
17301 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17317 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17328 2017-04-15 Dmitry V. Levin <ldv@altlinux.org>
17333 Reported-by: Victor Krapivensky <krapivenskiy.va@phystech.edu>
17335 2017-04-15 Victor Krapivensky <krapivenskiy.va@phystech.edu>
17342 * linux/mips/syscallent-n32.h [6330]: Likewise.
17343 * linux/mips/syscallent-n64.h [5326]: Likewise.
17344 * linux/mips/syscallent-o32.h [4366]: Likewise.
17354 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17370 * tests/gen_tests.in (mq): Update -a option.
17372 tests: make net-yy-netlink test executable reenterable.
17373 * tests/net-yy-netlink.c (main): Use getpid() instead of a fixed
17381 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17383 Revert "Implement -e trace=%sched option"
17384 -e trace=%sched became redundant as -e trace=/sched does the same.
17405 * linux/mips/syscallent-n32.h: Likewise.
17406 * linux/mips/syscallent-n64.h: Likewise.
17407 * linux/mips/syscallent-o32.h: Likewise.
17423 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17425 Revert "Implement -e trace=%clock option"
17426 -e trace=%clock became redundant as -e trace=/clock does the same.
17447 * linux/mips/syscallent-n32.h: Likewise.
17448 * linux/mips/syscallent-n64.h: Likewise.
17449 * linux/mips/syscallent-o32.h: Likewise.
17465 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17473 2017-04-14 JingPiao Chen <chenjingpiao@gmail.com>
17475 Implement -e trace=/regex option.
17479 * strace.1: Document -e trace=/regex option.
17480 * NEWS: Mention -e trace=/regex option.
17483 * tests/options-syntax.test: Add checks for invaild regexp
17484 and for regexp that doesn't match a syscall.
17486 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17494 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17497 glibc on ia64 provides no clone() function, but there is a __clone2
17498 function instead. It is documented but no prototype is provided by
17504 2017-04-13 Edgar Kaziahmedov <edos@linux.com>
17510 checks for remaining V4L2_BUF_TYPE_* types.
17522 linux kernel commit v3.17-rc1~112^2~217.
17525 V4L2_SLICED_VBI_625 introduced by linux kernel commit v2.6.14-rc2~64.
17532 2017-04-13 Dmitry V. Levin <ldv@altlinux.org>
17534 travis: use mainline kernel uapi headers for coverage.
17536 * travis-build.sh: Handle $KHEADERS.
17537 * travis-install.sh: Likewise.
17539 travis: switch from clang-3.6 to clang-3.8.
17540 * .travis.yml (matrix): Change clang-3.6 to clang-3.8.
17542 2017-04-13 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
17548 * ioctl.c (ioctl_decode): Call nsfs_ioctl for 0xb7 code.
17559 2017-04-13 Dmitry V. Levin <ldv@altlinux.org>
17562 * travis-build.sh (coverage): Print tests*/test-suite.log
17565 2017-04-12 Dmitry V. Levin <ldv@altlinux.org>
17567 travis: add gcc-6.
17568 * .travis.yml (matrix): Add gcc-6 entries.
17569 * travis-build.sh: Handle gcc*.
17570 * travis-install.sh: Handle gcc-*.
17572 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17574 tests: robustify gen_tests.sh against in-tree builds.
17578 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17580 trace_syscall_exiting: do not call get_regs for filtered syscalls.
17584 and get_regs for filtered syscalls.
17589 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17602 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17606 (startup_tcb): ... here. This is a no-op change that slightly improves
17609 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17616 which essentially reverts commit v4.9-288-ge9bfff6.
17619 * syscall.c (get_regs): Skip if get_regs_error != -1.
17621 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17634 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17640 Fixes: fd1041f6 ("tests: add tests for getpid and getppid syscalls")
17642 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17649 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17657 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17665 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17669 v4.10-45-gdf4dd8b.
17672 * xlat/aclipc.in: Remove file unused since commit v4.9-46-g681452b.
17674 2017-04-07 Dmitry V. Levin <ldv@altlinux.org>
17677 statfs.expected is unused since commit v4.11-515-g67c2f67.
17682 2017-04-07 Sandhya Bankar <bankarsandhya512@gmail.com>
17684 tests: add tests for getpid and getppid syscalls.
17695 2017-04-07 Edgar Kaziahmedov <edos@linux.com>
17700 introduced by linux kernel commit v3.2-rc1~63^2~55.
17703 v3.9-rc1~93^2~536.
17705 v3.10-rc1~136^2~560.
17708 v3.15-rc1~85^2~186.
17710 v4.2-rc1~107^2~389.
17713 v3.15-rc1~85^2~213 and v4.4-rc1~118^2~14, respectively.
17716 v3.19-rc1~29^2~72.
17718 kernel commits v4.2-rc1~107^2~182 and v4.4-rc1~118^2~120, respectively.
17721 kernel commits v3.15-rc1~85^2~210, v3.17-rc1~112^2~327,
17722 and v4.4-rc1~118^2~14, respectively.
17725 commit v3.8-rc1~115^2^2~52.
17727 2017-04-07 Abhishek Tiwari <erabhishektiwarics@gmail.com>
17729 Implement -e trace=%statfs option.
17732 sed -i 's/TF\(,[[:space:]]*SEN.*[_"]statv\?fs\)/TF|TSF\1/' \
17739 * qualify.c (lookup_class): Add SCHED_STATFS for "%statfs".
17746 * linux/mips/syscallent-n64.h: Likewise.
17757 * linux/mips/syscallent-n32.h: Likewise.
17758 * linux/mips/syscallent-o32.h: Likewise.
17769 * linux/mips/syscallent-compat.h (*_statfs, *_statvfs): Likewise.
17775 2017-04-06 Rishi Bhatt <bhatt.rishi062@gmail.com>
17777 Implement -e trace=%clock option.
17779 sed -i 's/0\(,[[:space:]]*SEN(clock_\)/TCL\1/' linux/*/syscallent*.h
17785 * qualify.c (lookup_class): Add TRACE_CLOCK for "%clock".
17788 * linux/32/syscallent.h: Add TCL flag for clock_* syscalls.
17800 * linux/mips/syscallent-n32.h: Likewise.
17801 * linux/mips/syscallent-n64.h: Likewise.
17802 * linux/mips/syscallent-o32.h: Likewise.
17819 2017-04-06 Dmitry V. Levin <ldv@altlinux.org>
17826 2017-04-05 Dmitry V. Levin <ldv@altlinux.org>
17828 tests: generalize scripts that check non-abbreviated decoding of ioctls.
17829 * tests/ioctl-v.sh: New file.
17831 (DECODER_TESTS): Remove ioctl_evdev-v.test, ioctl_loop-v.test,
17832 and ioctl_rtc-v.test.
17833 * tests/gen_tests.in (ioctl_evdev-v, ioctl_loop-v, ioctl_rtc-v):
17835 * tests/ioctl_evdev-v.test: Remove.
17836 * tests/ioctl_loop-v.test: Ditto.
17837 * tests/ioctl_rtc-v.test: Ditto.
17839 2017-04-05 Dmitry V. Levin <ldv@altlinux.org>
17849 grep -l ^run_strace_match_diff *.test |while read f; do
17852 grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' ||
17853 sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f"
17859 grep -l srcdir= *.test |while read f; do
17862 grep -Fvq srcdir= ||
17863 sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f"
17900 * tests/execveat-v.test: Ditto.
17920 * tests/fork-f.test: Ditto.
17955 * tests/inet-cmsg.test: Ditto.
18003 * tests/mmsg-silent.test: Ditto.
18005 * tests/mmsg_name-v.test: Ditto.
18010 * tests/mq_sendrecv-read.test: Ditto.
18011 * tests/mq_sendrecv-write.test: Ditto.
18013 * tests/msg_control-v.test: Ditto.
18018 * tests/net-icmp_filter.test: Ditto.
18019 * tests/net-sockaddr.test: Ditto.
18035 * tests/ppoll-v.test: Ditto.
18037 * tests/preadv-pwritev.test: Ditto.
18039 * tests/preadv2-pwritev2.test: Ditto.
18047 * tests/quotactl-v.test: Ditto.
18048 * tests/quotactl-xfs-v.test: Ditto.
18049 * tests/quotactl-xfs.test: Ditto.
18057 * tests/recvmmsg-timeout.test: Ditto.
18079 * tests/seccomp-filter-v.test: Ditto.
18080 * tests/seccomp-filter.test: Ditto.
18133 * tests/times-fail.test: Ditto.
18139 * tests/umoven-illptr.test: Ditto.
18140 * tests/umovestr-illptr.test: Ditto.
18149 * tests/vfork-f.test: Ditto.
18152 * tests/wait4-v.test: Ditto.
18154 * tests/waitid-v.test: Ditto.
18157 * tests/xattr-strings.test: Ditto.
18169 (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
18171 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18177 2017-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
18179 mpers.awk: add support for multidimensional arrays.
18181 property for storing total element count and updates "upper_bound"
18186 * mpers_test.sh: Add checks for multidimensional arrays.
18188 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18190 mpers.awk: prepare for adding support of multidimensional arrays.
18195 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18198 As every test now runs in its own subdirectory, there is no need
18203 * tests/options-syntax.test: Likewise.
18204 * tests/qual_inject-retval.test (check_injection): Likewise.
18207 * tests/seccomp-strict.test: Likewise.
18208 * tests/strace-V.test: Likewise.
18209 * tests/strace-tt.test: Likewise.
18210 * tests/strace-ttt.test: Likewise.
18211 * tests/threads-execve.test: Likewise.
18212 * tests/attach-f-p.test: Use $EXP instead of $OUT, do not remove it.
18219 * tests/attach-p-cmd.test: Likewise. Do not remove
18220 attach-p-cmd.test-lock.
18221 * tests/detach-running.test: Do not remove $LOG.
18222 * tests/detach-sleeping.test: Likewise.
18223 * tests/detach-stopped.test: Likewise.
18225 * tests/strace-S.test: Likewise.
18229 * tests/btrfs-v.test: Do not remove $EXP and $OUT.
18230 * tests/btrfs-vw.test: Likewise.
18231 * tests/btrfs-w.test: Likewise.
18232 * tests/execve-v.test: Likewise.
18237 * tests/ioctl_dm-v.test: Likewise.
18239 * tests/ioctl_evdev-v.test: Likewise.
18240 * tests/ioctl_loop-nv.test: Likewise.
18241 * tests/ioctl_loop-v.test: Likewise.
18243 * tests/ioctl_rtc-v.test: Likewise.
18248 * tests/net-y-unix.test: Likewise.
18249 * tests/net-yy-inet.test: Likewise.
18250 * tests/net-yy-netlink.test: Likewise.
18251 * tests/net-yy-unix.test: Likewise.
18253 * tests/prctl-arg2-intptr.test: Likewise.
18254 * tests/prctl-dumpable.test: Likewise.
18255 * tests/prctl-name.test: Likewise.
18256 * tests/prctl-no-args.test: Likewise.
18257 * tests/prctl-pdeathsig.test: Likewise.
18258 * tests/prctl-seccomp-filter-v.test: Likewise.
18259 * tests/prctl-seccomp-strict.test: Likewise.
18260 * tests/prctl-securebits.test: Likewise.
18261 * tests/prctl-tid_address.test: Likewise.
18262 * tests/prctl-tsc.test: Likewise.
18265 * tests/pread64-pwrite64.test: Do nore remove pread64-pwrite64-tmpfile.
18266 * tests/read-write.test: Do nore remove read-write-tmpfile.
18269 * tests/redirect-fds.test (check_fd): Reorder removal of work files.
18271 * tests/strace-t.test: Likewise.
18272 * tests/scm_rights-fd.test: Likewise. Use dir instead of $LOG.dir,
18274 * tests/strace-ff.test: Do not remove $OUT and $LOG.* files.
18276 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18284 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18293 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18295 tests: use fixed socket address in net-yy-unix.test.
18296 This allows net-yy-unix invocation without arguments.
18298 * tests/net-yy-unix.c (TEST_SOCKET): New macro.
18300 * tests/net-yy-unix.test: Do not specify arguments for the test
18303 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18305 tests: use fixed socket address in net-y-unix.test.
18306 This allows net-y-unix invocation without arguments.
18308 * tests/net-y-unix.c (TEST_SOCKET): New macro.
18310 * tests/net-y-unix.test: Do not specify arguments for the test
18313 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18317 directory for the duration of their execution.
18321 * tests/.gitignore: Add *.dir, remove *.log.*, *.tmp, *.tmp-*,
18323 * tests/Makefile.am (clean-local, clean-local-check): New rules.
18324 (.PHONY): Add clean-local-check.
18326 * tests/init.sh: Strip test-specific prefix from LOG, OUT, and EXP
18327 variables. When invoked from a test, create a new test-specific
18330 * tests/attach-f-p.test: Replace "./" with "../".
18331 * tests/attach-p-cmd.test: Likewise.
18333 * tests/btrfs-v.test: Likewise.
18334 * tests/btrfs-vw.test: Likewise.
18335 * tests/btrfs-w.test: Likewise.
18337 * tests/detach-running.test: Likewise.
18338 * tests/detach-sleeping.test: Likewise.
18339 * tests/detach-stopped.test: Likewise.
18341 * tests/net-y-unix.test: Likewise.
18342 * tests/net-yy-inet.test: Likewise.
18343 * tests/net-yy-netlink.test: Likewise.
18344 * tests/net-yy-unix.test: Likewise.
18348 * tests/prctl-seccomp-strict.test: Likewise.
18349 * tests/qual_fault-exit_group.test: Likewise.
18351 * tests/qual_inject-error-signal.test: Likewise.
18352 * tests/qual_inject-retval.test: Likewise.
18353 * tests/qual_inject-signal.test: Likewise.
18357 * tests/redirect-fds.test: Likewise.
18359 * tests/scm_rights-fd.test: Likewise.
18360 * tests/seccomp-strict.test: Likewise.
18361 * tests/strace-C.test: Likewise.
18362 * tests/strace-E.expected: Likewise.
18363 * tests/strace-E.test: Likewise.
18364 * tests/strace-S.test: Likewise.
18365 * tests/strace-T.test: Likewise.
18366 * tests/strace-V.test: Likewise.
18367 * tests/strace-ff.test: Likewise.
18368 * tests/strace-k.test: Likewise.
18369 * tests/strace-r.expected: Likewise.
18370 * tests/strace-r.test: Likewise.
18371 * tests/strace-t.test: Likewise.
18372 * tests/strace-tt.test: Likewise.
18373 * tests/strace-ttt.test: Likewise.
18376 * tests/unix-pair-send-recv.test: Likewise.
18377 * tests/unix-pair-sendto-recvfrom.test: Likewise.
18379 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18382 Most of test executables were ready for the upcoming change,
18385 * tests/getdents.c (main): Use fixed name for the sample directory.
18395 2017-03-31 Dmitry V. Levin <ldv@altlinux.org>
18401 2017-03-30 Dmitry V. Levin <ldv@altlinux.org>
18406 2017-03-29 Dmitry V. Levin <ldv@altlinux.org>
18410 the 3rd argument of sched_getattr syscall is not quite 32-bit
18411 on aarch64 as on other architectures. For more details see
18419 2017-03-29 Abhishek Tiwari <erabhishektiwarics@gmail.com>
18425 git grep -Fl '_stat' linux/*/syscallent* | xargs sed -i \
18429 git grep -Fl '_stat' linux/*/syscallent* | xargs sed -i \
18434 * linux/mips/syscallent-compat.h: Likewise.
18436 2017-03-24 Dmitry V. Levin <ldv@altlinux.org>
18447 2017-03-23 Quentin Monnet <quentin.monnet@6wind.com>
18453 2017-03-23 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
18455 Update ioctl entries from linux v4.11-rc3.
18456 * linux/32/ioctls_inc_align16.h: Update from linux v4.11-rc3 using ioctls_gen.sh.
18469 maint: update for linux 4.11.
18473 2017-03-19 Dmitry V. Levin <ldv@altlinux.org>
18479 * test/README: Tell the reader what this directory is actually for.
18484 2017-03-18 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18505 2017-03-17 Dmitry V. Levin <ldv@altlinux.org>
18507 tests: check for out of bounds fetch in parsers of stat family syscalls.
18516 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18525 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18530 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18541 2017-03-16 Damien Profeta <damien.profeta@amadeus.com>
18543 strace-graph: handle pid looping.
18544 * strace-graph: On long running process or heavily forking one (like
18551 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18557 sed -ri \
18561 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18567 sed -ri \
18569 tests/{move_pages,net-sockaddr,sendfile}.c
18571 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18574 Introduce a new macros for the most widespread use of tail_alloc.
18579 2017-03-16 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18582 * xlat/usagewho.in: Add values for existing entities, add
18586 2017-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
18590 provision for last command in the pipeline, but it is not guaranteed
18592 In order to avoid creating subprocesses, input for read commands
18597 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18603 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18607 syscall parser, no need to duplicate its parts in other tests.
18614 2017-03-14 Dmitry V. Levin <ldv@altlinux.org>
18620 * tests/xetitimer.test: Add -a option.
18622 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18631 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18633 ia64, mips, x86_64: remove no longer used parsers of sigreturn syscalls.
18634 As there is no sigreturn syscall on ia64, mips n32, mips n64, x32,
18635 and x86_64, no longer used parsers could be safely removed.
18642 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18653 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18675 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18678 Add get_rt_sigframe_addr function for all supported architectures.
18716 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18720 for all supported architectures.
18744 2017-03-13 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18755 2017-03-13 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18761 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18764 Export SP register for later use by get_rt_sigframe_addr.
18770 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18773 Export SP register for later use by get_rt_sigframe_addr.
18779 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18782 Export SP register for later use by get_rt_sigframe_addr.
18788 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18791 Export SP register for later use by get_rt_sigframe_addr.
18797 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18800 Export SP register for later use by get_rt_sigframe_addr.
18806 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18809 Export SP register for later use by get_rt_sigframe_addr.
18815 2017-03-09 Dmitry V. Levin <ldv@altlinux.org>
18838 2017-03-08 Dmitry V. Levin <ldv@altlinux.org>
18842 2017-03-08 Abhishek Tiwari <erabhishektiwarics@gmail.com>
18845 * INSTALL-git.md: Describe how to build strace from git repository.
18846 * README.md: Add reference to INSTALL-git.md.
18847 * README-hacking: Likewise.
18849 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18851 README.md: fix references to in-tree files.
18855 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18859 makeinfo --plaintext install.texi > INSTALL
18863 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18874 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18883 2017-03-05 Eugene Syromyatnikov <evgsyr@gmail.com>
18886 Implement -e trace=%sched option for tracing sched_* syscalls.
18892 git grep -Fl 'SEN(sched_' linux/ | xargs sed -i \
18897 * linux/32/syscallent.h: Add TSC flag for sched_* sycalls.
18909 * linux/mips/syscallent-n32.h: Likewise.
18910 * linux/mips/syscallent-n64.h: Likewise.
18911 * linux/mips/syscallent-o32.h: Likewise.
18923 * qualify.c (lookup_class): Add TRACE_SCHED for "%sched".
18931 2017-03-04 Eugene Syromyatnikov <evgsyr@gmail.com>
18933 Add "%" prefix for syscall classes in qualify.
18935 https://www.mail-archive.com/strace-devel@lists.sourceforge.net/msg05147.html )
18942 * qualify.c (lookup_class) <syscall_class>: Add %-prefixed class definitions.
18943 * strace.1 (.SS Filtering): Add information regarding %-prefixed class
18945 * tests/net.test: Update to use %-prefixed syscall class name.
18947 * tests/qual_fault-exit_group.test: Likewise.
18949 * tests/scm_rights-fd.test: Likewise.
18954 2017-02-28 Dmitry V. Levin <ldv@altlinux.org>
18959 2017-02-27 Dmitry V. Levin <ldv@altlinux.org>
18966 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18981 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18992 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18995 Introduce a macro for printing similar time related fields.
19000 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
19003 Introduce a macro for printing similar time related fields.
19008 2017-02-25 Dmitry V. Levin <ldv@altlinux.org>
19018 * tests/preadv2-pwritev2.c (main): Fix invocation of preadv2
19021 2017-02-21 Dmitry V. Levin <ldv@altlinux.org>
19027 * tests/ppoll-v.c: New file.
19028 * tests/ppoll-v.test: New test.
19032 * tests/ppoll-v.expected: Remove.
19033 * tests/.gitignore: Add ppoll-v.
19035 (DECODER_TESTS): Add ppoll-v.test.
19036 (EXTRA_DIST): Remove ppoll.expected and ppoll-v.expected.
19038 2017-02-20 Dmitry V. Levin <ldv@altlinux.org>
19044 * tests/ptrace.c: Do not check for __NR_rt_sigprocmask.
19046 * tests/signalfd4.c: Do not check for __NR_rt_sigprocmask.
19049 2017-02-19 Dmitry V. Levin <ldv@altlinux.org>
19069 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19078 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19091 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19102 2017-02-17 Dmitry V. Levin <ldv@altlinux.org>
19106 with tprints for printing strings without format specifiers.
19112 2017-02-17 Dmitry V. Levin <ldv@altlinux.org>
19116 command introduced by linux kernel commit v4.10-rc7-174-g7f67763.
19118 * configure.ac: Check for union bpf_attr.attach_flags
19125 * tests/bpf.c: Check for HAVE_UNION_BPF_ATTR_ATTACH_FLAGS
19130 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19141 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19167 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19176 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19184 2017-02-15 Dmitry V. Levin <ldv@altlinux.org>
19186 Post-release administrivia.
19187 * NEWS: Add a header line for the next release.
19188 * debian/changelog.in: Add a changelog entry for 4.16-1.
19191 2017-02-14 Dmitry V. Levin <ldv@altlinux.org>
19193 Prepare for 4.16 release.
19194 * NEWS: Update for 4.16 release.
19196 2017-02-13 Dmitry V. Levin <ldv@altlinux.org>
19206 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19208 Fix -Werror=duplicate-decl-specifier compilation issues.
19231 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19242 2017-02-11 Dmitry V. Levin <ldv@altlinux.org>
19254 2017-02-10 Dmitry V. Levin <ldv@altlinux.org>
19267 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19278 for INJECT_OPTS_RVAL_DEFAULT instead of INJECT_OPTS_RVAL_DISABLE.
19280 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19283 * tests/qual_inject-error-signal.c: New file.
19284 * tests/qual_inject-error-signal.expected: Likewise.
19285 * tests/qual_inject-error-signal.test: New test.
19286 * tests/.gitignore: Add qual_inject-error-signal.
19288 (MISC_TESTS): Add qual_inject-error-signal.test.
19289 (EXTRA_DIST): Add qual_inject-error-signal.expected.
19291 tests: simplify qual_inject-signal.test.
19292 * tests/qual_inject-signal.test: Use $NAME instead of qual_inject-signal.
19294 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19296 Make symbolic errno values match case-insensitive.
19297 Follow the example of case-insensitive symbolic signal values in signal
19299 expressions case-insensitive.
19304 * tests/qual_fault.test: Test case-insensitive symbolic errno match.
19306 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19308 tests: check case-insensitive symbolic signal match.
19309 * tests/qual_signal.test: Test case-insensitive symbolic signal match.
19311 2017-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
19315 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19319 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19324 Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
19326 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19328 tests: update ipc_sem.test for new glibc.
19329 Starting with commit glibc-2.24-553-g40c0a78, glibc may pass NULL
19334 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19341 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19344 * tests/qual_inject-signal.c: New file.
19345 * tests/qual_inject-signal.expected: Likewise.
19346 * tests/qual_inject-signal.test: New test.
19347 * tests/.gitignore: Add qual_inject-signal.
19349 (MISC_TESTS): Add qual_inject-signal.test.
19350 (EXTRA_DIST): Add qual_inject-signal.expected.
19352 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19354 Implement -e inject= option.
19355 Introduce -e inject= as a general injection option,
19356 limit -e fault= option to syscall fault injection.
19369 * strace.1: Describe -e inject= option.
19370 * NEWS: Mention -e inject= option.
19371 * tests/qual_fault-syntax.test: Test that -e fault= option does not
19374 * tests/qual_inject-retval.test: Replace -e fault= option
19375 with -e inject= option.
19376 * tests/qual_inject-syntax.test: New test.
19379 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19381 tests: prepare for introduction of -e inject= option.
19384 * tests/fault_injection-exit_group.expected: Rename
19385 to tests/qual_fault-exit_group.expected.
19386 * tests/fault_injection-exit_group.test: Rename
19387 to tests/qual_fault-exit_group.test.
19388 * tests/fault_syntax.test: Rename to tests/qual_fault-syntax.test.
19391 * tests/fault_injection-retval.c: Rename to tests/qual_inject-retval.c.
19392 * tests/fault_injection-retval.test: Rename
19393 to tests/qual_inject-retval.test.
19399 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19401 Prepare for introduction of -e inject= option.
19402 As -e fault= injection syntax has been extended to configure various
19428 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19434 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19442 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19454 2017-02-06 Dmitry V. Levin <ldv@altlinux.org>
19458 by linux kernel commit v4.10-rc1~202^2~340^2~1.
19462 by linux kernel commit v4.10-rc1~202^2~340^2~2.
19464 2017-02-06 Jacob Goense <dugo@xs4all.nl>
19467 This fixes a typo in the arch_set_success for the or1k architecture.
19474 2017-02-04 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
19484 maint: update for linux 4.10.
19485 * maint/ioctls_sym.sh: Update workaround for linux/if_pppox.h file.
19487 maint: add workaround for m68k.
19490 2017-01-31 Dmitry V. Levin <ldv@altlinux.org>
19496 * tests/bpf.test: Add -a option.
19498 2017-01-29 Dmitry V. Levin <ldv@altlinux.org>
19511 2017-01-29 Quentin Monnet <quentin.monnet@6wind.com>
19520 * configure.ac: Check for union bpf_attr.bpf_fd and union
19530 2017-01-28 Elvira Khabirova <lineprinter0@gmail.com>
19533 * tests/fault_injection-retval.c: New file.
19534 * tests/fault_injection-retval.test: New test.
19535 * tests/.gitignore: Add fault_injection-retval.
19537 (MISC_TESTS): Add fault_injection-retval.test.
19539 2017-01-28 Elvira Khabirova <lineprinter0@gmail.com>
19543 When :retval=VALUE is specified, the syscall number is replaced by -1
19553 (inject_syscall_fault_entering): Check opts->rval instead of opts->err.
19586 2017-01-26 Dmitry V. Levin <ldv@altlinux.org>
19595 2017-01-20 Elvira Khabirova <lineprinter0@gmail.com>
19602 2017-01-20 Andre McCurdy <armccurdy@gmail.com>
19605 Build fix for MIPS with musl libc.
19614 2017-01-20 JingPiao Chen <chenjingpiao@gmail.com>
19635 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19637 tests: drop non-USE_ASM_STAT case support.
19639 there are no non-USE_ASM_STAT users left. Remove support of unused
19640 non-USE_ASM_STAT case.
19649 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19665 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19675 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19690 2017-01-13 Alexey Neyman <stilor@att.net>
19693 When cross-compiling, ioctlsort must obtain _IOC_* values from the
19703 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19713 2017-01-12 Dmitry V. Levin <ldv@altlinux.org>
19722 2017-01-12 JingPiao Chen <chenjingpiao@gmail.com>
19728 2017-01-12 JingPiao Chen <chenjingpiao@gmail.com>
19730 strace: move description of -k option to the appropriate place.
19731 Follow the example of strace.1 and put the description of -k option
19734 * strace.c (usage): Move description of -k option to the output
19737 2017-01-11 Dmitry V. Levin <ldv@altlinux.org>
19743 git grep -El ',[[:space:]]+}' |xargs sed -ri 's/,([[:space:]]+\})/\1/'
19759 * linux/mips/syscallent-n32.h: Likewise.
19760 * linux/mips/syscallent-n64.h: Likewise.
19761 * linux/mips/syscallent-o32.h: Likewise.
19775 Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
19777 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19793 scsi: prepare for decoding of other SG_* ioctl commands.
19810 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19812 scsi: add fallback definitions for SG_* ioctl command constants.
19820 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19822 xlat: provide fallback definitions for BSG_FLAG_* constants.
19826 * xlat/bsg_flags.in: Add default values for constants.
19828 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19830 xlat: provide fallback definitions for SG_FLAG_* constants.
19834 * xlat/sg_io_flags.in: Add default values for constants.
19836 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19842 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19848 Call tprint_iov_upto when iovec_count is non-zero.
19853 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19856 The SCSI driver, starting with kernel commit v2.6.25-rc1~1230^2~78,
19860 As there is no easy way to tell SCSI layer errors from other syscall
19878 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19899 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19903 was no clear indication sometimes whether the printed integer was
19909 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19917 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19927 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19930 As the nature of this field is pointer-like, print it
19936 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19939 As the kernel does not touch these fields, there is no use
19945 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19957 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19969 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19979 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19999 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20025 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20029 no clear indication sometimes whether the printed integer was decimal or
20035 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20039 no clear indication sometimes whether the printed integer was decimal or
20046 2017-01-06 Dmitry V. Levin <ldv@altlinux.org>
20049 As printstr_ex has got QUOTE_FORCE_HEX flag support, there is no need
20055 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20057 getrandom: print string as hex-escaped.
20058 Since there is no reason to interpret the value returned by getrandom as
20059 ASCII string, it makes sense to always print it as a hex-escaped string.
20063 to force hex-escaped string formatting.
20064 * tests/getrandom.test: Remove no longer needed -xx flag as the string
20067 Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
20069 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20071 util: add support for forcing printing string as hex-escaped.
20079 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20081 term: do not abort decoding in case of non-verbose output.
20090 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20093 * tests/fault_injection.sh: Add the minimal kernel version for hppa.
20095 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20104 Reported-by: James Cowgill <james410@cowgill.org.uk>
20106 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20119 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20126 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20136 * tests/quotactl-xfs.c (main): Likewise.
20138 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20148 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20150 tests: check non-verbose decoding of LOOP_* ioctls.
20151 * tests/ioctl_loop-nv.c: New file.
20152 * tests/ioctl_loop-nv.test: New test.
20155 * tests/.gitignore: Add ioctl_loop-nv.
20164 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20169 * tests/ioctl_loop-v.c: Likewise.
20171 * tests/ioctl_loop-v.test: Likewise.
20172 * tests/.gitignore: Add ioctl_loop and ioctl_loop-v.
20174 (DECODER_TESTS): Add ioctl_loop.test and ioctl_loop-v.test.
20176 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20193 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20196 The verbose flag is responsible for dereferencing of addresses, and it
20203 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20212 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20221 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20224 * tests/ioctl.c (main): Additional check for unknown ioctl command
20227 * tests/ioctl_dm.c: Include <linux/ioctl.h> for _IOC_SIZE and _IOC_NR.
20229 Add more checks for unknown command formatting.
20231 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20234 Specifying output width for size argument is rather misleading - it can
20237 with alternate form flag leads to inconsistent output for 0.
20240 * ioctl.c (ioctl_print_code): Change printf qualifiers for ioctl command
20246 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20252 for most compilers).
20255 in printing routine for array elements of the "reserved" field of
20258 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20269 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20275 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20278 * tests/.gitignore: Replace addkey with add_key, add attach-f-p-cmd.
20280 2017-01-03 Dmitry V. Levin <ldv@altlinux.org>
20291 Generate scno.h for use during the build of strace itself.
20295 2017-01-01 Dmitry V. Levin <ldv@altlinux.org>
20298 Generate scno.h using only those tools that are available for cross
20313 2017-01-01 Dmitry V. Levin <ldv@altlinux.org>
20319 * tests/strace-V.test: Use the current year for the check.
20321 2016-12-31 Dmitry V. Levin <ldv@altlinux.org>
20333 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20339 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20343 v4.15-39-g605a705a63d533dceb3c2d489468fcd3aed3963c.
20349 Reported-by: Joakim Bech <joakim.bech@linaro.org>
20351 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20369 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20372 struct ifreq and struct ifconf are ABI-dependent and should have been
20385 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20391 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20397 for constants.
20399 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20401 loop: add fallback definitions for LOOP_* ioctl command constants.
20402 Since these are architecture-independent and have been added over the
20411 2016-12-29 Dmitry V. Levin <ldv@altlinux.org>
20416 be used, for example, to provide fallback definitions for constants
20419 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20434 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20438 for printing lo_device and lo_rdevice fields.
20440 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20449 print_dev_t function for printing device numbers.
20451 (decode_mknod): Use print_dev_t function for printing device number.
20453 (print_struct_stat): Use print_dev_t function for printing device
20456 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20458 tests: enhance invalid address decoding check in seccomp-strict.test.
20459 * tests/seccomp-strict.c (main): Change the type of addr variable
20463 2016-12-28 Eugene Syromyatnikov <evgsyr@gmail.com>
20466 * tests/prctl-tid_address.c: New file.
20467 * tests/prctl-tid_address.test: New test.
20468 * tests/.gitignore: Add prctl-tid_address.
20470 (DECODER_TESTS): Add prctl-tid_address.test.
20472 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20481 * tests/strace-V.test: Update expected output.
20483 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20488 2016-12-28 Seraphime Kirkovski <kirkseraph@gmail.com>
20494 2016-12-28 Seraphime Kirkovski <kirkseraph@gmail.com>
20521 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20524 * README.md: Update homepage URL, mention command-line interface
20527 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20529 tests: robustify prctl-arg2-intptr.test.
20530 Robustify prctl-arg2-intptr.test against unrelated prctl invocations.
20532 * tests/prctl-arg2-intptr.test: Filter out unrelated PR_GET_*
20535 2016-12-27 Dmitry V. Levin <ldv@altlinux.org>
20539 struct new_sigaction32): Remove safety checks for NSIG >= sizeof(long).
20581 * msghdr.c: Check for [!current_wordsize] instead
20585 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20600 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20603 The demise of HAVE_STRUCT_TCB_EXT_ARG opens the way for a simpler
20613 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20616 The demise of HAVE_STRUCT_TCB_EXT_ARG opens the way for a simpler
20624 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20627 Since there is no compat handler for x32/n32, kernel returns kernel's
20631 allocated for kernel long?
20637 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20639 Add functions for printing pointers of kernel_ulong_t size.
20640 In cases where no compat for x32/n32 is implemented, pointer is of
20647 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20668 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20674 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20684 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20688 After transition from long to kernel_ulong_t there should be no sign
20695 * tests/umoven-illptr.c: New file.
20696 * tests/umoven-illptr.test: New test.
20697 * tests/.gitignore: Add umoven-illptr.
20699 (DECODER_TESTS): Add umoven-illptr.test.
20701 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20705 After transition from long to kernel_ulong_t there should be no sign
20712 * tests/umovestr-illptr.c: New file.
20713 * tests/umovestr-illptr.test: New test.
20714 * tests/.gitignore: Add umovestr-illptr.
20716 (DECODER_TESTS): Add umovestr-illptr.test.
20718 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20727 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20730 After transition from long to kernel_ulong_t there are no mo
20732 for x32 and mips n32.
20737 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20741 are no longer needed.
20769 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20772 After transition from long to kernel_ulong_t we no longer need
20773 tcp->ext_arg, and therefore a function to access it is also no longer
20778 (printargs): Access tcp->u_arg directly
20792 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20795 After transition from long to kernel_ulong_t we no longer need
20804 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20810 * tests/prctl-arg2-intptr.c: New file.
20811 * tests/prctl-arg2-intptr.test: New test.
20812 * tests/.gitignore: Add prctl-arg2-intptr.
20814 (DECODER_TESTS): Add prctl-arg2-intptr.test.
20816 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20819 Remove temporary macros created for transition from long
20823 $ git grep -l 'PRI_kr[dux]' | xargs sed -ri 's/PRI_kr([dux])/PRI_kl\1/g'
20827 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20830 Remove temporary types created for transition from long
20835 $ git grep -El 'kernel_(scno|ureg)_t' |
20836 xargs sed -ri 's/kernel_(scno|ureg)_t/kernel_ulong_t/g'
20841 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20849 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20852 Prepare for the change of kernel_ureg_t and kernel_scno_t from
20858 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20866 truncated_raddr of type unsigned long. Set errno to EIO and return -1
20869 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20871 trace_syscall_exiting: prepare personality check for u_rval type change.
20872 * syscall.c (trace_syscall_exiting): Check for sizeof(tcp->u_rval)
20873 instead of sizeof(long) when deciding how to print tcp->u_rval.
20875 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20898 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20906 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20937 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20947 execve: prepare for handling big pointers.
20951 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20960 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20975 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20988 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21017 * linux/alpha/get_scno.c (arch_get_scno): Update for the change
21078 Cast tcp->u_rval to kernel_ureg_t instead of unsigned long.
21079 * fcntl.c (print_fcntl): Cast tcp->u_rval to kernel_ureg_t instead
21119 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21141 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21151 (SYS_FUNC(sendmsg)): Pass -1 instead of -1UL as data_size argument
21153 * mmsghdr.c (print_struct_mmsghdr): Pass (kernel_ureg_t) -1 instead
21154 of -1UL as data_size argument to print_struct_msghdr.
21157 * syscall.c (dumpio): Pass -1 instead of -1UL as data_size argument
21161 * mq.c (SYS_FUNC(mq_timedreceive)): Do not check for tcp->u_rval < 0,
21185 (SYS_FUNC(old_mmap)): Check for current_klongsize instead
21222 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21224 printstr_ex: fix decoding of non-NUL-terminated strings when len == -1.
21225 Do not treat len == -1 in any special way. All users who need the
21226 string to be handled as a NUL-terminated string set QUOTE_0_TERMINATED
21229 * util.c (printstr_ex): Remove (len == -1) check.
21236 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21254 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21260 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21264 argument set to -1, create a dedicated function for this use case.
21269 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21531 2016-12-24 Dmitry V. Levin <ldv@altlinux.org>
21580 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21723 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21732 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21746 2016-12-22 Dmitry V. Levin <ldv@altlinux.org>
21753 tests: fix xattr.test for the case when listxattr returns a long list.
21758 2016-12-22 Gabriel Laskar <gabriel@lse.epita.fr>
21760 tests: test for correct ellipsis with -s in xattr.
21761 * tests/xattr-strings.c: New file.
21762 * tests/xattr-strings.test: New test.
21763 * tests/.gitignore: Add xattr-string.
21765 (DECODER_TESTS): Add xattr-string.test.
21767 2016-12-22 Gabriel Laskar <gabriel@lse.epita.fr>
21770 This fixes the display when using `-s` to limit the string size
21776 Reported-by: Марк Коренберг <socketpair@gmail.com>
21778 2016-12-22 Eugene Syromyatnikov <evgsyr@gmail.com>
21785 2016-12-21 Dmitry V. Levin <ldv@altlinux.org>
21804 evdev: cast tcp->u_rval to kernel_ureg_t instead of unsigned long.
21805 * evdev.c (decode_bitset): Cast tcp->u_rval to kernel_ureg_t
21818 * configure.ac (AC_CHECK_TYPES): Check for struct user_desc
21824 * ldt.c: Check for HAVE_STRUCT_USER_DESC instead of architectures.
21840 ioctl: use uintptr_t for casts between 32-bit integers and pointers.
21853 travis: fix enabling of gcc -Werror builds.
21854 * travis-build.sh: Use DISTCHECK_CONFIGURE_FLAGS instead
21856 [$CC == gcc]: Add --enable-gcc-Werror to DISTCHECK_CONFIGURE_FLAGS
21858 [$CHECK == coverage]: Add --enable-code-coverage
21881 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21884 Remove the workaround for broken ptrace prototypes
21885 that seems to be unneeded for quite a long time.
21889 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21902 * tests/preadv2-pwritev2.c: Likewise.
21905 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21907 tests: generate scno.h from syscallent.h for use by other tests.
21909 to strace for the personbality being tested.
21921 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21926 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21935 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21937 x32: implement automatic argument truncation for compat syscalls.
21946 64-bit type, so the automatic argument truncation cannot be applied.
21954 of compat syscalls to 32-bit values.
21958 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21961 As there are no compat versions of mprotect or pkey_mprotect syscalls
21969 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21975 2016-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
21978 In x32 personality these syscalls use compat type for the 3rd argument,
21981 * io.c (do_preadv, do_pwritev): Truncate tcp->u_arg[2] using
21984 2016-12-19 Eugene Syromyatnikov <evgsyr@gmail.com>
21986 tests: fix preadv2-pwritev2 test on x32.
21990 * tests/preadv2-pwritev2.c (main): Print vlen argument as unsigned long.
21992 2016-12-19 Eugene Syromyatnikov <evgsyr@gmail.com>
21994 kexec: fix for the x32 ABI.
21995 There is no compat (and no 32-bit version, ever) for x32 ABI, so
21996 kernel's long type should be used for arguments' values.
22002 as kernel long, retrieve it via getarg_klu; use printflags64 for
22005 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22007 Check for current_klongsize instead of current_personality where appropriate
22011 * desc.c (umove_kulong_array_or_printaddr): Check for current_klongsize
22019 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22046 fcntl.c: print 64-bit fields of struct_kernel_flock64 using PRId64 format
22058 btrfs.c: print 64-bit fields of btrfs_ioctl_vol_args_v2 using PRIu64 format
22067 2016-12-19 Eugene Syromyatnikov <evgsyr@gmail.com>
22087 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22091 SIZEOF_LONG_LONG for checking of kernel_long_t and kernel_ulong_t
22096 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22105 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22109 of indiscriminate use of signed types for syscall arguments and memory
22120 * io.c (print_lld_from_low_high_val): Remove no longer needed cast
22129 no longer needed cast of syscall arguments to unsigned long.
22132 * util.c (getarg_ull): Remove no longer needed casts of syscall
22135 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22142 Fix pathmatch of oldselect syscall on 64-bit architectures.
22143 * pathtrace.c (pathtrace_match): Fix fetching of 32-bit oldselect
22144 arguments on 64-bit architectures.
22149 2016-12-18 Dmitry V. Levin <ldv@altlinux.org>
22152 Use an unsigned type for syscall numbers as they are not intended
22153 for signed arithmetics. Introduce kernel_scno_t as a typedef
22198 2016-12-18 Dmitry V. Levin <ldv@altlinux.org>
22211 Replace "(unsigned long) -1L" with -1UL.
22212 * defs.h (dumpiov): Replace "(unsigned long) -1L" with -1UL.
22216 * poll.c (decode_poll_exiting): Replace "(unsigned int) -1" with -1U.
22218 Add toplevel recursive check-valgrind rule.
22219 * Makefile.am (.PHONY): Add check-valgrind-local.
22220 (check-valgrind): New rule.
22223 m4: fix check-valgrind-* rules generated by AX_VALGRIND_CHECK.
22224 * m4/ax_valgrind_check.m4 (check-valgrind-$(1)): Depend
22225 on $(BUILT_SOURCES), honor $(AM_MAKEFLAGS), build check-am
22226 instead of check-TESTS.
22230 (matrix): Create an entry for the regular x86_64 target.
22231 * travis-success.sh: Merge into ...
22232 * travis-build.sh: ... this file. Disable optimization
22233 for coverage builds.
22234 * travis-install.sh: Rename COVERAGE=true to CHECK=coverage.
22236 2016-12-17 Dmitry V. Levin <ldv@altlinux.org>
22242 2016-12-17 Eugene Syromyatnikov <evgsyr@gmail.com>
22245 * util.c (umovestr): Do not check for SIZEOF_LONG in definitions
22249 * tests/prctl-no-args.c: New file.
22250 * tests/prctl-no-args.test: New test.
22251 * tests/.gitignore: Add prctl-no-args.
22253 (DECODER_TESTS): Add prctl-no-args.test.
22256 * tests/prctl-securebits.c: New file.
22257 * tests/prctl-securebits.test: New test.
22258 * tests/.gitignore: Add prctl-securebits.
22260 (DECODER_TESTS): Add prctl-securebits.test.
22263 * tests/prctl-dumpable.c: New file.
22264 * tests/prctl-dumpable.test: New test.
22265 * tests/.gitignore: Add prctl-dumpable.
22267 (DECODER_TESTS): Add prctl-dumpable.test.
22276 2016-12-16 Dmitry V. Levin <ldv@altlinux.org>
22281 available for every source file by including "kernel_types.h"
22314 * tests/prctl-pdeathsig.c: Likewise.
22315 * tests/prctl-tsc.c: Likewise.
22316 * tests/preadv2-pwritev2.c: Likewise.
22318 * tests/read-write.c: Likewise.
22325 2016-12-15 Dmitry V. Levin <ldv@altlinux.org>
22327 Post-release administrivia.
22328 * NEWS: Add a header line for the next release.
22329 * debian/changelog.in: Add a changelog entry for 4.15-1.
22332 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22334 xlat: provide fallback definitions for NETLINK_* constants.
22339 * xlat/netlink_protocols.in: Add default values for constants.
22343 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22351 tests: fix threads-execve.test for large pids.
22352 * tests/threads-execve.c (main): Fix expected output for large pids.
22354 2016-12-13 Dmitry V. Levin <ldv@altlinux.org>
22356 Prepare for 4.15 release.
22357 * NEWS: Update for 4.15 release.
22364 * debian/control: Add Vcs-* metadata from 4.13-0.1.
22365 * debian/watch: Sync with 4.13-0.1.
22366 * strace.spec.in: Sync with 4.14.0.100.622a-1.
22368 2016-12-13 Dmitry V. Levin <ldv@altlinux.org>
22371 Workaround a bug introduced in GNU grep 2.27, for details see
22372 https://lists.gnu.org/archive/html/bug-grep/2016-12/msg00011.html
22375 * tests/detach-running.test: Use it instead of grep to search
22377 * tests/detach-sleeping.test: Likewise.
22378 * tests/detach-stopped.test: Likewise.
22380 2016-12-13 Eugene Syromyatnikov <evgsyr@gmail.com>
22382 tests: fix typo in comment inside prctl-tsc.c.
22384 2016-12-13 Sean Stangl <sstangl@mozilla.com>
22387 Fix libunwind segfault when -p is passed before -k.
22389 unwind_init for all allocated tcb structures if stack trace is enabled.
22392 2016-12-13 Eugene Syromyatnikov <evgsyr@gmail.com>
22397 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22402 * tests/fault_injection-exit_group.test: Use it.
22408 * tests/threads-execve.test: Use require_min_kernel_version_or_skip.
22410 2016-12-07 Eugene Syromyatnikov <evgsyr@gmail.com>
22412 tests: add descriptions to prctl-pdeathsig and prctl-tsc tests.
22414 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22416 tests: robustify prctl-pdeathsig.test and prctl-tsc.test.
22419 * tests/prctl-pdeathsig.test: Filter out unrelated PR_GET_* and PR_SET_*
22421 * tests/prctl-tsc.test: Likewise.
22423 2016-12-07 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22432 AM_CFLAGS). This is incorrect: in a cross-compilation use case, CC
22433 and CC_FOR_BUILD are not the same. The former is the cross-compiler,
22437 In particular, this posed a problem when cross-compiling with a host
22440 /usr/bin/gcc -DHAVE_CONFIG_H -I./linux/arm -I./linux/arm -I./linux
22441 -I./linux -I. -I. -I/host-sysroot/usr/include -Wall -Wempty-body
22442 -Wformat-security -Wignored-qualifiers -Winit-self -Wlogical-op
22443 -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration
22444 -Wold-style-definition -Wsign-compare -Wtype-limits -Wwrite-strings -O2
22445 -I/host-sysroot/usr/include -DIOCTLSORT_INC=\"ioctls_all0.h\" -c -o
22447 cc1: error: unrecognized command line option "-Wempty-body"
22448 cc1: error: unrecognized command line option "-Wignored-qualifiers"
22449 cc1: error: unrecognized command line option "-Wlogical-op"
22450 cc1: error: unrecognized command line option "-Wmissing-parameter-type"
22451 cc1: error: unrecognized command line option "-Wold-style-declaration"
22452 cc1: error: unrecognized command line option "-Wtype-limits"
22464 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22466 m4: prepare gl_WARN_ADD for simultaneous use of multiple compilers.
22476 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22492 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22495 This is going to be needed for the upcoming AX_PROG_CC_FOR_BUILD
22502 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22505 These new macros are going to be needed for the upcoming
22510 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22513 * m4/ax_valgrind_check.m4: Import from the autoconf-archive package.
22522 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22524 tests: robustify threads-execve.test against race conditions.
22527 * tests/threads-execve.c (NUMBER_OF_ITERATIONS): Change to 1.
22528 * tests/threads-execve.test: Iterate up to 10 times.
22530 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22532 tests: fix expected output in strace-ttt.test.
22533 If strace -ttt is running too long, it might happen that time stamps
22534 before and after its invocation differ for more than a second.
22537 * tests/strace-ttt.test: Allow any time stamp between start and finish
22540 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22542 tests: fix expected output in strace-tt.test.
22543 If strace -tt is running too long, it might happen that time stamps
22544 before and after its invocation differ for more than a second.
22547 * tests/strace-tt.test: Allow any time stamp between start and finish
22550 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22556 remove $LOG, wait for $LOG removal in its peer.
22558 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22560 tests: robustify attach-f-p.test against race conditions.
22561 Introduce a synchronization mechanism between attach-f-p and strace.
22563 * tests/attach-f-p-cmd.c: New file.
22564 * tests/Makefile.am (check_PROGRAMS): Add attach-f-p-cmd.
22565 * tests/attach-f-p.c: Include <sys/stat.h>.
22566 (main): Write to stdout instead of descriptor 3. Wait for the peer
22568 * tests/attach-f-p.test: Assume that ./attach-f-p-cmd works.
22569 Use $OUT for expected output. Use attach-f-p-cmd for unlocking $OUT.
22571 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22573 tests: robustify attach-p-cmd.test against race conditions.
22574 Introduce a synchronization mechanism between attach-p-cmd-p
22575 and attach-p-cmd-cmd processes.
22577 * tests/attach-p-cmd-cmd.c: Include <errno.h> and <sys/stat.h>.
22578 (main): Wait for the lock directory creation by attach-p-cmd-p.
22579 * tests/attach-p-cmd-p.c: Include <errno.h> and <sys/stat.h>.
22580 (main): Create a lock directory and wait for its removal
22581 by attach-p-cmd-cmd.
22582 * tests/attach-p-cmd.test: Assume that test programs work.
22584 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22608 (inject_syscall_fault_entering): Update per-personality allocation
22609 of tcp->fault_vec.
22610 * tests/fault_injection-exit_group.test: Check parsing of inversed
22612 * tests/fault_injection.test: Check parsing of -efault=none.
22613 * tests/options-syntax.test: Check parsing of invalid syscall numbers.
22639 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22656 * tests/options-syntax.test: Check invalid sets of descriptors.
22659 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22661 tests: skip redirect-fds.test when strace is wrapped with valgrind.
22666 * tests/redirect-fds.test: Skip the test when $STRACE shows a presence
22669 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22673 sched_getaffinity, add a suppression file for this case.
22678 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22687 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22689 tests: make options-syntax.test tolerant of strace wrappers.
22692 * tests/options-syntax.test: Strip all words but last from $STRACE
22696 2016-12-04 Dmitry V. Levin <ldv@altlinux.org>
22698 Do not allocate memory for line buffered output.
22699 libc is perfectly capable of allocating memory for its buffers,
22702 * strace.c (init): Do not allocate memory for setvbuf invocation.
22704 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22713 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22724 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22727 uid: use printuid for printing UID/GID value.
22736 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22738 tests: additional check for PTRACE_SETSIGINFO ptrace command.
22741 2016-12-01 Dmitry V. Levin <ldv@altlinux.org>
22748 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22750 Print syscall names only for defined syscalls.
22752 as there is no such constant defined.
22754 * syscall.c (syscall_name): Return NULL if there is no syscall
22762 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22776 * swapon.c (SYS_FUNC(swapon)): Do not check for non-zero the value
22780 2016-12-01 Elvira Khabirova <lineprinter0@gmail.com>
22786 pattern line read, print it as a prefix for non-matched pattern.
22788 2016-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
22798 2016-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
22800 tests: additional checks for prctl-* tests.
22801 * tests/prctl-pdeathsig.c (main): Additional checks.
22802 * tests/prctl-tsc.c (main): Likewise.
22803 * tests/prctl-pdeathsig.test: Update value of -a argument.
22804 * tests/prctl-tsc.test: Likewise.
22806 2016-11-30 JingPiao Chen <chenjingpiao@foxmail.com>
22808 tests: add prctl-pdeathsig.test and prctl-tsc.test.
22809 * tests/prctl-pdeathsig.c: New file.
22810 * tests/prctl-tsc.c: Likewise.
22811 * tests/prctl-pdeathsig.test: New test.
22812 * tests/prctl-tsc.test: Likewise.
22813 * tests/.gitignore: Add prctl-pdeathsig and prctl-tsc.
22815 (DECODER_TESTS): Add prctl-pdeathsig.test and prctl-tsc.test.
22817 2016-11-30 Dmitry V. Levin <ldv@altlinux.org>
22823 * util.c (string_to_uint_ex): Fix the check for integer overflow
22838 * syscall.c (dumpio): Remove SEN_printargs check. Use tcp->s_ent->sen
22841 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22846 * tests/read-write.c: Include <asm/unistd.h> and "kernel_types.h".
22850 x32: fix preadv2-pwritev2.test.
22851 * tests/preadv2-pwritev2.c: Include "kernel_types.h".
22859 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22867 2016-11-29 Elvira Khabirova <lineprinter0@gmail.com>
22874 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22882 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22886 -e fault=!SET
22889 -e fault=!SET1:error=ERRNO1, -e fault=!SET2:error=ERRNO2
22898 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22909 (main): Add checks for invalid pointers.
22922 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22925 This is necessary for the upcoming change in the output format
22934 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22936 util: check dflt argument for NULL in printxvals.
22937 This is necessary for the upcoming change in the output format
22942 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22949 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
22953 * tests/preadv2-pwritev2.c (dumpio): Likewise.
22963 tests: check -C option.
22964 * tests/strace-C.expected: New file.
22965 * tests/strace-C.test: New test.
22966 * tests/Makefile.am (MISC_TESTS): Add strace-C.test.
22967 (EXTRA_DIST): Add strace-C.expected.
22970 * tests/options-syntax.test: New file.
22973 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
22975 Fix -r option syntax.
22976 While -r option implies -t, it should not literally have the effect
22977 of -t option, e.g. -rr should not increment tflag twice.
22979 * strace.c (init): In the getopt loop, do not increment tflag for each
22980 occurrence of -r option. After the getopt loop, if rflag is set, set
22981 tflag to 1. Issue a warning that -tt has no effect with -r.
22983 2016-11-28 Eugene Syromyatnikov <evgsyr@gmail.com>
22995 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23005 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23017 Suggested-by: Eugene Syromyatnikov <evgsyr@gmail.com>
23019 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23022 After commit v4.14-136-g151d1d1 that removed the last object common
23023 for timespec and timeval parsers there is no need to keep them all
23032 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23034 tests: check decoding of threads when a non-leader thread invokes execve
23035 * tests/threads-execve.c: New file.
23036 * tests/threads-execve.test: New test.
23037 * tests/.gitignore: Add threads-execve.
23040 (MISC_TESTS): Add threads-execve.test.
23042 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23046 * tests/fault_injection-exit_group.expected: Likewise.
23047 * tests/fault_injection-exit_group.test: New test.
23050 (DECODER_TESTS): Add fault_injection-exit_group.test.
23051 (EXTRA_DIST): Add fault_injection-exit_group.expected.
23053 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23056 Do not assume that some syscalls do not generate syscall-exit-stops.
23057 When syscalls fail for any reason they may generate syscall-exit-stops.
23059 The solution is to wait for an actual exit reported by PTRACE_EVENT_EXIT
23071 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23080 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23085 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23091 tcp->qual_flg when tcp->flags has TCB_HIDE_LOG bit set.
23093 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23096 A simultaneous use of -p option and tracing of a command available
23097 since commit v4.11-183-gfa8c286 introduces a race condition because
23120 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23126 2016-11-25 Dmitry V. Levin <ldv@altlinux.org>
23137 (qualify): For QUAL_FAULT options, pass the whole option value
23143 2016-11-24 Dmitry V. Levin <ldv@altlinux.org>
23149 2016-11-26 Eugene Syromyatnikov <evgsyr@gmail.com>
23181 * tests/ppoll-v.expected: Likewise.
23184 * tests/recvmmsg-timeout.c (main): Likewise.
23189 * tests/strace-T.expected: Likewise.
23194 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23196 tests: robustify prctl-name.test against unrelated prctl invocations.
23197 * tests/prctl-name.test: Filter out unrelated PR_GET_* prctl calls.
23199 2016-11-22 Dmitry V. Levin <ldv@altlinux.org>
23201 tests: cleanup prctl-name.c.
23202 * tests/prctl-name.c (main): Remove "len" variable, rename "len1"
23217 maint: add more workarounds for alpha and powerpc.
23219 asm-generic/ioctls.h those macros that are defined using unavailable
23222 2016-11-22 Andreas Schwab <schwab@linux-m68k.org>
23224 Add ioctl definitions for 16-bit alignment.
23229 2016-11-22 Dmitry V. Levin <ldv@altlinux.org>
23235 2016-11-21 Dmitry V. Levin <ldv@altlinux.org>
23238 * maint/ioctls_gen.sh: Consistently specify INCLUDES for all
23242 maint: rework workarounds for linux/kvm.h.
23243 * maint/ioctls_sym.sh: Remove pre-include linux/kvm.h workarounds.
23244 Skip linux/kvm.h on those architectures that have no asm/kvm.h file.
23245 Introduce post-process workarounds, add post-process workarounds
23246 for linux/kvm.h.
23248 2016-11-20 Elvira Khabirova <lineprinter0@gmail.com>
23255 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23260 (SYS_FUNC(prctl)): Add handling for PR_SET_FP_MODE and PR_GET_FP_MODE
23263 prctl: add braces for conditional blocks with else/else-if blocks having braces
23265 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23268 Kernel code does this when compares it with -1 (apart from comparing it with
23269 PR_SET_PTRACER_ANY, which is also -1) in security/yama/yama_lsm.c.
23272 comparing it with -1.
23274 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23276 prctl: use getarg_ull for option value retrieval.
23289 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23298 block.c:113: error: 'struct_blkpg_ioctl_arg' has no member named 'data'
23308 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23316 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23319 There are no users of prctl function in prctl.c, and all the rest
23324 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23327 * tests/prctl-name.c: New file.
23328 * tests/prctl-name.test: New test.
23329 * tests/.gitignore: Add prctl-name.
23331 (DECODER_TESTS): Add prctl-name.test.
23341 Ensure that str[size] byte is non-zero if it hasn't been fetched.
23343 2016-11-19 Dmitry V. Levin <ldv@altlinux.org>
23347 the fetched string as a NUL-terminated.
23348 After this change, the string is being fetched as a NUL-terminated, too.
23353 2016-11-19 Dmitry V. Levin <ldv@altlinux.org>
23358 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23362 ARCH_MAP_VDSO_64 introduced by linux kernel commit v4.9-rc1~155^2~6.
23366 by linux kernel commit v4.9-rc4~7^2~422.
23368 by linux kernel commit v4.9-rc4~7^2~422.
23372 v4.9-rc1~45^2^2~5.
23376 by linux kernel commit v4.9-rc1~57^2~1^2~7.
23380 by linux kernel commit v4.9-rc1~31^2~69.
23385 by linux kernel commit v4.9-rc1~7^2^2~4.
23389 by linux kernel commit v4.9-rc1~127^2~302^2~4.
23391 2016-11-18 Eugene Syromyatnikov <evgsyr@gmail.com>
23393 make-dist: use HEAD for making distribution package.
23394 * make-dist: Use HEAD commit instead of master branch by default.
23396 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23408 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23417 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23426 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23428 tests: check -e signal=set syntax.
23435 2016-11-17 Dmitry V. Levin <ldv@altlinux.org>
23437 Make -e fault= expressions cumulative.
23438 Change the way how subsequent -e fault= expressions are interpreted
23439 to implement a cumulative behavior. For example,
23440 -e fault=file:when=3+ -e fault=chdir
23442 except chdir are subject for fault injection.
23444 * syscall.c (qualify): Do not reset qual_vec for QUAL_FAULT.
23447 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23457 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23460 Introduce new -e fault=EXPR syntax that can be used to specify a subset
23470 syscall number -1, and on exiting syscall the error code returned by
23480 * strace.1: Document -e fault expression syntax.
23481 * strace.c (usage): Mention -e fault expression.
23498 (qualify): Use reallocate_fault. Do not check "all" class for
23500 (lookup_class): Check for "all" class.
23515 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23518 This introduces arch_set_error and arch_set_scno functions for each
23583 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23586 The incomplete CRIS support introduced by commit v4.5.18-77-gea0e6e8
23590 This change adds missing syscall tables for crisv10 and crisv32.
23596 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23608 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23619 2016-11-15 Dmitry V. Levin <ldv@altlinux.org>
23624 2016-11-14 Dmitry V. Levin <ldv@altlinux.org>
23629 2016-11-13 Dmitry V. Levin <ldv@altlinux.org>
23634 * tests/ioctl_block.c (init_magic): Define only for
23637 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23639 Add support for pkey_mprotect, pkey_alloc, pkey_free syscalls.
23640 * linux/32/syscallent.h: Add syscall entries for pkey_* calls.
23644 * linux/mips/syscallent-n32.h: Likewise.
23645 * linux/mips/syscallent-n64.h: Likewise.
23646 * linux/mips/syscallent-o32.h: Likewise.
23649 * mem.c (do_mprotect): New function, common handler for mprotect and
23669 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23673 alarm.c:41: warning: integer constant is too large for 'long' type
23675 aio.c:162: warning: integer constant is too large for 'long' type
23677 btrfs.c:202: warning: integer constant is too large for 'long' type
23679 btrfs.c:289: warning: integer constant is too large for 'long' type
23680 btrfs.c:290: warning: integer constant is too large for 'long' type
23682 dup2.c:12: warning: integer constant is too large for 'long' type
23683 dup2.c:13: warning: integer constant is too large for 'long' type
23685 dup3.c:13: warning: integer constant is too large for 'long' type
23686 dup3.c:14: warning: integer constant is too large for 'long' type
23688 epoll_create.c:12: warning: integer constant is too large for 'long' type
23690 epoll_ctl.c:14: warning: integer constant is too large for 'long' type
23692 faccessat.c:13: warning: integer constant is too large for 'long' type
23694 fchdir.c:12: warning: integer constant is too large for 'long' type
23696 struct_flock.c:48: warning: integer constant is too large for 'long' type
23698 struct_flock.c:58: warning: integer constant is too large for 'long' type
23699 struct_flock.c:59: warning: integer constant is too large for 'long' type
23701 fcntl64.c:44: warning: integer constant is too large for 'long' type
23702 fcntl64.c:45: warning: integer constant is too large for 'long' type
23704 fcntl.c:44: warning: integer constant is too large for 'long' type
23705 fcntl.c:45: warning: integer constant is too large for 'long' type
23707 fdatasync.c:12: warning: integer constant is too large for 'long' type
23709 flock.c:13: warning: integer constant is too large for 'long' type
23711 xstatx.c:255: warning: integer constant is too large for 'long' type
23712 xstatx.c:290: warning: integer constant is too large for 'long' type
23713 xstatx.c:290: warning: integer constant is too large for 'long' type
23714 xstatx.c:290: warning: integer constant is too large for 'long' type
23715 xstatx.c:290: warning: integer constant is too large for 'long' type
23716 xstatx.c:290: warning: integer constant is too large for 'long' type
23717 xstatx.c:290: warning: integer constant is too large for 'long' type
23718 xstatx.c:290: warning: integer constant is too large for 'long' type
23719 xstatx.c:290: warning: integer constant is too large for 'long' type
23720 xstatx.c:290: warning: integer constant is too large for 'long' type
23721 xstatx.c:294: warning: integer constant is too large for 'long' type
23722 xstatx.c:294: warning: integer constant is too large for 'long' type
23723 xstatx.c:294: warning: integer constant is too large for 'long' type
23724 xstatx.c:294: warning: integer constant is too large for 'long' type
23725 xstatx.c:294: warning: integer constant is too large for 'long' type
23726 xstatx.c:294: warning: integer constant is too large for 'long' type
23727 xstatx.c:294: warning: integer constant is too large for 'long' type
23728 xstatx.c:294: warning: integer constant is too large for 'long' type
23729 xstatx.c:294: warning: integer constant is too large for 'long' type
23731 xstatfsx.c:113: warning: integer constant is too large for 'long' type
23733 fsync.c:12: warning: integer constant is too large for 'long' type
23735 ftruncate64.c:39: warning: integer constant is too large for 'long' type
23737 futimesat.c:52: warning: integer constant is too large for 'long' type
23738 futimesat.c:59: warning: integer constant is too large for 'long' type
23740 get_mempolicy.c:83: warning: integer constant is too large for 'long' type
23741 get_mempolicy.c:84: warning: integer constant is too large for 'long' type
23742 get_mempolicy.c:85: warning: integer constant is too large for 'long' type
23743 get_mempolicy.c:86: warning: integer constant is too large for 'long' type
23745 getdents.c:109: warning: integer constant is too large for 'long' type
23746 getdents.c:110: warning: integer constant is too large for 'long' type
23747 getdents.c:114: warning: integer constant is too large for 'long' type
23749 getdents64.c:114: warning: integer constant is too large for 'long' type
23750 getdents64.c:115: warning: integer constant is too large for 'long' type
23751 getdents64.c:119: warning: integer constant is too large for 'long' type
23753 xgetrlimit.c:71: warning: integer constant is too large for 'long' type
23754 ioctl_block.c:44: warning: integer constant is too large for 'long' type
23756 ioctl_block.c:136: warning: integer constant is too large for 'long' type
23757 ioctl_block.c:137: warning: integer constant is too large for 'long' type
23758 ioctl_block.c:161: warning: integer constant is too large for 'long' type
23759 ioctl_block.c:170: warning: integer constant is too large for 'long' type
23760 ioctl_block.c:171: warning: integer constant is too large for 'long' type
23761 ioctl_evdev.c:42: warning: integer constant is too large for 'long' type
23762 ioctl_mtd.c:46: warning: integer constant is too large for 'long' type
23763 ioctl_rtc.c:40: warning: integer constant is too large for 'long' type
23765 ioperm.c:12: warning: integer constant is too large for 'long' type
23767 ioctl_v4l2.c:409: warning: integer constant is too large for 'long' type
23769 ipc.c:52: warning: integer constant is too large for 'long' type
23771 kill.c:59: warning: integer constant is too large for 'long' type
23772 kill.c:62: warning: integer constant is too large for 'long' type
23773 kill.c:63: warning: integer constant is too large for 'long' type
23774 kill.c:68: warning: integer constant is too large for 'long' type
23776 linkat.c:14: warning: integer constant is too large for 'long' type
23777 linkat.c:15: warning: integer constant is too large for 'long' type
23779 mbind.c:41: warning: integer constant is too large for 'long' type
23780 mbind.c:43: warning: integer constant is too large for 'long' type
23781 mbind.c:44: warning: integer constant is too large for 'long' type
23783 migrate_pages.c:41: warning: integer constant is too large for 'long' type
23786 umode_t.c:47: warning: integer constant is too large for 'long' type
23788 mknod.c:16: warning: integer constant is too large for 'long' type
23790 mknod.c:23: warning: integer constant is too large for 'long' type
23791 mknod.c:49: warning: integer constant is too large for 'long' type
23792 mknod.c:56: warning: integer constant is too large for 'long' type
23793 mknodat.c:12: warning: integer constant is too large for 'long' type
23795 mknodat.c:17: warning: integer constant is too large for 'long' type
23797 mknodat.c:24: warning: integer constant is too large for 'long' type
23798 mknodat.c:50: warning: integer constant is too large for 'long' type
23799 mknodat.c:57: warning: integer constant is too large for 'long' type
23801 mmap.c:51: warning: integer constant is too large for 'long' type
23803 move_pages.c:139: warning: integer constant is too large for 'long' type
23805 move_pages.c:166: warning: integer constant is too large for 'long' type
23807 move_pages.c:188: warning: integer constant is too large for 'long' type
23809 mq_sendrecv.c:238: warning: integer constant is too large for 'long' type
23810 mq_sendrecv.c:401: warning: integer constant is too large for 'long' type
23811 mq_sendrecv.c:403: warning: integer constant is too large for 'long' type
23813 nsyscalls.c:64: warning: integer constant is too large for 'long' type
23814 nsyscalls.c:65: warning: integer constant is too large for 'long' type
23815 nsyscalls.c:66: warning: integer constant is too large for 'long' type
23816 nsyscalls.c:67: warning: integer constant is too large for 'long' type
23817 nsyscalls.c:68: warning: integer constant is too large for 'long' type
23818 nsyscalls.c:69: warning: integer constant is too large for 'long' type
23819 preadv-pwritev.c: In function 'main':
23820 preadv-pwritev.c:162: warning: comparison between signed and unsigned
23822 prlimit64.c:65: warning: integer constant is too large for 'long' type
23823 prlimit64.c:70: warning: integer constant is too large for 'long' type
23825 remap_file_pages.c:42: warning: integer constant is too large for 'long' type
23826 remap_file_pages.c:43: warning: integer constant is too large for 'long' type
23827 remap_file_pages.c:45: warning: integer constant is too large for 'long' type
23829 renameat.c:15: warning: integer constant is too large for 'long' type
23830 renameat.c:16: warning: integer constant is too large for 'long' type
23832 rt_sigqueueinfo.c:41: warning: integer constant is too large for 'long' type
23834 rt_tgsigqueueinfo.c:45: warning: integer constant is too large for 'long' type
23835 rt_tgsigqueueinfo.c:46: warning: integer constant is too large for 'long' type
23836 rt_tgsigqueueinfo.c:47: warning: integer constant is too large for 'long' type
23838 rt_tgsigqueueinfo.c:67: warning: integer constant is too large for 'long' type
23840 sendfile.c:110: warning: integer constant is too large for 'long' type
23842 sendfile64.c:100: warning: integer constant is too large for 'long' type
23844 set_mempolicy.c:129: warning: integer constant is too large for 'long' type
23845 set_mempolicy.c:130: warning: integer constant is too large for 'long' type
23847 setrlimit.c:44: warning: integer constant is too large for 'long' type
23849 socketcall.c:58: warning: integer constant is too large for 'long' type
23851 splice.c:41: warning: integer constant is too large for 'long' type
23852 splice.c:42: warning: integer constant is too large for 'long' type
23853 splice.c:45: warning: integer constant is too large for 'long' type
23854 splice.c:46: warning: integer constant is too large for 'long' type
23856 symlinkat.c:12: warning: integer constant is too large for 'long' type
23858 sync_file_range.c:42: warning: integer constant is too large for 'long' type
23859 sync_file_range.c:43: warning: integer constant is too large for 'long' type
23861 syslog.c:14: warning: integer constant is too large for 'long' type
23863 tee.c:41: warning: integer constant is too large for 'long' type
23864 tee.c:42: warning: integer constant is too large for 'long' type
23866 timer_create.c:52: warning: integer constant is too large for 'long' type
23867 timer_create.c:84: warning: integer constant is too large for 'long' type
23868 timer_create.c:85: warning: integer constant is too large for 'long' type
23870 truncate64.c:41: warning: integer constant is too large for 'long' type
23872 xgetrlimit.c:71: warning: integer constant is too large for 'long' type
23874 umode_t.c:46: warning: integer constant is too large for 'long' type
23876 unlinkat.c:13: warning: integer constant is too large for 'long' type
23878 waitpid.c:43: warning: integer constant is too large for 'long' type
23880 waitid.c:141: warning: integer constant is too large for 'long' type
23882 xetpriority.c:15: warning: integer constant is too large for 'long' type
23883 xetpriority.c:19: warning: integer constant is too large for 'long' type
23884 xetpriority.c:20: warning: integer constant is too large for 'long' type
23886 xetpgid.c:43: warning: integer constant is too large for 'long' type
23887 xetpgid.c:47: warning: integer constant is too large for 'long' type
23888 xetpgid.c:48: warning: integer constant is too large for 'long' type
23963 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23966 preadv-pwritev.c: In function 'main':
23967 preadv-pwritev.c:162: warning: comparison between signed and unsigned
23973 * tests/preadv-pwritev.c (main): Cast r_len to int.
23977 2016-11-13 Dmitry V. Levin <ldv@altlinux.org>
23995 (get_regs): Check for ptrace_getregset_or_getregs instead
23998 ptrace_getregs. Check for HAVE_GETREGS_OLD instead of X86_64
24002 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
24006 kernel headers instead of UAPI ones. For example, on SLES 11SP4:
24008 gcc -DHAVE_CONFIG_H -I./linux/x86_64 -I./linux -I. -Wall -O2 -c net.c
24015 gcc_compat.h:59:27: error: negative width in bit-field '<anonymous>'
24029 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24037 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24043 2016-11-12 Andreas Schwab <schwab@linux-m68k.org>
24062 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24070 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24076 2016-11-12 Eugene Syromyatnikov <evgsyr@gmail.com>
24081 * linux/x32/syscallent.h: Change initializer indices for empty records from
24084 2016-11-11 Dmitry V. Levin <ldv@altlinux.org>
24094 2016-11-11 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
24103 2016-11-10 Eugene Syromyatnikov <evgsyr@gmail.com>
24107 2016-11-10 Mikulas Patocka <mpatocka@redhat.com>
24110 Add support for decoding of DM_* ioctl commands.
24114 * configure.ac (AC_CHECK_HEADERS): Add linux/dm-ioctl.h.
24117 for 0xfd ioctl type.
24119 * tests/ioctl_dm-v.c: Likewise.
24121 * tests/ioctl_dm-v.test: Likewise.
24122 * tests/.gitignore: Add ioctl_dm and ioctl_dm-v.
24124 (DECODER_TESTS): Add ioctl_dm.test and ioctl_dm-v.test.
24126 2016-11-10 Dmitry V. Levin <ldv@altlinux.org>
24131 2016-11-10 Eugene Syromyatnikov <evgsyr@gmail.com>
24133 util: add support for QUOTE_0_TERMINATED in user_style to ptrintstr_ex.
24134 This enables printing size-limited (expectedly) ASCIZ strings.
24136 This is done by increasing umoven size limit for sized strings by one
24140 -1). As a result, there is one excess byte for string_quote in case
24141 QUOTE_0_TERMINATED is set so string_quote can check for NUL termination
24145 The catch here is that when string is not properly NUL-terminated and
24147 max_strlen then last non-NUL byte is not printed. But ellipsis is
24152 * util.c (printstr_ex): Copy one excess byte in case of non-negative len
24154 in case QUOTE_0_TERMINATED is set separately; check for need of printing
24157 2016-11-09 Eugene Syromyatnikov <evgsyr@gmail.com>
24161 * tests/mq_sendrecv-read.c: Likewise.
24162 * tests/mq_sendrecv-write.c: Likewise.
24164 * tests/mq_sendrecv-read.test: Likewise.
24165 * tests/mq_sendrecv-write.test: Likewise.
24166 * tests/.gitignore: Add mq_sendrecv, mq_sendrecv-read,
24167 and mq_sendrecv-write.
24171 (DECODER_TESTS): Add mq_sendrecv.test, mq_sendrecv-read.test,
24172 and mq_sendrecv-write.test.
24174 2016-11-08 Dmitry V. Levin <ldv@altlinux.org>
24178 for CLOCK_PROCESS_CPUTIME_ID timer.
24180 2016-10-31 Eugene Syromyatnikov <evgsyr@gmail.com>
24182 tests: add tests for perf_event_attr structure decoding in perf_event_open
24183 * configure.ac: Add checks for presence of various fields of struct
24211 (PRINT_XLAT): New macro for simplifying printing values from
24213 (printxlat_search): New function, wrapper for xlat_search with behaviour
24217 (SYS_FUNC(perf_event_open)): Use print_perf_event_attr for displaying
24221 * tests/perf_event_open.test: add -e verbose=none in order to preserve
24224 tests/perf_event_open_nonverbose.test; add -e trace=perf_event_open.
24228 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24240 * tests/quotactl-xfs.c (main): Likewise.
24255 * print_statfs.c (print_statfs_type): Use printxval_search for printing
24258 util: add printing helper for sorted xlat arrays.
24264 defs: add check for argument being array to ARRAY_SIZE macro.
24267 * defs.h (ARRAY_SIZE): Add MUST_BE_ARRAY for build-time type check.
24277 (print_stat) [OLD_STAT]: Print predefined values for
24279 (print_stat): Check for !OLD_STAT in nanosecond precision checks.
24281 (main): Test for successful rc in returned size value check;
24282 print address only on non-successful rc.
24293 (main): Add a check for non-available pointer and a check
24294 for block device file.
24298 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24300 tests: prepare for additional tests of stat decoders.
24302 pair in order to save errno. PRINT_SYSCALL_FOOTER now uses sprintrc for
24312 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24319 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24325 * mq.c (SYS_FUNC(mq_timedreceive)): Use printnum_int for printing
24328 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24331 Also, use u_rval for determining message size.
24333 * mq.c (SYS_FUNC(mq_timedreceive)): Check for syserror and non-negative
24337 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24343 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24354 mq_attr to long long type; use mq_attr_flags xlat for printing mq_flags;
24357 * mq.c (SYS_FUNC(mq_open)): Specify value of false for decode_flags
24359 (SYS_FUNC(mq_getsetattr)): Specify value of true for decode_flags
24363 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24367 to "%llu", use getarg_ull for obtaining msg_len parameter.
24375 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24381 of "%ld" for printing mqdes (0th parameter), cast parameter value to
24387 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24390 Use curly brackets for denoting blocks in both of if branches if they
24397 tests: require only presence of __NR_* macros for file_handle test.
24409 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24411 file_handle: use separate xlat for name_ta_handle_at flags.
24417 for printing flags parameter.
24419 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24430 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24436 * kexec.c (SYS_FUNC(kexec_load)): Use widen_to_ulong for casting
24439 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24455 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24459 implement no compat for this call.
24461 * clone.c (SYS_FUNC(unshare)): Use getarg_ull and printflags64 for
24464 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24466 clone: use separate flag list for unshare.
24471 * clone.c (SYS_FUNC(unshare)): Use unshare_flags for printing flags
24474 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24483 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24485 clone: use separate xlat for nstype parameter of setns syscall.
24490 * clone.c: Use printxval and setns_types for nstype parameter.
24492 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24494 tests: check non-verbose capget/capset output.
24495 * tests/caps-abbrev.awk: New file.
24496 * tests/caps-abbrev.c: Likewise.
24497 * tests/caps-abbrev.test: New test.
24498 * tests/.gitignore: Add caps-abbrev.
24500 (DECODER_TESTS): Add caps-abbrev.test.
24501 (EXTRA_DIST): Add caps-abbrev.awk.
24504 * tests/caps.awk: Add patterns for additional checks.
24514 tests: some additional checks for fanotify_mark.
24535 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24537 bjm: use getarg_ull for retrieving first two parameters of init_module syscall
24538 As init_module has no compat wrapper, its first parameter is a pointer
24546 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24554 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24556 xlat: add values for MODULE_INIT_* constants.
24559 * xlat/module_init_flags.in: Add values for
24562 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24566 and strace does not support those kernels, there is no use to keep this
24572 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24585 process_vm: use widen_to_ulong for local_iovcnt, renote_iovcnt, and flags
24587 SYS_FUNC(process_vm_writev)): Use widen_to_ulong for local_iovcnt,
24590 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24593 This is similar to widen_to_long, but for unsigned values.
24597 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24601 SYS_FUNC(process_vm_writev)): Change conversion specifier for pid
24604 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24606 process_vm: remove syserror check for iovec printing.
24609 * process_vm.c (SYS_FUNC(process_vm_readv)): Use tprint_iov_upto for
24610 printing local_iov; do not check for syserror, provide decode_iov
24613 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24623 (on the other hand, there are no cases of such behaviour at the moment).
24634 * tests/preadv.c: Update expected output for the case when preadv
24635 with singe-item iovec failed.
24637 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24644 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24646 v4l2: check for verbose flag in umoven_or_printaddr_ignore_syserror.
24653 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24662 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24668 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24679 xlat: use IN_* prefix for inotify_init1 flag constants.
24680 * xlat/inotify_init_flags.in: Replace O_* prefix with IN_* prefix for
24690 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24696 specifier from "%lu" to "%llu", use getarg_ull for len argument
24699 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24703 field. Useful for checking whether specific field is present in obtained
24708 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24729 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24731 xlat: provide fallback definitions for CLOCK_* constants.
24737 * xlat/clocknames.in: Add values for constants.
24739 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24749 use it as a divisor in non-constant part of value.
24751 * tests/quotactl-xfs.c (main): Likewise.
24753 2016-10-05 Dmitry V. Levin <ldv@altlinux.org>
24755 Post-release administrivia.
24756 * NEWS: Add a header line for the next release.
24757 * debian/changelog.in: Add a changelog entry for 4.14-1.
24760 2016-10-04 Dmitry V. Levin <ldv@altlinux.org>
24762 Prepare for 4.14 release.
24763 * NEWS: Update for 4.14 release.
24768 2016-10-04 Dmitry V. Levin <ldv@altlinux.org>
24776 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24789 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24792 This potentially fixes keyctl decoder for x32 personality.
24803 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24816 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24818 keyctl: use printstr_ex for printing out buffer.
24820 as NUL-terminated, which is not true. We fix it by adding parameter to
24821 keyctl_read_key signalising whether buffer is NUL-terminated and using
24822 printstr_ex for printing (expectedly) NUL-terminated strings.
24824 * keyctl.c (keyctl_read_key): Add has_nul parameter. Do not use -1 as
24825 string len. Use printstr_ex for buffer output with user style depending
24830 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24832 Add printstr_ex which allows for providing user quotation style.
24833 This is useful for providing QUOTE_OMIT_TRAILING_0 and maybe other
24842 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24844 util: add quote_string flag signalising that string is NUL-terminated.
24846 NUL-terminated but are not trustworthy enough to call just plain
24847 printstr(str, -1).
24853 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24855 keyctl: add support for KEYCTL_DH_COMPUTE.
24858 (SYS_FUNC(keyctl)): Add support for KEYCTL_DH_COMPUTE cmd value.
24860 2016-10-03 Dmitry V. Levin <ldv@altlinux.org>
24862 x86_64: fix is_negated_errno for x32 personality.
24864 to uint32_t for x32 personality.
24872 of open-coding it. Print unrecognized errno values using %lu format
24875 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24881 Add function for getting errno string.
24885 2016-10-03 Dmitry V. Levin <ldv@altlinux.org>
24888 This is the type actually used for the error code on architectures
24893 to unsigned long, print it using %lu format, drop no longer needed
24897 2016-10-02 Dmitry V. Levin <ldv@altlinux.org>
24901 btrfs_ioctl): Replace tprintf with tprints for printing strings without
24908 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24910 keyctl: do not print comma for KEYCTL_SESSION_TO_PARENT command.
24913 arguments, it's better to add special case for it rather than add
24916 * keyctl.c (SYS_FUNC(keyctl)): Add check for command not being
24920 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24922 keyctl: use getarg_ull for printing generic arguments.
24923 Otherwise it is erroneous on x32, for example.
24926 and getarg_ull for fallback argument printing.
24928 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24930 keyctl: use printuid for printing UID/GID.
24931 UID/GID are unsigned except special -1 value (which is also special in
24936 instead of printf with "%d" conversion for printing UID/GID.
24938 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24940 io: handle data_size of -1 as unlimited data in print_iovec.
24944 * io.c (print_iovec): Interpret c->data_size of -1 as unlimited data
24947 2016-10-01 Dmitry V. Levin <ldv@altlinux.org>
24950 Fix test regression introduced by commit v4.13-225-g55334ef.
24954 2016-09-30 Dmitry V. Levin <ldv@altlinux.org>
24956 Enhance -e abbrev=set, -e raw=set, and -e verbose=set.
24958 For example, this allows such syntax as -e verbose=file.
24965 2016-09-30 Dmitry V. Levin <ldv@altlinux.org>
24971 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24984 2016-09-28 Dmitry V. Levin <ldv@altlinux.org>
24988 argument of 7-arg syscalls.
24990 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24992 x32: use proper decoder for fadvise64 syscall.
24999 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25001 fadvise: use getarg_ull for obtaining len argument of fadvise64 syscall.
25002 Since its type is size_t, it is 64-bit wide on x32 and special care
25005 * fadvise.c (SYS_FUNC(fadvise64)): Use getarg_ull for obtaining value
25008 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25012 peculiarities of runtimes which employ tcp->ext_arg (e.g. x32).
25018 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25025 "%ld" to "%lu" for printing len argument since kernel expects argument
25028 2016-09-28 Dmitry V. Levin <ldv@altlinux.org>
25030 sh64, sparc64: use proper decoder for fadvise64_64 syscall.
25031 This change is no-op yet, but things will change when decoder
25038 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25048 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25055 * fallocate.c (SYS_FUNC(fallocate)): Change conversion specifier for
25058 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25060 xlat: add default values for falloc_flags constants.
25064 * xlat/falloc_flags.in: Add default values for constants.
25066 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25077 in order to enable detection of potential 4-byte aligned shifts.
25080 * tests/getcwd.c (main): Add more checks for getcwd arguments decoding.
25085 * tests/.gitignore: Add quotactl, quotactl-v, quotactl-xfs,
25086 and quotactl-xfs-v.
25088 (DECODER_TESTS): Add quotactl.test, quotactl-v.test,
25089 quotactl-xfs.test, and quotactl-xfs-v.test.
25093 * quotactl-v.c: Likewise.
25094 * quotactl-xfs.c: Likewise.
25095 * quotactl-xfs-v.c: Likewise.
25097 * quotactl-v.test: Likewise.
25098 * quotactl-xfs.test: Likewise.
25099 * quotactl-xfs-v.test: Likewise.
25101 2016-09-27 Dmitry V. Levin <ldv@altlinux.org>
25117 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25120 Support for these quota subcommands by linux kernels has been dropped
25132 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25138 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25141 Since the only difference between 32-bit and 64-bit environments
25147 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25149 quota: Add decoding for Q_XQUOTARM subcommand.
25153 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25156 Q_XQUOTASYNC is no-op, but it does not require id/addr arguments anyway.
25159 dispatch switch since id/addr arguments for these subcommands are known
25162 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25170 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25172 quota: avoid printing id argument for those commands that ignore it.
25173 As id argument is not used for Q_QUOTAOFF, Q_GETFMT, Q_V2_GETINFO,
25176 Q_V2_GETSTATS subcommands, do not print it for these subcommands.
25179 of id argument for Q_GETQUOTA, Q_SETQUOTA, Q_GETNEXTQUOTA,
25185 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25187 quota: use printuid for id parameter printing.
25188 * quota.c (SYS_FUNC(quotactl)): Since id call argument is used for
25189 user/group/project ID which all have special semantics for -1,
25196 2016-09-26 Dmitry V. Levin <ldv@altlinux.org>
25198 tests: use VERBOSE macro in waitid and waitid-v tests.
25199 * tests/waitid-v.c (VERBOSE_RUSAGE): Remove.
25204 tests: use VERBOSE macro in wait4 and wait4-v tests.
25205 * tests/wait4-v.c (VERBOSE_RUSAGE): Remove.
25210 tests: use VERBOSE macro in msg_control and msg_control-v tests.
25211 * tests/msg_control-v.c (VERBOSE_MSGHDR): Remove.
25216 tests: use VERBOSE macro in mmsg_name and mmsg_name-v tests.
25217 * tests/mmsg_name-v.c (VERBOSE_MMSGHDR): Remove.
25222 tests: use VERBOSE macro in ioctl_rtc and ioctl_rtc-v tests.
25223 * tests/ioctl_rtc-v.c (VERBOSE_IOCTL): Remove.
25228 tests: use VERBOSE macro in ioctl_evdev and ioctl_evdev-v tests.
25229 * tests/ioctl_evdev-v.c (VERBOSE_IOCTL): Remove.
25233 tests: use VERBOSE macro in execveat and execveat-v tests.
25234 * tests/execveat-v.c (VERBOSE_EXECVEAT): Remove.
25238 tests: use VERBOSE macro in execve and execve-v tests.
25239 * tests/execve-v.c (VERBOSE_EXECVE): Remove.
25243 2016-09-26 Dmitry V. Levin <ldv@altlinux.org>
25247 to 1 by code testing "strace -v" output.
25251 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25261 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25279 * tests/fchmod.test: Update the value specified for strace -a parameter.
25287 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
25303 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
25306 Add *_MAGIC constants defined for some relatively widespread
25307 non-mainline filesystems.
25312 2016-09-15 Eugene Syromyatnikov <evgsyr@gmail.com>
25314 tests: fix whitespace for explicit type casts in futex test.
25316 2016-09-14 Dmitry V. Levin <ldv@altlinux.org>
25329 2016-09-14 Dmitry V. Levin <ldv@altlinux.org>
25338 2016-09-13 Dmitry V. Levin <ldv@altlinux.org>
25341 musl libc forwards semctl command argument for 8 known commands only,
25342 for all the rest it passes 0 instead.
25346 2016-09-13 Eugene Syromyatnikov <evgsyr@gmail.com>
25354 * tests/semop.c: Additional semop checks. Add checks for semtimedop.
25355 * tests/semop.test: Add explicit -e parameter in order to trace both
25359 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25365 2016-09-12 Eugene Syromyatnikov <evgsyr@gmail.com>
25367 .mailmap: add canonical name for Eugene Syromyatnikov.
25371 * .mailmap: Add canonical name for Eugene Syromyatnikov.
25373 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25380 2016-09-12 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
25385 maint: update for linux 4.8.
25386 * maint/ioctls_sym.sh: Add workarounds for linux/atm_zatm.h and
25389 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25397 2016-09-11 Dmitry V. Levin <ldv@altlinux.org>
25402 2016-09-10 Dmitry V. Levin <ldv@altlinux.org>
25407 2016-09-09 Dmitry V. Levin <ldv@altlinux.org>
25417 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
25421 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
25430 2016-09-09 Dmitry V. Levin <ldv@altlinux.org>
25435 flag for all sysentries of io_setup and io_destroy using the following
25437 sed -ri '/io_setup|io_destroy/ s/0,/TM,/' linux/*/syscallent*.h
25441 2016-09-08 Dmitry V. Levin <ldv@altlinux.org>
25444 * .travis.yml (matric): Add musl-gcc/x86.
25445 * travis-build.sh [TARGET == x86]: Specify --target along with --build
25447 * travis-install.sh [CC == musl-gcc && TARGET == x32]: Add -mx32 to $CC.
25448 [CC == musl-gcc && TARGET == x86]: Add -m32 to $CC. Specify --build
25449 and --target to musl configure invocation.
25451 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25459 * tests/aio.c (main): Use PRI__*64 macros for correct format conversion
25460 specifiers for __*64-typed values.
25462 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25468 for semid argument.
25469 (SYS_FUNC(semget)): Likewise, for nsems argument.
25470 (SYS_FUNC(semctl)): Likewise, for semid and semnum arguments.
25471 * ipc_shm.c (SYS_FUNC(shmat)): Likewise, for shmid argument.
25474 2016-09-08 Dmitry V. Levin <ldv@altlinux.org>
25486 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25492 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25501 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25504 New sprintrc_grep function is sprintrc function equivalent suitable for
25505 tests where grep-base pattern matching is employed.
25514 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25521 pointer. Use tail_alloc for sched_attr allocation, update printf
25524 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25529 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25531 tests/aio.c: fix for x32 personality.
25532 * tests/aio.c (main): Do not pass 64-bit aio_context_t to io_submit
25533 and io_getevents until strace learns how to print 64-bit pointers on x32
25534 and on x86_64 for x32 personality.
25536 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25549 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25555 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25561 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25563 tests: add suffix and cast to 64-bit constants in aio test.
25565 "integer constant is too large for ‘long’ type"
25566 reported by some versions of gcc on 32-bit platforms.
25568 * tests/aio.c (main): Add ULL suffix to 64-bit constants
25571 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25584 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25622 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25625 * tests/aio.c (main): Change output format for min_nr and nr arguments
25628 tests: use sprintrc for return code output in aio test.
25629 * tests/aio.c (main): Use sprintrc for return code output.
25631 tests: add more tests for ched_rr_get_interval decoding.
25635 tests: use sprintrc for return code output in sched_rr_get_interval test
25636 * tests/sched_rr_get_interval.c (main): Use sprintrc for return code
25639 tests: add more tests for sched_getscheduler and sched_xetscheduler.
25640 * tests/sched_xetscheduler.c (main): Check for decoding of invalid PID
25644 tests: use sprintrc for return code output in sched_xetscheduler test.
25645 * tests/sched_xetscheduler.c (main): Use sprintrc for return code output.
25647 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25649 aio: use printfd for fd printing.
25651 aio_resfd. It is quite reasonable to use the appropriate function for
25655 use printfd for printing aio_resfd field.
25657 use printfd for printing aio_fildes field.
25662 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25667 2016-09-02 Dmitry V. Levin <ldv@altlinux.org>
25672 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25678 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25688 2016-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
25696 tests/futex: add support to sprintrc for return codes other than 0 and -1
25707 2016-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
25709 readahead: fix print format for the "count" argument.
25714 for the "count" argument.
25716 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25727 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25732 2016-08-31 Eugene Syromiatnikov <evgsyr@gmail.com>
25740 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25744 kernel commit v4.8-rc1~140^2~226.
25746 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25751 v4.8-rc1~140^2~148^2~5, v4.8-rc1~140^2~148^2~4, and
25752 v4.8-rc1~140^2~148^2~3, respectively.
25756 by linux kernel commits v4.8-rc1~147^2~82 and v4.8-rc1~147^2~74,
25761 kernel commit v4.8-rc1~16^2~41.
25765 commit v4.8-rc1~140^2~65^2~8.
25769 by linux kernel commit v4.8-rc1~140^2~212^2~2.
25771 by linux kernel commit v4.8-rc1~140^2~64^2~10.
25773 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25782 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25789 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25796 2016-08-30 Eugene Syromiatnikov <evgsyr@gmail.com>
25805 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25808 As configure.ac does not check for linux/futex.h, HAVE_LINUX_FUTEX_H is
25810 HAVE_LINUX_FUTEX_H makes no sense.
25814 since kernel commit v2.6.24-6320-gcd68998 where these definitions
25815 were initially introduced and up to v2.6.31-7082-gf8d1e54 where they
25823 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25830 Add printing of val argument for all futex commands except
25833 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25838 since commit v4.5-rc1~172^2.
25840 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25843 Use alternate form for printing hexadecimal numbers to avoid confusion.
25850 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25858 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25864 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25872 for 27th bit of val3 in FUTEX_WAKE_OP case.
25874 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25877 * bootstrap: Add -DMPERS_IS_$(MPERS_NAME) to ARCH_MFLAGS.
25893 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25895 Remove redundant check for PTRACE_LISTEN availability.
25897 there is no need to check this fact in other places.
25901 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25908 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25915 2016-08-30 James Clarke <jrtc27@jrtc27.com>
25927 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25935 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25942 2016-08-28 Dmitry V. Levin <ldv@altlinux.org>
25950 2016-08-27 Dmitry V. Levin <ldv@altlinux.org>
25953 No systems supported by strace are expected to have the bug workarounded
25958 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25961 glibc, starting with commit glibc-2.24-28-gdbab657, has deprecated
25963 for deprecation breaks AC_HEADER_MAJOR: this autoconf macro no longer
25977 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25980 This complements commit v4.11-719-gfb0c609.
25987 2016-08-29 Elvira Khabirova <lineprinter0@gmail.com>
25995 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26006 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26041 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26043 mpers.m4: check for struct stat64, struct stat, and their members.
26047 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26050 This allows testing of MPERS_IS_* macros in pre-MPERS_DEFS parts
26053 * Makefile.am (mpers-m%.stamp): Add -DMPERS_IS_$(mpers_NAME) to CFLAGS
26057 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26065 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26067 x86_64: provide a replacement of <asm/stat.h> for x32 personality.
26068 For the reason described in commit v4.10-517-gcfde1e3, a correct
26069 definition of struct stat for x32 personality is necessary to enable
26070 "asm_stat.h" with -mx32 on x86_64.
26077 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26079 x32/asm_stat.h: provide definitions for i386 personality.
26080 This enables x32/asm_stat.h with -m32.
26084 (struct stat): Define for [__x86_64__ && __ILP32__] only.
26087 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26089 Introduce a separate SEN entry for fstatat64 syscall.
26100 * linux/mips/syscallent-o32.h: Likewise.
26110 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26112 Do not check for struct stat.st_{a,c}time_nsec.
26113 Assume that the check for struct stat.st_mtime_nsec is enough.
26114 Likewise, do not check for struct stat.st_{a,c}tim.tv_nsec.
26126 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26141 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26145 This complements commit v4.10-45-gdf4dd8b.
26149 2016-08-22 Dmitry V. Levin <ldv@altlinux.org>
26152 For some reason, struct stat and struct stat64 are different on sparc64.
26153 This change fixes decoding of struct stat64 related syscalls for sparc64
26159 2016-08-22 Eugene Syromyatnikov <evgsyr@gmail.com>
26164 in syscall parsers, for example, when the value read on syscall
26172 2016-08-22 Eugene Syromyatnikov <evgsyr@gmail.com>
26181 2016-08-21 Richard W.M. Jones <rjones@redhat.com>
26183 Add RISC-V architecture support.
26187 * configure.ac: Define RISCV for riscv*.
26188 * clone.c [RISCV]: Define ARG_* macros as for OR1K.
26206 2016-08-21 Eugene Syromyatnikov <evgsyr@gmail.com>
26208 Move SH-specific argument number calculation to getllval.
26209 This change prevents scattering of ll-related hacks and simplifies
26212 * util.c (getllval): Add fixup for arg_no for SuperH when argument
26215 (SYS_FUNC(pread)): Always use argument number 3 for "count" argument
26219 2016-08-21 Dmitry V. Levin <ldv@altlinux.org>
26221 sparc64: fix sigreturn decoding for sparc personality.
26228 2016-08-20 Dmitry V. Levin <ldv@altlinux.org>
26232 SIZEOF_LONG > 4]: Use LONG_LONG to convert sa_mask from 32-bit
26233 struct sigaction to 64-bit struct sigaction.
26235 2016-08-19 Dmitry V. Levin <ldv@altlinux.org>
26237 Fix decoding of indirect shmat's return code for non-native personalities
26241 2016-08-18 Dmitry V. Levin <ldv@altlinux.org>
26246 2016-08-19 Dmitry V. Levin <ldv@altlinux.org>
26255 2016-08-16 Dmitry V. Levin <ldv@altlinux.org>
26261 sparc64: fix sign extension bug of syscall args for sparc personality.
26262 * linux/sparc64/get_syscall_args.c (get_syscall_args): Zero-extend
26263 syscall args from 32 bit for sparc personality.
26265 2016-08-16 Dmitry V. Levin <ldv@altlinux.org>
26275 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26279 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26283 by the kernel, there is no use supporting them.
26290 * printstat.h (DO_PRINTSTAT): Do not check for
26294 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26302 * printstat.h (DO_PRINTSTAT): Do not check for
26306 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26312 2016-08-14 Dmitry V. Levin <ldv@altlinux.org>
26321 2016-08-14 Dmitry V. Levin <ldv@altlinux.org>
26329 2016-08-13 Dmitry V. Levin <ldv@altlinux.org>
26331 tests: check for leaks of placeholder descriptors.
26332 * tests/redirect-fds.c: New file.
26333 * tests/redirect-fds.test: New test.
26334 * tests/.gitignore: Add redirect-fds.
26336 (MISC_TESTS): Add redirect-fds.test.
26343 (run_strace_merge): When strace-log-merge fails, add its exit code
26346 2016-08-13 Dmitry V. Levin <ldv@altlinux.org>
26349 As a side effect of commit v4.11-211-g0736d4e, strace used to leak
26350 placeholders for standard descriptors to tracees thus affecting their
26351 behaviour. Fix this by setting close-on-exec flag on placeholder
26354 * strace.c (open_dummy_desc): Set close-on-exec flag on the descriptor
26361 2016-08-12 Dmitry V. Levin <ldv@altlinux.org>
26363 sparc64: fix decoding of uid and gid-related syscalls.
26364 sparc64 has no native 16-bit uid/gid syscalls.
26368 setregid, setfsuid, setfsgid): Change handlers from 16-bit to 32-bit.
26370 2016-08-12 Dmitry V. Levin <ldv@altlinux.org>
26374 definition of struct stat that has no st_atime_nsec, st_mtime_nsec, and
26387 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26393 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26401 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26405 64-bit mips ABIs. Pass MIPS_ABI from the configure script through to
26412 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26415 For historical reasons the kernel struct stat represents times as unsigned
26416 32-bit integers on mips64. Therefore, while it's possible to give a file a
26419 Workaround by using positive timestamps for testing on mips64.
26423 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26431 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26434 There are no users of SYS_* macros provided by <sys/syscall.h>,
26448 * tests/attach-f-p.c: Likewise.
26546 * tests/prctl-seccomp-filter-v.c: Likewise.
26547 * tests/prctl-seccomp-strict.c: Likewise.
26548 * tests/preadv2-pwritev2.c: Likewise.
26573 * tests/seccomp-filter-v.c: Likewise.
26574 * tests/seccomp-filter.c: Likewise.
26575 * tests/seccomp-strict.c: Likewise.
26620 * tests/times-fail.c: Likewise.
26628 * tests/unix-pair-send-recv.c: Likewise.
26642 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26651 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26653 Make sure that tcp->s_ent and tcp->s_prev_ent do not point to freed memory
26654 This complements commit v4.13-33-g60d7ec8.
26660 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26673 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26677 This complements commit v4.10-45-gdf4dd8b.
26682 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26685 This complements commit v4.13-28-gaebfe83.
26689 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26698 * syscall.c (syscall_name): Do no shuffle scno.
26700 tcp->s_ent->sys_name instead of syscall_name.
26708 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26711 * linux/subcall.h: Remove definitions of non-existent socket
26717 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26728 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26736 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26751 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26772 MPERS_m32_IOCTL_MACROS): Define for
26776 MPERS_mx32_IOCTL_MACROS): Define for
26779 2016-08-07 Dmitry V. Levin <ldv@altlinux.org>
26797 2016-08-08 Eugene Syromyatnikov <evgsyr@gmail.com>
26800 This commit is an attempt to unify usage of include guards (in top-level
26802 have different semantics: for example, printargs.h is included multiple
26804 macro definitions - maybe it's better to change extension of such files
26815 * gcc_compat.h: Rename the macro used for #include guard.
26819 * xlat.h: Add missing macro definition for #include guard.
26821 2016-08-06 Dmitry V. Levin <ldv@altlinux.org>
26826 2016-08-05 Dmitry V. Levin <ldv@altlinux.org>
26836 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
26842 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
26845 There seems to be no readily available binary packages of musl that are
26849 * travis-install.sh (musl-gcc): Do not add an extra repository,
26850 do not install musl-tools and linux-musl-dev packages.
26853 2016-08-03 Dmitry V. Levin <ldv@altlinux.org>
26887 * tests/creat.test: Update the value specified for strace -a parameter.
26892 2016-08-02 Dmitry V. Levin <ldv@altlinux.org>
26894 tests: simplify attach-f-p.test.
26895 * tests/attach-f-p.c Simplify communications between threads
26896 by replacing per-thread timers with pipes.
26897 * tests/attach-f-p.test: Do not ignore signals.
26899 tests: cleanup attach-p-cmd.test.
26900 * tests/attach-p-cmd-cmd.c (main): Cleanup expected output.
26901 * tests/attach-p-cmd-p.c (main): Print expected output.
26902 * tests/attach-p-cmd.test: Do not print expected output.
26923 2016-07-31 Dmitry V. Levin <ldv@altlinux.org>
26934 2016-07-30 Dmitry V. Levin <ldv@altlinux.org>
26942 2016-07-29 Dmitry V. Levin <ldv@altlinux.org>
26945 * strace.c (main): Initialize exit_code with 1 when no processes
26951 * strace.c (attach_tcb): Attach to tcp->pid first.
26967 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26973 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26976 Starting with commit v4.10-62-ga0bd374, function prototypes
26981 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26984 This script has been created by commit v4.8-180-g0ed617b
26985 for the one-shot job of automatic convertion of xlat structures
26990 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26999 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
27004 to extended regular expressions for better portability and readability.
27012 * make-dsc: Likewise.
27018 * tests/strace-S.test: Likewise.
27019 * tests/strace-V.test: Likewise.
27020 * tests/strace-k.test: Likewise.
27022 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
27029 2016-07-27 Dmitry V. Levin <ldv@altlinux.org>
27031 Post-release administrivia.
27032 * NEWS: Add header line for the next release.
27033 * debian/changelog.in: Add a changelog entry for 4.13-1.
27036 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27038 Prepare for 4.13 release.
27039 * NEWS: Update for 4.13 release.
27043 to avoid breaking strict-aliasing rules reported by some gcc compilers.
27064 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27067 * tests/vhangup.c (main): Fix expected output for the case when
27070 Reported-by: Yun-Chih Chen <b03902074@ntu.edu.tw>
27072 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27075 * tests/chown.test: Fix the value specified for strace -a parameter.
27077 Reported-by: Yun-Chih Chen <b03902074@ntu.edu.tw>
27079 2016-07-25 Dmitry V. Levin <ldv@altlinux.org>
27081 x32: fix syscall entries for x86_64 variants of io_setup and io_submit.
27087 2016-07-24 Dmitry V. Levin <ldv@altlinux.org>
27089 NEWS: Prepare for 4.13 release.
27091 2016-07-23 Dmitry V. Levin <ldv@altlinux.org>
27093 debian: add gcc-multilib to Build-Depends for relevant architectures.
27094 * debian/control (Build-Depends) [amd64, ppc64, sparc64, x32]:
27095 Add gcc-multilib to enable multiple personalities support.
27097 2016-07-22 Dmitry V. Levin <ldv@altlinux.org>
27113 [S390 || S390X]: Skip ipc cubcalls that have non-zero version.
27114 [SPARC64]: Likewise, for the native personality.
27115 Save ipc cubcall version for later use by specific ipc parsers.
27116 * ipc_msg.c (SYS_FUNC(msgrcv)): Handle non-zero ipc subcall version.
27117 [SPARC64]: Handle non-ipc_kludge case for the native personality.
27122 2016-07-21 Dmitry V. Levin <ldv@altlinux.org>
27135 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27138 As most syscalls on x32 and mips n32 are actually 64-bit,
27139 check that 64-bit syscall arguments are decoded properly.
27148 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27150 x32, mips n32: make printargs print full 64-bit syscall arguments.
27152 printed by default as 64-bit syscalls, and syscall parsers at their
27154 implemented in 64-bit strace tracing x32 personality processes,
27162 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27180 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27183 * tests/unix-pair-send-recv.c: New file.
27184 * tests/unix-pair-send-recv.expected: Likewise.
27185 * tests/unix-pair-send-recv.test: New test.
27186 * tests/.gitignore: Add unix-pair-send-recv.
27188 (DECODER_TESTS): Add unix-pair-send-recv.test.
27189 (EXTRA_DIST): Add unix-pair-send-recv.expected.
27191 tests: rename unix-pair-send-recv to unix-pair-sendto-recvfrom.
27192 * dumpio.expected: Rename to unix-pair-sendto-recvfrom.expected.
27193 * dumpio.test: Rename to unix-pair-sendto-recvfrom.test.
27194 * unix-pair-send-recv.c: Rename to unix-pair-sendto-recvfrom.c
27195 * .gitignore: Rename unix-pair-send-recv to unix-pair-sendto-recvfrom.
27197 (DECODER_TESTS): Add unix-pair-sendto-recvfrom.test.
27200 to unix-pair-sendto-recvfrom.expected.
27210 * xlat/shutdown_modes.in: Replace open-coded xlat table with a list
27214 * tests/mmsg-silent.c: New file.
27215 * tests/mmsg-silent.test: New test.
27216 * tests/.gitignore: Add mmsg-silent.
27218 (DECODER_TESTS): Add mmsg-silent.test.
27221 * mmsghdr.c (decode_mmsgvec): Clear syserror for the time of printing
27230 (print_struct_mmsghdr): Print struct mmsghdr.msg_len only for
27239 * tests/mmsg_name-v.c: New file.
27240 * tests/mmsg_name-v.test: New test.
27241 * tests/.gitignore: Add mmsg_name-v.
27243 (DECODER_TESTS): Add mmsg_name-v.test.
27252 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27256 the same read-write semantics as struct msghdr argument of recvmsg
27266 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27276 * tests/recvmmsg-timeout.c: New file.
27277 * tests/recvmmsg-timeout.test: New test.
27278 * tests/.gitignore: Add recvmmsg-timeout.
27280 (DECODER_TESTS): Add recvmmsg-timeout.test.
27287 Remove configure checks for recvmmsg and sendmmsg.
27294 * tests/mmsg.c Do not check for __NR_sendmmsg, __NR_recvmmsg,
27303 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27312 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27315 As we've got a proper mechanism that parsers can use for storing private
27320 instead of abusing tcp->auxstr.
27326 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27338 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27350 2016-07-18 Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
27368 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27391 2016-07-14 Dmitry V. Levin <ldv@altlinux.org>
27393 tests: disable part of msg_name test on non-glibc systems.
27400 2016-07-13 Dmitry V. Levin <ldv@altlinux.org>
27405 * tests/inet-cmsg.c (main): Likewise.
27408 * tests/preadv-pwritev.c (main): Likewise.
27409 * tests/preadv2-pwritev2.c (main): Likewise.
27415 * tests/scm_rights-fd.test: Likewise.
27425 2016-07-13 Dmitry V. Levin <ldv@altlinux.org>
27429 read-write semantics as the address length argument of recvfrom syscall,
27447 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27454 2016-07-12 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
27459 maint: update for linux 4.7.
27460 * maint/ioctls_sym.sh: Drop obsolete workarounds for linux/btrfs.h.
27462 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27465 BLKDAXGET was removed by linux kernel commit v4.7-rc1~78^2^2~4.
27471 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27526 * tests/net-y-unix.c (main): Update expected output.
27527 * tests/net-yy-unix.c (main): Likewise.
27542 2016-07-11 Dmitry V. Levin <ldv@altlinux.org>
27544 Prepare parsers of sockname family syscalls for the upcoming fix.
27552 2016-07-08 Dmitry V. Levin <ldv@altlinux.org>
27563 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27566 * tests/netlink_protocol.c (send_query): Check that no part
27571 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
27580 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
27584 a string for the remaining part of the buffer. It doesn't handle all
27592 for netlink sockets.
27602 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27606 by linux kernel commit v4.7-rc1~195^2.
27611 v3.19-rc1~53^2~7^2~1, v4.1-rc1~147^2~4, v4.4-rc1~141^2~17^2~1,
27612 and v4.7-rc1~161^2, respectively.
27614 2016-07-05 Dmitry V. Levin <ldv@altlinux.org>
27618 by linux kernel commit v4.7-rc1~124^2~2^2~2^2.
27622 by linux kernel commit v4.7-rc6~32^2~6^2.
27624 2016-07-04 Dmitry V. Levin <ldv@altlinux.org>
27628 by linux kernel commit v4.7-rc1~158^2~1.
27630 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27634 by linux kernel commit v4.7-rc1~154^2~332^2~6.
27636 2016-07-03 Dmitry V. Levin <ldv@altlinux.org>
27651 2016-07-03 Dmitry V. Levin <ldv@altlinux.org>
27658 2016-07-02 Dmitry V. Levin <ldv@altlinux.org>
27673 * tests/msg_control-v.c: New file.
27674 * tests/msg_control-v.test: New test.
27675 * tests/.gitignore: Add msg_control-v.
27677 (DECODER_TESTS): Add msg_control-v.test.
27679 2016-07-01 Dmitry V. Levin <ldv@altlinux.org>
27688 2016-06-30 Dmitry V. Levin <ldv@altlinux.org>
27731 * tests/inet-cmsg.c (print_opts): Update expected output.
27737 * tests/inet-cmsg.c (print_ttl, print_tos): Update expected output.
27744 * tests/inet-cmsg.c (print_pktinfo, print_ttl, print_tos, print_opts,
27746 * tests/scm_rights-fd.test: Likewise.
27748 2016-06-27 Dmitry V. Levin <ldv@altlinux.org>
27787 2016-06-26 Dmitry V. Levin <ldv@altlinux.org>
27792 * tests/inet-cmsg.c (main): Update expected output.
27795 * tests/scm_rights-fd.test: Likewise.
27797 net.c: rename some internal functions for consistency and readability.
27810 * tests/inet-cmsg.c (main): Update expected output.
27811 * tests/scm_rights-fd.test: Likewise.
27817 2016-06-25 Dmitry V. Levin <ldv@altlinux.org>
27837 * tests/net-sockaddr.c: New file.
27838 * tests/net-sockaddr.test: New test.
27839 * tests/.gitignore: Add net-sockaddr.
27841 (DECODER_TESTS): Add net-sockaddr.test.
27843 2016-06-24 Dmitry V. Levin <ldv@altlinux.org>
27856 * net.c (sa_printers): Add minimal address length for each socket family.
27859 the minimal address length for the socket family.
27874 2016-06-24 Dmitry V. Levin <ldv@altlinux.org>
27878 is not a NUL-terminated string.
27885 2016-06-24 Dmitry V. Levin <ldv@altlinux.org>
27890 * tests/net-yy-netlink.c (main): Update.
27896 2016-06-23 Dmitry V. Levin <ldv@altlinux.org>
27899 Prior to RFC2553, struct sockaddr_in6 had no sin6_scope_id field.
27907 2016-06-23 Dmitry V. Levin <ldv@altlinux.org>
27911 exactly the number of data bytes specified for the socket addess.
27917 * tests/net-y-unix.c (main): Update expected pattern.
27918 * tests/net-yy-unix.c (main): Likewise.
27921 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
27936 2016-06-22 Fabien Siron <fabien.siron@epita.fr>
27938 Add a enum for decoding to tprint_iov() and tprint_iov_upto()
27958 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
27965 Reserve additional byte after the sockaddr buffer for zero padding.
27969 2016-06-21 Fabien Siron <fabien.siron@epita.fr>
27974 and -1 in case of an error.
27976 2016-06-21 Dmitry V. Levin <ldv@altlinux.org>
27994 * xlat/addrfams.in: add fallback definitions for constants.
28007 for SO_LINGER availability.
28011 for AF_BLUETOOTH availability.
28013 2016-06-20 Dmitry V. Levin <ldv@altlinux.org>
28020 * tests/net-accept-connect.c (main): Replace AF_LOCAL with AF_UNIX.
28021 * tests/net-y-unix.c: Likewise.
28022 * tests/net-yy-unix.c: Likewise.
28025 2016-06-19 Dmitry V. Levin <ldv@altlinux.org>
28033 for AF_IPX availability.
28037 * net.c: Check for HAVE_NETIPX_IPX_H instead of __GLIBC__.
28039 2016-06-19 Fabien Siron <fabien.siron@epita.fr>
28042 Introduce a new enum type sock_proto and use it instead of strings for socket
28054 2016-06-18 Dmitry V. Levin <ldv@altlinux.org>
28056 Split travis-ci.sh.
28057 * travis-ci.sh: Split into travis-build.sh, travis-install.sh,
28058 and travis-success.sh files.
28060 (script): Change to travis-build.sh.
28065 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28068 Check for "if HAVE_STRUCT_TCB_EXT_ARG" instead of
28071 * defs.h (HAVE_STRUCT_TCB_EXT_ARG): Define for LINUX_MIPSN32 || X32.
28080 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28091 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28093 btrfs: provide fallback definitions for BTRFS_IOC_QUOTA_RESCAN*
28094 <linux/btrfs.h> was introduced in linux v3.9-rc1 while some
28096 and BTRFS_IOC_QUOTA_RESCAN_STATUS in v3.10-rc2,
28097 or BTRFS_IOC_QUOTA_RESCAN_WAIT in v3.11-rc1.
28105 Reported-by: Li Er <phoooyb@gmail.com>
28107 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28109 configure.ac: fix checks for btrfs specific structures.
28110 * configure.ac (AC_CHECK_MEMBERS): Fix typo in the check for
28114 2016-06-16 Elvira Khabirova <lineprinter0@gmail.com>
28118 2016-06-16 Fei Jie <feij.fnst@cn.fujitsu.com>
28132 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
28135 * net.c (SYS_FUNC(socket)): Do not check for AF_INET6 availability.
28137 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
28139 configure.ac: do not check for linux/in6.h.
28140 The last user of <linux/in6.h> was removed by commit v4.9-252-gf362a33.
28144 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
28147 * net.c: Do not check for AF_PACKET availability.
28154 * net.c: Do not check for ICMP_FILTER availability.
28158 * net.c: Follow the example of tests/net-icmp_filter.c and include
28161 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28164 * net.c: Do not check for AF_NETLINK availability.
28171 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28175 and since tcp->s_ent can only be set to &sysent[tcp->scno]
28176 (or to &unknown, but only when !SCNO_IS_VALID), there is no need
28177 to check for UNDEFINED_SCNO before calling syscall_name(tcp->scno).
28181 Remove checks for UNDEFINED_SCNO.
28183 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28185 tests/attach-f-p.c: fix typo in comment.
28187 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28194 * configure.ac (gl_WARN_ADD): Add -Wempty-body, -Wformat-security,
28195 -Wignored-qualifiers, -Winit-self, -Wlogical-op,
28196 -Wmissing-parameter-type, -Wnested-externs, -Wold-style-declaration,
28197 -Wold-style-definition, -Wtype-limits.
28199 strace.c: fix a warning reported by -Wold-style-definition.
28202 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28206 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28212 tests/xgetrlimit.c: fix a warning reported by -Wtype-limits.
28216 2016-06-11 Dmitry V. Levin <ldv@altlinux.org>
28218 Consistently use printaddr for printing addresses.
28232 * tests/net-icmp_filter.c (main): Update.
28236 2016-06-10 Dmitry V. Levin <ldv@altlinux.org>
28238 tests/attach-p-cmd-p.c: cleanup.
28239 * attach-p-cmd-p.c (handler): Move code ...
28258 * tests/waitid-v.c: Likewise.
28260 * tests/waitid-v.test: Likewise.
28261 * tests/.gitignore: Add waitid and waitid-v.
28263 (DECODER_TESTS): Add waitid.test and waitid-v.test.
28267 * tests/wait4-v.c: Likewise.
28269 * tests/wait4-v.test: Likewise.
28270 * tests/.gitignore: Add wait4 and wait4-v.
28272 (DECODER_TESTS): Add wait4.test and wait4-v.test.
28281 2016-06-09 Dmitry V. Levin <ldv@altlinux.org>
28290 2016-06-09 Fei Jie <feij.fnst@cn.fujitsu.com>
28292 tests: add strace-E.test.
28293 * tests/strace-E.expected: New file.
28294 * tests/strace-E.test: New test.
28296 (EXTRA_DIST): Add strace-E.expected.
28298 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28301 * strace.spec.in: Add libunwind-devel to BuildRequires for RHEL8 family.
28303 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28305 make-dist: generate strace-*.tar.gz, strace.dsc, and strace.spec.
28306 Change make-dist to generate strace-*.tar.gz, strace.dsc,
28307 and strace.spec in addition to strace-*.tar.xz.
28309 * configure.ac (AM_INIT_AUTOMAKE): Remove no-dist-gzip.
28310 * make-dsc: New file.
28311 * make-dist: Use it.
28312 * .gitignore: Add strace-*.tar.gz, strace.dsc, and strace.spec.
28314 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28325 git-version-gen: replace '-' with '.' in generated version.
28326 * git-version-gen: Replace '-' with '.' so version conforms to policies
28331 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28338 and the last %changelog entry. Initialize .tarball-version file.
28340 strace.spec: adopt for OBS.
28341 * strace.spec: Parametrize libunwind-devel BRs, BuildRoot, and %defattr.
28343 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28345 tests: remove obsolete strace-f.test.
28346 strace-f.test is too inexact while fork-f.test does the right thing.
28348 * tests/strace-f.test: Remove.
28352 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28354 tests: always distribute strace-k.test.
28355 Fix distribution of tests/strace-k.test file when configured
28358 * tests/Makefile.am (EXTRA_DIST): Add strace-k.test.
28360 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28362 make-dist: skip news-check for non-releases.
28363 * make-dist: Run news-check only when the commit being built
28366 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28393 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28395 Do not check for old sysctl enums.
28397 with a signle exception: check for CTL_PROC which definition was removed
28423 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28429 2016-06-06 Elvira Khabirova <lineprinter0@gmail.com>
28433 for "enumeration_type".
28442 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28445 * debian/control (Build-Depends) [amd64]: Remove libunwind-dev.
28446 * debian/changelog: Sync with 4.12-3.
28449 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28451 tests/strace-S.test: fix testing 64-bit strace using a 32-bit userspace.
28452 * tests/strace-S.test: Measure wall clock time instead of system time.
28455 Reported-by: Steve McIntyre <steve@einval.com>
28457 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28459 tests/strace-S.test: enhance error diagnostics.
28460 * tests/strace-S.test: If strace output does not meet expectations,
28463 2016-06-02 Dmitry V. Levin <ldv@altlinux.org>
28468 2016-06-01 Dmitry V. Levin <ldv@altlinux.org>
28470 maint: post-release administrivia.
28471 * NEWS: Add header line for the next release.
28473 2016-05-31 Dmitry V. Levin <ldv@altlinux.org>
28475 Prepare for 4.12 release.
28476 * NEWS: Update for 4.12 release.
28477 * debian/changelog: 4.12-1.
28478 * strace.spec: 4.12-1.
28481 * debian/changelog: Sync with 4.11-1.
28482 * strace.spec: Sync with 4.11.0.163.9720-2.
28484 2016-05-30 Dmitry V. Levin <ldv@altlinux.org>
28491 2016-05-29 Dmitry V. Levin <ldv@altlinux.org>
28510 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28540 * tests/ioctl_evdev-v.c: Likewise.
28542 * tests/ioctl_evdev-v.test: Likewise.
28543 * tests/.gitignore: Add ioctl_evdev and ioctl_evdev-v.
28545 (DECODER_TESTS): Add ioctl_evdev.test and ioctl_evdev-v.test.
28610 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28614 1st, check for fixed-number fixed-length commands,
28615 2nd, check for fixed-number variable-length commands,
28616 3rd, check for multi-number fixed-length commands,
28617 4thm check for multi-number variable-length commands.
28622 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28634 2016-05-28 Jeff Mahoney <jeffm@suse.com>
28636 file_ioctl.c: print first two extents for FIDEDUPERANGE in abbrev mode.
28642 2016-05-27 Dmitry V. Levin <ldv@altlinux.org>
28647 2016-05-27 Jeff Mahoney <jeffm@suse.com>
28650 * tests/btrfs-vw.test: New file.
28651 * tests/btrfs-w.test: New file.
28656 for BTRFS_IOC_TREE_SEARCH and fix missing whitespace.
28666 2016-05-26 Jeff Mahoney <jeffm@suse.com>
28668 tests/btrfs.c: fix btrfs-v for BTRFS_IOC_TREE_SEARCH.
28670 to search_args for BTRFS_IOC_TREE_SEARCH ioctl tests.
28672 2016-05-26 Fabien Siron <fabien.siron@epita.fr>
28674 Fix -yy documentation.
28675 * strace.c (usage): Fix description of -yy option.
28678 2016-05-26 Dmitry V. Levin <ldv@altlinux.org>
28682 its lower 32-bit part closer to -1U.
28684 tests/btrfs.c: check basic decoding of read-only ioctls.
28720 * ioctl.c (ioctl_decode): Call fs_x_ioctl for ioctl type 'X'.
28728 * ioctl.c (ioctl_decode): Call hdio_ioctl for ioctl type 0x03.
28748 2016-05-25 Dmitry V. Levin <ldv@altlinux.org>
28753 * tests/ioctl_rtc-v.c: Likewise.
28755 * tests/ioctl_rtc-v.test: Likewise.
28756 * tests/.gitignore: Add ioctl_rtc and ioctl_rtc-v.
28758 (DECODER_TESTS): Add ioctl_rtc.test and ioctl_rtc-v.test.
28774 rtc.c: do not print argument of ioctls that have no arguments.
28796 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28801 2016-05-24 Fei Jie <feij.fnst@cn.fujitsu.com>
28810 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28812 NEWS: Prepare for 4.12 release.
28814 2016-05-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
28819 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28839 to make their lower 32-bit parts closer to -1U.
28871 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28873 tests: add testing for btrfs ioctls.
28876 * tests/btrfs-v.test: Likewise.
28879 (DECODER_TESTS): Add btrfs.test and btrfs-v.test.
28881 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28890 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28892 tests: add testing for FS_IOC_FIEMAP.
28902 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28905 * btrfs.c: Mpersify 3 arch-specific structures
28935 btrfs.c: cleanup use of tcp->auxstr.
28936 * btrfs.c (btrfs_ioctl): Reset tcp->auxstr only if it is set.
28980 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28984 no benefits for this parser.
28988 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29001 2016-05-24 Jeff Mahoney <jeffm@suse.com>
29003 ioctl: add decoding for FS_IOC_FIEMAP.
29007 * ioctl.c (ioctl_decode): Use file_ioctl for decoding 'f' code ioctls.
29009 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29015 2016-05-24 Jeff Mahoney <jeffm@suse.com>
29017 ioctl: add decoding support for btrfs ioctls.
29054 2016-05-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
29059 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29061 tests/attach-f-p.c: sleep a bit more to let the tracer catch up.
29066 * tests/attach-f-p.c (main): Change timerid into a static array.
29067 Arm a timer in the parent process and wait for it.
29069 2016-05-23 Dmitry V. Levin <ldv@altlinux.org>
29071 tests/attach-p-cmd-cmd.c: fix potential errno clobbering.
29072 * tests/attach-p-cmd-cmd.c (main): Call getpid before chdir.
29074 tests/net-yy-netlink.c: robustify against libc specific issues.
29075 * tests/net-yy-netlink.c (main): Use getsockname instead of recvmsg
29079 tests/net-yy-netlink.c: robustify against os specific issues.
29080 * tests/net-yy-netlink.c (main): Pass a pointer to a real struct msghdr
29083 tests/net-yy-{inet,netlink}.test: cleanup.
29084 * tests/net-yy-inet.test: Do not pass arguments to net-yy-inet
29086 * tests/net-yy-netlink.test: Do not pass arguments to net-yy-netlink
29089 2016-05-22 Jeff Mahoney <jeffm@suse.com>
29093 define printing helpers for those types directly.
29099 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29103 regular tail_alloc allocations. This is no longer needed since regular
29115 * tests/net-icmp_filter.c (main): Likewise.
29124 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29130 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29135 no way to conditionally compile mpersified printers, which was not
29143 MPERS_PRINTER_DECL markers through CPP. As a nice side effect, this
29147 * README-mpers: Update description of MPERS_PRINTER_DECL syntax.
29161 2016-05-20 Dmitry V. Levin <ldv@altlinux.org>
29164 There is no need to declare mpers printers in defs.h because
29171 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29180 2016-05-21 Fabien Siron <fabien.siron@epita.fr>
29182 tests: add check for netlink protocol decoding with -yy option.
29184 * tests/net-yy-netlink.c: New file.
29185 * tests/net-yy-netlink.test: New test.
29186 * tests/.gitignore: Add net-yy-netlink and netlink_netlink_diag
29188 (TESTS): Add net-yy-netlink.test.
29190 2016-05-18 Fabien Siron <fabien.siron@epita.fr>
29200 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29202 tests/pread64-pwrite64.c: robustify against os specific issues.
29205 accessible byte at the end of page is enough for pwrite64 syscall
29208 * tests/pread64-pwrite64.c (main): Tweak the test that can lead
29211 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29213 tests/read-write.c: robustify against os specific issues.
29216 at the end of page is enough for write syscall to return 1.
29218 * tests/read-write.c (main): Tweak the test that can lead to a partial
29221 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29225 (main): Test with each number between PATH_MAX-1 and 0.
29233 for [HAVE_STRUCT_STATFS_F_FLAGS || HAVE_STRUCT_STATFS64_F_FLAGS].
29234 * tests/inet-cmsg.c (print_origdstaddr): Define only
29235 for [IP_ORIGDSTADDR].
29243 maint: update for linux 4.6.
29244 * maint/ioctls_sym.sh: Update workarounds for linux/kvm.h.
29255 2016-05-17 Fei Jie <feij.fnst@cn.fujitsu.com>
29264 2016-05-17 Dmitry V. Levin <ldv@altlinux.org>
29278 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29287 * tests/prctl-seccomp-strict.c (main): Update.
29339 to uint8_t to avoid potential sign-extension bug when printing
29344 to unsigned short to avoid potential sign-extension bug when printing
29347 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29357 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29367 to unsigned short to avoid potential sign-extension bug when printing
29372 to unsigned short to avoid potential sign-extension bug when printing
29377 to unsigned short to avoid potential sign-extension bug when printing
29382 fields to unsigned short to avoid potential sign-extension bug when
29388 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29400 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29404 potential sign-extension bug when printing invalid d_type.
29413 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29427 2016-05-15 Dmitry V. Levin <ldv@altlinux.org>
29434 Prepare for transition from sprintflags64 to sprintflags.
29442 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29449 Prepare for transition from xlookup64 to xlookup.
29464 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29467 Prior to v2.6.25-rc3, <linux/videodev2.h> didn't include all
29476 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29478 configure.ac: do not check for sys/ioctl.h and ioctls.h.
29484 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29487 Include <linux/ioctl.h> for <linux/sockios.h> on alpha, sh, and sh64
29492 no benefits in this case. <ioctls.h> simply doesn't exist.
29497 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29501 no benefits for parser of VIDIOC_* ioctls.
29505 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29509 for already fetched members of siginfo_t structure.
29518 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29522 lower 32-bit parts closer to -1U.
29524 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29534 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29543 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29557 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29568 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29582 ptrace: return RVAL_DECODED for requests decoded on entering.
29583 * process.c (SYS_FUNC(ptrace)): Return RVAL_DECODED on entering for all
29586 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29595 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29606 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29617 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29620 For PTRACE_GETSIGMASK and PTRACE_SETSIGMASK requests, addr argument
29622 For PTRACE_SECCOMP_GET_FILTER request, addr argument contains
29629 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29639 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29641 ptrace: do not print addr and data arguments of PTRACE_ATTACH-like requests
29650 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29659 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29669 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29671 Do not sign-extend siginfo_t.si_syscall.
29676 Export print_seccomp_fprog for further use in parser of ptrace syscall.
29682 2016-05-11 Fei Jie <feij.fnst@cn.fujitsu.com>
29698 2016-05-11 Dmitry V. Levin <ldv@altlinux.org>
29701 * tests/preadv2-pwritev2.c: New file.
29702 * tests/preadv2-pwritev2.test: New test.
29703 * tests/.gitignore: Add preadv2-pwritev2.
29705 (DECODER_TESTS): Add preadv2-pwritev2.
29720 * linux/mips/syscallent-n32.h: Likewise.
29721 * linux/mips/syscallent-n64.h: Likewise.
29722 * linux/mips/syscallent-o32.h: Likewise.
29735 2016-05-10 Dmitry V. Levin <ldv@altlinux.org>
29752 Use static buffer for fetching xattr values.
29755 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
29764 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
29776 * xlat/uffd_*.in: Create flag xlat for all the IOCTLs.
29778 2016-05-10 Dmitry V. Levin <ldv@altlinux.org>
29786 strace-ff.test: fix race condition.
29787 * tests/strace-ff.test: Wait for completion of PR_SET_PTRACER command.
29789 tests/epoll_pwait.c: fix for x32.
29793 strace-S.test: check "-S name"
29794 * tests/strace-S.test: Add a check for "-c -S name" output.
29796 Fix NULL dereference in "-S name" when syscall table has holes.
29799 strace-S.test: cleanup.
29800 * tests/strace-S.test: Rewrite using sed.
29802 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29804 tests: add strace-S.test.
29805 * tests/strace-S.test: New test.
29808 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29810 strace-ff.test: check that -ff does not create unexpected output files.
29811 * tests/strace-ff.expected: New file.
29813 * tests/strace-ff.test: Use it. Check that no other output files
29816 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29818 tests: add strace-ff.test.
29819 * tests/strace-ff.test: New test.
29822 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29824 strace-V.test: cleanup.
29825 * tests/strace-V.test: Move config.h parser to a function.
29828 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29830 tests: add strace-V.test.
29831 * tests/strace-V.test: New test.
29834 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29843 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29846 This header file was added in glibc-2.3.2,
29852 * tests/epoll_ctl.c: Do not check for HAVE_SYS_EPOLL_H.
29855 2016-05-08 Fabien Siron <fabien.siron@epita.fr>
29861 2016-05-08 Dmitry V. Levin <ldv@altlinux.org>
29868 * tests/strace-T.expected: Likewise.
29869 * tests/strace-r.expected: Likewise.
29871 2016-05-07 Dmitry V. Levin <ldv@altlinux.org>
29873 tests/attach-f-p.c: increase timeouts.
29876 * tests/attach-f-p.c (its): Increase timeouts to 1, 2, and 3 seconds,
29879 2016-05-07 Dmitry V. Levin <ldv@altlinux.org>
29900 * tests/seccomp-filter-v.c (main): Update.
29907 * poll.c (print_pollfd): Change for use as print_array callback.
29917 (print_status, print_int): Change for use as print_array callback.
29929 * kexec.c (print_seg): Change for use as print_array callback.
29934 for use as print_array callback.
29945 * epoll.c (print_epoll_event): Change signature for use as print_array
29961 Introduce print_array function for consistent decoding of arrays.
29965 2016-05-06 Dmitry V. Levin <ldv@altlinux.org>
29968 * net.c (print_icmp_filter): Print icmp_filter for any positive length.
29969 * tests/net-icmp_filter.c: New file.
29970 * tests/net-icmp_filter.test: New test.
29971 * tests/.gitignore: Add net-icmp_filter.
29973 (DECODER_TESTS): Add net-icmp_filter.test.
29975 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29982 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
29984 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29987 mips o32 differs from all other 32-bit architectures by defining
29993 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29996 * v4l2.c: Mpersify arch-specific structures.
30004 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30008 personality specific ioctl macros should be properly defined for
30010 ioctl macros from ioctlent*.h for each file that includes MPERS_DEFS.
30019 Acked-by: Elvira Khabirova <lineprinter0@gmail.com>
30021 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30027 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30030 Out-of-range syscalls looks differently on mips o32.
30035 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30038 There is no need to explicitly initialize big holes after conversion
30039 of syscallent.h files to use designated initializers. For architectures
30041 big holes is no-op, for others it just inflates the table unnecessarily.
30054 * linux/mips/syscallent-n32.h: Likewise.
30063 * linux/mips/syscallent-compat.h: Remove explicit initialization
30065 * linux/mips/syscallent-n64.h: Remove explicit initialization
30067 * linux/mips/syscallent-o32.h: Likewise.
30069 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30071 xlat: make "1<<val" syntax work with 64-bit values.
30073 for 1<<val syntax.
30075 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
30077 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30082 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
30084 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30103 2016-04-29 Jeff Mahoney <jeffm@suse.com>
30106 Some ioctls have flags fields that are 64-bit. A 32-bit val means
30112 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30119 For example, "#val_type uint64_t" means values of type uint64_t.
30124 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30126 xlat/gen.sh: prepare for adding #val_type directive support.
30127 This is essentially a no-op change that makes the following change
30133 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30141 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30148 This is necessary for the upcoming change of xlat.val type.
30153 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30156 This is necessary for the upcoming change of xlat.val type.
30160 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30170 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30172 tests/remap_file_pages.c: fix for the upcoming change of xlat.val type.
30179 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30182 This is necessary for the upcoming change of xlat.val type.
30191 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30194 This is necessary for the upcoming change of xlat.val type.
30203 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30206 This is necessary for the upcoming change of xlat.val type.
30207 All users of printxvals are already prepared for this change.
30213 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30216 This is necessary for the upcoming change of xlat.val type.
30217 All users of addflags are already prepared for this change.
30224 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30227 This is necessary for the upcoming change of xlat.val type.
30236 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30239 This is necessary for the upcoming change of xlat.val type.
30240 All users of addflags are already prepared for this change.
30246 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30249 This is necessary for the upcoming change of xlat.val type.
30253 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30256 This is necessary for the upcoming change of xlat.val type.
30260 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30293 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30315 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30331 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30337 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30346 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30365 tests: check decoding of out-of-range syscalls.
30372 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30384 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30391 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30407 Add default values for RENAME_* constants.
30428 2016-04-26 Fei Jie <feij.fnst@cn.fujitsu.com>
30465 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30478 * configure.ac: Remove the check for struct statfs64 in <sys/vfs.h>.
30479 Add checks for struct statfs and struct statfs64 in <asm/statfs.h>.
30480 Add checks for f_frsize and f_flags members of these structures.
30504 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30511 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30521 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30527 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30538 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30546 2016-04-25 Fei Jie <feij.fnst@cn.fujitsu.com>
30576 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30586 2016-04-25 Zev Weiss <zev@bewilderbeest.net>
30589 * statfs.c (sprintfstype): Don't add double-quotes to fs magic macros.
30590 * tests/statfs.expected: Remove double-quotes.
30592 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30602 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30610 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30618 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30620 aarch64: fix old_mmap output for arm personality.
30622 as 32-bit integers.
30628 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30640 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30648 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30651 For each given architecture only one of these two syscalls has a
30662 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30671 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30676 for f in tests/*.c; do
30677 grep -q '\<assert(' "$f" ||
30678 sed -i '/# *include *<assert\.h>/d' "$f"
30681 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30686 for f in tests/*.c; do
30687 grep -Fv errno.h "$f" |
30688 grep -Ewq '(si_)?errno|SOCK_FILTER_DENY_SYSCALL' ||
30689 sed -i '/# *include *<errno\.h>/d' "$f"
30692 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30736 tests/seccomp-strict.c: cleanup.
30737 * tests/seccomp-strict.c (main): Use errno2name, stop using assert.
30739 tests/seccomp-filter.c: cleanup.
30740 * tests/seccomp-filter.c (main): Use errno2name, stop using assert.
30754 tests/preadv-pwritev.c: cleanup.
30756 tests/prctl-seccomp-strict.c: cleanup.
30757 * tests/prctl-seccomp-strict.c (main): Use errno2name,
30840 sed -i 's/errno == E[[:alnum:]]\+ ? "E[[:alnum:]]\+" : "E[[:alnum:]]\+"/errno2name()/g'
30843 This is going to be necessary for the following commit.
30845 2016-04-21 Fei Jie <feij.fnst@cn.fujitsu.com>
30882 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30893 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30897 for ECANCELED constant, other architectures just define ECANCELED.
30903 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30906 timerfd syscall was introduced in v2.6.22-rc1, but in v2.6.25-rc1
30913 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30915 tests: workaround kernel bugs in seccomp-strict.test and prctl-seccomp-strict.test
30922 * tests/seccomp-strict.c (main): Remove workaround for x32.
30923 * tests/prctl-seccomp-strict.c: Likewise.
30924 * tests/seccomp-strict.test: Skip the test if the test program
30926 * tests/prctl-seccomp-strict.test: Likewise.
30928 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30933 tests/rt_sigpending.c: fix for systems where _NSIG > 16 * sizeof(long)
30937 prctl-seccomp-strict.test: robustify against unrelated prctl invocations
30938 * tests/prctl-seccomp-strict.test: Filter out PR_GET_* prctl calls.
30940 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30943 With linux kernels older than v3.9-rc1, compat rt_sigpending syscall
30950 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30953 With linux kernels older than v3.16-rc1, iovec based compat syscalls may
30957 * tests/preadv-pwritev.c: Include <errno.h>.
30962 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30964 tests: remove obsolete non-strict uid tests.
30965 Recently added strict tests for uid/gid related syscalls
30980 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30983 Add strict tests for getuid, getuid32, getgid, getgid32, geteuid,
31009 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31041 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31057 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31060 * linux/mips/syscallent-o32.h (iopl): Fix nargs.
31064 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31073 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31218 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31227 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31234 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31243 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31245 prctl-seccomp-filter-v.test: robustify against unrelated prctl invocations
31246 * tests/prctl-seccomp-filter-v.test: Filter out PR_GET_* prctl calls.
31248 Reported-by: Steve McIntyre <steve@einval.com>
31250 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31256 Reported-by: Steve McIntyre <steve@einval.com>
31258 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31304 Fix decoding of 16-bit uid_t/git_t.
31307 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31318 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31320 tests: skip seccomp-strict.test and prctl-seccomp-strict.test on x32.
31324 * tests/seccomp-strict.c (main) [__x86_64__ && __ILP32__]: Bail out
31326 * tests/prctl-seccomp-strict.c: Likewise.
31328 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31330 tests: add seccomp-filter.test.
31331 * tests/seccomp-filter.c: New file.
31332 * tests/seccomp-filter.test: New test.
31333 * tests/.gitignore: Add seccomp-filter.
31335 (DECODER_TESTS): Add seccomp-filter.test.
31337 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31347 * tests/prctl-seccomp-filter-v.c (main): Update.
31348 * tests/seccomp-filter-v.c: New file.
31349 * tests/seccomp-filter-v.test: New test.
31350 * tests/.gitignore: Add seccomp-filter-v.
31352 (DECODER_TESTS): Add seccomp-filter-v.test.
31354 2016-04-11 Dmitry V. Levin <ldv@altlinux.org>
31358 * tests/prctl-seccomp-filter-v.c: Update.
31360 tests: rename seccomp.test to prctl-seccomp-filter-v.test.
31361 * tests/.gitignore: Replace seccomp with prctl-seccomp-filter-v.
31363 (DECODER_TESTS): Replace seccomp.test with prctl-seccomp-filter-v.test.
31364 * tests/seccomp.c: Rename to tests/prctl-seccomp-filter-v.c.
31365 * tests/seccomp.test: Rename to tests/prctl-seccomp-filter-v.test.
31367 tests: add seccomp-strict.test.
31368 * tests/seccomp-strict.c: New file.
31369 * tests/seccomp-strict.test: New test.
31370 * tests/.gitignore: Add seccomp-strict.
31372 (DECODER_TESTS): Add seccomp-strict.test.
31374 tests: add prctl-seccomp-strict.test.
31375 * tests/prctl-seccomp-strict.c: New file.
31376 * tests/prctl-seccomp-strict.test: New test.
31377 * tests/.gitignore: Add prctl-seccomp-strict.
31379 (DECODER_TESTS): Add prctl-seccomp-strict.test.
31383 2016-04-10 Dmitry V. Levin <ldv@altlinux.org>
31385 tests/epoll_create1.c: extend for the case of ENOSYS.
31393 2016-04-09 Dmitry V. Levin <ldv@altlinux.org>
31402 2016-04-08 Fei Jie <feij.fnst@cn.fujitsu.com>
31425 2016-04-08 Dmitry V. Levin <ldv@altlinux.org>
31427 tests/pread64-pwrite64.c: minor cleanup.
31428 * tests/pread64-pwrite64.c: Do not include <sys/uio.h>.
31430 2016-04-07 Dmitry V. Levin <ldv@altlinux.org>
31444 2016-04-06 Elliott Hughes <enh@google.com>
31458 * Hard-code PR_SET_VMA_ANON_NAME, the only current sub-option.
31461 2016-04-06 Fei Jie <feij.fnst@cn.fujitsu.com>
31491 2016-04-06 Dmitry V. Levin <ldv@altlinux.org>
31503 2016-04-05 Dmitry V. Levin <ldv@altlinux.org>
31505 Add default values for SYNC_FILE_RANGE_* constants.
31508 2016-04-05 Elliott Hughes <enh@google.com>
31524 2016-04-04 Dmitry V. Levin <ldv@altlinux.org>
31534 * tests/inet-cmsg.c: Replace PF_INET with AF_INET.
31535 * tests/net-yy-inet.c: Likewise.
31537 * tests/net-accept-connect.c: Replace PF_LOCAL with AF_LOCAL.
31538 * tests/net-y-unix.c: Likewise.
31539 * tests/net-yy-unix.c: Likewise.
31543 2016-04-03 Dmitry V. Levin <ldv@altlinux.org>
31545 tests: add read-write.test.
31546 * tests/read-write.c: New file.
31547 * tests/read-write.test: New test.
31548 * tests/.gitignore: Add read-write.
31550 (DECODER_TESTS): Add read-write.test.
31552 2016-04-02 Dmitry V. Levin <ldv@altlinux.org>
31554 tests/pread64-pwrite64.test: extend dumpio coverage.
31555 * tests/pread64-pwrite64.c (dump_str, print_hex, test_dump):
31558 * tests/pread64-pwrite64.test: Update.
31582 * tests/pread64-pwrite64.c: New file.
31583 * tests/pread64-pwrite64.test: New test.
31584 * tests/.gitignore: Add pread64-pwrite64.
31587 (DECODER_TESTS): Add pread64-pwrite64.
31589 tests/hexdump_strdup.c: add support for longer strings.
31593 tests/preadv-pwritev.c: fix typo in error diagnostics.
31594 * tests/preadv-pwritev.c (main): Fix typo in error message.
31596 2016-04-01 Fei Jie <feij.fnst@cn.fujitsu.com>
31626 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31635 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31646 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31653 * process.c (print_user_offset_addr): New function for printing offset
31660 2016-03-31 Jeff Mahoney <jeffm@suse.com>
31664 define printing helpers for those types directly.
31668 2016-03-31 Dmitry V. Levin <ldv@altlinux.org>
31673 * tests/preadv-pwritev.c: New file.
31674 * tests/preadv-pwritev.test: New test.
31675 * tests/.gitignore: Add preadv-pwritev.
31678 (DECODER_TESTS): Add preadv-pwritev.
31680 2016-03-30 Dmitry V. Levin <ldv@altlinux.org>
31686 * tests/preadv.c (main): Add a test case for preadv short read.
31720 * tests/execveat-v.test: Likewise.
31726 * tests/fork-f.test: Likewise.
31735 * tests/inet-cmsg.test: Likewise.
31775 * tests/times-fail.test: Likewise.
31797 * tests/net-y-unix.test: Likewise.
31798 * tests/net-yy-inet.test: Likewise.
31799 * tests/net-yy-unix.test: Likewise.
31809 2016-03-30 Dmitry V. Levin <ldv@altlinux.org>
31821 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31824 Use the executable itself for input by default.
31826 * tests/sendfile.c (main): Use av[0] instead of av[1] for input.
31831 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31834 While -P option needs /proc to match descriptors, it does not use
31841 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31849 by linux kernel commits v4.6-rc1~65^2~9^2~5 and v4.6-rc1~65^2~9^2~6.
31853 The former was removed by linux kernel commit v2.6.38-rc1~217.
31854 The latter was introduced by linux kernel commit v4.6-rc1~67^2~8.
31859 linux kernel commits v4.6-rc1~91^2~326^2~5, v4.6-rc1~91^2~326^2~4, and
31860 v4.6-rc1~91^2~212^2~1, respectively.
31864 commit v4.6-rc1~91^2~176.
31868 commit v4.6-rc1~68^2~23.
31873 2016-03-28 JayRJoshi <jay.r.joshi100@gmail.com>
31880 2016-03-28 Dmitry V. Levin <ldv@altlinux.org>
31890 * tests/openat.test: Use -P option to filter out openat syscalls
31900 2016-03-27 Dmitry V. Levin <ldv@altlinux.org>
31908 2016-03-26 Dmitry V. Levin <ldv@altlinux.org>
31910 maint: update for linux 4.5.
31911 * maint/ioctls_sym.sh: Update workarounds for drm/*_drm.h files.
31912 Add workarounds for xen/gntdev.h and net/nfc/nci_core.h files.
31913 Update path of saa6588.h and exynos-fimc.h files.
31915 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
31920 for definition of makedev macro.
31921 (main): Add a check for a character special file.
31923 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
31925 sparc64: fix decoding of mknod and mknodat syscalls for sparc personality
31928 personality. This complements commit v4.10-45-gdf4dd8b and fixes
31929 commit v4.10-46-g588a90f.
31933 2016-03-25 Katerina Koukiou <k.koukiou@googlemail.com>
31942 2016-03-25 Fei Jie <feij.fnst@cn.fujitsu.com>
31979 2016-03-23 JayRJoshi <jay.r.joshi100@gmail.com>
31981 tests/scm_rights-fd.test: fix pathname regex.
31982 Pathname containing >, }, or non-printable characters was resulting
31985 * tests/scm_rights-fd.test: Fix pathname regex and simplify things.
31987 2016-03-24 Dmitry V. Levin <ldv@altlinux.org>
31989 tests: add strace-r.test.
31990 * tests/strace-r.expected: New file.
31991 * tests/strace-r.test: New test.
31993 (EXTRA_DIST): Add strace-r.expected.
31995 tests: add strace-ttt.test.
31996 * tests/strace-ttt.test: New test.
31999 tests: add strace-tt.test.
32000 * tests/strace-tt.test: New test.
32003 tests: add strace-t.test.
32004 * tests/strace-t.test: New test.
32007 tests: add strace-T.test.
32008 * tests/strace-T.expected: New file.
32009 * tests/strace-T.test: New test.
32011 (EXTRA_DIST): Add strace-T.expected.
32013 2016-03-23 Dmitry V. Levin <ldv@altlinux.org>
32019 * tests/Makefile.am (TESTS): Move attach-f-p.test, attach-p-cmd.test,
32020 bexecve.test, count-f.test, count.test, detach-running.test,
32021 detach-sleeping.test, detach-stopped.test, dumpio.test,
32022 filter-unavailable.test, fork-f.test, ksysent.test, opipe.test,
32024 strace-f.test, and vfork-f.test to MISC_TESTS.
32028 2016-03-23 JayRJoshi <jay.r.joshi100@gmail.com>
32042 2016-03-17 Fei Jie <feij.fnst@cn.fujitsu.com>
32053 2016-03-15 Fei Jie <feij.fnst@cn.fujitsu.com>
32069 2016-03-15 Dmitry V. Levin <ldv@altlinux.org>
32072 This complements commit v4.9-368-g301c65c.
32078 2016-03-14 Dmitry V. Levin <ldv@altlinux.org>
32083 2016-03-12 Dmitry V. Levin <ldv@altlinux.org>
32085 tests: add count-f.test.
32086 * tests/count-f.c: New file.
32087 * tests/count-f.expected: Likewise.
32088 * tests/count-f.test: New test.
32089 * tests/.gitignore: Add count-f.
32092 (EXTRA_DIST): Add count-f.expected.
32093 (TESTS): Add count-f.test.
32095 2016-02-21 Dmitry V. Levin <ldv@altlinux.org>
32100 2016-03-11 Fei Jie <feij.fnst@cn.fujitsu.com>
32105 2016-03-10 Fei Jie <feij.fnst@cn.fujitsu.com>
32132 2016-03-10 Fabien Siron <fabien.siron@epita.fr>
32141 2016-03-09 Fei Jie <feij.fnst@cn.fujitsu.com>
32150 2016-03-07 Anchit Jain <anchitjain1234@gmail.com>
32159 2016-03-05 Nahim El Atmani <naam@lse.epita.fr>
32162 * strace.c (init): Remove initial memory allocation for tcbtab.
32165 Reviewed-By: Gabriel Laskar <gabriel@lse.epita.fr>
32166 Reported-by: haris iqbal <haris.phnx@gmail.com>
32168 2016-03-01 Fei Jie <feij.fnst@cn.fujitsu.com>
32191 2016-02-20 Dmitry V. Levin <ldv@altlinux.org>
32194 * linux/mips/syscallent-n32.h [6324]: Add copy_file_range entry.
32195 * linux/mips/syscallent-n64.h [5320]: Likewise.
32196 * linux/mips/syscallent-o32.h [4360]: Likewise.
32198 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32222 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32230 2016-02-19 Fei Jie <feij.fnst@cn.fujitsu.com>
32239 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32260 Do not align length to 4-byte boundary. Align destination buffer
32261 to 4-byte boundary and initialize it with zeroes so that subsequent
32274 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32277 Unfortunately, 64-bit linux kernel has a bug in matching inode numbers
32291 2016-02-19 Michael Shigorin <mike@altlinux.org>
32293 tests: avoid using cpp -dD.
32294 -dD is less portable across some peculiar preprocessors.
32296 tests/Makefile.am (ksysent.h): Use cpp -dM instead of cpp -dD.
32298 2016-02-16 Dmitry V. Levin <ldv@altlinux.org>
32310 * tests/ppoll-v.expected: Update.
32326 2016-02-14 Dmitry V. Levin <ldv@altlinux.org>
32381 * io.c (SYS_FUNC(splice)): Use PRId64 instead of PRIu64 for printing
32427 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32431 for an address that is more likely to be not yet mapped.
32438 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32441 This semi-automatic change brings syscall tables in sync with kernel's
32460 * linux/mips/syscallent-n32.h (getpgid, statfs, fstatfs, init_module,
32462 * linux/mips/syscallent-n64.h (getpgid, statfs, fstatfs, init_module,
32464 * linux/mips/syscallent-o32.h (signal, statfs, fstatfs, ioperm,
32486 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32492 mips n64: use the most optimal parser for fadvise64 syscall.
32493 * linux/mips/syscallent-n64.h (fadvise64): Replace SEN(fadvise64_64)
32499 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32507 * linux/mips/syscallent-n32.h (pipe): Likewise.
32508 * linux/mips/syscallent-n64.h (pipe): Likewise.
32509 * linux/mips/syscallent-o32.h (pipe): Likewise.
32513 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32520 Fix pathtrace match for pipe2 syscall.
32521 * pathtrace.c (pathtrace_match): As pipe2 syscall has no descriptors
32528 2016-02-12 Dmitry V. Levin <ldv@altlinux.org>
32532 Add tests for madvise, mlockall, mremap, and msync syscalls.
32536 2016-02-11 Dmitry V. Levin <ldv@altlinux.org>
32547 * wait.c (SYS_FUNC(waitid)): Do not check for tcp->s_ent->nargs
32571 2016-02-09 Dmitry V. Levin <ldv@altlinux.org>
32573 tests: check that -f -p attaches to threads properly.
32574 Check that -f -p attaches and follows all threads of the given pid.
32576 * tests/attach-f-p.c: New file.
32577 * tests/attach-f-p.test: New test.
32578 * tests/.gitignore: Add attach-f-p.
32581 (TESTS): Add attach-f-p.test.
32583 2016-02-09 Dmitry V. Levin <ldv@altlinux.org>
32585 Introduce libstrace.a for potentially conditional compilation units.
32587 configuration. Create a library for the purpose of keeping such
32597 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32599 travis-ci: pass more gcov arguments to codecov.
32616 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32621 * tests/execve-v.c: New file.
32622 * tests/execveat-v.c: Likewise.
32623 * tests/execve-v.test: New test.
32624 * tests/execveat-v.test: Likewise.
32630 * tests/execve-v.expected: Likewise.
32632 * tests/execveat-v.expected: Likewise.
32633 * tests/.gitignore: Add execve-v and execveat-v.
32635 (TESTS): Add execve-v.test and execveat-v.test.
32636 (EXTRA_DIST): Remove execve.expected, execve-v.expected,
32637 execveat.expected, and execveat-v.expected.
32639 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32681 2016-02-08 Denys Vlasenko <dvlasenk@redhat.com>
32684 Otherwise, -oLOGFILE may end up using one of them. This conflicts
32691 2016-02-08 Denys Vlasenko <dvlasenk@redhat.com>
32696 { sleep 1; yes | head -n99999; } | strace -o/dev/null sh -c 'exec <&-; sleep 9'
32705 2016-02-05 Dmitry V. Levin <ldv@altlinux.org>
32708 Check that -o |pipe_command works. In particular, check that
32709 strace waits for completion of piped command.
32714 2016-02-05 Keith Owens <kaos.ocs@gmail.com>
32716 strace-graph: print the pid in the graph.
32717 * strace-graph: Prefix each command with its pid.
32719 strace-graph: cope with clone immediately followed by exit.
32720 * strace-graph: A clone() followed by exit() with no intervening fork
32721 or execve resulted in the new pid having no seq key. That breaks when
32725 strace-graph: handle recent strace output.
32726 * strace-graph: Fix regex for --SIG. Ignore '+++ exited with <n> +++'
32729 strace-graph: handle strace -T.
32730 * strace-graph: Ignore extra ' <time.spent>' field added by strace -T.
32732 strace-graph: use "strict" and "warnings" pragmas.
32733 * strace-graph: Set "use strict" and "use warnings" options. Fix errors
32734 detected by strict/warnings. $result is really a string, it can be "-1"
32737 2016-02-04 Dmitry V. Levin <ldv@altlinux.org>
32741 travis-ci: prepare and submit test coverage report.
32745 (main): Allocate memory for string and buffer passed to the syscall
32761 2016-02-04 Gabriel Laskar <gabriel@lse.epita.fr>
32763 Add configure --enable-code-coverage option.
32774 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32786 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32788 tests: replace net-fd.test with net-y-unix.test.
32792 * tests/net-y-unix.c: New file.
32793 * tests/net-y-unix.test: New test.
32794 * tests/net-fd.test: Remove.
32795 * tests/net-fd.expected: Remove.
32796 * tests/.gitignore: Add net-y-unix.
32798 (TESTS): Replace net-fd.test with net-y-unix.test.
32799 (net-fd.log): Remove.
32800 (EXTRA_DIST): Remove net-fd.expected.
32802 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32805 As -yy parser, compared to -y, needs to do at least 5 extra syscalls
32824 * tests/unix-yy.c (main): Update.
32826 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32839 return type from bool to int, return -1 on all parse errors except
32842 SOCK_DIAG_BY_FAMILY, also stop when the parser returns -1.
32845 diagnostics for NLMSG_ERROR.
32856 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32858 tests: replace net-yy.test with net-yy-inet.test.
32862 * tests/net-yy-inet.c: New file.
32863 * tests/net-yy-inet.test: New test.
32864 * tests/net-yy.test: Remove.
32865 * tests/net-yy-accept.awk: Remove.
32866 * tests/net-yy-connect.awk: Remove.
32867 * tests/inet-accept-connect-send-recv.c: Remove.
32868 * tests/.gitignore: Replace inet-accept-connect-send-recv
32869 with net-yy-inet.
32871 (TESTS): Replace net-yy.test with net-yy-inet.test.
32872 (EXTRA_DIST): Remove net-yy-accept.awk and net-yy-connect.awk.
32874 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32876 tests: replace unix-yy.test with net-yy-unix.test.
32880 * tests/net-yy-unix.c: New file.
32881 * tests/net-yy-unix.test: New test.
32882 * tests/unix-yy.test: Remove.
32883 * tests/unix-yy-accept.awk: Remove.
32884 * tests/unix-yy-connect.awk: Remove.
32885 * tests/.gitignore: Add net-yy-unix.
32887 (TESTS): Replace unix-yy.test with net-yy-unix.test.
32888 (EXTRA_DIST): Remove unix-yy-accept.awk and unix-yy-connect.awk.
32890 2016-02-02 Dmitry V. Levin <ldv@altlinux.org>
32901 2016-01-29 Dmitry V. Levin <ldv@altlinux.org>
32913 2016-01-23 Dmitry V. Levin <ldv@altlinux.org>
32915 Move fallback -yy socket print from printfd to print_sockaddr_by_inode.
32916 * util.c (printfd): In -yy mode, move fallback print of proto:[inode] ...
32919 2016-01-22 Dmitry V. Levin <ldv@altlinux.org>
32921 Implement simultaneous use of -p option and tracing of a command.
32922 * strace.c (init): Allow -p option along with a command.
32923 (startup_child): In -D mode, record the parent of the tracer process
32925 (startup_attach): Save trace_tracer_pid before -D mode fork.
32926 When tracing a command in -f mode, do not check for the command's
32927 threads as it has no threads at this moment.
32929 In -D mode, never attach to the parent of the tracer process,
32932 * strace.1: Document that -p option can be used along with tracing
32935 * tests/attach-p-cmd-cmd.c: New file.
32936 * tests/attach-p-cmd-p.c: Likewise.
32937 * tests/attach-p-cmd.test: New test.
32938 * tests/.gitignore: Add attach-p-cmd-cmd and attach-p-cmd-p.
32940 (TESTS): Add attach-p-cmd.test.
32944 2016-01-22 Dmitry V. Levin <ldv@altlinux.org>
32946 strace.1: fix format of -P description.
32947 * strace.1 (-P): Write trailing using regular font.
32949 2016-01-21 Dmitry V. Levin <ldv@altlinux.org>
32961 2016-01-20 Dmitry V. Levin <ldv@altlinux.org>
33013 2016-01-19 Dmitry V. Levin <ldv@altlinux.org>
33029 for any other command.
33031 For any command except Q_QUOTAON and Q_V1_QUOTAON, call decode_cmd_data
33046 are in-memory constants, print it like an array of one element instead
33049 2016-01-17 Dmitry V. Levin <ldv@altlinux.org>
33057 2016-01-19 Dmitry V. Levin <ldv@altlinux.org>
33072 2016-01-15 Dmitry V. Levin <ldv@altlinux.org>
33075 * tests/llseek.test: Filter out _llseek calls made with non-negative
33079 * tests/lseek.test: Filter out lseek calls made with non-negative
33082 2016-01-14 Dmitry V. Levin <ldv@altlinux.org>
33084 mmsg.test: fix regression introduced by commit v4.11-138-g6e815ce.
33097 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33103 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33107 directly using "svc NR", for NR >= 256 "svc 0" with %r1=NR is used.
33108 The latter method is allowed for NR < 256, too.
33113 For syscall numbers >= NR_syscalls this register is set to 0,
33123 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33125 s390, s390x: print all syscall arguments for syscall number 0.
33133 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33135 travis-ci: update build matrix.
33136 Add clang-3.6/x86_64, clang-3.6/x86, and musl-gcc/x86_64 to the matrix.
33138 * .travis.yml (compiler): Add gcc, clang-3.6, and musl-gcc.
33141 * travis-ci.sh: Add support for clang and musl-gcc.
33142 Use --enable-gcc-Werror for gcc build unconditionally.
33144 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33146 mpers.awk: add support for DWARF files generated by clang.
33148 for DW_TAG_pointer_type to default_pointer_size. Set parent
33149 for DW_TAG_member only. Handle DW_AT_count as an alternative
33152 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33154 configure.ac: reorder some statements for better readability.
33159 scm_rights-fd.test: rewrite without fork.
33163 * tests/scm_rights-fd.test: Update.
33173 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33177 do not define __NR_recvmmsg. Add a workaround for them.
33180 * tests/mmsg.c: Check for __NR_recvmmsg || HAVE_RECVMMSG.
33182 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33185 Linux kernel commit v4.3-rc1-50-g8d4bd0e corrected uc_sigmask
33190 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33196 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33198 Fix struct sigevent decoding for musl.
33215 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33219 This complements commit v4.10-184-g0e946ab.
33223 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33227 which obviously makes gcc -Wsign-compare unhappy.
33231 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33233 tests: fix TEST_SYSCALL_{NR,STR} and STRUCT_STAT_STR macros for musl.
33267 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33270 The size of off_t is not something one can rely upon. For example,
33278 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33280 tests/inet-cmsg.c: fix musl libc compilation warnings.
33283 For example, glibc defines them as size_t, while musl libc - as type
33287 * tests/inet-cmsg.c (main): Cast mh.msg_controllen and c->cmsg_len
33290 2016-01-11 Dmitry V. Levin <ldv@altlinux.org>
33306 2016-01-11 Dmitry V. Levin <ldv@altlinux.org>
33310 Check for __NR_sendmmsg as an alternative to HAVE_SENDMMSG.
33315 Reported-by: Szabolcs Nagy <nsz@port70.net>
33317 2016-01-10 Dmitry V. Levin <ldv@altlinux.org>
33325 Reported-by: Szabolcs Nagy <nsz@port70.net>
33327 2016-01-10 Dmitry V. Levin <ldv@altlinux.org>
33332 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33352 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33359 Reported-by: Szabolcs Nagy <nsz@port70.net>
33361 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33367 Reported-by: Szabolcs Nagy <nsz@port70.net>
33369 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33381 * tests/uid.awk: Update for getxgid output change.
33389 2016-01-08 Dmitry V. Levin <ldv@altlinux.org>
33398 2016-01-08 Dmitry V. Levin <ldv@altlinux.org>
33400 tests: change text marker in fork-f and vfork-f tests.
33404 * tests/fork-f.c (logit): Rename to logit_. Use chdir instead of pwrite.
33407 * tests/vfork-f.c: Likewise.
33408 * tests/fork-f.test: Update.
33410 2016-01-07 Dmitry V. Levin <ldv@altlinux.org>
33412 Fix printing of 32-bit times syscall return value on 64-bit architectures
33413 This change complements commit v4.9-359-gd93d9f8 by fixing
33418 when current personality is 32-bit, print 32-bit return code.
33421 Reported-by: Steve McIntyre <steve@einval.com>
33423 2016-01-07 Dmitry V. Levin <ldv@altlinux.org>
33425 tests/vfork-f.c: support platforms without vfork.
33430 * tests/vfork-f.c (main): Explicitly block the parent until the child
33433 2016-01-07 Dmitry V. Levin <ldv@altlinux.org>
33450 Reported-by: Joe Korty <joe.korty@ccur.com>
33452 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33575 tests/vfork-f.c: use libtests.
33576 * tests/vfork-f.c (main): Use assert and perror_msg_and_fail.
33578 tests/fork-f.c: use libtests.
33579 * tests/fork-f.c (main): Use assert and perror_msg_and_fail.
33632 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33662 tests/inet-cmsg.c: use libtests.
33663 * tests/inet-cmsg.c (main): Use perror_msg_and_skip.
33679 tests/inet-accept-connect-send-recv.c: use libtests.
33680 * tests/inet-accept-connect-send-recv.c (main): Use perror_msg_and_skip
33683 tests/net-accept-connect.c: use libtests.
33684 * tests/net-accept-connect.c (main): Use perror_msg_and_skip
33687 tests/unix-pair-send-recv.c: use libtests.
33688 * tests/unix-pair-send-recv.c (main): Use perror_msg_and_skip
33691 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33701 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33746 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33754 tests/filter-unavailable.c: use libtests.
33755 * tests/filter-unavailable.c (main): Use perror_msg_and_fail.
33773 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33778 2016-01-04 Dmitry V. Levin <ldv@altlinux.org>
33780 tests/times-fail.c: use assert.
33781 * tests/times-fail.c (main): Use assert.
33792 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33827 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33829 tests: include tests.h instead of config.h.
33830 Automatically edit tests/*.c files using the following perl one-liner:
33832 perl -0777 -pi -e \
33833 's/#ifdef HAVE_CONFIG_H\n# include "config\.h"\n#endif\n*/#include "tests.h"\n/' \
33836 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33839 Introduce tests/libtests.a with common functions for use in tests.
33851 2016-01-01 Dmitry V. Levin <ldv@altlinux.org>
33853 tests: enable strace-k.test only for --with-libunwind configurations.
33854 Also, since -k option does not support multiple personalities,
33855 add strace-k.test to XFAIL_TESTS when running mpers tests.
33859 [USE_LIBUNWIND] (LIBUNWIND_TESTS): Add strace-k.test.
33860 (TESTS): Replace strace-k.test with $(LIBUNWIND_TESTS).
33861 * bootstrap: Substitute MPERS_NAME variable in tests-*/Makefile.am.
33862 * tests/strace-k.test: Do not check for -k option availability.
33864 2016-01-02 Dmitry V. Levin <ldv@altlinux.org>
33874 2015-12-31 Dmitry V. Levin <ldv@altlinux.org>
33880 2015-12-30 Dmitry V. Levin <ldv@altlinux.org>
33883 These manual tests are obsoleted by fork-f.test and vfork-f.test.
33890 2015-12-30 Dmitry V. Levin <ldv@altlinux.org>
33892 tests: add fork-f.test and vfork-f.test.
33893 Check how strace -f follows fork and vfork syscalls.
33895 * tests/fork-f.c: New file.
33896 * tests/fork-f.test: New test.
33897 * tests/vfork-f.c: New file.
33898 * tests/vfork-f.test: New test.
33899 * tests/Makefile.am (check_PROGRAMS): Add fork-f and vfork-f.
33900 (TESTS): Add fork-f.test and vfork-f.test.
33901 * tests/.gitignore: Add fork-f and vfork-f.
33903 2015-12-29 Dmitry V. Levin <ldv@altlinux.org>
33905 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall.
33908 2015-12-29 Dmitry V. Levin <ldv@altlinux.org>
33910 Set SYSCALL_NEVER_FAILS flag for umask syscall.
33916 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33918 alpha, ia64, mips, nios2, powerpc, sparc: always check for syscall error
33920 check for syscall error condition regardless of SYSCALL_NEVER_FAILS flag
33922 semantics, there is no way to distinguish a syscall error from a valid
33923 return code that looks like a syscall error, and the check for
33935 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33940 bugs. Check for this unlikely case and let users know that their
33946 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33954 tcp->u_rval to uid_t on exiting syscall, return RVAL_DECODED.
33956 2015-12-26 Dmitry V. Levin <ldv@altlinux.org>
33969 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33977 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33987 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
34002 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
34004 Set SYSCALL_NEVER_FAILS flag for personality syscall.
34006 v2.6.29-6609-g11d06b2a1e5658f448a308aa3beb97bacd64a940, personality
34008 v2.6.35-rc1-372-g485d527 it still could return an error.
34014 2015-12-24 Dmitry V. Levin <ldv@altlinux.org>
34022 2015-12-24 Dmitry V. Levin <ldv@altlinux.org>
34036 Reported-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
34038 2015-12-24 Dmitry V. Levin <ldv@altlinux.org>
34041 Starting with commit v4.9-46-g681452b that removed all references
34042 to acl.h, we no longer use acl development library.
34044 * .travis.yml (addons.apt.packages): Remove libacl1-dev.
34045 * strace.spec (BuildRequires): Remove libacl-devel.
34047 2015-12-23 Dmitry V. Levin <ldv@altlinux.org>
34049 packages/x86_64: enable experimental -k option.
34050 * debian/control (Build-Depends) [amd64]: Add libunwind-dev.
34051 * strace.spec (BuildRequires) [x86_64]: Add libunwind-devel.
34053 maint: post-release administrivia.
34054 * NEWS: Add header line for the next release.
34056 2015-12-21 Dmitry V. Levin <ldv@altlinux.org>
34058 Prepare for 4.11 release.
34059 * NEWS: Update for 4.11 release.
34060 * debian/changelog: 4.11-1.
34061 * strace.spec: 4.11-1.
34063 2015-12-20 Dmitry V. Levin <ldv@altlinux.org>
34066 * debian/changelog: Sync with 4.10-3.
34069 * strace.spec: Sync with 4.10-3.
34075 2015-12-19 Dmitry V. Levin <ldv@altlinux.org>
34077 NEWS: Prepare for 4.11 release.
34079 2015-12-18 Dmitry V. Levin <ldv@altlinux.org>
34084 2015-12-17 Dmitry V. Levin <ldv@altlinux.org>
34095 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34098 * tests/aio.c: Include <time.h> for struct timespec.
34100 Reported-by: Szabolcs Nagy <nsz@port70.net>
34102 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34104 mpers.sh: switch to DWARF version 2 format for better portability.
34105 * mpers.sh (CFLAGS): Replace -gdwarf-4 with -gdwarf-2.
34107 mpers.awk: add support for DWARF version 2 format.
34110 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34131 Reported-by: Szabolcs Nagy <nsz@port70.net>
34133 2015-12-16 Szabolcs Nagy <nsz@port70.net>
34135 Fix SYS_FUNC and SEN macros for musl.
34153 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34162 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34166 (what_is): Use it for printing filler names. Tweak return types.
34170 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34173 Make mpers.awk check for potential index loops. Such loops should not
34180 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34184 are expected to have non-empty values really meet this requirement.
34190 Reported-by: Mike Frysinger <vapier@gentoo.org>
34192 2015-12-14 Dmitry V. Levin <ldv@altlinux.org>
34199 2015-12-14 Dmitry V. Levin <ldv@altlinux.org>
34203 v4.10-45-gdf4dd8b.
34207 2015-12-13 Dmitry V. Levin <ldv@altlinux.org>
34209 tests/restart_syscall: add a workaround for old arm kernels.
34210 As arm kernels used to overwrite ARM_r0 with -EINTR after
34214 alternative value for the first argument of restarted nanosleep syscall.
34216 2015-12-12 Dmitry V. Levin <ldv@altlinux.org>
34220 This change complements commit v4.10-566-gbab4ef4.
34224 2015-12-11 Dmitry V. Levin <ldv@altlinux.org>
34230 This also fixes --enable-gcc-Werror build.
34235 Reported-by: Sergey Bolshakov <sbolshakov@altlinux.org>
34237 2015-12-10 Dmitry V. Levin <ldv@altlinux.org>
34246 x86_64: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.12, 3.11,
34247 3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
34248 i386: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.11,
34249 3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
34250 aarch64: 4.4-rc
34252 arm eabi: 4.4-rc, 4.2, 4.1
34257 ppc64: 3.10-rhel, 2.6.32-rhel
34265 is CentOS-5 provided by OBS. On x86_64 instance it fails with
34275 * tests/Makefile.am (AM_CPPFLAGS): Add -I$(builddir).
34283 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34289 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34292 Printing of ia32 syscalls on ia64 must have been broken for a long time.
34300 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34302 Fix build on architectures for which arch_sigreturn is not implemented.
34307 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34309 aarch64: swap 64-bit and 32-bit personalities.
34310 Let native 64-bit personality be personality 0, and 32-bit personality
34311 be personality 1, to follow the traditional layout used for other
34318 STAT32_PERSONALITY for AARCH64 as well.
34321 * linux/aarch64/get_error.c (get_error): Adjust tcp->currpers check.
34333 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34336 * linux/mips/syscallent-n32.h [6216]: Change syscall handler
34338 * linux/mips/syscallent-n64.h [5215]: Rename from "fadvise64_64"
34340 * linux/mips/syscallent-o32.h [4254]: Likewise.
34384 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34399 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34416 * linux/mips/syscallent-n32.h [6022]: Rename "select" to "_newselect".
34417 * linux/mips/syscallent-n64.h [5022]: Likewise.
34418 * linux/mips/syscallent-o32.h [4142]: Likewise.
34434 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34449 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34465 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34474 bfin, i386: remove sysentry for nonexistent security syscall.
34478 build: add -D_FILE_OFFSET_BITS=64 to _CPPFLAGS instead of _CFLAGS.
34500 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34503 As tests-m*32/Makefile.am files now refer to proper arch specific
34511 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34513 build: set arch specific -m switches in tests-m*32/Makefile.am files properly
34516 * bootstrap: In tests-m32/Makefile.am and tests-mx32/Makefile.am,
34517 add -m32 and -mx32, respectively, to ARCH_MFLAGS instead of AM_CFLAGS.
34519 build: initialize ARCH variable in tests-m*32/Makefile.am files properly
34524 * bootstrap: Substitute @arch@ with @arch_m32@ in tests-m32/Makefile.am.
34525 Substitute @arch@ with @arch_mx32@ in tests-mx32/Makefile.am.
34527 2015-12-07 Dmitry V. Levin <ldv@altlinux.org>
34545 2015-12-07 Dmitry V. Levin <ldv@altlinux.org>
34552 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34579 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34588 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34590 unix-yy.test: fix portability issue.
34591 * tests/unix-yy-connect.awk (r_close_listen): Quote square brackets
34594 inet-cmsg.test: skip the test when the network is not functional.
34595 * tests/inet-cmsg.c (main): Return 77 if inet datagram socket
34598 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34624 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34629 2015-12-04 Elvira Khabirova <lineprinter0@gmail.com>
34631 fcntl: create a separate parser for fcntl64 syscall.
34642 * linux/mips/syscallent-n32.h: Likewise.
34643 * linux/mips/syscallent-o32.h: Likewise.
34651 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34653 travis-ci: add build matrix.
34658 * tests/stat32-v.test: Remove.
34660 * tests/stat64-v.test: Remove.
34665 (TESTS): Replace stat32-v.test and stat64-v.test with stat64.test.
34692 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34694 tests: prepare for detailed testing of stat family syscalls.
34707 2015-12-04 Gabriel Laskar <gabriel@lse.epita.fr>
34710 For some ioctls, like from drm, the identification of the correct ioctl
34722 Suggested-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
34724 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34735 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34738 On x32, tcp->ext_arg is not initialized for i386 personality,
34739 so tcp->u_arg has to be used instead.
34743 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34745 x86_64, x32: add a replacement for <asm/stat.h>
34747 <asm/stat.h> editions that are completely wrong for x32.
34754 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34764 2015-12-03 Dmitry V. Levin <ldv@altlinux.org>
34767 While -P option needs /proc to match descriptors, it does not use
34773 2015-12-02 Dmitry V. Levin <ldv@altlinux.org>
34788 2015-12-01 Dmitry V. Levin <ldv@altlinux.org>
34798 with entries for numbers 192..197, 204, 226, and 254 unassigned.
34828 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34834 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34847 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34855 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34900 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34903 Make get_scno.c files more self-contained. While they are still
34904 being included by syscall.c, the latter no longer provides
34905 a function framework for them.
34937 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
34939 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34942 Make get_syscall_args.c files more self-contained. While they are
34943 still being included by syscall.c, the latter no longer defines
34975 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
34977 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34980 Make get_syscall_result.c files more self-contained. While they are
34981 still being included by syscall.c, the latter no longer provides
34982 a function framework for them.
34999 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
35001 2015-11-29 Dmitry V. Levin <ldv@altlinux.org>
35004 Make get_error.c files more self-sustained. While they are still being
35005 included by syscall.c, the latter no longer defines get_error function.
35038 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
35040 2015-11-28 Dmitry V. Levin <ldv@altlinux.org>
35043 Make arch_sigreturn.c files more self-sustained. While they are
35044 still being included by sigreturn.c, the latter no longer defines
35067 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
35069 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35073 * travis-ci.sh: Likewise.
35075 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35078 * tests/net-yy.test: Remove "$LOG"-connect and "$LOG"-accept.
35079 * tests/unix-yy.test: Likewise.
35081 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35083 tests: skip stat32-v.test on x32.
35084 Explicitly skip 32-bit stat test on x32 even if libc pretends
35089 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35092 * tests/ipc_msgbuf.c: Include "config.h" and "kernel_types.h".
35109 * configure.ac (AC_CHECK_TYPES): Check for __kernel_long_t
35122 2015-11-26 Elvira Khabirova <lineprinter0@gmail.com>
35124 Refer to -h on incorrect usage.
35133 * tests/strace-k.test: Change the option detecting regexp accordingly.
35135 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35137 tests: run in "set -x" mode if VERBOSE variable is non-null.
35138 * tests/init.sh: Enter "set -x" mode if $VERBOSE is non-null.
35140 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35154 * tests/inet-cmsg.test: Likewise.
35174 * tests/times-fail.test: Likewise.
35184 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35188 that has 32-bit syscall arguments.
35193 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35197 that has 32-bit syscall arguments.
35201 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35211 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35214 Ignore mpers_xlat.h generated since commit v4.10-454-g5cb45b2.
35218 Reported-by: Elvira Khabirova <lineprinter0@gmail.com>
35220 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35236 fcntl.c: implement decoding for all known operations.
35248 for F_DUPFD and F_DUPFD_CLOEXEC operations.
35253 (SYS_FUNC(fcntl)): Do not check for USE_PRINTFLOCK64,
35268 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35271 Include <linux/fcntl.h> for proper definitions of F_* constants
35274 * configure.ac (AC_CHECK_TYPES): Check for struct flock, struct flock64,
35283 2015-11-26 Elvira Khabirova <lineprinter0@gmail.com>
35290 2015-11-26 Mike Frysinger <vapier@gentoo.org>
35293 Some systems (like Bionic) omit support for SysV related code. That
35294 means no C library headers for strace to include. Add configure tests
35299 there is no guarantee or requirement that the structure layout between
35302 * configure.ac (AC_CHECK_HEADERS): Check for linux/ipc.h,
35310 based on what is available. Note missing support for old ipc structs.
35315 based on what is available. Note missing support for old ipc structs.
35318 2015-11-25 Dmitry V. Levin <ldv@altlinux.org>
35321 Thanks to Jian Zhen for donation of https://github.com/strace/ and
35326 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35332 * linux/mips/syscallent-n32.h: Likewise.
35333 * linux/mips/syscallent-n64.h: Likewise.
35334 * linux/mips/syscallent-o32.h: Likewise.
35347 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35358 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35362 and strace does not support those kernels, there is no use to keep this
35373 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35378 * linux/mips/syscallent-n32.h (sysfs): Likewise.
35379 * linux/mips/syscallent-n64.h (sysfs): Likewise.
35401 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
35449 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
35457 Use these functions for decoding of IP_PKTINFO, IP_TTL, IP_TOS,
35462 * tests/inet-cmsg.c: New file.
35463 * tests/inet-cmsg.test: New test.
35464 * tests/Makefile.am (check_PROGRAMS): Add inet-cmsg.
35465 (TESTS): Add inet-cmsg.test.
35466 * tests/.gitignore: Add inet-cmsg.
35468 Suggested-by: Orion Poplawski <orion@cora.nwra.com>
35470 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
35481 2015-11-21 Dmitry V. Levin <ldv@altlinux.org>
35488 2015-11-20 Dmitry V. Levin <ldv@altlinux.org>
35497 - if xlat struct declaration is available in defs.h,
35500 - otherwise, if xlat file is included by a mpers source file,
35502 (unless no mpers mode is supported on this architecture,
35505 - otherwise, a local definition is provided in regular mode,
35520 (gen_header): Check also mpers_xlat.h for global declarations
35527 2015-11-20 Dmitry V. Levin <ldv@altlinux.org>
35529 tests: rewrite getdents test in C for better coverage.
35541 2015-11-19 Dmitry V. Levin <ldv@altlinux.org>
35563 2015-11-19 Gabriel Laskar <gabriel@lse.epita.fr>
35574 2015-11-19 Dmitry V. Levin <ldv@altlinux.org>
35582 2015-11-18 Dmitry V. Levin <ldv@altlinux.org>
35585 Starting with commit v4.6-281-g7af9f35, we implicitly assume that
35586 HAVE_SENDMSG is always defined. Therefore, the check for sendmsg
35595 2015-11-18 Dmitry V. Levin <ldv@altlinux.org>
35601 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35637 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35641 v4.3-rc7-1-gd305c47.
35645 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35648 Starting with linux commit v4.3-rc3-33-ga342361, powerpc has
35654 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35666 * linux/mips/syscallent-n32.h (userfaultfd, membarrier, mlock2): Likewise.
35667 * linux/mips/syscallent-n64.h (userfaultfd, membarrier, mlock2): Likewise.
35668 * linux/mips/syscallent-o32.h (userfaultfd, membarrier, mlock2): Likewise.
35676 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35684 2015-11-16 Mike Frysinger <vapier@gentoo.org>
35689 for this edge case.
35691 * util.c (printflags): Check xlat->str is not NULL.
35693 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35696 mpers_DEFS has to be forwarded to mpers.sh so that config.h would be
35699 * Makefile.am (mpers-m%.stamp): Add the whole $(mpers_sh_opts) set of
35702 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35707 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35711 v4.0-rc4-67-g529d235.
35715 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35717 sparc: reserve more space for new syscalls.
35719 for new syscalls.
35723 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35726 Starting with linux commit v4.3-rc3-1-g5b3f33e, m68k has direct
35733 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35736 Starting with linux commit v4.2-rc1-64-g9dea5dc, x86 has direct
35743 2015-11-11 Heiko Carstens <heiko.carstens@de.ibm.com>
35749 2015-11-07 Dmitry V. Levin <ldv@altlinux.org>
35767 Reported-by: Elliott Hughes <enh@google.com>
35769 2015-10-09 Dmitry V. Levin <ldv@altlinux.org>
35772 * fcntl.c (SYS_FUNC(fcntl)): Return RVAL_DECODED for write-only operations.
35774 2015-10-08 Dmitry V. Levin <ldv@altlinux.org>
35786 2015-10-08 Dmitry V. Levin <ldv@altlinux.org>
35793 Reported-by: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
35795 2015-10-01 Gabriel Laskar <gabriel@lse.epita.fr>
35797 Fix make -j builds.
35803 This patch add an explicit dependency to printers.h for the mpers
35806 * Makefile.am (mpers-m%.stamp): Add printers.h to order-only
35809 2015-09-29 Mike Frysinger <vapier@gentoo.org>
35812 The `echo -n` behavior is non-portable, so use printf instead.
35814 * generate_mpers_am.sh: Change `echo -n` to `printf`.
35816 2015-09-23 Gabriel Laskar <gabriel@lse.epita.fr>
35820 there was no check for conflicts with other potential ioctls numbers.
35822 For example:
35831 * tests/ioctl.c (main): Add a case for command number conflicts.
35833 2015-09-23 Dmitry V. Levin <ldv@altlinux.org>
35841 2015-09-20 Dmitry V. Levin <ldv@altlinux.org>
35850 2015-09-19 Dmitry V. Levin <ldv@altlinux.org>
36029 2015-09-17 Dmitry V. Levin <ldv@altlinux.org>
36089 Print signal name of sigev_signo for those sigev_notify values
36097 2015-09-16 Dmitry V. Levin <ldv@altlinux.org>
36125 Add macro definitions for mpers printers.
36129 * README-mpers: Update instructions for using mpers printers.
36140 2015-09-15 Dmitry V. Levin <ldv@altlinux.org>
36145 * desc.c (sys_pselect6): Use it instead of open-coding
36146 a proxy struct parser for different personalities.
36147 * io.c (tprint_iov_upto): Use it instead of open-coding
36148 a struct iovec parser for different personalities.
36149 * kexec.c (print_kexec_segments): Use it instead of open-coding
36150 a struct kexec_segment parser for different personalities.
36160 2015-09-14 Dmitry V. Levin <ldv@altlinux.org>
36171 2015-09-14 Dmitry V. Levin <ldv@altlinux.org>
36183 2015-09-14 Anton Blanchard <anton@samba.org>
36188 2015-09-14 Dmitry V. Levin <ldv@altlinux.org>
36253 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36255 mpers.m4: workaround missing gnu/stubs-*.h files.
36256 On some systems missing gnu/stubs-*.h files make -m32/-mx32 compilation
36261 * m4/mpers.m4 (st_MPERS): Check for the gnu stub file. Create an empty
36263 * Makefile.am (DISTCLEANFILES): Add gnu/stubs-32.h and gnu/stubs-x32.h.
36265 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36267 tests: add times-fail.test.
36268 * tests/times-fail.c: New file.
36269 * tests/times-fail.test: New test.
36270 * tests/Makefile.am (check_PROGRAMS): Add times-fail.
36271 (TESTS): Add times-fail.test.
36272 * tests/.gitignore: Add times-fail.
36274 2015-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
36284 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36293 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36302 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36311 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36319 * tests/ipc_msg.c: Update for struct msqid_ds support.
36321 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36329 * tests/ipc_shm.c: Update for struct shmid_ds support.
36331 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36342 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36354 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36363 (mq_LDADD): Add -lrt.
36366 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36377 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36388 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36402 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36411 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36426 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36435 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36444 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36454 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36468 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36471 Add a subsystem for semi-automatical definition of how parsers should
36472 work with personality-dependent (mpers) types of tracee's data. Create
36474 functions, one library for each possible nonnative target personality.
36483 of parsers and printers for different personalities, a correct way
36487 To get a definition of a given type for nonnative personality
36489 is being compiled for this personality (using -m32 or -mx32 compiler
36497 in the code (for example, printsiginfo_at). Such functions (printers)
36500 For each possible nonnative target personality a library is being
36508 these files are being inspected for inclusions of DEF_MPERS_TYPE,
36513 headers for nonnative personalities. Pointers to printers are
36517 * README-mpers: New README explaining how to use mpers support.
36527 (strace_LDADD, noinst_LIBRARIES): Add libmpers-%.a.
36536 (mpers-m[x]32.stamp, m[x]32_defs.h, m[x]32_funcs.h, printers.h,
36537 %_printer_decls.h, %_printer_defs.h, clean-local,
36548 for X86_64, X32.
36551 for X86_64.
36563 * .gitignore: Add libmpers-m32.a, libmpers-mx32.a, m32_defs.h,
36564 m32_funcs.h, m32_printer_decls.h, m32_printer_defs.h, mpers-m32,
36565 mpers-m32.stamp, mpers-mx32, mpers-mx32.stamp, mpers.am, mx32_defs.h,
36569 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36586 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36600 * tests/sendfile.c (main): Update match patterns for match_diff.
36606 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36610 output, the second argument - the file with actual output.
36617 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36619 build: fix -I options.
36621 * Makefile.am (AM_CPPFLAGS): Append -I$(builddir) and -I$(srcdir).
36624 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36639 * strace.spec (BuildRequires): Remove libaio-devel.
36644 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36659 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36668 (main): Replace AT_FDCWD with -100.
36673 2015-08-26 Mike Frysinger <vapier@gentoo.org>
36678 kernel unfortunately does not do this -- it allows for different opts
36696 * configure.ac: Check for netfilter headers.
36711 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36720 2015-08-25 Dmitry V. Levin <ldv@altlinux.org>
36732 2015-08-21 Elvira Khabirova <lineprinter0@gmail.com>
36739 2015-08-20 Dmitry V. Levin <ldv@altlinux.org>
36747 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36753 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36764 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36767 In preparation for upcoming mpers-related changes,
36797 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36801 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36812 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36818 * sendfile.c (sys_sendfile, sys_sendfile64): Print tcp->u_arg[2]
36821 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36828 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36838 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36840 mips: print _MIPS_SIM in configure.ac for debug purposes.
36847 ia64: fix syscall numbers for set_robust_list, get_robust_list, and splice syscalls
36848 * linux/ia64/syscallent.h: Place syscall entries for set_robust_list,
36851 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36853 tests: add a test for get_robust_list and set_robust_list decoding.
36864 2015-08-18 Elvira Khabirova <lineprinter0@gmail.com>
36869 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36897 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36899 Fix time syscall decoding for some personalities.
36909 2015-08-18 Mike Frysinger <vapier@gentoo.org>
36918 (print_si_info): Decode si_syscall & si_arch for SIGSYS.
36925 2015-08-18 Elvira Khabirova <lineprinter0@gmail.com>
36931 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36938 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36946 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36955 2015-08-15 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
36969 2015-08-09 Dmitry V. Levin <ldv@altlinux.org>
36977 for locally defined types.
36987 2015-08-03 Dmitry V. Levin <ldv@altlinux.org>
36995 (do_signalfd): Use sfd_flags for flags decoding.
37022 * tests/net-yy-accept.awk: Update socket and bind regexps.
37023 * tests/unix-yy-accept.awk: Likewise.
37024 * tests/net-yy-connect.awk: Update socket and connect regexps.
37025 * tests/unix-yy-connect.awk: Likewise.
37031 2015-08-02 Dmitry V. Levin <ldv@altlinux.org>
37051 for EPOLL_CLOEXEC.
37060 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37074 (do_eventfd): Use efd_flags for flags decoding.
37104 2015-08-01 Elvira Khabirova <lineprinter0@gmail.com>
37111 2015-08-01 Elvira Khabirova <lineprinter0@gmail.com>
37118 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37126 * tests/ppoll-v.expected: Likewise.
37128 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37133 2015-07-30 Dmitry V. Levin <ldv@altlinux.org>
37141 * tests/ppoll-v.expected: Likewise.
37145 (EXTRA_DIST): Add ppoll.expected and ppoll-v.expected.
37172 2015-07-30 Elvira Khabirova <lineprinter0@gmail.com>
37174 Fix oldselect decoding on 64-bit architectures.
37175 As struct sel_arg_struct is an array of 32-bit values,
37176 fetch it using an intermediate array on 64-bit architectures.
37183 2015-07-30 Dmitry V. Levin <ldv@altlinux.org>
37188 2015-07-30 Denys Vlasenko <dvlasenk@redhat.com>
37195 -recvfrom(3, 0x7fff0a41e306, 10, 2, 0, 0) = ? ERESTARTSYS
37201 …-recvfrom(3, "123456789\0", 10, MSG_PEEK, {sa_family=0x7777 /* AF_??? */, sa_data="wwwwwwwwwwwwww"…
37206 - printsock(tcp, tcp->u_arg[4], tcp->u_arg[5]);
37207 + printsock(tcp, tcp->u_arg[4], fromlen);
37209 2015-07-29 Elliott Hughes <enh@google.com>
37211 prctl: decode Android-specific PR_SET_VMA.
37216 2015-07-29 Dmitry V. Levin <ldv@altlinux.org>
37223 Reported-by: Elliott Hughes <enh@google.com>
37225 2015-07-29 Dmitry V. Levin <ldv@altlinux.org>
37229 * tests/bpf.c: Check for HAVE_UNION_BPF_ATTR_LOG_BUF.
37256 2015-07-28 Elliott Hughes <enh@google.com>
37263 2015-07-27 Dmitry V. Levin <ldv@altlinux.org>
37276 * tests/execveat-v.expected: Likewise.
37280 (EXTRA_DIST): Add execveat.expected and execveat-v.expected.
37288 * tests/execve-v.expected: Likewise.
37292 (EXTRA_DIST): Add execve.expected and execve-v.expected.
37311 2015-07-25 Dmitry V. Levin <ldv@altlinux.org>
37314 The use of printargs introduced by commit v4.10-179-g210a6b6 is wrong:
37320 2015-07-23 Dmitry V. Levin <ldv@altlinux.org>
37322 Macroize -m32/-mx32 configure checks.
37323 Prepare for additional configure checks that would be needed
37324 for new multiple personalities support.
37329 2015-07-22 Dmitry V. Levin <ldv@altlinux.org>
37335 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37363 * linux/mips/syscallent-n32.h (semop): Likewise.
37364 * linux/mips/syscallent-n64.h (semop): Likewise.
37376 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37378 tests: use -lpthread instead of -pthread.
37379 On some obscure systems, -lpthread is more likely to work than -pthread.
37382 filter_unavailable_LDADD and change to -lpthread.
37384 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37387 * linux/mips/syscallent-o32.h (utimensat): set sys_flags and sys_func.
37389 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37391 linux/mips/syscallent-compat.h: use designated initializers.
37392 Change linux/mips/syscallent-compat.h to use designated initializers
37395 * linux/mips/syscallent-compat.h: Use designated initializers.
37397 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37399 linux/mips/syscallent-compat.h: fix initalization of empty entries.
37402 * linux/mips/syscallent-compat.h: Fix initalization of empty entries.
37404 2015-07-20 Dmitry V. Levin <ldv@altlinux.org>
37421 * or1k_atomic.c (sys_or1k_atomic): Update for RVAL_DECODED.
37423 Update openat parser for the RVAL_DECODED change.
37424 * open.c (sys_openat): Update for RVAL_DECODED.
37428 sys_finit_module): Update for RVAL_DECODED.
37431 * access.c (decode_access, sys_faccessat): Update for RVAL_DECODED.
37434 * affinity.c (sys_sched_setaffinity): Update for RVAL_DECODED.
37442 (sys_io_destroy, sys_io_submit): Update for RVAL_DECODED.
37452 * cacheflush.c (sys_cacheflush): Update for RVAL_DECODED.
37458 * capability.c (sys_capset): Update for RVAL_DECODED.
37465 * chdir.c (sys_chdir): Update for RVAL_DECODED.
37469 (sys_chmod, sys_fchmodat): Update callers. Update for RVAL_DECODED.
37470 (sys_fchmod): Update for RVAL_DECODED.
37473 * clone.c (sys_setns, sys_unshare, sys_fork): Update for RVAL_DECODED.
37482 for RVAL_DECODED.
37502 (sys_getdents, sys_getdents64): Do not use xmalloc for dirents,
37506 * execve.c (sys_execve, sys_execv): Update for RVAL_DECODED.
37513 * fadvise.c (sys_fadvise64, sys_fadvise64_64): Update for RVAL_DECODED.
37516 * fallocate.c (sys_fallocate): Update for RVAL_DECODED.
37520 for RVAL_DECODED.
37523 * fchownat.c (sys_fchownat): Update for RVAL_DECODED.
37532 Update for RVAL_DECODED.
37547 * hostname.c (sys_sethostname): Update for RVAL_DECODED.
37554 sys_inotify_init1): Update for RVAL_DECODED.
37559 for RVAL_DECODED.
37571 (sys_readv, sys_preadv): Remove redundant check for syserror.
37576 * ioprio.c (sys_ioprio_set): Update for RVAL_DECODED.
37595 (kexec_load): Use printaddr. Update for RVAL_DECODED.
37598 * keyctl.c (sys_add_key, sys_request_key): Update for RVAL_DECODED.
37606 Update for RVAL_DECODED.
37607 (sys_keyctl): Update callers. Update for RVAL_DECODED.
37614 Update for RVAL_DECODED.
37624 for syserror.
37628 for RVAL_DECODED.
37631 * lseek.c (sys_lseek): Update for RVAL_DECODED.
37638 Update for RVAL_DECODED.
37640 sys_mmap_4koff): Update callers. Update for RVAL_DECODED.
37644 Update for RVAL_DECODED.
37654 Update for RVAL_DECODED.
37655 (sys_mknod, sys_mknodat): Update callers. Update for RVAL_DECODED.
37656 [SPARC || SPARC64] (xmknod): Update for RVAL_DECODED.
37659 * mount.c (sys_mount): Update for RVAL_DECODED.
37670 sys_sendmsg, sys_shutdown, sys_setsockopt): Update for RVAL_DECODED.
37681 2015-07-18 Elvira Khabirova <lineprinter0@gmail.com>
37693 * bootstrap: Delete tests-m32 and tests-mx32 directories
37696 2015-07-18 Dmitry V. Levin <ldv@altlinux.org>
37717 * open.c (decode_open, sys_creat): Update for RVAL_DECODED.
37720 * personality.c (sys_personality): Update for RVAL_DECODED.
37727 (sys_prctl, sys_arch_prctl): Update for RVAL_DECODED.
37736 * process_vm.c (sys_process_vm_writev): Update for RVAL_DECODED.
37742 * reboot.c (sys_reboot): Update for RVAL_DECODED.
37750 * readahead.c (sys_readahead.c): Update for RVAL_DECODED.
37756 * renameat.c (sys_renameat, sys_renameat2): Update for RVAL_DECODED.
37760 Update for RVAL_DECODED.
37773 sys_sched_get_priority_min): Update for RVAL_DECODED.
37777 sys_sched_setparam): Use printnum_int for sched_param decoding.
37783 2015-07-17 Dmitry V. Levin <ldv@altlinux.org>
37786 * seccomp.c (sys_seccomp): Update for RVAL_DECODED.
37799 do_signalfd): Update for RVAL_DECODED.
37806 sys_rt_sigpending): Remove redundant checks for syserror.
37809 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37812 * sram_alloc.c [BFIN] (sys_sram_alloc): Update for RVAL_DECODED.
37819 * swapon.c (sys_swapon): Update for RVAL_DECODED.
37830 for RVAL_DECODED.
37839 * syslog.c (sys_syslog): Update for RVAL_DECODED.
37849 * sysmips.c [MIPS] (sys_sysmips): Update for RVAL_DECODED.
37854 for RVAL_DECODED.
37864 redundant checks for syserror.
37870 clock_nanosleep): Remove now redundant checks for syserror.
37874 sys_ftruncate64): Update for RVAL_DECODED.
37877 * umask.c (sys_umask): Update for RVAL_DECODED.
37880 * umount.c (sys_umount2): Update for RVAL_DECODED.
37884 Update for RVAL_DECODED.
37886 Update callers. Update for RVAL_DECODED.
37888 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37890 tests/uid.test: adopt for alpha.
37897 * tests/uid.test: If getuid syscall is not available, probe for
37900 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37904 sys_setgroups): Update for RVAL_DECODED.
37908 (sys_getresuid): Do not check for syserror, get_print_uid now does
37931 * utime.c (sys_utime): Update for RVAL_DECODED.
37936 2015-07-15 Dmitry V. Levin <ldv@altlinux.org>
37939 * wait.c (waitid): Do not check for NULL the address passed
37942 Use printaddr and umove_or_printaddr for fetching wait status.
37957 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37961 sys_fremovexattr): Update for RVAL_DECODED.
37976 * xattr.c (print_xattr_list): Do not check for NULL the address passed
37983 sys_shmget): Update for RVAL_DECODED.
37986 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37994 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
38000 ready for this change in previous commits.
38004 (sys_arch_prctl): Do not check for syserror.
38006 2015-07-13 Dmitry V. Levin <ldv@altlinux.org>
38013 (term_ioctl): Use them. Update for RVAL_DECODED.
38015 2015-07-12 Elvira Khabirova <lineprinter0@gmail.com>
38042 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38048 Update for RVAL_DECODED.
38053 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38057 Update for RVAL_DECODED.
38060 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38068 Update for RVAL_DECODED.
38071 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38076 * sock.c: Update for RVAL_DECODED.
38082 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38085 * block.c: Update for RVAL_DECODED.
38091 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38096 Reported-by: Christian Neukirchen <chneukirchen@gmail.com>
38098 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38104 Update for RVAL_DECODED.
38111 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38114 * rtc.c: Update for RVAL_DECODED.
38119 Use printnum_long for RTC_IRQP_READ and RTC_EPOCH_READ decoding.
38125 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38133 for this change.
38140 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38151 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38167 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38170 Implement a method for "on entering" parsers to return
38174 with RVAL_DECODED bit set, record this value in tcp->sys_func_rval
38181 that the decoding is finished and no fallback decoding is needed.
38185 * syscall.c (trace_syscall_entering): Initialize tcp->sys_func_rval
38187 (trace_syscall_exiting): Use tcp->sys_func_rval instead of calling
38188 tcp->s_ent->sys_func when the former has RVAL_DECODED flag set.
38189 Reset tcp->sys_func_rval along with clearing TCB_INSYSCALL flag.
38194 2015-07-05 Dmitry V. Levin <ldv@altlinux.org>
38208 2015-07-02 Dmitry V. Levin <ldv@altlinux.org>
38210 ioctl: prepare ioctl_decode_command_number for future changes.
38218 ioctl: consistently use name "code" for ioctl request code.
38233 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38238 * tests/filter-unavailable.c: New file.
38239 * tests/filter-unavailable.expected: Likewise.
38240 * tests/filter-unavailable.test: New test.
38241 * tests/Makefile.am (check_PROGRAMS): Add filter-unavailable.
38242 (filter_unavailable_LDFLAGS): Add -pthread.
38243 (TESTS): Add filter-unavailable.test.
38244 (EXTRA_DIST): Add filter-unavailable.expected.
38245 * tests/.gitignore: Add filter-unavailable.
38247 Reported-by: Bryan Matsuo <bryan.matsuo@gmail.com>
38249 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38251 Fix -qq option in conjunction with -o option.
38252 This change makes -qq option work in conjunction with -o option,
38253 thus complementing commit v4.7-222-g01997cf.
38257 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38271 2015-06-17 Dmitry V. Levin <ldv@altlinux.org>
38276 mips n32 where the only available stat syscall is 64-bit but at the same
38277 time struct stat defined by <asm/stat.h> is 32-bit.
38281 2015-06-17 Dmitry V. Levin <ldv@altlinux.org>
38283 Consistenly use #ifdef to check for AC_DEFINE'd macros.
38284 * aio.c (print_common_flags): Use #ifdef in the check for
38286 * defs.h: Use #ifdef in the check for HAVE_LITTLE_ENDIAN_LONG_LONG.
38287 * net.c: Use #ifdef in the check for HAVE_SENDMSG.
38289 * printstat.h (DO_PRINTSTAT): Use #ifdef in checks for
38291 * util.c: Use #ifdef in checks for HAVE_SYS_XATTR_H.
38319 2015-06-16 Dmitry V. Levin <ldv@altlinux.org>
38326 * mount.c (sys_mount): Do not decode type and data strings for
38334 2015-06-08 Dmitry V. Levin <ldv@altlinux.org>
38352 2015-06-08 Dmitry V. Levin <ldv@altlinux.org>
38357 2015-06-05 Dmitry V. Levin <ldv@altlinux.org>
38363 2015-05-25 Dmitry V. Levin <ldv@altlinux.org>
38380 * tests/detach-stopped.test: Likewise.
38386 2015-05-25 Dmitry V. Levin <ldv@altlinux.org>
38392 This commit is a follow-up to the related discussions in strace-devel ML:
38418 2015-05-21 Dmitry V. Levin <ldv@altlinux.org>
38420 Fix ioctl entries on 32-bit architectures with 64-bit aligned structures
38421 Some ioctl constants are defined to different values on those 32-bit
38422 architectures where structures containing a 64-bit field are aligned on
38423 a 8-byte boundary and have a size multiple of 8 bytes, and on other
38424 32-bit architectures.
38426 * configure.ac: Check the size of a structure containing a 64-bit field.
38434 * tests/ioctl.c (main): Test for VIDIOC_ENUMINPUT.
38437 Reported-by: Philippe De Muyter <phdm@macqel.be>
38439 2015-05-21 Dmitry V. Levin <ldv@altlinux.org>
38442 * maint/ioctls_sym.sh [AARCH64 || ARM]: Add missing definitions for
38445 2015-05-21 Philippe De Muyter <phdm@macqel.be>
38447 v4l2: add decoding for VIDIOC_S_CROP's arg.
38448 * v4l2.c (v4l2_ioctl): Add decoding for VIDIOC_S_CROP's arg.
38450 2015-05-19 Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
38452 Add support for Altera's Nios-II softcore architecture.
38453 This commit adds strace support for Altera's Nios-II. The architecture
38459 * linux/nios2/*: New Nios-II specific files.
38462 2015-05-19 Philippe De Muyter <phdm@macqel.be>
38468 2015-05-19 Dmitry V. Levin <ldv@altlinux.org>
38475 Reported-by: Philippe De Muyter <phdm@macqel.be>
38477 2015-04-18 Philippe De Muyter <phdm@macqel.be>
38479 v4l2: add decoding for VIDIOC_CREATE_BUFS's arg.
38480 * v4l2.c (v4l2_ioctl): Add decoding for VIDIOC_CREATE_BUFS's arg.
38482 2015-04-17 Dmitry V. Levin <ldv@altlinux.org>
38490 * linux/mips/syscallent-o32.h (4000): Change sys_func to sys_syscall.
38492 Reported-and-tested-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
38494 2015-04-14 Dmitry V. Levin <ldv@altlinux.org>
38496 debian: add gawk to Build-Depends.
38497 * debian/control (Build-Depends): Add gawk.
38498 Patch by Reiner Herrmann <reiner@reiner-h.de>.
38502 2015-04-14 Dmitry V. Levin <ldv@altlinux.org>
38504 tests: fix bexecve.test for the case of mixed personalities.
38509 Allow for a personality switch notification in the strace output.
38511 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38513 tests: add a test for "resuming interrupted nanosleep"
38525 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38540 2015-04-07 Denys Vlasenko <dvlasenk@redhat.com>
38545 $ sleep 2 & sleep 1; ./strace -erestart_syscall -p $!
38552 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38562 2015-04-06 Dmitry V. Levin <ldv@altlinux.org>
38566 page size is too big for GNU grep. Rewrite the test to use diff
38572 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38575 * process_vm.c (sys_process_vm_writev): Do not check for syserror,
38586 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38600 Reported-by: Josef T. Burger <bolo@cs.wisc.edu>
38602 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38613 Reported-by: Andrew Guertin <lists@dolphinling.net>
38615 2015-03-30 Dmitry V. Levin <ldv@altlinux.org>
38617 Use macros for gcc attributes.
38620 Use ATTRIBUTE_* macros for gcc attributes.
38625 * linux/ubi-user.h: Likewise.
38627 2015-03-30 Dmitry V. Levin <ldv@altlinux.org>
38629 Introduce macros for gcc attributes.
38630 Define macros for gcc attributes that are already in use
38637 2015-03-28 Felix Janda <felix.janda@posteo.de>
38639 Include <linux/ioctl.h> for _IOC_* macros.
38646 Reported-by: Dima Krasner <dima@dimakrasner.com>
38647 Acked-by: Mike Frysinger <vapier@gentoo.org>
38649 2015-03-28 Felix Janda <felix.janda@posteo.de>
38651 Include <sys/stat.h> for S_I* macros.
38657 Reported-by: Dima Krasner <dima@dimakrasner.com>
38658 Acked-by: Mike Frysinger <vapier@gentoo.org>
38660 2015-03-27 Dmitry V. Levin <ldv@altlinux.org>
38686 2015-03-26 Dmitry V. Levin <ldv@altlinux.org>
38694 2015-03-25 Denys Vlasenko <dvlasenk@redhat.com>
38699 Run-tested in qemu 32-bit sparc.
38701 2015-03-25 Denys Vlasenko <dvlasenk@redhat.com>
38704 Personality 1 for sparc and sparc64 appears to be an old attempt
38710 This change deletes personality 1. Now sparc is an one-personality
38711 arch, and sparc64 is a two-personality one.
38713 For clarity, pure renaming of personality 2 files to personality 1 for sparc64
38714 is performed in the next commit - this prevents a state where syscallent1.h
38720 2015-03-24 Denys Vlasenko <dvlasenk@redhat.com>
38724 2015-03-24 Denys Vlasenko <dvlasenk@redhat.com>
38726 sparc: fix v4.10-25-g8497b62 fallout.
38729 $ sleep 3 & ./strace -p $!
38738 $ sleep 3 & ./strace -p $!
38744 2015-03-24 Dmitry V. Levin <ldv@altlinux.org>
38746 get_scno: add diagnostics for invalid syscall numbers.
38748 for !SCNO_IS_VALID syscall numbers.
38750 2015-03-24 Dmitry V. Levin <ldv@altlinux.org>
38752 arm: fix v4.10-25-g8497b62 fallout.
38753 Starting with commit v4.10-25-g8497b62,
38769 2015-03-24 Dmitry V. Levin <ldv@altlinux.org>
38776 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38779 Split code that use arch-specific registers to separate arch files.
38781 * sigreturn.c (sys_sigreturn): Move arch-specific code
38787 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38790 Split code that use arch-specific registers to separate arch files.
38794 [HAVE_GETRVAL2] (getrval2): Move arch-specific code
38796 (print_pc): Move arch-specific code to linux/*/print_pc.c files,
38803 (get_scno): Move arch-specific code to linux/*/get_scno.c,
38805 (get_syscall_args): Move arch-specific code
38807 (get_error): Move arch-specific code to linux/*/get_error.c,
38809 (get_syscall_result): Move arch-specific code
38813 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38815 syscall.c: prepare for the split.
38816 Move functions that use arch-specific registers to the end of file.
38818 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38821 Starting with commit v4.10-25-g8497b62, get_scno() can be called outside
38828 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38838 Do not use getrval2 for pipe2 decoding.
38841 macros. Implement for [ALPHA].
38850 2015-03-22 Dmitry V. Levin <ldv@altlinux.org>
38856 2015-03-21 Denys Vlasenko <dvlasenk@redhat.com>
38868 It is unused since we dropped support for kernels without PTRACE_SETOPTIONS.
38874 startup_tcb() never fails, remove code which checks for failures.
38876 2015-03-21 Denys Vlasenko <dvlasenk@redhat.com>
38891 This patch does this. It adds tcp->s_prev_ent, which is
38899 in the same member (tcp->s_prev_ent).
38903 $ sleep 3 & strace -p $!
38909 2015-03-20 Dmitry V. Levin <ldv@altlinux.org>
38911 tests: add a test for mmap/mprotect/munmap decoding.
38927 2015-03-19 Dmitry V. Levin <ldv@altlinux.org>
38929 tests: add a test for SECCOMP_MODE_FILTER decoding.
38936 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38951 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38958 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38961 According to arch/arm/kernel/sys_oabi-compat.c,
38971 Reported-and-tested-by: Elliott Hughes <enh@google.com>
38973 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38980 * tests/net-fd.expected: New file.
38992 2015-03-18 Elliott Hughes <enh@google.com>
39000 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39003 Newer architectures have no chown syscall, so use fchown* syscalls
39004 for testing printuid.
39016 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39018 stat64-v.test: add newfstatat syscall support.
39019 Newer architectures have no stat syscall, so stat() is implemented there
39026 Reported-by: Andreas Schwab <schwab@suse.de>
39028 2015-03-16 Andreas Schwab <schwab@suse.de>
39037 * tests/stat32-v.test: Likewise.
39038 * tests/stat64-v.test: Likewise.
39040 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39042 Fix stat64 st_[acm]time decoding for personalities with 32-bit time_t.
39043 STRUCT_STAT.st_[acm]time are declared as unsigned int for some
39048 * tests/stat64-v.test: Test that negative time_t is decoded properly.
39050 Reported-by: Andreas Schwab <schwab@suse.de>
39052 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39062 Reported-by: Andreas Schwab <schwab@suse.de>
39064 2015-03-16 Andreas Schwab <schwab@suse.de>
39072 2015-03-16 Andreas Schwab <schwab@suse.de>
39081 2015-03-16 Andreas Schwab <schwab@suse.de>
39093 2015-03-12 Andreas Schwab <schwab@suse.de>
39098 * tests/select.test: Probe for both select and pselect6 syscall.
39103 Fix decoding of mmap2 for arm.
39107 2015-03-12 Andreas Schwab <schwab@suse.de>
39110 On m68k the kernel sigaction structure has the sa_restorer member for
39113 * signal.c (HAVE_SA_RESTORER): Define for M68K.
39115 2015-03-11 Dmitry V. Levin <ldv@altlinux.org>
39120 2015-03-09 Dmitry V. Levin <ldv@altlinux.org>
39122 maint: post-release administrivia.
39123 * NEWS: Add header line for next release.
39125 2015-03-06 Dmitry V. Levin <ldv@altlinux.org>
39127 Prepare for 4.10 release.
39128 * NEWS: Update for 4.10 release.
39129 * debian/changelog: 4.10-1.
39130 * strace.spec: 4.10-1.
39141 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39172 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39174 tests: robustify unix-yy.test.
39181 * tests/net-accept-connect.c: Implement additional synchronization
39183 * tests/unix-yy-connect.awk: Update.
39185 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39191 Use lower RT_* numbers to support pre-3.18 hppa kernels.
39194 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39203 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39209 signal.c:702:45: warning: signed and unsigned type in conditional expression [-Wsign-compare]
39216 Reported-by: Mike Frysinger <vapier@gentoo.org>
39218 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39224 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39226 tests: add a test for sigreturn/rt_sigreturn decoding.
39238 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39253 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39256 * linux/64/syscallent.h (139): Use sys_sigreturn for rt_sigreturn
39281 * linux/x86_64/syscallent.h (15): Use sys_sigreturn for rt_sigreturn
39285 for non-i386 personalities.
39298 architectures for which signal mask decoding is not implemented yet.
39300 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39306 Reported-by: Christopher Covington <cov@codeaurora.org>
39308 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39314 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39317 This complements commit v4.9-321-gfcf7f8d.
39322 2015-03-04 Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
39324 Document that -k is available only with libunwind.
39328 * strace.1: Note that -k is available only if strace is built
39331 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39334 * debian/control (strace, strace-udeb): Add mips64 and mips64el
39340 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39342 debian: sync with 4.9-2 package.
39343 * debian/changelog: Sync with 4.9-2.
39346 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39348 Add arch-specific PTRACE_* constants.
39349 * xlat/ptrace_cmds.in: Add arch-specific ptrace commands.
39350 * xlat/ptrace_events.in: Add PTRACE_EVENT_MIGRATE for tile.
39351 * xlat/ptrace_setoptions_flags.in: Add PTRACE_O_TRACEMIGRATE for tile.
39355 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39357 Clarify bootstrap-vs-autoreconf usage.
39358 * README-hacking: Tell people to run ./bootstrap.
39360 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39363 In mips n32 abi, like in most of 32-bit architectures, offset
39368 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39376 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39385 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39387 tests: note the kernel configs for -yy options.
39388 * tests/net-yy.test: Note CONFIG_INET_TCP_DIAG.
39389 * tests/unix-yy.test: Note CONFIG_UNIX_DIAG.
39391 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39393 alpha: fix -yy decoding.
39396 Reported-and-tested-by: Mike Frysinger <vapier@gentoo.org>
39398 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39412 aarch64: add -i option support.
39415 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39429 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39435 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39446 Reported-by: Mike Frysinger <vapier@gentoo.org>
39448 2015-03-01 Mike Frysinger <vapier@gentoo.org>
39457 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39463 Update generic 64-bit ioctlent from linux v3.19.
39466 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39469 Fix regression introduced by commit v4.9-9-gc3a5c01.
39478 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39484 Reported-by: Cheolung Lee <chpie@grayhash.com>
39486 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39490 headers that was inadvertently changed by commit v4.9-280-g5503dd2.
39501 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39504 As time_t is a 64-bit type in x32 personality, it is not correct to
39514 2015-02-28 Mike Frysinger <vapier@gentoo.org>
39524 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39526 build: do not link strace with -ldl.
39529 2015-02-27 Mike Frysinger <vapier@gentoo.org>
39532 For a few linux releases (3.1 through 3.3), this define in the exported
39537 2015-02-27 Mike Frysinger <vapier@gentoo.org>
39546 2015-02-27 Mike Frysinger <vapier@gentoo.org>
39548 Fix cross-compiling of ioctlsort.
39559 * m4/ax_prog_cc_for_build.m4: Import from the autoconf-archive package.
39561 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39564 * configure.ac: Check for dladdr in -ldl.
39566 * tests/pc.c: Include "config.h" and <dlfcn.h>.
39569 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39571 tests: drop support for alternative names of select syscall.
39577 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39586 * linux/mips/syscallent-n32.h (6022): Likewise.
39587 * linux/mips/syscallent-n64.h (5022): Likewise.
39588 * linux/mips/syscallent-o32.h (4142): Likewise.
39591 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39594 * linux/sparc/syscallent.h: Fix syscall entries for vmsplice,
39601 2015-02-26 Dmitry V. Levin <ldv@altlinux.org>
39608 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39617 2015-02-26 Dmitry V. Levin <ldv@altlinux.org>
39653 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39661 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39671 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39675 32bit apps, so we need to enable the 16bit uid parsers for it.
39677 * defs.h (NEED_UID16_PARSERS): Define to 1 for IA64.
39680 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39682 v4l2: use uintmax_t for times.
39683 There is no guarantee that the backing value for the various time fields
39689 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39696 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39698 NEWS: Prepare for 4.10 release.
39700 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39702 Remove support for systems without PTRACE_SETOPTIONS.
39707 This change removes all code that implemented post-execve SIGTRAP
39708 handling and fork/vfork/clone->CLONE_PTRACE substitution.
39717 (detach): Do not test for TCB_BPTSET.
39719 test_ptrace_setoptions_for_all. Do not test for TCB_BPTSET.
39722 (trace_syscall_entering): Do not test for TCB_WAITEXECVE. Do not call
39735 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39739 Dump process map for debug purposes.
39743 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39754 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39766 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39791 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39794 On x86_64/x32, sys_sigreturn is defined only for i386 personality.
39796 * signal.c (sys_sigreturn): Define for X32.
39797 (sys_sigreturn) [X86_64 || X32]: Implement for i386 personality only.
39799 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39839 2015-02-22 Dmitry V. Levin <ldv@altlinux.org>
39860 2015-02-22 Etienne Gemsa <etienne.gemsa@lse.epita.fr>
39862 Add decoding for evdev ioctls.
39863 This patch introduces decoding for evdev ioctls. For EVIOCSFF the five
39870 * ioctl.c (ioctl_decode): Call evdev_ioctl for 'E' ioctl commands.
39884 2015-02-22 Dmitry V. Levin <ldv@altlinux.org>
39897 * Makefile.am (EXTRA_DIST): Remove README-linux.
39899 2015-02-20 Elliott Hughes <enh@google.com>
39903 2015-02-19 Dmitry V. Levin <ldv@altlinux.org>
39951 2015-02-19 Dmitry V. Levin <ldv@altlinux.org>
39956 v3.4-rc2-13-gacf3b2c71ed20c53dc69826683417703c2a88059 inadvertently
39958 v3.19-8275-g580c57f1076872ebc2427f898b927944ce170f2d.
39962 2015-02-19 Mike Frysinger <vapier@gentoo.org>
39964 README-linux: punt.
39965 Considering we're requiring linux-2.6 era kernels, the discussion of
39966 header troubles that plagued 2.2 and 2.4 are no longer relevant.
39968 * README-linux: Delete.
39970 2015-02-19 Dmitry V. Levin <ldv@altlinux.org>
39984 * xlat/prctl_options.in: Remove non-linux constants, add fallback
39990 value, generate a default definition for the constant using this value.
40005 2015-02-18 Dmitry V. Levin <ldv@altlinux.org>
40012 2015-02-17 Dmitry V. Levin <ldv@altlinux.org>
40025 2015-02-16 Dmitry V. Levin <ldv@altlinux.org>
40045 (get_syscall_args) [MIPS]: Use mips_REG_A[0-5].
40050 * configure.ac [MIPS]: Check for MIPS ABI.
40058 2015-02-15 Dmitry V. Levin <ldv@altlinux.org>
40068 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40072 there is no need to reset get_regs_error before get_regs() call.
40076 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40081 safely replace all checks for architectures where these macros are defined
40082 with a single check for these macros.
40084 * syscall.c (get_syscall_result): Check for [ARCH_REGS_FOR_GETREGSET ||
40085 ARCH_REGS_FOR_GETREGS]. Remove all checks for architectures where
40088 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40090 get_regs: define for all architectures.
40098 get_regs: unify code for architectures that use PTRACE_GETREGS.
40101 (get_regs): Unify code for ARCH_REGS_FOR_GETREGS architectures.
40112 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40118 This partially reverts commit v4.7-149-gfaa177e.
40124 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40127 * syscall.c (get_regset, get_regs): Do not check for availability
40134 2015-02-13 Dmitry V. Levin <ldv@altlinux.org>
40136 Move regs-related macros and declarations from defs.h to regs.h.
40172 Move all ptrace-related macros and declarations from defs.h to ptrace.h.
40185 2015-02-12 Dmitry V. Levin <ldv@altlinux.org>
40195 2015-02-08 Bart Van Assche <bart.vanassche@sandisk.com>
40199 namely v3 and v4. This patch adds support for version 4 of this API.
40207 dev=$(lsscsi | sed -n '/ scsi_debug /s,^[^/]*,,p')
40208 ./strace -eioctl -s256 sg_inq $dev
40210 bsg=/dev/bsg/$(lsscsi | sed -n '/ scsi_debug /s,^\[\([^]]\+\)\].*,\1,p')
40212 ./strace -eioctl -s256 sg_raw -s 512 -r 1024 $bsg 53 00 00 00 00 01 00 00 01 00
40223 2015-02-08 Bart Van Assche <bart.vanassche@sandisk.com>
40226 * scsi.c (print_sg_io_req, print_sg_io_res): Add support for decoding
40238 2015-02-08 Bart Van Assche <bart.vanassche@sandisk.com>
40247 2015-02-08 Dmitry V. Levin <ldv@altlinux.org>
40253 2015-02-08 Dmitry V. Levin <ldv@altlinux.org>
40255 print_setsockopt: fix fall-through bug in SOL_IP switch case.
40256 This fixes the bug introduced by commit v4.9-250-ga0a4909.
40260 Reported-by: Ben Noordhuis <info@bnoordhuis.nl>
40262 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40264 Do not watch for post-execve SIGTRAP if PTRACE_O_TRACEEXEC is enabled.
40265 If PTRACE_O_TRACEEXEC option is enabled, then post-execve SIGTRAPs are
40266 suppressed and we can safely skip -ENOSYS heuristics. This partially
40267 reverts commits v4.9-258-g8e398b6 and v4.9-261-gd70c41d.
40274 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40285 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40287 -b execve: avoid misleading warning about unknown pid.
40293 -b execve: do not use struct tcb after detach.
40296 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40300 into several functions. There are no algorithmic changes.
40308 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40315 is no longer used.
40317 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40319 test: add a manual test for seccomp decoding.
40348 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40357 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40361 systems where linux kernel does not change the syscall number to -1.
40367 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40374 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40382 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40384 x86, x32, x86_64: do not skip syscall number -1.
40385 Syscall number -1 might be a side effect of SECCOMP_RET_ERRNO filtering.
40388 Do not skip syscalls that have number -1.
40390 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40392 x86_64: do not interpet syscall number -1 as a x32 personality syscall.
40393 Syscall number -1 might be a side effect of SECCOMP_RET_ERRNO filtering.
40395 * syscall.c (get_scno) [X86_64]: Handle the case of scno == -1.
40397 2015-02-05 Dmitry V. Levin <ldv@altlinux.org>
40413 2015-02-04 Dmitry V. Levin <ldv@altlinux.org>
40415 tests: add a test for select syscall decoding.
40429 2015-02-01 Dmitry V. Levin <ldv@altlinux.org>
40431 tests: add a test for the latest dumpio fix.
40433 * tests/unix-pair-send-recv.c: New file.
40435 * tests/Makefile.am (check_PROGRAMS): Add unix-pair-send-recv.
40438 * tests/.gitignore: Add unix-pair-send-recv.
40440 2015-02-01 Aurelien Jacobs <aurel@gnuage.org>
40442 Fix simultaneous -e read and -e write usage.
40443 This allows using both -e read=FD and -e write=FD at the same time
40445 Without this patch, the -e write=FD is ignored if -e read=FD is used
40448 2015-01-31 Dmitry V. Levin <ldv@altlinux.org>
40450 net.c: remove unused HAVE_SIN6_SCOPE_ID_LINUX-based code.
40452 HAVE_SIN6_SCOPE_ID_LINUX was removed by commit v4.4-98-g64f793a.
40456 2015-01-30 Dmitry V. Levin <ldv@altlinux.org>
40465 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40467 tests: add a test for sockaddr_un.sun_path decoding.
40468 * tests/net-accept-connect.c: Allow long socket addresses.
40473 * net.c (printsock): If sockaddr_un.sun_path is not NUL-terminated,
40480 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40486 * net.c: Provide definitions for all SOL_* constants.
40491 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40499 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40501 getsockopt, setsockopt: do not decode structures in non-verbose mode.
40515 2015-01-28 Dmitry V. Levin <ldv@altlinux.org>
40517 sendmsg: do not decode msghdr in non-verbose mode.
40518 * net.c (printmsghdr): Do not decode struct msghdr in non-verbose mode.
40522 in non-verbose mode.
40524 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40563 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40569 * util.c (printfd): Print non-socket paths using print_quoted_string.
40570 * tests/scm_rights-fd.test: Test it.
40573 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40583 of "len", treat QUOTE_0_TERMINATED style flag as former (len == -1);
40593 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40602 2015-01-24 Helge Deller <deller@gmx.de>
40606 for the getpeername syscall.
40610 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40617 Implement decoder for SCM_SECURITY message type.
40626 * tests/scm_rights-fd.test: Update.
40628 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40635 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40637 tests: run tests for each supported personality.
40639 for each personality supported by the host system.
40641 * bootstrap: Create tests-m32 and tests-mx32 subtrees from tests.
40642 * configure.ac: Check for -m32 and -mx32 runtime support.
40643 (AC_CONFIG_FILES): Add tests-m32/Makefile and tests-mx32/Makefile.
40647 * .gitignore: Add /tests-m32 and /tests-mx32.
40649 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40661 2015-01-22 Dmitry V. Levin <ldv@altlinux.org>
40664 Historically, only 16 bits (8-bit number and 8-bit type) of 32-bit ioctl
40665 commands were used for decoding, which was the source for numerous
40669 …TRES or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0x7fffd47f7338) = -1 ENOTTY (Inappropriate ioctl for devi…
40671 The solution is to use all 32 bits for decoding, not just "number" and
40674 As some architectures override defaults that come from asm-generic/ and
40675 provide alternative definitions for some ioctl commands, we support
40676 per-architecture ioctl definitions and merge them with common
40678 generic and architecture-specific definitions, now architecture-specific
40679 definitions have precedence over generic ones -- ioctlsort omits
40680 definitions from asm-generic/ for those ioctl names that have different
40683 Additional bits of "direction" are architecture specific -- the number
40688 Additional bits of "size" are also architecture specific -- not only the
40691 source code, we keep 32-bit and 64-bit versions of common ioctl
40692 definitions, and use the appropriate version for each architecture and
40695 To implement this, the tools for generating ioctl definitions from
40806 * Makefile.am: Remove all ioctlent-related definitions.
40809 Add rules for ioctlent*.h files generation.
40815 * HACKING-scripts: Update for ioctlent.sh -> ioctls_gen.sh migration.
40818 and linux/mmtimer.h for tests.
40825 2015-01-21 Gabriel Laskar <gabriel@lse.epita.fr>
40827 ioctl: add decoding for parametrized command names.
40839 2015-01-21 Dmitry V. Levin <ldv@altlinux.org>
40842 * git-set-file-times: Update from rsync.
40843 * git-version-gen: Update from gnulib.
40844 * gitlog-to-changelog: Likewise.
40849 2015-01-21 Dmitry V. Levin <ldv@altlinux.org>
40870 2015-01-21 Dmitry V. Levin <ldv@altlinux.org>
40883 2015-01-20 Dmitry V. Levin <ldv@altlinux.org>
40886 In linux, ioctl command number has a 32-bit unsigned integer type:
40888 If the kernel completely ignores other bits on 64-bit architectures,
40909 2015-01-16 Dmitry V. Levin <ldv@altlinux.org>
40914 ioctlent.sh looks for ioctl command names using grep, and fetches them
40923 * qemu_multiarch_testing/make-hdc-img.sh: Robustify,
40925 * qemu_multiarch_testing/parallel-build-hdc-img.sh: Reduce
40928 2015-01-14 Dmitry V. Levin <ldv@altlinux.org>
40948 * tests/inet-accept-connect-send-recv.c (main): Return 77 if inet stream
40950 * tests/net-yy.test: Skip the test if inet-accept-connect-send-recv
40954 * tests/caps.awk: Handle the case when all bits of 64-bit capability
40958 * tests/uid.test: Check for gawk availability and invoke gawk instead of
40962 * tests/detach-running.test: Skip if "kill -0" does not work.
40963 * tests/detach-sleeping.test: Likewise.
40964 * tests/detach-stopped.test: Likewise.
40975 2015-01-13 Dmitry V. Levin <ldv@altlinux.org>
40978 Starting with commit v4.9-27-g3e252ca, header file names should not be
40984 2015-01-13 Dmitry V. Levin <ldv@altlinux.org>
40987 * linux/mips/syscallent-n32.h [LINUX_MIPSN32]: Define SYS_socket_subcall,
40989 * linux/mips/syscallent-n64.h [LINUX_MIPSN64]: Likewise.
40990 * linux/mips/syscallent-o32.h [LINUX_MIPSO32]: Likewise.
40997 * linux/mips/syscallent-n32.h: Remove stub entries, include
40999 * linux/mips/syscallent-n64.h: Likewise.
41000 * linux/mips/syscallent-o32.h: Likewise.
41003 * Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS)/$(ARCH) before
41004 -I$(srcdir)/$(OS)/$(ARCH).
41007 * configure.ac (AC_CHECK_MEMBERS): Check for siginfo_t.si_timerid and
41017 * tests/stat32-v.test: Likewise.
41018 * tests/stat64-v.test: Likewise.
41020 * tests/net-fd.test: Likewise.
41024 * tests/net-yy-accept.awk: Likewise.
41025 * tests/net-yy-connect.awk: Likewise.
41027 * tests/unix-yy-accept.awk: Likewise.
41028 * tests/unix-yy-connect.awk: Likewise.
41030 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41042 * linux/mips/syscallent-n32.h: Likewise.
41043 * linux/mips/syscallent-n64.h: Likewise.
41044 * linux/mips/syscallent-o32.h: Likewise.
41059 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41069 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41085 * linux/mips/syscallent-n32.h: Likewise.
41086 * linux/mips/syscallent-n64.h: Likewise.
41087 * linux/mips/syscallent-o32.h: Likewise.
41098 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41100 Create generic 32-bit syscallent.h.
41103 <asm-generic/unistd.h>, move these entries to a new file 32/syscallent.h
41107 …-e 's|^[[:space:]]*\({[^}]\+},\)[[:space:]]*/\*[[:space:]]\([[:space:]]*[0-9]\+\)[[:space:]]*\*/|[…
41112 remove generic 32-bit syscall entries, use designated initializers.
41117 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41126 printargs until special parsers for 31-bit 31 s390 emulation wrappers
41176 shmctl, shmat, shmdt): Fix nargs for direct ipc syscalls.
41188 * linux/mips/syscallent-n32.h (semtimedop): Likewise.
41189 * linux/mips/syscallent-n64.h (semtimedop): Likewise.
41202 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41204 Create generic 64-bit syscallent.h.
41206 identical syscall entries described in <asm-generic/unistd.h>, move
41211 …sed -e 's|^[[:space:]]*\({[^}]\+},\)[[:space:]]*/\*[[:space:]]\([[:space:]]*[0-9]\+\)[[:space:]]*\…
41216 remove generic 64-bit syscall entries, use designated initializers.
41219 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41225 Add missing syscall entries for sched_[gs]etattr and renameat2.
41240 * linux/mips/syscallent-n32.h (move_pages): Set sys_func.
41241 * linux/mips/syscallent-n64.h (move_pages): Likewise.
41242 * linux/mips/syscallent-o32.h (mbind): Fix nargs.
41285 aarch64: fix syscall names for statfs, fstatfs, truncate, and ftruncate.
41300 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41302 ARM EABI: reserve some space for new syscalls.
41303 Reserve the same space for new syscalls on EABI as it is already
41309 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41316 tests: add tests for ipc syscalls decoding.
41327 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41338 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41341 Syscall entries for socket and ipc subcalls are the same on all
41345 * linux/subcall.h: Add syscall entries for socket and ipc subcalls.
41346 * linux/arm/syscallent.h: Remove entries for socket and ipc subcalls.
41356 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41358 sh: fix typo introduced by commit v4.9-121-gd535b8b.
41361 2015-01-10 Dmitry V. Levin <ldv@altlinux.org>
41363 Fix fanotify_mark decoding on 32-bit architectures.
41364 The fanotify_mark syscall takes a 64-bit mask, and on 32-bit
41373 64-bit mask and two syscall arguments followed by it.
41380 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41388 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41390 tests: fix build with awk that does not support switch-case.
41391 The switch-case statement is a gawk-specific feature which is not
41392 necessarily available, let's use traditional if-else statements instead.
41394 * tests/uid.awk: Rewrite without switch-case statements.
41396 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41401 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41412 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41418 Fix "make dist" regression introduced by commit v4.9-125-g120e5db.
41421 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41426 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41436 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41439 * tests/stat32-v.test: Remove work files if the test is skipped.
41443 * tests/stat64-v.test: Try to set modification time of the sample file
41446 Use AC_CHECK_TYPES to check for struct statfs64.
41452 Use AC_CHECK_TYPES to check for struct stat64.
41458 file.c: fix 32-bit stat decoding on 64-bit architectures.
41473 sparc: reuse struct stat parser code for struct solstat decoding.
41479 ppc64: reuse struct stat parser code for struct stat_powerpc32 decoding.
41494 Use the same source code for struct stat/stat64 decoding.
41501 Use printstat for x32 personality processes.
41510 added earlier for X86_64.
41519 file.c: prepare realprintstat for parametrization.
41520 * file.c (realprintstat): Adjust format strings so that all 64-bit
41521 integer fields are printed with %llu format, and %u format is used for
41528 tests: check verbose decoding of 32-bit and 64-bit struct stat.
41531 * tests/stat32-v.test: New file.
41532 * tests/stat64-v.test: Likewise.
41535 (TESTS): Add stat32-v.test and stat64-v.test.
41538 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41541 There are no symbolic constants defined for struct stat.st_flags,
41548 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41552 decoding -- these fields are not defined in system headers.
41559 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41561 tests: fix race condition in net-accept-connect based tests.
41562 Change all net-accept-connect based tests to use different unix domain
41565 * tests/net-accept-connect.c: Parametrize unix domain socket address.
41566 * tests/net-fd.test: Pass socket address to net-accept-connect.
41568 * tests/unix-yy.test: Likewise.
41569 * tests/unix-yy-accept.awk: Update regexps.
41570 * tests/unix-yy-connect.awk: Likewise.
41572 2014-12-31 Mike Frysinger <vapier@gentoo.org>
41576 a bunch of newer flags. We have to handle fallbacks for all of them
41579 * time.c: Include fcntl.h for O_* defines.
41583 2014-12-29 Dmitry V. Levin <ldv@altlinux.org>
41589 2014-12-29 Dmitry V. Levin <ldv@altlinux.org>
41592 Starting with commit v4.6-240-g5afdf12, nobody compiles this
41593 non-Linux code.
41598 2014-12-29 Dmitry V. Levin <ldv@altlinux.org>
41605 2014-12-28 Dmitry V. Levin <ldv@altlinux.org>
41610 2014-12-27 Dmitry V. Levin <ldv@altlinux.org>
41619 2014-12-27 Elliott Hughes <enh@google.com>
41622 The kernel doesn't actually care what tv_sec is set to --- it only checks
41623 tv_nsec when looking for the special values.
41625 2014-12-26 Dmitry V. Levin <ldv@altlinux.org>
41627 Make -yy output for inet sockets consistent with unix domain sockets.
41628 Prepend -yy output generated for INET/INET6 TCP/UDP sockets with their
41632 Print proto_name for connected and unconnected sockets.
41637 * tests/net-yy-accept.awk: Update to match new output format.
41638 * tests/net-yy-connect.awk: Likewise.
41640 2014-12-25 Dmitry V. Levin <ldv@altlinux.org>
41645 Similarly, PF_UNIX and PF_FILE are valid synonyms for PF_LOCAL.
41650 2014-12-25 Dmitry V. Levin <ldv@altlinux.org>
41657 * tests/unix-yy.test: Use it.
41661 2014-12-25 Masatake YAMATO <yamato@redhat.com>
41663 tests: add a test for decoding unix domain socket addresses.
41664 * tests/unix-yy-accept.awk: New file.
41665 * tests/unix-yy-connect.awk: New file.
41666 * tests/unix-yy.test: New test.
41668 (EXTRA_DIST): Add unix-yy-accept.awk and unix-yy-connect.awk.
41670 2014-12-25 Masatake YAMATO <yamato@redhat.com>
41672 Support unix domain sockets in -yy option.
41673 This change extends -yy option to handle unix domain sockets:
41676 For a listening socket, its socket inode and socket path are printed.
41677 For an accepted socket, its socket inode, the peer inode, and the
41679 For a client socket, its socket inode and the peer inode are printed.
41683 $ ./strace -yy -e network nc -l -U /tmp/example.sock
41688 …8,"/tmp/example.sock"]>, {sa_family=AF_LOCAL, NULL}, [2]) = 4<UNIX:[14727246->14727245,"/tmp/examp…
41689 recvfrom(4<UNIX:[14727246->14727245,"/tmp/example.sock"]>, "INPUT\n", 8192, 0, NULL, NULL) = 6
41694 $ ./strace -yy -e network nc -U /tmp/example.sock
41700 sendto(3<UNIX:[14727245->14727246]>, "INPUT\n", 6, 0, NULL, 0) = 6
41706 (receive_responses): Add a new argument named parser: a function for
41712 2014-12-16 Masatake YAMATO <yamato@redhat.com>
41714 Use the protocol name of a socket as a hint for peer address resolution.
41722 associated with the given inode for resolving the peer socket
41729 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41735 (either directly or via multiarch) 16-bit and 32-bit gid getgroups
41755 * tests/uid.c: Test for getgroups.
41757 * tests/uid32.c: Test for getgroups32.
41758 * tests/uid.awk: Test for getgroups/getgroups32 decoding.
41761 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41763 Fix decoding of 16-bit *chown and [gs]et*[gu]id syscalls.
41765 directly or via multiarch) 16-bit and 32-bit uid/gid syscalls
41782 (printuid): Check for (uid_t) -1.
41789 and sys_setuid16 parsers for *chown and [gs]et*[gu]id syscall entries.
41804 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41818 Fix entry for syscall #112 from setresgid32 to setregid32.
41820 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41830 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41838 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41843 2014-12-14 Dmitry V. Levin <ldv@altlinux.org>
41845 printuid: fix uid_t decoding on 64-bit architectures.
41847 the latter is twice larger than uid_t on 64-bit architectures.
41851 * util.c (printuid): Likewise. When uid equals to -1, print "-1".
41862 2014-12-13 Dmitry V. Levin <ldv@altlinux.org>
41874 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41884 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41893 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41895 process.c: split struct_user_offsets into architecture-specific include files
41908 * process.c (struct_user_offsets): Split into architecture-specific
41919 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41925 …for n in $(sed -n 's/^[[:space:]]*{[[:space:]]*uoff(\([a-z_0-9]\+\)),.*/\1/p' process.c |sort -u);…
41926 …sed -i 's/^\([[:space:]]*\){[[:space:]]*uoff('"$n"'),[[:space:]]*"offsetof(struct user,[[:space:]]…
41932 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
42157 2014-12-06 Dmitry V. Levin <ldv@altlinux.org>
42159 Implement full decoding of 64-bit capabilities.
42160 Unlike v1 capabilities which are 32-bit, v2 and v3 are 64-bit, but
42161 before this change only lower 32 capability bits were decoded for
42169 (print_cap_data): Decoder higher capability bits for v2 and v3.
42179 2014-12-06 Dmitry V. Levin <ldv@altlinux.org>
42181 Make parsers of capget and capset syscalls self-contained.
42188 for problematic versions of <linux/capability.h> file.
42194 2014-12-04 Dmitry V. Levin <ldv@altlinux.org>
42202 2014-12-04 Dmitry V. Levin <ldv@altlinux.org>
42243 2014-12-03 Dmitry V. Levin <ldv@altlinux.org>
42253 * system.c: Fix typo in the check for <linux/utsname.h>.
42262 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42265 Since parsers for setdomainname and sethostname syscalls are identical,
42272 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42275 Since parsers for getpeername and getsockname syscalls are identical,
42282 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42285 Since parsers for stime and time syscalls are identical,
42292 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42295 Starting with commit v4.6-240-g5afdf12, nobody compiles this
42296 non-Linux code.
42302 2014-12-01 Dmitry V. Levin <ldv@altlinux.org>
42305 Special parsers for mkdir and mkdirat are redundant because
42312 * pathtrace.c (pathtrace_match): Do not check for sys_mkdirat.
42314 2014-12-01 Dmitry V. Levin <ldv@altlinux.org>
42317 Starting with commit v4.6-240-g5afdf12, nobody compiles this
42318 non-Linux code.
42324 2014-12-01 Dmitry V. Levin <ldv@altlinux.org>
42327 Starting with commit v4.6-240-g5afdf12, nobody compiles this
42328 non-Linux code.
42333 2014-11-27 Masatake YAMATO <yamato@redhat.com>
42335 Print protocol name of socket descriptors with -yy option.
42336 For those socket descriptors that have no associated ip:port pairs
42337 (or when this information is not available), -yy option prints
42338 the same <socket:[INODE]> information as -y option, e.g.
42340 $ strace -e sendto -yy ip l > /dev/null
42343 This change makes -yy output more informative: instead of just
42350 * tests/net-yy-accept.awk: Update to support protocol names.
42351 * tests/net-yy-connect.awk: Likewise.
42356 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42364 2014-11-21 Mike Frysinger <vapier@gentoo.org>
42372 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42388 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42392 initializers for sockaddr_nl, nlmsghdr, and inet_diag_req_v2 structures.
42395 2014-11-20 Mike Frysinger <vapier@gentoo.org>
42400 2014-11-11 Helge Deller <deller@gmx.de>
42416 2014-11-11 Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
42427 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x5e000
42428 > /lib/libc-2.10.1.so(_IO_file_doallocate+0x8c) [0x68a38]
42429 > /lib/libc-2.10.1.so(_IO_doallocbuf+0x6c) [0x78574]
42430 > /lib/libc-2.10.1.so(_IO_file_overflow+0x184) [0x7763c]
42431 > /lib/libc-2.10.1.so(_IO_file_xsputn+0x88) [0x76aac]
42432 > /lib/libc-2.10.1.so(_IO_puts+0xc8) [0x6b64c]
42437 > /lib/libc-2.10.1.so(__libc_init_first+0x30c) [0x1f84c]
42438 > /lib/libc-2.10.1.so(__libc_start_main+0xd8) [0x1f9f8]
42442 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x5e000
42443 > /lib/libc-2.10.1.so(_IO_file_doallocate+0x8c) [0x68a38]
42444 > /lib/libc-2.10.1.so(_IO_doallocbuf+0x6c) [0x78574]
42445 > /lib/libc-2.10.1.so(_IO_file_overflow+0x184) [0x7763c]
42446 > /lib/libc-2.10.1.so(_IO_file_xsputn+0x88) [0x76aac]
42447 > /lib/libc-2.10.1.so(_IO_puts+0xc8) [0x6b64c]
42452 > /lib/libc-2.10.1.so(__libc_init_first+0x30c) [0x1f84c]
42453 > /lib/libc-2.10.1.so(__libc_start_main+0xd8) [0x1f9f8]
42455 Acked-by: Masatake YAMATO <yamato@redhat.com>
42457 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42459 tests: add a test for decoding and dumping of recvmmsg/sendmmsg.
42469 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42471 Add functions for dumping iovecs in mmsghdr used in sendmmsg and recvmmsg
42474 That commit was for sendmsg and recvmsg system calls.
42475 This one is for sendmmsg and recvmmsg system calls.
42482 for recvmmsg and sendmmsg syscalls.
42484 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42489 However, more functions will refer the definition in modifications for
42490 supporting "-e write=set" and "-e read=set" option for sendmmsg and
42501 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42504 This patch is an initial step for supporting "-e write=set" and
42505 "-e read=set" option for sendmmsg and recvmmsg system calls.
42507 Coverting a data of msghdr32 to msghdr is needed both for
42516 2014-11-11 Dmitry V. Levin <ldv@altlinux.org>
42528 2014-11-11 Lubomir Rintel <lkundrak@v3.sk>
42530 Makefile.am: look for ioctl definitions in the kernel build tree by default
42531 While most of ioctl-related kernel headers are now exported by kernel's
42535 to look for modules_install'ed headers for the running kernel, and fall
42538 2014-11-04 Lubomir Rintel <lkundrak@v3.sk>
42540 Dump details for Bluetooth socket operations.
42547 for AF_BLUETOOTH sockets.
42549 protocol for PF_BLUETOOTH sockets.
42551 2014-11-04 Philippe De Muyter <phdm@macqel.be>
42553 Implement Video4Linux video-input ioctls decoder.
42554 Introduce v4l2.c, a decoder for the arguments of the video-input subset
42556 - previous work by Peter Zotov <whitequark@whitequark.org>, found at
42557 https://gist.githubusercontent.com/whitequark/1263207/raw/strace-4.6-v4l2-ioctls.patch
42558 - previous work by William Manley <will@williammanley.net>, found at
42560 - forward port, additions and fixes by Philippe De Muyter <phdm@macqel.be>
42567 * configure.ac: Check for availabilty of V4L2_* enum constants.
42577 2014-11-04 Dmitry V. Levin <ldv@altlinux.org>
42586 2014-11-04 Dmitry V. Levin <ldv@altlinux.org>
42589 For two ioctl entries with the same code, if one's name is a prefix
42596 * linux/ioctlent-filter.awk: Remove.
42597 * Makefile.am (EXTRA_DIST): Remove linux/ioctlent-filter.awk.
42598 ($(ioctlent_h)): Don't use linux/ioctlent-filter.awk.
42600 2014-11-03 Dmitry V. Levin <ldv@altlinux.org>
42605 2014-11-01 Masatake YAMATO <yamato@redhat.com>
42607 Add a function for dumping iovec in msghdr used in sendmsg and recvmsg.
42610 $ ./strace -e write=all ip link change dev enp0s25 mtu 1501 > /dev/null
42618 $ ./strace -e read=all ip link show > /dev/null
42629 * syscall.c (dumpio) [HAVE_SENDMSG]: Call dumpiov_in_msghdr for recvmsg
42632 2014-10-31 Maarten ter Huurne <maarten@treewalker.org>
42642 2014-10-31 Dmitry V. Levin <ldv@altlinux.org>
42647 2014-10-31 Mike Frysinger <vapier@gentoo.org>
42656 2014-10-31 Mike Frysinger <vapier@gentoo.org>
42665 2014-10-03 Elliott Hughes <enh@google.com>
42668 On Android, 32-bit arm and x86 use __kernel_mode_t (an unsigned short)
42676 2014-09-29 Dmitry V. Levin <ldv@altlinux.org>
42679 * configure.ac (AC_CHECK_MEMBERS): Check for struct sysinfo.totalhigh,
42690 2014-09-29 Dmitry V. Levin <ldv@altlinux.org>
42693 * resource.c: Include <sys/sysinfo.h> for struct sysinfo definition.
42695 Reported-by: Steven Honeyman <stevenhoneyman@gmail.com>
42697 2014-09-23 Dmitry V. Levin <ldv@altlinux.org>
42699 tests: cleanup checks for basic programs.
42700 * tests/init.sh: Check for cat and rm.
42701 * tests/getdents.test: Check for awk.
42702 * tests/ptrace_setoptions.test: Check for grep.
42703 * tests/net-fd.test: Do not check for rm.
42705 * tests/scm_rights-fd.test: Likewise.
42709 tests: add a test for -yy option.
42710 * tests/net-yy.test: New test.
42711 * tests/inet-accept-connect-send-recv.c: New file.
42713 * tests/net-yy-accept.awk: Likewise.
42714 * tests/net-yy-connect.awk: Likewise.
42715 * tests/.gitignore: Add inet-accept-connect-send-recv,
42716 netlink_inet_diag, *.tmp-*, and *.tmp.*.
42717 * tests/Makefile.am (check_PROGRAMS): Add inet-accept-connect-send-recv
42719 (TESTS): Add net-yy.test.
42720 (EXTRA_DIST): Add net-yy-accept.awk and net-yy-connect.awk.
42722 2014-09-22 Dmitry V. Levin <ldv@altlinux.org>
42733 fsmagic: sort array by value and use bsearch for faster lookup.
42736 * file.c (sprintfstype): Use xlat_search for fsmagic lookup.
42737 * xlat/fsmagic.in: Sort by value and mark as not NULL-terminated.
42745 2014-09-21 Dmitry V. Levin <ldv@altlinux.org>
42751 2014-09-17 Dmitry V. Levin <ldv@altlinux.org>
42753 Add -yy option: print ip and port associated with socket descriptors.
42754 When two ore more -y options are given, print local and remote ip:port
42756 NETLINK_INET_DIAG for sockaddr lookup; it's based on the patch
42765 * strace.1: Document -yy option.
42769 2014-09-17 Vicente Olivert Riera <vincent@gentoo.org>
42779 signal.c:631:21: error: 'struct old_sigaction' has no member named 'sa_restorer'
42781 signal.c:1224:21: error: 'struct new_sigaction' has no member named 'sa_restorer'
42789 2014-09-17 Dmitry V. Levin <ldv@altlinux.org>
42791 Fix compilation warnings reported by gcc -Wsign-compare.
42792 * configure.ac (gl_WARN_ADD): Add -Wsign-compare.
42858 2014-09-11 Dmitry V. Levin <ldv@altlinux.org>
42866 getdents, getdents64: fix potential out-of-bounds read issues.
42867 * file.c (sys_getdents): Check for invalid d_reclen.
42875 2014-09-10 Dmitry V. Levin <ldv@altlinux.org>
42882 * net.c (printsock): Fix fallback string for AF_PACKET packet types.
42884 2014-09-09 Dmitry V. Levin <ldv@altlinux.org>
42891 Reported-by: Zubin Mithra <zubin.mithra@gmail.com>
42893 2014-09-08 Dmitry V. Levin <ldv@altlinux.org>
42901 (print_common_flags): Check for HAVE_STRUCT_IOCB_U_C_FLAGS.
42902 (sys_io_submit): Check for HAVE_DECL_IO_CMD_PWRITE and
42904 * configure.ac: Check for libaio.h and declaration it provides.
42906 2014-08-19 Dmitry V. Levin <ldv@altlinux.org>
42908 maint: post-release administrivia.
42909 * NEWS: Add header line for next release.
42911 2014-08-15 Dmitry V. Levin <ldv@altlinux.org>
42913 Prepare for 4.9 release.
42914 * NEWS: Update for 4.9 release.
42915 * debian/changelog: 4.9-1.
42916 * strace.spec: 4.9-1.
42919 * debian/changelog: Sync with 4.8-1.1.
42922 * strace.spec: Sync with 4.8-5.
42924 NEWS: Update for 4.9 release.
42926 2014-08-15 Mike Frysinger <vapier@gentoo.org>
42929 * linux/dummy.h: Add printargs aliases for sys_sched_getattr and
42940 * linux/mips/syscallent-n32.h: Likewise.
42941 * linux/mips/syscallent-n64.h: Add getdents64/sched_setattr/sched_getattr/
42943 * linux/mips/syscallent-o32.h: Add sched_setattr/sched_getattr/renameat2.
42960 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42969 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42976 Add the missing syscalls before preadv which also re-aligns all the
42981 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42991 2014-08-12 Dmitry V. Levin <ldv@altlinux.org>
42993 tests: skip detach-stopped.test when PTRACE_SEIZE doesn't work.
42994 detach-stopped.test is known to fail when PTRACE_SEIZE is not available,
42997 * tests/detach-stopped.test: Check for "strace -d" output and skip the
43000 2014-08-11 Erik Johansson <erik@ejohansson.se>
43002 sh: fix syscall numbering for recv and sendto.
43005 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43013 * tests/uio.c: Include config.h.
43014 (main): Check for HAVE_PREADV and HAVE_PWRITEV.
43017 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43024 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43028 set -e
43039 The problem is that while `set -e` is disabled for the body of the
43042 is non-zero, the script ends up failing overall.
43047 * tests/detach-running.test (cleanup): Add return 0.
43048 * tests/detach-sleeping.test (cleanup): Likewise.
43049 * tests/detach-stopped.test (cleanup): Likewise.
43051 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43059 2014-08-10 Mike Frysinger <vapier@gentoo.org>
43062 Previous commit here re-added the bugs trying to be fixed due to a
43068 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43076 * tests/sigaction.awk: Support no SA_RESTORER and swapped args.
43078 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43080 alpha/sparc: fix arg count for rt_sigaction.
43086 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43099 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43107 2014-08-08 Dmitry V. Levin <ldv@altlinux.org>
43109 Prepare for -yy option support.
43112 (init): Handle repeated -y option.
43114 2014-08-07 Dmitry V. Levin <ldv@altlinux.org>
43122 2014-08-07 Dmitry V. Levin <ldv@altlinux.org>
43137 2014-08-06 Dmitry V. Levin <ldv@altlinux.org>
43143 * tests/net-fd.test: Update.
43145 2014-08-01 Mike Frysinger <vapier@gentoo.org>
43149 point for x32. See linux 7fd44dacdd803c0bbf38bf478d51d280902bb0f1.
43152 and add new entry points for x32 specifically.
43154 2014-06-18 Max Filippov <jcmvbkbc@gmail.com>
43168 2014-06-18 Dmitry V. Levin <ldv@altlinux.org>
43170 Document -k option as experimental.
43171 strace -k does not produce a reliable output on all supported
43172 configurations yet, even basic strace-k.test is known to fail
43175 * strace.c (usage): Document -k option as experimental.
43179 2014-06-18 Dmitry V. Levin <ldv@altlinux.org>
43181 tests: robustify -k test.
43182 Split stack-fcall.c into several compilation units so that intermediate
43185 * tests/stack-fcall.c: Move intermediate functions to ...
43186 * tests/stack-fcall-*.c: ... new files.
43187 * tests/Makefile.am (stack_fcall_SOURCES): Add stack-fcall-*.c.
43189 2014-06-13 Dmitry V. Levin <ldv@altlinux.org>
43191 tests: enhance -k test.
43194 * tests/stack-fcall.c (f1): Rename to f3.
43196 * tests/strace-k.test: Update.
43198 2014-06-13 Dmitry V. Levin <ldv@altlinux.org>
43200 unwind: ignore memory mappings that have no PROT_EXEC bit set.
43201 * unwind.c (build_mmap_cache): For each memory mapping being scanned,
43214 2014-06-12 Dmitry V. Levin <ldv@altlinux.org>
43225 2014-06-11 Luca Clementi <luca.clementi@gmail.com>
43229 unwind_capture_stacktrace): Disable stack tracing of non-default
43232 2014-06-05 Dmitry V. Levin <ldv@altlinux.org>
43240 * unwind.c (print_stacktrace): Fix another off-by-one error in binary search.
43247 2014-06-05 Dmitry V. Levin <ldv@altlinux.org>
43249 unwind: fix build on 32-bit architectures.
43250 Fix compilation warnings in unwind.c on 32-bit architectures.
43257 * tests/stack-fcall.c (f1): Use getpid instead of getuid.
43258 * tests/strace-k.test: Likewise.
43260 2014-06-05 Dmitry V. Levin <ldv@altlinux.org>
43262 tests: robustify -w option test.
43265 2014-06-04 Dmitry V. Levin <ldv@altlinux.org>
43274 2014-06-04 Zubin Mithra <zubin.mithra@gmail.com>
43285 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43287 NEWS: Prepare for 4.9 release.
43289 Warn about flags that have no effect with -c.
43290 * strace.c (init): Issue a warning if -i, -k, -r, -t, -T, or -y is used
43291 along with -c.
43296 and enable maximum hardening as for programs that handle untrusted data.
43299 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43304 (strace, strace-udeb): Add x32 to architecture list.
43306 (strace, strace-udeb): Add or1k to architecture list.
43308 (strace, strace-udeb): Add arm64 to architecture list,
43314 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43317 $ groff -ww -mandoc -z strace.1
43320 * strace.1: define IX macro as empty for groff.
43321 Change remaining '-' as minus to '\-'.
43327 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43329 unwind: tests: add a test for -k option.
43330 * tests/stack-fcall.c: New test target.
43331 * tests/strace-k.test: New test driver.
43332 * tests/Makefile.am (check_PROGRAMS): Add stack-fcall.
43333 (TESTS): Add strace-k.test.
43334 * tests/.gitignore: Add stack-fcall.
43336 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43349 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43351 unwind: add SE and SI flags to syscall entries for all architectures.
43356 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43377 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43388 for (i = 0; i < max; i++)
43395 ./strace -o /dev/null -k a.out
43409 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43419 $ cat ./p-deleted.c
43426 $ strace -e unlink -k ./p-deleted
43427 unlink("./p-deleted") = 0
43428 > /usr/lib64/libc-2.18.so(unlink+0x7) [0xe7f17]
43429 > /home/yamato/var/strace/t_unwind/p-deleted (deleted)(+0x0) [0x575]
43430 > /usr/lib64/libc-2.18.so(__libc_start_main+0xf5) [0x21d65]
43434 p-deleted is deleted therefore backtracing_error is reported. This
43441 $ strace -e unlink -k ./p-deleted
43442 unlink("./p-deleted") = 0
43443 > /usr/lib64/libc-2.18.so(unlink+0x7) [0xe7f17]
43444 > /home/yamato/var/strace/t_unwind/p-deleted (deleted)(+0x0) [0x575]
43445 > /usr/lib64/libc-2.18.so(__libc_start_main+0xf5) [0x21d65]
43461 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43464 captured stacktrace is printed in unwind_tcb_fin if tcp->queue is not
43470 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43476 incorrect if the target application is multi-threaded; more than two
43492 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43494 unwind: introduce queue_t for capturing stacktrace.
43495 This is the second step for splitting capturing from printing.
43515 execve("./test-fork", ["./test-fork"], [/* 56 vars */]) = 0
43516 > /usr/lib64/ld-2.18.so(check_one_fd.part.0+0x82) [0x11f0]
43519 execve("./test-fork", ["./test-fork"], [/* 54 vars */]) = 0
43520 > /usr/lib64/libc-2.18.so(execve+0x7) [0xbcd27]
43525 > /usr/lib64/libc-2.18.so(__libc_start_main+0xf5) [0x21d65]
43537 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43543 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43552 As the initial step for splitting capturing from printing, this change
43553 introduces stacktrace_walker utility function. It can be used both for
43557 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43571 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43580 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43587 * unwind.c (print_stacktrace): Fix off-by-one error in binary search.
43589 2014-05-30 Luca Clementi <luca.clementi@gmail.com>
43591 Add -k option to print stack trace after each syscall.
43593 -k option is specified. It is implemented using libunwind to unwind the
43596 Based on the code that was originally taken from strace-plus
43599 * configure.ac: Add --with-libunwind option. Check libunwind support.
43609 * strace.1: Document -k option.
43611 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43619 Check for constants used by waitid function.
43622 Check for LO_FLAGS_READ_ONLY constant.
43649 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43657 * make-dist: Likewise.
43660 2014-05-30 Mike Frysinger <vapier@gentoo.org>
43669 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43671 tests: fix SCM_RIGHTS test for big-endian systems.
43674 * tests/scm_rights-fd.test: Update grep patterns.
43680 * tests/scm_rights-fd.test: New test.
43682 (TESTS): Add scm_rights-fd.test.
43685 tests: add a test for -c and -w options.
43689 2014-05-29 Mark Hills <Mark.Hills@framestore.com>
43693 non-CPU resource, eg. typically open() or stat() to a network drive.
43695 This patch adds a new flag (-w) to produce a summary of the time
43699 are not CPU-bound.
43701 2014-05-29 Dmitry V. Levin <ldv@altlinux.org>
43716 2014-05-28 Dmitry V. Levin <ldv@altlinux.org>
43718 Use printstr for sethostname, setdomainname, and gethostname decoding.
43721 printpathn is not the right method for its decoding.
43727 2014-05-21 James Hogan <james.hogan@imgtec.com>
43731 may be provided by buildroot) the C library headers may expose a 64-bit
43733 interface are only 32-bit. The SIZEOF_RLIM_T will then be 8 which
43737 checks for current_wordsize.
43739 2014-05-13 Masatake YAMATO <yamato@redhat.com>
43747 2014-05-12 Dmitry V. Levin <ldv@altlinux.org>
43762 * util.c (setbpt): Do not check for sys_vfork.
43765 2014-04-17 Dmitry V. Levin <ldv@altlinux.org>
43768 * desc.c (sys_epoll_ctl): Do not parse the event structure for
43771 Reported-by: Марк Коренберг <socketpair@gmail.com>
43773 2014-04-17 Dmitry V. Levin <ldv@altlinux.org>
43780 2014-04-17 Dmitry V. Levin <ldv@altlinux.org>
43794 * linux/mips/syscallent-o32.h: Likewise.
43799 Reported-by: Dima Kogan <dima@secretsauce.net>
43801 2014-04-16 Dmitry V. Levin <ldv@altlinux.org>
43803 tests: add a test for pread/pwrite and preadv/pwritev offset decoding.
43810 2014-04-10 Dmitry V. Levin <ldv@altlinux.org>
43823 2014-04-10 Denys Vlasenko <dvlasenk@redhat.com>
43825 Make int3 example in comments more cut-n-pastable.
43827 after cut-n-pasting it into a file, there is no need
43828 to edit the result (e.g. no need to remove C comment
43831 2014-04-09 Dmitry V. Levin <ldv@altlinux.org>
43841 x32: decode clone LDT user_desc entries for x86 processes.
43848 2014-04-09 Elliott Hughes <enh@google.com>
43850 x86-64: decode clone LDT user_desc entries for x86 processes.
43857 2014-04-09 Dmitry V. Levin <ldv@altlinux.org>
43859 x32: fix clone(2) argument order for x86 processes.
43860 Apply the same fix that was made for x86_64.
43865 2014-04-09 Elliott Hughes <enh@google.com>
43867 x86-64: fix clone(2) argument order for x86 processes.
43874 2014-04-06 Elliott Hughes <enh@google.com>
43877 We need to handle this situation more like x86-64. 32-bit arm and i386
43879 packed. Additionally, on aarch64 the 32-bit personality is personality 0.
43881 2014-03-20 Dmitry V. Levin <ldv@altlinux.org>
43885 by default. Add --enable-arm-oabi option to enable ARM OABI support.
43887 * configure.ac: New option --enable-arm-oabi.
43891 2014-03-12 Elliott Hughes <enh@google.com>
43893 Fix stat decoding for LP64 bionic.
43895 HAVE_STAT64 for aarch64 with uapi kernel headers but not x86_64.
43899 2014-03-11 Masatake YAMATO <yamato@redhat.com>
43901 Decode protocol argument for PF_NETLINK sockets.
43907 Acked-by: Mike Frysinger <vapier@gentoo.org>
43909 2014-03-11 Dmitry V. Levin <ldv@altlinux.org>
43912 The only supported domain for socketpair syscall is AF_UNIX, so
43913 no decoding related to other domains is required for socketpair.
43915 * net.c (sys_socketpair): Remove support for PF_INET and PF_IPX domains,
43918 2014-03-11 Dmitry V. Levin <ldv@altlinux.org>
43921 * configure.ac (AC_CHECK_MEMBERS): Check for siginfo_t.si_syscall.
43933 2014-03-10 Elliott Hughes <enh@google.com>
43936 Decode siginfo_t more clearly for si_code SI_TIMER.
43939 Also factor out the si_value dumping so it's the same for every si_code.
43941 2014-03-03 Elliott Hughes <enh@google.com>
43945 also needs to call the shuffle_scno function for the ARM-specific
43949 (get_scno) [AARCH64]: Call shuffle_scno when the tracee is in 32-bit mode.
43951 2014-03-03 Dmitry V. Levin <ldv@altlinux.org>
43968 2014-03-01 Dmitry V. Levin <ldv@altlinux.org>
43979 2014-02-28 Elliott Hughes <enh@google.com>
43981 Add multi-personality support to struct old_sigaction decoding.
43983 whose size differs between 32-bit and 64-bit personalities.
43986 [HAVE_SIGACTION] (decode_old_sigaction): Decode 32-bit struct
43987 old_sigaction on a 64-bit host.
43989 2014-02-28 Elliott Hughes <enh@google.com>
43992 aarch64's uapi header files have a struct stat but no struct stat64.
43993 To correctly decode a 32-bit process' s struct stat64 we need
43994 HAVE_STAT64, but then the build fails because there is no struct stat64.
44000 2014-02-28 Dmitry V. Levin <ldv@altlinux.org>
44004 v4.6-240-g5afdf12 that removed its last non-Linux users.
44009 Reported-by: Elliott Hughes <enh@google.com>
44011 2014-02-27 Dmitry V. Levin <ldv@altlinux.org>
44013 Add multi-personality support to stack_t decoding.
44015 whose size differs between 32-bit and 64-bit personalities.
44017 * signal.c (print_stack_t): Decode 32-bit stack_t on a 64-bit host.
44019 Reported-by: Elliott Hughes <enh@google.com>
44021 2014-02-27 Dmitry V. Levin <ldv@altlinux.org>
44025 In glibc, sigset_t is an array with space for 1024 bits, which is much
44041 * configure.ac: Check for __builtin_popcount.
44052 2014-02-26 Dmitry V. Levin <ldv@altlinux.org>
44055 Add generic tests for fopen64 and fputs_unlocked functions to fix build
44065 Reported-by: Elliott Hughes <enh@google.com>
44067 2014-02-25 James Yang <james.yang@freescale.com>
44069 powerpc64: fix 64-bit process detection on embedded.
44070 * syscall.c (get_scno) [POWERPC64]: Fix 64-bit process detection
44073 2014-02-25 Dmitry V. Levin <ldv@altlinux.org>
44076 Add a generic test for <scsi/sg.h> availability to fix build with
44083 Reported-by: Elliott Hughes <enh@google.com>
44085 2014-02-14 Dmitry V. Levin <ldv@altlinux.org>
44087 Revert "Add support for Altera's Nios-II softcore architecture"
44096 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44101 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44103 Fix sigaction reporting on non-x86 architectures.
44105 headers, use the definition provided by kernel headers for proper
44111 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44113 Check for SA_RESTORER definition in <asm/signal.h>
44117 config.h using a configure check.
44122 2014-02-07 Dmitry V. Levin <ldv@altlinux.org>
44125 Fix "dereferencing type-punned pointer will break strict-aliasing rules"
44126 warning introduced by commit v4.8-54-g670b21b.
44128 * signal.c (sys_sigreturn) [ARM]: Avoid dereferencing type-punned pointers.
44130 2014-02-06 Dmitry V. Levin <ldv@altlinux.org>
44135 2014-02-06 Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
44137 Add support for Altera's Nios-II softcore architecture.
44138 This commit adds strace support for Altera's Nios-II official
44139 kernel port as found in git://git.rocketboards.org/linux-socfpga.git
44141 Notice that this an out-of-tree kernel architectural port, and uses the
44142 legacy (non-generic) system call ABI. In particular, the port doesn't
44145 Given it's mandatory for new architectures to support the generic
44147 mainlined, the strace support will have to be re-factored accordingly.
44162 Acked-by: Mike Frysinger <vapier@gentoo.org>
44164 2014-02-05 Dmitry V. Levin <ldv@altlinux.org>
44256 2014-02-05 Dmitry V. Levin <ldv@altlinux.org>
44261 Suggested-by: Mike Frysinger <vapier@gentoo.org>
44263 2014-02-04 Stefan Sørensen <stefan.sorensen@spectralink.com>
44273 2014-02-03 Stefan Sørensen <stefan.sorensen@spectralink.com>
44287 2014-02-02 Philippe Ombredanne <pombredanne@nexb.com>
44289 Add decoding of sockets descriptor 'paths' for network calls.
44296 * tests/net-fd.test: New test for socket descriptor arguments decoding.
44297 * tests/Makefile.am (TESTS): Add net-fd.test.
44298 (net-fd.log): New dependency on net.log.
44300 2014-02-02 Dmitry V. Levin <ldv@altlinux.org>
44303 Due to automake limitations, some features work only for tests
44306 * tests/detach-running: Rename to detach-running.test.
44307 * tests/detach-sleeping: Rename to detach-sleeping.test.
44308 * tests/detach-stopped: Rename to detach-stopped.test.
44314 * tests/strace-f: Rename to strace-f.test.
44318 2014-01-31 Mike Frysinger <vapier@gentoo.org>
44321 This syncs with the defines as available in linux-3.13.
44331 2014-01-08 Chris Dearman <chris.dearman@imgtec.com>
44335 mask for old_sigaction and new_sigaction and does does not have
44339 big endian and x86-64.
44341 * signal.c (old_sigaction) [MIPS]: Add definition for MIPS.
44343 (new_sigaction) [MIPS]: Add definition for MIPS.
44345 2014-01-08 Dmitry V. Levin <ldv@altlinux.org>
44353 2014-01-08 Dmitry V. Levin <ldv@altlinux.org>
44355 tests: add a test for rt_sigaction output.
44370 2014-01-05 Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
44375 Acked-by: Mike Frysinger <vapier@gentoo.org>
44377 2013-12-31 Mike Frysinger <vapier@gentoo.org>
44389 2013-12-31 Mike Frysinger <vapier@gentoo.org>
44394 2013-11-13 Dmitry V. Levin <ldv@altlinux.org>
44400 2013-11-13 Dmitry V. Levin <ldv@altlinux.org>
44404 is known to provide a valid prototype for ptrace, and use a homegrown
44405 replacement for all the rest. Situation seems to be better nowadays,
44407 <sys/ptrace.h> by default, leaving the replacement for rare broken cases
44413 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44418 do there is to check for _LARGEFILE64_SOURCE - the macro provided by
44425 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44428 These decoders are referenced by most architectures, there were no
44435 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44443 these constants are defined and differ from their non-64bit versions.
44445 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44455 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44458 IPPROTO_* macros are defined by <netinet/in.h>, no need to redefine
44466 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44477 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44486 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44495 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44499 struct sigevent. There seems to be no portable way to do it besides
44502 * configure.ac (AC_CHECK_MEMBERS): Check for
44509 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44515 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44520 * configure.ac: Remove the check for long long.
44524 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44526 Include <sys/poll.h> only if there is no <poll.h>
44536 2013-11-11 Denys Vlasenko <dvlasenk@redhat.com>
44542 Because we want to properly decode 32-bit aio calls
44543 by 64-bit strace. For that, we need more definitions than
44546 Keeping our local 32-bit compat defs in sync with libaio.h
44550 2013-11-11 Denys Vlasenko <dvlasenk@redhat.com>
44557 static string buffer for the string result.
44562 2013-11-11 Denys Vlasenko <dvlasenk@redhat.com>
44570 2013-11-09 Denys Vlasenko <dvlasenk@redhat.com>
44574 Fix select decoding on e.g. 32-bit ppc process by 64-bit strace.
44581 2013-11-06 Denys Vlasenko <dvlasenk@redhat.com>
44585 2013-11-05 Dr. David Alan Gilbert <dave@treblig.org>
44587 Add a test for the latest select decoding fix.
44588 * test/select.c (main): Add a test for nfds larger than FD_SETSIZE.
44590 2013-11-05 Dmitry V. Levin <ldv@altlinux.org>
44592 Fix select decoding for glibc in _FORTIFY_SOURCE mode.
44597 no such restrictions.
44602 2013-11-05 Dmitry V. Levin <ldv@altlinux.org>
44611 2013-11-05 Denys Vlasenko <dvlasenk@redhat.com>
44618 2013-11-05 Dr. David Alan Gilbert <dave@treblig.org>
44628 2013-09-26 Ali Polatel <alip@exherbo.org>
44631 Since glibc-2.18~39 <sys/ptrace.h> defines ptrace_peeksiginfo_args
44634 * configure.ac: Check for `struct ptrace_peeksiginfo_args' in
44642 2013-09-11 Vineet Gupta <Vineet.Gupta1@synopsys.com>
44644 Add support for ARC Cores from Synopsys.
44645 Take #2 on mainlining strace support for ARC (last one was 4.6 based back
44649 The syscall ABI is asm-generic/unistd.h based (so no legacy syscalls),
44666 Acked-by: Mike Frysinger <vapier@gentoo.org>
44668 2013-09-11 William Manley <william.manley@youview.com>
44670 Add support for decoding sync_file_range.
44676 * linux/mips/syscallent-o32.h: Set the number of sync_file_range
44679 2013-09-11 Mike Frysinger <vapier@gentoo.org>
44681 fanotify_mark: fix number of args for 32bit arches.
44684 having 5 fields total (since that's correct for 64bit systems).
44693 * linux/mips/syscallent-o32.h: Likewise.
44701 Acked-by: Chris Metcalf <cmetcalf@tilera.com> [for tile]
44703 2013-09-11 Dmitry V. Levin <ldv@altlinux.org>
44706 Fix "dereferencing type-punned pointer will break strict-aliasing rules"
44707 warnings introduced by commit v4.8-52-gb51f364.
44709 * signal.c (sys_sigreturn): Avoid dereferencing type-punned pointers.
44711 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44720 IA64: 64-bit arch, all 64 signals fit in one word in any case.
44726 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44734 Add compat support for sys_pselect6.
44740 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44750 sys_sigprocmask: print_sigset -> print_sigset_addr_len(current_wordsize),
44751 no change in functionality.
44754 instead of open-coding it.
44756 sys_rt_sigprocmask: use print_sigset_addr_len instead of open-coding it.
44761 do_signalfd: print_sigset -> print_sigset_addr_len. This fixes
44771 and where it allows word-sized sigset_size ([rt_]sigpending).
44773 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44784 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44792 for (i = 0; i <= NSIG; i++)
44794 which is safe even if NSIG is way too big - signame(i)
44795 returns a well-formed string for any i.
44807 2013-07-17 Denys Vlasenko <dvlasenk@redhat.com>
44816 2013-07-16 Denys Vlasenko <dvlasenk@redhat.com>
44819 No code changes.
44821 2013-07-16 Denys Vlasenko <dvlasenk@redhat.com>
44824 This includes decoding of 32-bit sigreturn by 64-bit strace,
44827 Added a test for it.
44829 2013-07-12 Anton Blanchard <anton@samba.org>
44838 2013-07-12 Anton Blanchard <anton@samba.org>
44844 powerpc: fix iflag build issue (static -> extern)
44846 2013-07-10 Denys Vlasenko <dvlasenk@redhat.com>
44849 This eliminates some rare bugs, such as post-execve SIGTRAP
44853 2013-07-08 Denys Vlasenko <dvlasenk@redhat.com>
44855 If -o|logger is in use, exit trace loop if nprocs == 0.
44861 2013-07-07 Denys Vlasenko <dvlasenk@redhat.com>
44868 scno = syscall_mode unless syscall_mode == -ENOSYS
44869 (if -ENOSYS, scn is retrieved by decoding current insn)
44872 syscall_mode = scno unless syscall_mode == -ENOSYS
44878 syscall_mode = scno unless syscall_mode == -ENOSYS
44879 if (WAITEXECVE && gpr2 in (-ENOSYS, scno)) gpr2 = 0;
44884 regardless whether GPR2 is -ENOSYS or not, syscall_mode is always
44896 2013-07-04 Denys Vlasenko <dvlasenk@redhat.com>
44902 2013-07-02 Denys Vlasenko <dvlasenk@redhat.com>
44911 2013-07-02 Denys Vlasenko <dvlasenk@redhat.com>
44914 popen_pid = vfork() does work correctly, but for a subtle reason
44924 2013-07-01 Denys Vlasenko <dvlasenk@redhat.com>
44928 was nearly the same, no point in duplicating it.
44930 Remove ia64-specific printing of current address on signal delivery.
44931 The address is printed anyway by printleader() if -i is active.
44934 Grepping for just ia32 was turning up many false positives.
44936 2013-06-30 Denys Vlasenko <dvlasenk@redhat.com>
44940 2013-06-29 Denys Vlasenko <dvlasenk@redhat.com>
44944 2013-06-28 Denys Vlasenko <dvlasenk@redhat.com>
44947 No code changes.
44951 POWERPC: read ppc_regs.nip if -i.
44960 2013-06-26 Anton Blanchard <anton@samba.org>
44962 powerpc: Provide a fallback for old kernels without PTRACE_GETREGS.
44964 provide backward compatibility for very old kernels, add a manual
44970 2013-06-26 Anton Blanchard <anton@samba.org>
44980 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
44987 Now it also contains a tested example of i686 build on 64-bit host.
44989 In -f mode, do not assume that new pid is stopped - handle exits too.
44991 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
44995 because of vfork (no way to know which process would win).
45000 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
45007 2013-06-21 Denys Vlasenko <dvlasenk@redhat.com>
45013 2013-06-21 Denys Vlasenko <dvlasenk@redhat.com>
45020 2013-06-21 Denys Vlasenko <dvlasenk@redhat.com>
45028 di not PTRACE_DETACH - wait for SIGSTOP first.
45030 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45042 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45044 Remove workarounds for ancient kernels lacking __WALL.
45047 * strace (detach): Remove workarounds for ancient kernels lacking __WALL.
45049 (trace): Remove workarounds for ancient kernels lacking __WALL.
45052 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45063 on detach if PTRACE_INTERRUPT wasn't used, or wait for any ptrace
45066 2013-06-19 Dmitry V. Levin <ldv@altlinux.org>
45069 * tests/detach-running: Disable /proc based checks when
45071 * tests/detach-sleeping: Likewise.
45072 * tests/detach-stopped: Likewise.
45074 2013-06-19 Denys Vlasenko <dvlasenk@redhat.com>
45076 tests/detach-{running,sleeping,stopped}: check post-detach state.
45080 2013-06-19 Dmitry V. Levin <ldv@altlinux.org>
45083 * tests/detach-running: New test.
45087 * tests/detach-sleeping: Do not send SIGCONT to the sleeping process.
45089 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45091 tests: fix parallel-tests support in detach-* tests.
45092 * tests/detach-sleeping: Use $LOG file for set_ptracer_any output.
45093 * tests/detach-stopped: Likewise.
45097 * tests/detach-sleeping: Use it.
45098 * tests/detach-stopped: Likewise.
45102 * tests/detach-sleeping: New test.
45103 * tests/detach-stopped: Likewise.
45105 (TESTS): Add detach-sleeping and detach-stopped.
45108 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45116 * tests/detach-stopped: Update callers.
45121 * tests/strace-f: Likewise.
45123 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45125 tests: enable parallel-tests support.
45126 * configure.ac (AM_INIT_AUTOMAKE): Add parallel-tests.
45128 tests: prepare for parallel-tests support.
45131 * tests/detach-stopped: Use it.
45135 * tests/strace-f: Likewise.
45137 2013-06-18 Denys Vlasenko <dvlasenk@redhat.com>
45139 Cleanups. No logic changes.
45144 2013-06-05 Dmitry V. Levin <ldv@altlinux.org>
45146 maint: post-release administrivia.
45147 * NEWS: Add header line for next release.
45149 2013-06-03 Dmitry V. Levin <ldv@altlinux.org>
45159 Prepare for 4.8 release.
45160 * NEWS: Update for 4.8 release.
45161 * debian/changelog: 4.8-1.
45162 * strace.spec: 4.8-1.
45164 2013-06-02 Dmitry V. Levin <ldv@altlinux.org>
45173 linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
45176 Fix "make dist" regression introduced by commit v4.7-184-gd648f29.
45177 * Makefile.am (EXTRA_DIST): Add linux/ubi-user.h.
45179 2013-05-28 Dmitry V. Levin <ldv@altlinux.org>
45181 Do not suppress signal delivery messages with -qq.
45182 Current implementation of -qq does not allow suppressing exit status
45184 good. There is a traditional "-e signal=none" syntax that can be used
45186 This partially reverts commit v4.7-222-g01997cf.
45188 * strace.c (trace): Do not suppress signal delivery messages with -qq.
45189 * strace.1: Update documentation about -qq option.
45191 2013-05-23 Chris Metcalf <cmetcalf@tilera.com>
45194 As of glibc 2.16, "struct siginfo" is no longer supported,
45201 these flags unconditionally present for "#ifdef TILE" just means
45206 2013-05-17 Mike Frysinger <vapier@gentoo.org>
45210 "COPYRIGHT". Use that as a lot of license scanning tools look for it.
45218 2013-05-17 Dmitry V. Levin <ldv@altlinux.org>
45221 * debian/changelog: Sync with 4.7-1.
45223 * strace.spec: Sync with 4.7-3.
45232 2013-05-14 Dmitry V. Levin <ldv@altlinux.org>
45234 NOMMU: do not hide startup syscalls unless in -D mode.
45235 On NOMMU systems in "strace PROG" case, we have no way to attach to
45236 the tracee before it calls execve unless in -D mode. That is, the
45241 unless in -D mode.
45243 2013-05-14 Dmitry V. Levin <ldv@altlinux.org>
45245 Make -D mode work when the Yama LSM is enabled.
45248 In -D mode, allow tracing the process that is going to become the
45254 2013-05-14 Denys Vlasenko <dvlasenk@redhat.com>
45257 Tested with "./strace [-D] [-q] [-bexecve] env true",
45264 (init): If "strace PROG" case (as opposed to "strace -pPID"),
45272 2013-05-13 Daniel P. Berrange <berrange@redhat.com>
45274 Allow -q to be repeated for very quiet output.
45275 Even with the -q flag specified, tracing output is still mixed
45277 often irrelevant. Allow the -q option to be repeated to force
45281 * strace.1: Document ability to repeat '-q' option.
45282 * strace.c: Allow '-q' to be repeated to quieten process
45285 2013-05-11 Dmitry V. Levin <ldv@altlinux.org>
45288 * linux/mips/syscallent-o32.h: Add entries for getpmsg, putpmsg,
45289 get_mempolicy, set_mempolicy and vserver. Fix names for umount,
45293 2013-05-10 Dmitry V. Levin <ldv@altlinux.org>
45296 * linux/mips/syscallent-n64.h: Add entries for get_mempolicy,
45297 set_mempolicy and timerfd syscalls. Fix entry for socket syscall.
45298 Fix names for pread64, pwrite64, shmat, rt_sigsuspend, sigaltstack
45302 * linux/mips/syscallent-n32.h: Add entries for mbind, get_mempolicy,
45303 set_mempolicy and timerfd syscalls. Fix entry for socket syscall.
45304 Fix handlers for truncate, ftruncate and getdents64 syscalls.
45305 Fix names for pread64, pwrite64, shmat, rt_sigsuspend, sigaltstack,
45308 2013-05-08 Dmitry V. Levin <ldv@altlinux.org>
45318 * linux/mips/syscallent-o32.h: Likewise.
45330 Add syscall entries for new linux syscalls.
45331 * linux/dummy.h: Add printargs aliases for sys_finit_module, sys_kcmp
45333 * linux/alpha/syscallent.h: Add entries for process_vm_readv
45336 * linux/arm/syscallent.h: Add entries for sync_file_range2, kcmp
45338 * linux/hppa/syscallent.h: Add entries for process_vm_readv,
45342 * linux/ia64/syscallent.h: Add entry for finit_module.
45343 * linux/i386/syscallent.h: Add entries for kcmp and finit_module.
45347 * linux/mips/syscallent-n32.h: Likewise.
45348 * linux/mips/syscallent-n64.h: Likewise.
45349 * linux/mips/syscallent-o32.h: Likewise.
45357 * linux/s390/syscallent.h: Add entries for s390_runtime_instr, kcmp
45360 * linux/sparc/syscallent.h: Add entries for kern_features, kcmp
45364 * tests/net-accept-connect.c: Fix address length passed to bind()
45368 tests: add a test for basic network syscalls.
45369 * tests/.gitignore: Add net-accept-connect, *.o and *.log.*.
45371 (check_PROGRAMS): Add net-accept-connect.
45373 * tests/net-accept-connect.c: New file.
45381 * tests/strace-f: Likewise.
45383 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45402 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45411 2013-05-07 Mike Frysinger <vapier@gentoo.org>
45422 2013-05-07 James Hogan <james.hogan@imgtec.com>
45426 naming of it for metag to allow the stat test to pass.
45430 2013-05-07 James Hogan <james.hogan@imgtec.com>
45439 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45443 personality. For 64bit and ilp32 it equals to 4, for unaligned
45444 32bit it equals to 5, and for aligned 32bit it equals to 6.
45449 * linux/mips/syscallent-n32.h: Likewise.
45450 * linux/mips/syscallent-n64.h: Likewise.
45459 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45463 personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit
45464 it equals to 5, and for aligned 32bit it equals to 6.
45470 * linux/mips/syscallent-n32.h: Likewise.
45471 * linux/mips/syscallent-n64.h: Likewise.
45482 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45486 and personality. For 64bit and ilp32 it equals to 2, for unaligned
45487 32bit it equals to 3, and for aligned 32bit it equals to 4.
45498 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45502 personality. For 64bit and ilp32 it equals to 4,
45503 for 32bit it equals to 6.
45508 * linux/mips/syscallent-n32.h: Likewise.
45509 * linux/mips/syscallent-n64.h: Likewise.
45517 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45521 personality. For 64bit and ilp32 it equals to 4, for unaligned
45522 32bit it equals to 5, and for aligned 32bit it equals to 6.
45524 The number of fadvise64_64 arguments is 4 for 64bit and ilp32, for
45525 unaligned 32bit and most of aligned 32bit it equals to 6, and for
45534 * linux/mips/syscallent-n32.h: Likewise.
45537 * linux/mips/syscallent-o32.h: Change the number of fadvise64_64
45547 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45554 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45560 * linux/mips/syscallent-compat.h: New file.
45561 * linux/mips/syscallent-n32.h: Likewise.
45562 * linux/mips/syscallent-n64.h: Likewise.
45563 * linux/mips/syscallent-o32.h: Likewise.
45567 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45571 personality. For 64bit and ilp32 it equals to 3, for unaligned 32bit it
45572 equals to 4, and for aligned 32bit it equals to 5.
45586 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45593 2013-05-06 Chris Zankel <chris@zankel.net>
45602 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45605 * linux/aarch64/syscallent1.h: Fix syscall flags for send.
45606 * linux/alpha/syscallent.h: Fix syscall flags for fchdir, getcwd,
45608 * linux/arm/syscallent.h: Fix syscall flags for close, creat, dup, dup2,
45613 * linux/avr32/syscallent.h: Fix syscall flags for inotify_init and
45615 * linux/bfin/syscallent.h: Fix syscall flags for pread64 and pwrite64.
45616 * linux/hppa/syscallent.h: Fix syscall flags for fchdir, flistxattr,
45618 * linux/ia64/syscallent.h: Fix syscall flags for creat, fchdir,
45619 lstat, umount, uselib, and utimes. Fix syscall handlers for
45621 * linux/m68k/syscallent.h: Fix syscall flags for close, creat, dup,
45626 * linux/metag/syscallent.h: Fix syscall flags for fanotify_init,
45628 * linux/microblaze/syscallent.h: Fix syscall flags for close, creat,
45633 * linux/mips/syscallent.h: Fix syscall flags for close, creat, dup,
45639 * linux/or1k/syscallent.h: Fix syscall flags for fchdir and quotactl.
45640 * linux/powerpc/syscallent.h: Fix syscall flags for fchdir.
45641 * linux/sh/syscallent.h: Fix syscall flags for getcwd.
45642 * linux/sparc/syscallent.h: Fix syscall flags for getresgid, getresuid,
45644 * linux/xtensa/syscallent.h: Fix syscall flags for close, creat, dup,
45655 2013-05-06 Chris Metcalf <cmetcalf@tilera.com>
45657 tests/stat: support fstatat syscall for stat()
45660 Support seeing this output in the 'strace -efile' test.
45662 As part of this change, use "grep -E -x" syntax consistently for
45667 that use fstatat instead. Use "grep -E -x" syntax consistently.
45669 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45671 ARM OABI: fix 64-bit arguments decoding.
45673 see commit v4.6-11-g7a5b08f for details.
45678 2013-05-06 Mike Frysinger <vapier@gentoo.org>
45682 printllval list for this.
45684 Normally for sys_fadvise64_64 we'd handle the same list of arches, but
45685 mips/o32 ABI is funky and doesn't shift -- it has 7 args. So just add
45691 2013-05-06 Chris Metcalf <cmetcalf@tilera.com>
45695 the logic for parsing subcalls.
45700 2013-05-06 Mike Frysinger <vapier@gentoo.org>
45704 (it has dedicated syscalls broken out), so disable the logic for it.
45709 2013-05-05 Mike Frysinger <vapier@gentoo.org>
45712 * linux/s390/syscallent.h: Change nargs to 3 for truncate64/ftruncate64.
45714 2013-05-05 Mike Frysinger <vapier@gentoo.org>
45724 2013-05-04 Dmitry V. Levin <ldv@altlinux.org>
45731 2013-05-04 Mike Frysinger <vapier@gentoo.org>
45733 Fix building for sparc64 targets.
45736 Fix building for mips n64 targets.
45739 2013-05-03 Dmitry V. Levin <ldv@altlinux.org>
45744 arm, aarch64, ppc: fix printllval-based decoders.
45747 * file.c (sys_fadvise64_64) [ARM || POWERPC]: Remove no longer needed
45751 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45755 doing. Not entirely sure about the decoding of UBI_IOCVOLUP -- it takes
45767 * linux/ubi-user.h: Import from linux 3.8.
45769 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45782 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45784 test: include headers for used funcs.
45786 don't include the right header for them.
45788 * test/Makefile: Add -Wall to CFLAGS.
45796 2013-05-02 Dmitry V. Levin <ldv@altlinux.org>
45798 ia64: fix compilation warnings introduced by commit v4.7-174-g44f0ed1.
45802 Reported-by: Mike Frysinger <vapier@gentoo.org>
45804 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45813 2013-05-02 Dmitry V. Levin <ldv@altlinux.org>
45818 x32: fix printllval-based decoders of i386 syscalls.
45821 tests: add basic test for ftruncate, lseek and stat family syscalls.
45825 2013-05-01 Dmitry V. Levin <ldv@altlinux.org>
45827 x32: fix build regressions introduced by commit v4.7-96-g8435d67.
45828 * desc.c (printflock) [X32]: Add special handling required for
45837 * linux/x32/syscallent.h: Fix handlers for truncate and ftruncate.
45855 2013-05-01 James Hogan <james.hogan@imgtec.com>
45864 2013-05-01 James Hogan <james.hogan@imgtec.com>
45872 2013-05-01 Mike Frysinger <vapier@gentoo.org>
45875 This is a 64bit arch w/no personalities, so fix printing.
45878 main(){readahead(-1, (unsigned long long)1 << 50, 0);}
45880 $ ./strace -ereadahead ./a.out
45881 readahead(-1, 1125899906842624, 0) = -1 EBADF (Bad file descriptor)
45885 2013-05-01 Mike Frysinger <vapier@gentoo.org>
45888 Building with automake-1.13 throws an error:
45894 2013-04-30 Dmitry V. Levin <ldv@altlinux.org>
45896 build: introduce git-version-gen.
45900 $(distdir)/.tarball-version files.
45904 * configure.ac (AC_INIT): Use git-version-gen.
45905 (AM_INIT_AUTOMAKE): Remove check-news.
45906 * git-version-gen: Import from gnulib.
45907 * make-dist: Check NEWS.
45913 build: fix "make dist" regression introduced by commit v4.7-105-g7270de5
45917 build: fix "make dist" regression introduced by commit v4.7-29-g17e3860.
45918 * Makefile.am (EXTRA_DIST): Add linux/ioctlent-filter.awk.
45920 2013-04-30 Mike Frysinger <vapier@gentoo.org>
45926 2013-03-31 Zev Weiss <zev@bewilderbeest.net>
45934 2013-03-30 Andreas Schwab <schwab@suse.de>
45947 2013-03-30 Andreas Schwab <schwab@suse.de>
45953 2013-03-27 Dmitry V. Levin <ldv@altlinux.org>
45958 2013-03-25 Chris Zankel <chris@zankel.net>
45960 Add support for the XTENSA architecture.
45971 2013-03-22 Denys Vlasenko <vda.linux@googlemail.com>
45973 Add example script which builds static (possibly cross-compiled) strace.
45975 2013-03-21 Dmitry V. Levin <ldv@altlinux.org>
45977 Use 64-bit versions of stat, readdir and setrlimit functions when available
45978 strace already has a mechanism to use fopen64 for output when the 64-bit
45979 version of fopen is available on 32-bit architectures. Apply this
45980 mechanism for other three functions to make strace fully adopted for
45981 64-bit types.
45989 2013-03-20 Dmitry V. Levin <ldv@altlinux.org>
45992 struct dirent from libc should not be used for umove'ing into because it
45997 [!SH64]: Decode using an open-coded struct with 32-bit d_ino and d_off.
46000 2013-03-20 Dmitry V. Levin <ldv@altlinux.org>
46009 * linux/aarch64/syscallent1.h: Use sys_sendfile64 for sendfile decoding.
46013 * linux/hppa/syscallent.h: Use sys_sendfile64 for sendfile64 decoding.
46017 2013-03-18 Dmitry V. Levin <ldv@altlinux.org>
46020 * configure.ac: When libaio.h is available, check for
46022 * desc.c (print_common_flags): Check for HAVE_STRUCT_IOCB_U_C_FLAGS.
46023 (sys_io_submit): Check for HAVE_DECL_IO_CMD_PWRITE and
46030 2013-03-18 Maxin B. John <maxin.john@enea.com>
46033 Busybox version of timeout doesn't have --version option.
46039 2013-03-18 Dmitry V. Levin <ldv@altlinux.org>
46044 (get_regset): Implement for AARCH64, METAG, OR1K and X32.
46054 x86-64: enhance PTRACE_GETREGSET test.
46062 x86-64, x32: do not include linux/ptrace.h unnecessarily.
46074 2013-03-14 Dmitry V. Levin <ldv@altlinux.org>
46078 asm-generic/mman-common.h
46080 Reported-by: Robin Hack <hack.robin@gmail.com>
46082 2013-03-07 Denys Vlasenko <vda.linux@googlemail.com>
46084 Tweaks for -c: fixed setitimer/getitimer hack; optimized call_summary_pers()
46087 for syscalls which apparently spent less than that time in syscall.
46089 on linux-3.6.11. Which means that this hack doesn't work...
46092 _repeatedly_, by initializing one_tick to -1, not 0.
46096 Optimized call_summary_pers() a bit, by eliminating redundant tv -> float
46098 being shown as "-nan" if total CPU time spent was 0.000000
46099 (try "strace -c /bin/true").
46102 "strace -c ls -lR /usr/share >/dev/null" shows total time spent
46103 in syscalls to be only ~10..20% of what "time ls -lR /usr/share >/dev/null"
46113 2013-03-06 Denys Vlasenko <vda.linux@googlemail.com>
46115 Open-code isprint(c) and isspace(c)
46119 For example, in glibc these macros result in function call,
46120 whereas for e.g. isprint(c) just c >= ' ' && c <= 0x7e
46123 By open-coding ctype checks (we have only 4 of them)
46130 and we don't link in ctype tables (beneficial for static builds).
46132 2013-03-06 Denys Vlasenko <vda.linux@googlemail.com>
46134 Makefile: add commented-out tweak to generate link map.
46141 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46143 Fix wrongly indented closing curly brace. No code changes.
46147 2013-03-05 Dmitry V. Levin <ldv@altlinux.org>
46151 thanks to Chris Metcalf for the hint.
46158 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46160 Emit better message for ERESTARTNOHAND return.
46162 Disable STREAMS syscalls for non-SPARC.
46171 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46173 Use dynamically-sized selected[] array for -P PATH.
46181 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46183 metag,or1k: whitesace style fix. no code changes.
46186 or1k was missing TM on many memory-related syscalls
46187 sys_lookup_dcookie is 3-arg on 64-bit arches, and isn't TF
46188 sys_recvmsg is 3-arg on all arches
46189 sys_nfsservctl is 3-arg on all arches
46190 sys_timerfd_create is 2-arg on all arches
46191 sys_[f]truncate64 is 4-arg or 3-arg, never 5-arg
46196 2013-03-05 James Hogan <james.hogan@imgtec.com>
46198 Add support for Imagination Technologies Meta.
46199 Add support for Imagination Technologies Meta architecture (the
46201 Linux kernel port is in the process of being upstreamed for v3.9 so it
46206 nfsservctl appears to be set to sys_ni_syscall in asm-generic/unistd.h
46214 oldgetrlimit is just getrlimit for metag.
46216 metag doesn't directly use sys_mmap_pgoff for mmap2.
46223 2013-03-01 Denys Vlasenko <vda.linux@googlemail.com>
46225 umovestr: speed up check for NUL byte in the fetched word.
46227 2013-03-01 Dmitry V. Levin <ldv@altlinux.org>
46229 Fix trace=set regression introduced by commit v4.7-111-g9cbc15b.
46235 2013-03-01 Chris Metcalf <cmetcalf@tilera.com>
46243 2013-02-27 Denys Vlasenko <vda.linux@googlemail.com>
46245 Make -b take SYSCALL param, document it in --help and in manpage.
46246 To not waste an option letter for just one trick,
46247 extend -b to take a parameter:
46251 While at it, fixed (by removing non-Linux and stale info)
46252 and extended manpage text about -f.
46254 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46270 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46273 * pathtrace.c (upathmatch): Only NUL-terminated strings can be
46274 path-matched, so fix the umovestr return code check to filter out
46277 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46279 Fix compilation errors uncovered by -Werror=enum-compare.
46280 This fixes regression introduced by commit v4.7-111-g9cbc15b.
46285 2013-02-26 Denys Vlasenko <vda.linux@googlemail.com>
46287 Mass replace error_msg("%s", "literal") -> error_msg("literal")
46288 There is no need to print literal strings through "%s".
46291 2013-02-26 Ben Noordhuis <info@bnoordhuis.nl>
46298 It was causing syscalls that take a user-space argument to print
46310 2013-02-26 Denys Vlasenko <vda.linux@googlemail.com>
46313 With -D, strdup'ing of pathname is necessary only on NOMMU.
46316 (try "strace [-D] -b env echo HI" to see whether we detach on correct execve).
46321 2013-02-26 Denys Vlasenko <vda.linux@googlemail.com>
46323 Shorten help text - no need to show deprecated option -F.
46325 2013-02-23 Denys Vlasenko <vda.linux@googlemail.com>
46331 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46337 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46339 Fix a bug in dumpstr (no null termination). Essentially rewrote dumpstr.
46344 When dumpstr was changed to use on-stack buffer, the bug reared its ugly head.
46347 for _long_ strings.
46355 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46364 -e read=BIGNUM. As a precaution, BIGNUM should be < 2^15, but this limit
46365 can be raised with no cost for normal strace invocations.
46370 names in one-personality arches to their corresponding <foo>0 arrays,
46377 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46380 This is a preparatory mass replace patch with no code changes.
46386 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46388 Use tcp->qual_flg instead of qual_flags[] in verbose() and abbrev()
46396 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46398 Remove unused QUAL_FAULT code (was used by non-Linux code only).
46400 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46402 Use uint8_t for qual_flags[] instead of ints.
46409 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46412 By adding tcp->s_ent pointer tot syscall table entry,
46413 we can replace sysent[tcp->scno] references by tcp->s_ent.
46414 More importantly, we may ensure that tcp->s_ent is always valid,
46415 regardless of tcp->scno value. This allows us to drop
46416 SCNO_IS_VALID(tcp->scno) checks before we access syscall
46419 We can optimize (qual_flags[tcp->scno] & QUAL_foo) checks
46431 in tcp->qual_flg.
46433 Use tcp->s_ent instead of sysent[tcp->scno].
46434 * process.c (sys_prctl): Use tcp->s_ent->nargs instead of tcp->u_nargs.
46436 * strace.c (init): Add compile-time check that DEFAULT_QUAL_FLAGS
46438 * syscall.c (decode_socket_subcall): Use tcp->s_ent->nargs
46439 instead of tcp->u_nargs. Set tcp->qual_flg and tcp->s_ent.
46441 (printargs): Use tcp->s_ent->nargs instead of tcp->u_nargs.
46445 If !SCNO_IS_VALID, set tcp->s_ent and tcp->qual_flg to default values.
46446 (internal_fork): Use tcp->s_ent instead of sysent[tcp->scno].
46448 Use tcp->s_ent instead of sysent[tcp->scno].
46452 Use tcp->s_ent instead of sysent[tcp->scno].
46453 (trace_syscall_entering): Use (tcp->qual_flg & UNDEFINED_SCNO) instead
46454 of SCNO_IS_VALID check. Use tcp->s_ent instead of sysent[tcp->scno].
46458 * util.c (setbpt): Use tcp->s_ent instead of sysent[tcp->scno].
46460 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46462 ARM: make it one-personality arch.
46465 We had two personalities for it because it has a handful of
46472 just for these syscalls.
46474 But multi-personality arch does a bit more work in other parts.
46484 * defs.h: Remove multi-reprsonality defines from ARM.
46497 2013-02-20 Denys Vlasenko <vda.linux@googlemail.com>
46499 arm: shorten syscall table for EABI - no point in storing NULL entries.
46508 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46511 With constant current_wordsize == 4 and 32-bit longs,
46516 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46518 Improve comment text. No code changes.
46520 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46529 make a malloced copy instead. Explain "NOMMU + -D bug"
46532 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46534 Make it possible to to do test builds for NOMMU architectures.
46535 And while using it, I discovered that -D doesn't work too well
46538 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46542 of decoding mmap. For example, sys_old_mmap is "params in memory"
46555 and one outlier for S390.
46558 For example, BFIN has no old_mmap. It returns ENOSYS.
46559 I checked kernel sources for all arches nad fixed the tables.
46561 There was dead code for x86_64 for old_mmap:
46562 x86_64 has no old_mmap.
46586 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46589 No wonder that it is unused.
46594 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46611 architectural ABI for the given syscall. There are usually
46612 *at most* two permutations, no need to add yet another variable
46633 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46636 * mem.c (sys_mmap): Ensure unsigned expansion of tcp->u_arg[5].
46637 Add page shift of offset for I386.
46638 Use tcp->ext_arg[5] as offset for X32.
46644 (print_mmap): Make offset argument unsigned, for safer implicit conversions.
46649 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46654 on !HAVE_LONG_LONG systems we won't build for some time now.
46660 (printllval): Add compile-time error check for using wrong
46662 types for printf formats.
46664 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46673 * file.c: Make whence_codes[] non-static.
46676 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46678 Remove wrong x32-specific lseek.
46679 Testing confirmed what I suspected: x32 lseek uses kernel-sized
46680 (i.e. wide) long for offset parameter.
46687 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46696 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46701 For now, add comments, and optimize out one tprints() call...
46708 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46710 Cosmetic fixes to syscall tables, no code changes.
46712 2013-02-16 Denys Vlasenko <vda.linux@googlemail.com>
46727 * defs: Rename regs -> sparc_regs.
46729 * syscall.c: Rename regs -> sparc_regs, regs -> avr32_regs.
46733 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46735 Use the same type for i386_regs on 32-bit and 64-bit x86.
46736 * defs.h: Stop including <asm/ptrace.h> for x86.
46743 TCB_WAITEXECVE define was removed for Tile.
46745 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46747 x86: zero-extend 32-bit args in syscall entry instead of sign-extension.
46748 Zero-extension is slightly more common that sign-extension:
46749 all pointers are zero-extended, and some other params are unsigned.
46752 _32-bit ints_ even by kernel, so just unconditionally casting
46753 such tcp->u_arg[N] to int works.
46755 * syscall.c (get_syscall_args): [X86] Zero-extend 32-bit args
46756 instead of sign-extension.
46758 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46762 * signal.c (sys_kill): Use it instead of open-coding it.
46766 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46782 (set_personality): Set current_wordsize only if non-constant.
46784 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46789 2013-02-14 Denys Vlasenko <vda.linux@googlemail.com>
46791 x86: fix required kernel version for GETREGSET.
46794 Whitespace fix, no code changes.
46796 2013-02-14 Christian Svensson <blue@cmd.nu>
46798 Add support for the OpenRISC 1000 platform.
46804 * syscall.c: Added or1k_io iovec for or1k GETREGSET,
46805 regset structure for or1k.
46806 (printcall): Added handling for or1k.
46812 * util.c (change_syscall): Added dummy handling for or1k.
46815 2013-02-14 Denys Vlasenko <vda.linux@googlemail.com>
46818 Unlike PTRACE_GETREGS, this new method detects 32-bit processes
46825 * strace.c: Make os_release non-static, remove KERNEL_VERSION define.
46838 2013-02-13 Denys Vlasenko <vda.linux@googlemail.com>
46841 This makes it easier to grep for them.
46844 r0 -> bfin_r0,alpha_r0,sh_r0.
46845 a3 -> mips_a3.
46846 r2 -> mips_r2.
46851 2013-02-13 Denys Vlasenko <vda.linux@googlemail.com>
46864 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46866 Unify representations of struct user fields for subarchitectures.
46874 Remove hacks for old kernels for architectures which require new kernels
46875 * util.c (change_syscall): For MICROBLAZE, replace code
46877 for this architecture.
46879 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46881 Remove stray syscall result reading code on syscall entry for s390.
46883 I can't run-test it, but from code inspection it seems to be correct.
46885 * syscall.c (get_scno): Remove stray syscall result reading for s390[x].
46887 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46895 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46897 Remove hacks for old kernels for architectures which require new kernels
46898 * defs.h: Do not define TCB_WAITEXECVE for AARCH64.
46899 * util.c (change_syscall): For AARCH64 and X32, replace code
46901 for these architectures.
46903 Remove old kernel hacks for architectures which require new kernels.
46904 * defs.h: Do not define TCB_WAITEXECVE for AVR32, BFIN and TILE.
46905 * util.c (change_syscall): For AVR32, BFIN and TILE, replace code
46907 for these architectures.
46909 Handle recv[m]msg for non-native 32-bit personality syscalls.
46911 read 32-bit struct msghdr and expand it into a native one before using it.
46912 (printmmsghdr): Likewise for struct mmsghdr.
46914 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46916 Fix is_negated_errno() check for X32.
46917 X32's return value is 64-bit. We were truncating it to 32-bit long
46918 before checking for -errno.
46921 (get_error): Use is_negated_errno_x32 for X32 architecture.
46923 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46932 Move PTRACE_xxx compat defines up, before arch-specific
46938 2013-02-11 Denys Vlasenko <vda.linux@googlemail.com>
46940 Preparatory patch for "new" x86 personality detection.
46947 Explain 64-bit check in X32 build better.
46949 2013-02-09 Dmitry V. Levin <ldv@altlinux.org>
46959 Reported-by: kawillia@ucalgary.ca
46961 2013-02-09 Mike Frysinger <vapier@gentoo.org>
46973 (nil), 0, 0x7fffe23c3960, 8}) = -1 EACCES (Permission denied)
46975 Since passing NULL for the old values is valid, handle that explicitly.
46980 …_sysctl({{CTL_NET, NET_IPV4, NET_IPV4_LOCAL_PORT_RANGE, 38}, 3, NULL, 0, 0x7fff8c0c91b0, 8) = -1 E…
46984 executed. Fix the format strings so we use %lu for unsigned long rather
46987 2013-02-08 Denys Vlasenko <vda.linux@googlemail.com>
46993 * net.c: Remove test for glibc >= 2.1.
46994 * signal.c: Remove code which is compiled only for glibc < 2.1.
46997 2013-02-08 Denys Vlasenko <vda.linux@googlemail.com>
47008 Remove vestigial hacks around non-Linux struct sigactions.
47014 2013-02-08 Denys Vlasenko <vda.linux@googlemail.com>
47016 Optimize AArch64 handling of 32-bit personality.
47019 No need to check and change personality on syscall exit.
47024 (printcall): Add commented-out PC printing.
47025 (get_regs): Remove now-unnecessary 64-to-32 bits register copying.
47028 2013-02-07 Denys Vlasenko <vda.linux@googlemail.com>
47031 This makes it easier to grep for them.
47035 r8,r10 -> ia64_r8,ia64_r10.
47036 d0 -> m68k_d0.
47037 a3 -> alpha_a3.
47038 r28 -> hppa_r28.
47039 r9 -> sh64_r9.
47040 r10 -> cris_r10.
47041 r3 -> microblaze_r3.
47047 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47050 Compile-tested.
47061 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47068 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47070 Shortcut tests for fork/exec syscalls.
47074 fork and exec fixups are not necessary for any reasonably
47088 2013-02-05 Ben Noordhuis <info@bnoordhuis.nl>
47098 2013-02-05 Chris Metcalf <cmetcalf@tilera.com>
47106 2013-02-05 Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
47115 2013-02-05 Dmitry V. Levin <ldv@altlinux.org>
47117 Print 64-bit instruction pointers zero padded.
47118 * syscall.c (printcall): Print 64-bit instruction pointers zero padded.
47123 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
47125 Simple bug fix for x86_86.
47128 2013-02-05 Chris Metcalf <cmetcalf@tilera.com>
47134 <asm/unistd.h> numbering space for system calls.
47137 struct pt_regs tile_regs for efficiency. Provide compat 32-bit
47143 * linux/tile/syscallent.h: Update with new asm-generic syscalls.
47145 to LKML, which subsequently was changed to use <asm-generic/unistd.h>.
47147 * mem.c (addtileflags) [TILE]: use %ld properly for a "long" variable.
47163 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
47165 Small optimization for SPARC[64] get_scno.
47170 * syscall.c (getrval2): Do not compile it for architetures where
47173 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
47175 Optimize out PTRACE_PEEKUSER with -i.
47176 strace -i was fetching PC with a separate PEEKUSER
47192 * defs.h: Declare extern struct pt_regs regs for SPARC[64] and ARM.
47199 if available on the arch, instead of re-fetching it.
47205 2012-12-15 Stanislav Brabec <sbrabec@suse.cz>
47209 architectures. sys_semtimedop parser was fixed for s390 by commit
47210 v4.6-177-ge0f5fd8, and s390x requires the same fix.
47214 2012-12-08 Dmitry V. Levin <ldv@altlinux.org>
47220 2012-12-08 Stanislav Brabec <sbrabec@suse.cz>
47225 tcp->u_arg[4] and not tcp->u_arg[5]. Fortunately, tcp->u_arg[5] now
47245 2012-12-06 John Spencer <maillist-strace@barfooze.de>
47251 2012-11-29 James Hogan <james.hogan@imgtec.com>
47255 instead of read-modify-writing the whole register set. This function is
47257 certain architectures like SPARC will also be doing a read-modify-write.
47263 [SPARC || SPARC64] Change to set state->u_regs[U_REG_G1] rather than
47264 read-modify-writing it with PTRACE_GETREGS and PTRACE_SETREGS.
47267 2012-11-12 Steve McIntyre <steve.mcintyre@linaro.org>
47269 Add support for tracing 32-bit ARM EABI binaries on AArch64.
47290 2012-11-12 Dmitry V. Levin <ldv@altlinux.org>
47292 Move asm-generic ioctl definitions to linux/ioctlent.h.in.
47293 * linux/ioctlent.h.in: Add asm-generic ioctl entries from all
47295 * linux/bfin/ioctlent.h.in: Remove asm-generic ioctl entries.
47301 2012-10-27 Dmitry V. Levin <ldv@altlinux.org>
47304 * linux/ioctlent-filter.awk: New file.
47308 2012-10-26 Dmitry V. Levin <ldv@altlinux.org>
47315 2012-10-26 Steve McIntyre <steve.mcintyre@linaro.org>
47319 Add support for AArch64 in strace, tested on linux in a simulator.
47331 asm-generic/unistd.h.
47333 2012-10-26 Steve McIntyre <steve.mcintyre@linaro.org>
47335 linux: add new errno values for EPROBE_DEFER and EOPENSTALE.
47341 2012-10-26 Namhyung Kim <namhyung.kim@lge.com>
47343 Add -e trace=memory option.
47344 Add a new 'memory' category for tracing memory mapping related syscalls.
47374 2012-09-28 Mike Frysinger <vapier@gentoo.org>
47383 2012-09-28 Dmitry V. Levin <ldv@altlinux.org>
47390 $ strace -o'|:' pwd
47394 hangup is certainly not the best solution for the issue.
47398 2012-09-28 Dmitry V. Levin <ldv@altlinux.org>
47406 2012-09-27 Denys Vlasenko <vda.linux@googlemail.com>
47415 2012-09-13 Denys Vlasenko <vda.linux@googlemail.com>
47417 Trivial fixes, no code changes.
47418 * strace.c: Fix compiler warning message about tgkill - we don't use it.
47422 2012-08-24 Dmitry V. Levin <ldv@altlinux.org>
47427 2012-08-24 Mike Frysinger <vapier@gentoo.org>
47437 2012-08-16 Dmitry V. Levin <ldv@altlinux.org>
47442 2012-07-12 Dmitry V. Levin <ldv@altlinux.org>
47444 Close pipe and wait for the pipe process termination.
47446 redirected to a file or a pipe, close it and wait for the pipe
47450 differs from stderr, and wait for popen_pid termination.
47452 2012-07-10 Denys Vlasenko <vda.linux@googlemail.com>
47459 (trace): Do not check for PTRACE_EVENT_STOP1.
47461 2012-06-05 Mike Frysinger <vapier@gentoo.org>
47472 2012-05-18 Denys Vlasenko <vda.linux@googlemail.com>
47481 2012-05-16 Denys Vlasenko <vda.linux@googlemail.com>
47490 to reading into it - we want to have deterministic result
47493 2012-05-16 Denys Vlasenko <vda.linux@googlemail.com>
47495 Stop using non-standard %Zu and %Zd formats for size_t printing.
47502 2012-05-15 Denys Vlasenko <vda.linux@googlemail.com>
47505 We no longer track parent/child relationship between tracees.
47506 Therefore, we no longer suspend new tracee until parent is seen
47511 2012-05-15 Denys Vlasenko <vda.linux@googlemail.com>
47521 2012-05-15 Dmitry V. Levin <ldv@altlinux.org>
47523 Add configure --enable-gcc-Werror option.
47524 * configure.ac: New option --enable-gcc-Werror.
47526 Make x86-64 build free of artificial warnings.
47527 * signal.c (sys_sigreturn): Do not issue "no sys_sigreturn" warning
47530 2012-05-14 Dmitry V. Levin <ldv@altlinux.org>
47533 * strace.c (get_os_release): Handle "X.Y-something" utsname.release
47536 Reported-by: Bryce Gibson <bryce@gibson-consulting.com.au>
47538 2012-05-14 Denys Vlasenko <vda.linux@googlemail.com>
47542 Low risk: this code is not supposed to be used on any non-acient kernel.
47546 2012-05-05 Mike Frysinger <vapier@gentoo.org>
47552 checks for this case explicitly and will declare it as unavailable. So we
47556 util.c:738:16: error: static declaration of 'process_vm_readv' follows non-static declaration
47565 2012-05-03 Dmitry V. Levin <ldv@altlinux.org>
47568 * README-hacking: Describe documentation policy.
47570 2012-05-02 Dmitry V. Levin <ldv@altlinux.org>
47572 maint: post-release administrivia.
47573 * NEWS: Add header line for next release.
47575 Prepare for 4.7 release.
47577 * debian/changelog: 4.7-1.
47578 * strace.spec: 4.7-1.
47581 * configure.ac: Check for LO_FLAGS_AUTOCLEAR and LO_FLAGS_PARTSCAN
47587 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47589 * vsprintf.c: Check for USE_CUSTOM_PRINTF earlier.
47595 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47600 * tests/strace-f: Likewise.
47602 Reported-by: Mike Frysinger <vapier@gentoo.org>
47604 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47610 NEWS: update for release.
47613 (Portability): Add a recommendation for the minimum Linux kernel
47617 * configure.ac: Check for struct utsname.domainname field.
47621 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47624 This change complements recent fix for recvmsg decoding.
47629 (sys_sendmmsg): Call decode_mmsg with msg_len == (unsigned long) -1L.
47632 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47636 (tprint_iov): Use "(unsigned long) -1L" instead of "ULONG_MAX".
47638 (printmmsghdr, sys_sendmsg): Use "(unsigned long) -1L" instead of
47641 2012-04-28 Denys Vlasenko <vda.linux@googlemail.com>
47646 2012-04-28 Denys Vlasenko <vda.linux@googlemail.com>
47649 We often pass syscall params and other long-sized values
47654 * util.c (string_quote): Special-case only len==-1, not all len<0.
47657 2012-04-28 Denys Vlasenko <vda.linux@googlemail.com>
47660 I noticed that "hostname -d" talks over netlink and gets 20 bytes
47671 (sys_recvmsg): Call printmsghdr with data_size==tcp->u_rval.
47673 2012-04-27 Dmitry V. Levin <ldv@altlinux.org>
47675 Package strace-log-merge.
47676 * strace.spec (%files): Add strace-log-merge.
47678 2012-04-27 Mike Frysinger <vapier@gentoo.org>
47682 2012-04-27 Mike Frysinger <vapier@gentoo.org>
47690 Since on multi-personality systems this is an array of ints, cast
47695 2012-04-20 Dmitry V. Levin <ldv@altlinux.org>
47697 Update NEWS for upcoming 4.7 release.
47698 * NEWS: Update for 4.7 release.
47701 * debian/changelog: Sync with 4.5.20-2.3.
47703 * strace.spec: Sync with 4.6-2.
47705 2012-04-18 Mike Frysinger <vapier@gentoo.org>
47710 decoders for those ioctls.
47719 2012-04-18 H.J. Lu <hongjiu.lu@intel.com>
47727 * defs.h (SUPPORTED_PERSONALITIES): Set to 2 for X32.
47728 (PERSONALITY1_WORDSIZE): Set to 4 for X32.
47729 * file.c (stat64): New struct for X32.
47730 (sys_lseek32): New function for X32.
47734 (realprintstat64): New function for X32.
47737 * mem.c (sys_old_mmap): New function for X32.
47738 * pathtrace.c (pathtrace_match): Also check sys_old_mmap for X32.
47740 (get_scno): Support currpers == 1 for X32.
47741 * linux/syscall.h (sys_lseek32): New function prototype for X32.
47747 2012-04-17 H.J. Lu <hongjiu.lu@intel.com>
47753 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47762 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47765 This is needed for simplified printf, and reduces code size a bit.
47772 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47777 2012-04-16 H.J. Lu <hongjiu.lu@intel.com>
47780 * file.c (sys_lseek): Use MIPS-n32 variant also for x32
47782 2012-04-16 H.J. Lu <hongjiu.lu@intel.com>
47785 X32 support is added to Linux kernel 3.4. In a nutshell, x32 is x86-64 with
47786 32bit pointers. At system call level, x32 is also identical to x86-64,
47788 main differerence bewteen x32 and x86-64 is off_t in x32 is long long
47794 * defs.h: Set SUPPORTED_PERSONALITIES to 3 for X86_64,
47795 Set PERSONALITY2_WORDSIZE to 4 for X86_64.
47796 Add tcb::ext_arg for X32.
47797 * file.c (stat): New for X32.
47798 (sys_lseek): Use 64-bit version for X32.
47799 (printstat64): Check current_personality != 1 for X86_64.
47801 for X86_64.
47802 * mem.c (sys_mmap64): Also use tcp->u_arg for X32. Print NULL
47803 for zero address. Call printllval for offset for X32.
47804 * pathtrace.c (pathtrace_match): Don't check sys_old_mmap for
47806 * process.c (ARG_FLAGS): Defined for X32.
47812 * signal.c: Include <asm/sigcontext.h> for X32.
47813 (SA_RESTORER): Also define for X32.
47814 * syscall.c (update_personality): Support X32 for X86_64.
47822 (get_scno): Check DS register value for X32. Use
47824 * util.c (printllval): Use ext_arg for X32.
47843 2012-04-16 H.J. Lu <hongjiu.lu@intel.com>
47845 Restore tcb::u_lrval; fix lseek on MIPS-n32.
47847 for lseek parameter and return value. We need u_lrval to handle it
47848 properly. Also we shouldn't check HAVE_LONG_LONG_OFF_T for n32 lseek.
47849 This patch fixes it properly and prepares lseek for x32.
47854 for n32.
47855 * syscall.c (get_error): Set u_lrval for MIPS-n32.
47858 2012-04-06 Mike Frysinger <vapier@gentoo.org>
47862 in the embedded space), so add decoders for those ioctls.
47869 (EXTRA_DIST): Add linux/mtd-abi.h.
47871 * linux/mtd-abi.h: New file.
47873 2012-04-05 Mike Frysinger <vapier@gentoo.org>
47875 Fix indefinite hang on no-mmu systems.
47878 does not work on no-mmu systems as fork() is actually vfork() and any
47881 We might be able to make this test work on no-mmu systems with a bit
47882 of work, but easier to just disable this for the release so it works
47887 2012-03-29 Denys Vlasenko <vda.linux@googlemail.com>
47891 2012-03-27 Anton Blanchard <anton@samba.org>
47893 powerpc: Add syscall entries for direct socket system calls.
47896 2012-03-26 Dmitry V. Levin <ldv@altlinux.org>
47904 Reported-by: Fr. Br. George <george@altlinux.org>
47906 2012-03-26 Dmitry V. Levin <ldv@altlinux.org>
47908 strace-log-merge: fix file suffix calculation.
47909 * strace-log-merge: Quote file prefix to fix file suffix calculation.
47911 Reported-by: Denys Vlasenko <vda.linux@googlemail.com>
47912 Suggested-by: Andreas Schwab <schwab@linux-m68k.org>
47914 2012-03-26 Denys Vlasenko <vda.linux@googlemail.com>
47919 manpage: remove false info about -p being limited to 32 processes.
47921 Tweak help text and manpage (added -In to manpage)
47923 2012-03-25 Dmitry V. Levin <ldv@altlinux.org>
47925 printstr: check for potential integer overflow.
47926 * util.c (printstr): Check for potential integer overflow during outstr
47940 strace-log-merge: enhance usage error diagnostics.
47941 * strace-log-merge: Add --help option. Check number of arguments.
47942 Issue an error message when no strace output was merged.
47948 2012-03-23 Denys Vlasenko <vda.linux@googlemail.com>
47951 Why open-coding isdigit is a good idea?
47969 * syscall.c (qual_syscall): Open-code isdigit.
47971 (qual_signal): Open-code isdigit. Remove string copying
47972 which was done for no apparent reason.
47974 2012-03-23 Denys Vlasenko <vda.linux@googlemail.com>
47976 Reorder declarations in defs.h. No code changes.
47979 2012-03-22 Denys Vlasenko <vda.linux@googlemail.com>
47984 remember current tcb and use its ->outf and ->curcol.
47985 This allows to drop numerous "tcp->curcol = curcol" ops in trace().
47989 opened to shared log (which may be the same thing if neither -o
47990 nor -ff was specified). Let's rename it then.
47998 Rename static FILE *outf to shared_log (since it no longer caches tcp->outf).
47999 (ptrace_restart): Use current_tcp->curcol instead of curcol.
48001 Use current_tcp->outf instead of outf, current_tcp->curcol instead of curcol.
48012 2012-03-22 Denys Vlasenko <vda.linux@googlemail.com>
48015 * strace.c (droptcb): Remove outfname check in "outfname && followfork >= 2" -
48023 2012-03-21 Denys Vlasenko <vda.linux@googlemail.com>
48025 simple cleanups in defs.h. No logic changes.
48027 Renumber TCB_foo constants (smaller constants -> sometimes smaller code).
48031 Show "+++ exited..." with -C.
48032 * strace.c (trace): Show "+++ exited..." with -C too.
48033 Save tcp->curcol after PTRACE_LISTEN failure too, just in case.
48037 2012-03-21 Denys Vlasenko <vda.linux@googlemail.com>
48040 After this change, we no longer need to decide when we need
48043 Well, almost. That pesky pid-changing execve needs special treatment.
48046 While at it, fix a case of mishandled -C.
48049 (trace): Set TCB_REPRINT only for execve with changing pid.
48050 Fix mishandling of -C.
48055 2012-03-21 Denys Vlasenko <vda.linux@googlemail.com>
48057 Report some ptrace failures; nuke tcp->ptrace_errno.
48061 Before: 10533 sendto(-1, 0x804895e, 17, 0, NULL, 0 <unfinished ...>
48062 After: 10533 sendto(-1, 0x804895e, 17, 0, NULL, 0 <ptrace(SYSCALL):No such process>
48065 to be entered - process was dead at that point of time.
48068 While at it, patch removes tcp->ptrace_errno.
48070 it is not needed for ptrace error detection: I failed to execute
48076 (printleader): Remove "if (printing_tcp->ptrace_errno)..." code.
48077 (trace): Remove !tcp->ptrace_errno check, it's always true.
48079 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48085 Rename POWERPC-specific static variable result to ppc_result.
48086 * syscall.c: Rename POWERPC-specific static variable result to ppc_result.
48092 value for 0, it never returns that.
48097 Trivial tweaks. No logic changes.
48101 Make ptrace_restart() static. No code changes.
48106 2012-03-20 Dmitry V. Levin <ldv@altlinux.org>
48111 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48114 Thank you Dmitry for spotting it.
48116 * ioctl.c (compare): Partially revert last change - the new
48119 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48128 (ioctl_next_match): More readable code. No logic changes.
48130 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48134 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48141 for valid syscalls, we can replace printargs with NULL in such lines
48152 Tested to still decode undefined syscalls correctly (syscall no. 222 on i386).
48157 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48168 Make set_personality() no-op, current_personality constant zero,
48191 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48195 which we deleted when we removed non-Linux code.
48199 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48201 qemu_multiarch_testing/: a directory with scripts for build testing.
48203 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48216 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48223 * defs.h: Remove struct tcb::u_lrval member - it is never set.
48224 Remove RVAL_Lfoo constants which signify return of "long" result -
48227 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48231 is in tcp->u_lrval. But tcp->u_lrval is never set
48232 (on Linux - it used to be set on other OSes).
48238 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48243 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48247 For one, it is buggy (always shows 0 return value), and no one complains.
48258 To simplify it more, drop define and just rename sys_lseek64 ->
48268 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48272 I see no apparent reason why they have leading underscores.
48274 non-underscored ones. This is not consistent.
48280 I left "_exit" untouched for now, but the same points stand for it too:
48281 some architectures use "exit" and no one complains. So why many
48285 syscall names for _newselect, _llseek, _sysctl.
48287 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48295 Reindent case labels. No code changes.
48299 Remove unused constants. No code changes.
48308 MAP_ANON is the same as MAP_ANONYMOUS, no need to have the former.
48309 * mem.c: Do not allocate string for MAP_ANON if it is the same as
48312 Indentation and whitespace fixes. No code changes.
48316 2012-03-16 Dmitry V. Levin <ldv@altlinux.org>
48332 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48337 Fix "strace -oFILE -ff -p<nonexistant_pid>" behavior.
48338 * strace.c (newoutf): Set tcp->outf in non-ff mode too.
48340 (alloc_tcb): Renamed to alloctcb. Does not set tcp->outf anymore.
48342 (startup_attach): Do not say "interrupt to quit" in attach message -
48348 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48350 Make alloc_tcb and droptcb static. No code changes.
48358 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48372 2012-03-16 Dmitry V. Levin <ldv@altlinux.org>
48378 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48396 (sys_shmat): Use indirect_ipccall for proper return value decoding.
48404 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48407 * tests/init.sh (check_strace): Use "${parameter:-word}" shell syntax
48408 instead of "${parameter-word}".
48410 Reported-by: Mike Frysinger <vapier@gentoo.org>
48412 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48417 for targets like hppa which don't use this func.
48422 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48447 * linux/alpha/syscallent.h: Call sys_sigprocmask for osf_sigprocmask,
48451 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48456 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48459 pathtrace_select() is only called for -P FILE options,
48468 The code was also buggy, it can free non-malloced pointer.
48470 (pathmatch): Use strcmp() == 0 idiom for string equality test.
48473 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48476 "A traced process ignores SIGSTOP" - fixed, expected to be in linux-3.4.x.
48478 in an attempt to force continuation of tracing." - not needed
48479 and no longer done.
48481 - not true anymore.
48484 - not true anymore.
48492 * signal.c: Better check for SI_FROMUSER define.
48498 Clean up defs.h order. No code changes.
48499 * defs.h: Group together related declarations. No code changes.
48501 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48504 The code "os_release[0] >= '3'" is not good for any
48505 finer-grained checks such as "kernel >= 3.2.1".
48513 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48515 Experimental support for "detach on execve" feature.
48517 (init): Set detach_on_execve on -b, set skip_startup_execve if
48519 (trace): Detach from process if -b and we see PTRACE_EVENT_EXEC event.
48522 * strace.c (usage): Document -d; document that -F is deprecated.
48523 (droptcb): Print "<detached ...>" correctly for non-ff mode too.
48529 Remove extra include directives. No code changes.
48531 Other files were doing it unconditionally, so no harm done.
48542 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48555 * strace.c: Change corresponding definitions. Do the same for static
48560 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48562 Fix compiler warnings about breaking strict-aliasing rules.
48565 breaking strict-aliasing rules.
48567 Reported-by: Mike Frysinger <vapier@gentoo.org>
48569 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48574 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48579 Reported-by: Mike Frysinger <vapier@gentoo.org>
48581 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48587 Reported-by: Mike Frysinger <vapier@gentoo.org>
48589 2012-03-14 Dmitry V. Levin <ldv@altlinux.org>
48595 2012-03-13 Dmitry V. Levin <ldv@altlinux.org>
48605 (at_flags): New xlat structure, with records for all AT_* constants.
48610 2012-03-13 Dmitry V. Levin <ldv@altlinux.org>
48630 2012-03-13 Denys Vlasenko <vda.linux@googlemail.com>
48635 Make manpage mention that -p "`pidof PROG`" works.
48637 2012-03-13 Denys Vlasenko <vda.linux@googlemail.com>
48639 Fix logging for "strace -o FILE -ff test/threaded_execve" test case.
48641 thingy wasn't working properly for -ff case.
48643 * defs.h: Group log generation-related declarations together.
48648 (printleader): Change logic to fix log generation in -ff mode.
48649 (newoutf): Make check for -ff mode consistent with other places.
48650 (droptcb): Print "<detached ...>" if last line for this tcp wasn't finished.
48662 2012-03-13 Dmitry V. Levin <ldv@altlinux.org>
48667 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48669 Treat -ff without -o FILE as single -f.
48670 * strace.c (init): Treat -ff without -o FILE as single -f.
48672 Style fix. No code changes.
48675 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48678 main() uses ~0.5k of stack for local variables and such. When we enter
48679 main tracing loop, most of these variables are no longer used.
48680 But they still take up stack for the entire life of strace.
48684 * strace.c (init): New function. Most of pre-existing code of
48688 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48690 Preparatory cosmetic changes for the next commit.
48691 * strace.c (tprintf): Move function up in the source file. No code changes.
48696 2012-03-11 Dmitry V. Levin <ldv@altlinux.org>
48736 Sort definitions of dummy parsers. No code changes.
48750 2012-03-10 Dmitry V. Levin <ldv@altlinux.org>
48756 strace-log-merge: cleanup.
48757 * strace-log-merge: Redirect usage to stderr, make the check
48758 for numeric suffix simpler.
48760 Add syscall entries for new linux syscalls.
48764 * linux/alpha/syscallent.h: Add entries for accept4 and sendmmsg.
48765 * linux/arm/syscallent.h: Add entries for process_vm_readv and
48774 * linux/ia64/syscallent.h: Add entries for process_vm_readv,
48776 * linux/microblaze/syscallent.h: Add entries for sendmmsg,
48787 2012-03-09 Dmitry V. Levin <ldv@altlinux.org>
48796 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48801 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48803 Don't consider PROG to be our child in "strace -D PROG" case.
48804 TCB_STRACE_CHILD is used for the case when "strace PROG" is ^C-ed
48805 or something like that. strace should not just exit - it should
48808 In -D case, PROG is not really a child of _strace_, it is a child
48811 While we are at it, remove nonsensical special-casing of TCB_STRACE_CHILD
48814 * strace.c (startup_attach): Don't set TCB_STRACE_CHILD if -D.
48817 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48821 $ strace -D -p1
48822 strace: -D and -p are mutually exclusive options
48827 * strace.c (kill_save_errno): Move up. No code changes.
48830 Set TCB_STRACE_CHILD on -D.
48833 If we are in -D case, don't set TCB_ATTACHED (we aren't attached yet).
48838 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48843 install strace-log-merge by "make install"
48845 strace_log_merge: new file. Helper to merge timestamped strace -ff logs.
48847 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48849 Fix PID prefix printing in "strace -oLOG -ff -p1 -p2 -p3" case.
48861 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48863 Allow -p PID to take comma or whitespace-separated list of PIDs.
48864 * defs.h: Clarify meaning of TCB_ATTACHED. No code changes.
48866 (main): Call process_opt_p_list to process -p PIDs argument.
48868 2012-03-08 Denys Vlasenko <vda.linux@googlemail.com>
48872 We no longer set tcp->ptrace_errno = ESRCH on ESRC error in upeek.
48874 checks tcp->ptrace_errno even assumes it is never set to ESRCH.
48882 I have no idea why we were passing 1. Ptrace documentation says
48888 2012-03-08 Denys Vlasenko <vda.linux@googlemail.com>
48901 2012-02-28 Denys Vlasenko <vda.linux@googlemail.com>
48910 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48912 Correct syscall entries for t[g]kill.
48914 * linux/sh/syscallent.h: Change tkill type TD -> TS.
48916 * linux/mips/syscallent.h: Change tkill type 0 -> TS.
48920 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48933 repeatedly - cache it in local variable instead.
48941 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48950 * desc.c (sys_epoll_create): Call printargs_ld() instead of open-coding it.
48962 (sys_getpgrp): Delete this function: was unused - was already shadowed
48967 * linux/dummy.h: Define new aliases (see above for the list).
48971 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48973 Style fixes, no code changes.
48981 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
48986 "cat -s".
48988 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
48992 for non-Linux architectures.
48994 * Makefile.am: Don't install PORTING file. Install README-linux-ptrace file.
48997 Remove checks for headers which are never present on Linux.
49001 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
49005 for non-Linux architectures.
49013 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49016 This change is abapted from Dmitry's changes to remove support for
49017 non-Linux architectures.
49028 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49030 Build fixes after non-Linux code removal.
49031 * configure.ac: Remove calls to proc-based ptrace checks.
49051 automatic removal of non-Linux code. Fix style to use consistent
49056 automatic removal of non-Linux code. Fix style to use consistent
49061 automatic removal of non-Linux code.
49063 Cleanup after non-Linux code removal.
49067 Another trivial changes here are fixes for directive indentation.
49069 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49071 Manual removal of non-Linux source, documentation, etc.
49072 Remove non-Linux source directories: freebsd/, svr4/, sunos4/, svr4/.
49073 Remove README-freebsd, README-sunos4, README-svr4, m4/procfs.m4.
49075 linux/sparc/{errnoent1,ioctlent1,signalent1}.h used to point to svr4/ files -
49081 configure.ac: Remove a few tests which make no sense on Linux.
49082 Man page: remove non-Linux quirks information.
49084 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49086 Automated removal of non-Linux code.
49089 unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD
49090 -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS
49091 -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c
49093 2012-02-24 Denys Vlasenko <vda.linux@googlemail.com>
49098 2012-02-22 Dmitry V. Levin <ldv@altlinux.org>
49113 2012-02-20 Dmitry V. Levin <ldv@altlinux.org>
49118 * process.c [IA64]: Replace known_scno(tcp) with tcp->scno.
49123 with tcp->scno.
49128 * linux/i386/syscallent.h: Remove native_scno initialization for clone,
49134 (setbpt): Use sys_func to check for clone, fork and vfork syscalls.
49140 * linux/i386/syscallent.h: Remove native_scno initialization for "ipc"
49143 (SYS_ipc, SYS_socketcall): Remove no longer used constants.
49148 * syscall.c (trace_syscall_entering): Use sys_func to check for ipc and
49151 2012-02-20 Dmitry V. Levin <ldv@altlinux.org>
49153 Remove initialization of native_scno field for most of syscalls.
49155 In many cases sys_func is checked instead, and for most of syscall
49156 entries there is no need to initialize native_scno.
49158 * linux/i386/syscallent.h: Remove native_scno initialization for
49162 * linux/syscall.h: Do not define no longer used SYS_waitid and
49165 * defs.h: Do not define no longer used __NR_exit_group constant.
49166 * strace.c [USE_PROCFS] (proc_open): Use sys_func to check for execve.
49168 2012-02-14 Mike Frysinger <vapier@gentoo.org>
49170 util: check for process_vm_readv in C library.
49171 glibc-2.15 provides process_vm_readv, so trying to provide it ourselves
49177 2012-02-09 Denys Vlasenko <vda.linux@googlemail.com>
49179 README-linux-ptrace: correct the description of suppressed signals.
49181 2012-02-06 Dmitry V. Levin <ldv@altlinux.org>
49183 strace -P: fix handling of invalid syscalls.
49187 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49192 There are no targets with holey systent tables so far, but at least
49197 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49202 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49204 Cast to long for %l in printf.
49205 Cast a value to long for %l in printf to avoid compiler warning
49214 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49223 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49233 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49235 Print NULL for zero address in sys_mmap64.
49236 * mem.c (sys_mmap64): Print NULL for zero address so that it is
49239 2012-02-04 Dmitry V. Levin <ldv@altlinux.org>
49252 2012-02-03 Denys Vlasenko <vda.linux@googlemail.com>
49254 Trivial changes to help text. No code changes.
49256 make -V and -h sit on separate lines (hard to see them otherwise).
49258 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49270 * strace.c (startup_child): Don't strchr() for ':' twice in a row.
49273 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49278 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49280 Make interactive-ness directly controllable via command line option.
49286 Define INTR_foo constants for its possible values.
49288 (usage): Document -I n option.
49289 (main): Parse -I n option, modify signal handling to accomidate new
49290 -I 1 and -I 4 modes.
49292 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49297 On Ctrl-C induced detach, send SIGINT to child tracee, not SIGTERM.
49301 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49307 If USE_SEIZE is enabled and run-time check shows that PTRACE_SEIZE works, then:
49308 - All attaching is done with PTRACE_SEIZE + PTRACE_INTERRUPT.
49309 This means that we no longer generate (and possibly race with) SIGSTOP.
49310 - PTRACE_EVENT_STOP will be generated if tracee is group-stopped.
49315 * defs.h: Add commented-out "define USE_SEIZE 1" and define PTRACE_SEIZE
49331 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49341 * time.c (sys_nanosleep): Fix bug - inverted is_restart_error() check.
49344 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49350 For example, in order to print fstat syscall, we need to perform
49361 Result of "time strace -oLOG ls -l /usr/lib >/dev/null":
49366 (umoven): Use process_vm_readv for block reads of tracee memory.
49369 * process.c (sys_process_vm_readv): Decoder for new syscall.
49374 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49383 (trace): Fix checks for incomplete line - it was working wrongly if last syscall was exit.
49390 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49419 2012-01-27 Denys Vlasenko <vda.linux@googlemail.com>
49421 Fix readlink result display - was printing bogus "..." semi-randomly.
49430 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49433 * strace.c (verror_msg): Remove redundant check for msg != NULL.
49435 More robust error check for vasprintf.
49436 * strace.c (verror_msg): More robust error check for vasprintf.
49438 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49447 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49453 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49455 Allocate -o OUTFILE buffer only if needed.
49460 * strace.c (main): Allocate -o OUTFILE buffer only if needed:
49463 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49481 2012-01-21 Denys Vlasenko <vda.linux@googlemail.com>
49489 2012-01-20 Denys Vlasenko <vda.linux@googlemail.com>
49492 * pathtrace.c (upathmatch): Adjust umovestr return value check for new API.
49493 * util.c (printpathn): Use umovestr() > 0 return value for more efficient
49494 (and robust - we don't depend on "no overwrote past NUL" behavior anymore)
49497 Allocate 1 byte more to outstr[] array - for NUL.
49500 umovestr result may have no NUL, use "%.*s" instead of "%s" to print it.
49502 it may have no terminating NUL.
49505 2012-01-20 Denys Vlasenko <vda.linux@googlemail.com>
49522 for static buffer size.
49526 2012-01-19 Denys Vlasenko <dvlasenk@redhat.com>
49533 This reduces L1 D-cache pressure a bit: instead of dirtying
49536 * util.c (printpathn): Use on-stack buffers instead of static ones.
49541 2012-01-18 Andreas Schwab <schwab@linux-m68k.org>
49543 Add support for compat_statfs64.
49547 Add support for statfs64.f_flags.
49553 2012-01-18 Denys Vlasenko <dvlasenk@redhat.com>
49557 for example, using sigaction syscall, we generate
49565 not (SIGTRAP | 0x80) - I wondered maybe that's when
49568 So, why we even have TCB_SIGTRAPPED? No one knows. It predates
49570 in 1999. No adequate comments, either.
49573 and sys_sigprocmask syscalls - the ones which are most usually
49576 non-Linux code.
49578 I think whatever bug it was fixing is gone long ago -
49591 2012-01-18 Denys Vlasenko <dvlasenk@redhat.com>
49600 2012-01-18 Denys Vlasenko <dvlasenk@redhat.com>
49610 2012-01-17 Dmitry V. Levin <ldv@altlinux.org>
49612 Fix struct pt_regs declaration on i386 and x86-64.
49617 2012-01-12 Denys Vlasenko <dvlasenk@redhat.com>
49624 This change prints better explanations for these codes,
49626 codes that way - or else someone confused
49638 2012-01-10 Denys Vlasenko <dvlasenk@redhat.com>
49654 2012-01-10 Denys Vlasenko <dvlasenk@redhat.com>
49659 fetches it from the stack, saves it in tcp->u_arg[]
49660 (where it used to overflow this array - fixed sometime ago),
49666 to display the mask at the point when we fetch it - on syscall entry.
49669 I see no point in hiding it and showing uninformative "= ?" instead.
49672 which re-arms ALRM:
49677 --- {si_signo=SIGALRM, si_code=SI_KERNEL} (Alarm clock) ---
49684 --- {si_signo=SIGALRM, si_code=SI_KERNEL} (Alarm clock) ---
49686 sigreturn() (mask [INT]) = -1 EINTR (Interrupted system call)
49692 2012-01-04 Denys Vlasenko <dvlasenk@redhat.com>
49698 this no longer matches the behavior of other threads.
49712 2012-01-04 Denys Vlasenko <dvlasenk@redhat.com>
49715 * strace.c (detach): Drop sig parameter - it is zero in all calls.
49719 2011-12-26 Dmitry V. Levin <ldv@altlinux.org>
49721 Enhance decoding for personalities with small wordsize.
49726 2011-12-23 Dmitry V. Levin <ldv@altlinux.org>
49735 tcp->currpers.
49740 Reported-by: Michael A Fetterman <mafetter@nvidia.com>
49742 2011-12-01 Dmitry V. Levin <ldv@altlinux.org>
49745 Reported-by: Rick Jones <rick.jones2@hp.com>
49747 2011-12-01 Heiko Carstens <heiko.carstens@de.ibm.com>
49756 semtimedop(0, 0x3ffffb43832, 1, {...}) = -1 EAGAIN
49760 semtimedop(0, 0x3ffffc2c842, 1, {0, 10000000}) = -1 EINTR
49764 2011-11-29 Dmitry V. Levin <ldv@altlinux.org>
49768 2011-11-28 Dmitry V. Levin <ldv@altlinux.org>
49784 * linux/dummy.h: Add aliases for sys_chroot, sys_dup, sys_pivotroot,
49787 * sunos4/dummy.h: Add aliases for sys_chroot, sys_dup, sys_fchdir,
49798 2011-11-27 Dmitry V. Levin <ldv@altlinux.org>
49801 * linux/x86_64/syscallent.h: Add syscall entry for getcpu.
49803 2011-11-26 Dmitry V. Levin <ldv@altlinux.org>
49805 Add syscall entries for new linux syscalls.
49806 * linux/dummy.h: Add printargs parsers for new syscalls.
49807 * linux/arm/syscallent.h: Add entries for sys_clock_adjtime,
49818 * linux/alpha/syscallent.h: Add entries for sys_clock_adjtime,
49824 * linux/avr32/syscallent.h: Add entry for sys_setns.
49825 * linux/bfin/syscallent.h: Add entries for sys_sendmmsg and sys_setns.
49826 * linux/hppa/syscallent.h: Add entries for sys_clock_adjtime,
49835 * linux/arm/syscallent.h: Fix handlers for io_setup, io_destroy,
49845 2011-11-25 Dmitry V. Levin <ldv@altlinux.org>
49988 2011-11-05 Dmitry V. Levin <ldv@altlinux.org>
49990 gitlog-to-changelog: update from gnulib.
49991 * gitlog-to-changelog: Update from gnulib.
49992 * Makefile.am: Add --append-dot to gitlog-to-changelog invocation.
49994 2011-10-22 Denys Vlasenko <dvlasenk@redhat.com>
49999 2011-10-14 Dmitry V. Levin <ldv@altlinux.org>
50001 Remove useless and obsolete "#if DONE" sections. No code changes.
50008 Add names for dummy parsers. No code changes.
50009 * linux/dummy.h: Add aliases to printargs() for those of dummy parsers
50010 that had no own names before.
50013 Sort definitions of dummy parsers. No code changes.
50017 2011-10-14 Mike Frysinger <vapier@gentoo.org>
50023 Reported-by: Марк Коренберг <socketpair@gmail.com>
50025 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50035 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50041 Reported-by: Марк Коренберг <socketpair@gmail.com>
50043 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50048 Reported-by: Марк Коренберг <socketpair@gmail.com>
50050 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50055 Reported-by: Weichuan Yan <wchyan@marvell.com>
50057 2011-09-05 Denys Vlasenko <dvlasenk@redhat.com>
50059 Do post-attach initialization earlier; fix "we ignore SIGSTOP on NOMMU" bug
50060 We set ptrace options when we see post-attach SIGSTOP.
50063 since SEIZE has no post-attach SIGSTOP.
50071 Fix a case when "strace -p PID" found PID dead but sone other of its threads
50075 (detach): Perform anti-SIGSTOP dance only if TCB_IGNORE_ONE_SIGSTOP is set,
50081 2011-09-05 Denys Vlasenko <dvlasenk@redhat.com>
50086 to distinquish attached from not-yet-attached threads.
50088 2011-09-05 Denys Vlasenko <dvlasenk@redhat.com>
50098 (alloc_tcb): Do not set TCB_STARTUP on tcb allocation - we are
50100 (trace): Set TCB_STARTUP when we detech an auto-attached child.
50102 2011-09-02 Denys Vlasenko <dvlasenk@redhat.com>
50110 (startup_child): Remove non-informative comment.
50113 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50118 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50121 After recent change, select(2^31-1, NULL, NULL, NULL)
50135 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50145 * desc.c (decode_select): Set tcp->auxstr as late as possible.
50147 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50149 Reformat setuid-ing code in startup_child()
50152 * strace.c (startup_child): Reformat setuid-ing code.
50154 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50199 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50201 Add README-linux-ptrace file.
50203 but got no reply. To avoid losing the document, let it live
50204 in strace tree for now.
50206 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50208 Make out-of-memory handling more uniform.
50229 * mem.c (sys_mincore): Don't check free() parameter for NULL.
50231 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50239 usage of strcat() - use stpcpy(), *outptr++ = ch, sprintf() instead.
50243 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50245 Optimize string_quote() for speed.
50246 * util.c (string_quote): Speed up check for terminating NUL.
50247 Replace strintf() with open-coded binary to hex/oct conversions -
50248 we potentially do them for every single byte, need to be fast.
50259 2011-08-30 Denys Vlasenko <dvlasenk@redhat.com>
50262 * syscall.c (syscall_enter): Optimize tcp->u_arg[i] setting
50263 from regs.FOO for AVR32.
50265 2011-08-30 Denys Vlasenko <dvlasenk@redhat.com>
50278 (syscall_enter): Set tcp->u_arg[i] from PTRACE_GETREGS results.
50279 (get_error): Set tcp->u_rval, tcp->u_error from PTRACE_GETREGS results.
50281 2011-08-30 Dmitry V. Levin <ldv@altlinux.org>
50287 2011-08-30 Dmitry V. Levin <ldv@altlinux.org>
50293 Reported-by: Steve Bennett <steveb@workware.net.au>
50295 2011-08-26 Denys Vlasenko <dvlasenk@redhat.com>
50297 Indent a large set of nested ifdefs/endifs. No code changes.
50306 * syscall.c: Eliminate static flags variable for POWERPC.
50310 for this function to get_syscall_result. Affected arches:
50314 2011-08-25 Denys Vlasenko <dvlasenk@redhat.com>
50317 * syscall.c (syscall_fixup): Remove checks for entering(tcp).
50320 if entering(tcp). Remove checks for exiting(tcp).
50328 Remove stray commas in struct initializers. No code changes.
50331 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50335 On glibc, tprintf("%*s", col - curcol, "") is noticeably slow
50340 take no parameters.
50341 * process.c (sys_exit): Call tabto() with no parameters.
50342 * syscall.c (trace_syscall_exiting): Call tabto() with no parameters.
50345 (printleader): Call tabto() with no parameters.
50348 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50350 * syscall.c (sys_indir): Use %ld for printing long, not %u.
50352 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50360 * count.c (count_syscall): Use SCNO_IN_RANGE() instead of open-coded check.
50361 * syscall.c (getrval2): Use SCNO_IN_RANGE() instead of open-coded check.
50362 This fixes a bug: missing check for scno < 0 and scno > nsyscalls
50364 (get_scno): Use SCNO_IN_RANGE() instead of open-coded check.
50366 (known_scno): Use SCNO_IN_RANGE() instead of open-coded check.
50373 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50383 Group int-sized fields together in struct tcb.
50384 * defs.h: Group int-sized fields together in struct tcb.
50386 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50388 Reorder functions in syscall.c. No code changes.
50389 Old order (basically "in no particular order"):
50434 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50436 Rename some functions, delete unused one. No code changes.
50444 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50446 Unify per-architecture post-execve SIGTRAP check.
50447 Move post-execve SIGTRAP check from get_scno_on_sysenter
50449 in trace_syscall_entering. This loosens the logic for some arches,
50451 However, on non-ancient Linux kernels we should never have post-execve
50454 * syscall.c (get_scno_on_sysenter): Remove tcp->flags & TCB_WAITEXECVE checks.
50455 (trace_syscall_entering): Do tcp->flags & TCB_WAITEXECVE check here.
50460 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50464 that post-execve SIGTRAP is disabled by PTRACE_O_TRACEEXEC ptrace option.
50474 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50476 Do not read syscall no in get_scno_on_sysexit.
50479 which should make strace faster: for example, on x64 ORIG_EAX
50480 is no longer read in each syscall exit.
50488 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50491 Currently, get_scno does *much* more than "get syscall no".
50492 It checks for post-execve SIGTRAP. It checks for changes
50494 Worse still, it is different in different architectures: for example,
50495 for AVR32 regs are fetched in get_scno(), while for e.g. I386
50501 tcp->scno! In essence, get_scno() does two completely different things
50519 2011-08-23 Dmitry V. Levin <ldv@altlinux.org>
50522 * syscall.c [LINUX] (syscall_enter): Move tcp->u_nargs initialization
50523 from arch-specific ifdefs to common code. Always cache tcp->u_nargs in
50524 a local variable and use it in for() loops.
50525 [IA64, AVR32] Rewrite tcp->u_arg[] initialization using a loop.
50527 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50529 Define MAX_ARGS to 6 for all Linux arches.
50530 * defs.h: Define MAX_ARGS to 6 for all Linux arches.
50531 * linux/ia64/syscallent.h: Change all 8-argument printargs
50533 linux/mips/syscallent.h: Change all two 7-argument printargs
50537 * mem.c (sys_mmap64): Fix a bug where we used tcp->u_args[i]
50540 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50542 Cache tcp->u_nargs in a local variable for for() loops.
50543 Loops of the form "for (i = 0; i < tcp->u_nargs; i++) ..."
50544 need to fetch tcp->u_nargs from memory on every iteration
50546 tcp->u_nargs won't change). This can be sped up
50547 by putting tcp->u_nargs in a local variable, which might
50550 * syscall.c (decode_subcall): Cache tcp->u_nargs in a local variable
50551 as for() loop limit value.
50554 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50556 Drop checks for sysent[i].nargs == -1.
50559 (decode_subcall): Drop checks for sysent[i].nargs == -1.
50562 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50564 Stop using nargs == -1 in syscallent tables.
50565 Usage -1 as argument count in syscallent tables
50566 necessitates the check for it, a-la:
50567 if (sysent[tcp->scno].nargs != -1)
50568 tcp->u_nargs = sysent[tcp->scno].nargs;
50570 tcp->u_nargs = MAX_ARGS;
50575 * freebsd/i386/syscallent.h: Replace nargs of -1 with MA.
50584 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50586 Move trace_syscall_exiting below trace_syscall_entering. No code changes.
50592 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50594 Fix -z display.
50596 open("qwerty", O_RDONLY) = -1 ENOENT
50597 write(2, "wc: qwerty: No such file or dire"..., 38) = 38
50598 was shown totally wrongly with -z:
50603 write(2, "wc: qwerty: No such file or dire"..., 38) = 38
50606 via "goto ret". This fixes totally broken display of -z, but even now
50611 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50613 Straighten up confused comments/messages about post-execve SIGTRAP handling
50616 for TCB_INSYSCALL.
50618 for TCB_INSYSCALL. Fix comments about post-execve SIGTRAP.
50620 for TCB_INSYSCALL. Add a comment what "not a syscall entry" message
50644 Cosmetic improvement in ifdefs. No code changes.
50647 Exclude tcp->pfd from non-procfs systems.
50649 * strace.c (alloc_tcb): Use tcp->pfd only if USE_PROCFS.
50681 Convert ioctl_next_match() to new-style C function definition.
50682 * ioctl.c (ioctl_next_match): Convert to new-style C function definition.
50684 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50701 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50703 Don't return int from set_personality(), no one checks it.
50710 Use natural-sized integer field for tcb::flags.
50715 * syscall.c (get_scno): For POWERPC64 and X86-64, variable currpers
50727 * freebsd/i386/syscallent.h: Correct sys_sendfile nargs 7->8
50728 * linux/mips/syscallent.h: Correct sys_sendfile64 nargs 5->4
50729 * linux/sh/syscallent.h: Correct sys_sendfile64 nargs 5->4
50730 * linux/sh64/syscallent.h: Correct sys_sendfile64 nargs 5->4
50731 * linux/m68k/syscallent.h: Correct sys_sendfile64 type TF->TD|TN
50732 * linux/microblaze/syscallent.h: Correct sys_sendfile64 type TF->TD|TN
50733 * linux/tile/syscallent.h: Correct sys_sendfile and sys_sendfile64 type TD->TD|TN
50739 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50741 Set saner MAX_ARGS (6 or 8) for X86_64 and I386.
50742 I noticed that tcp->u_args[MAX_ARGS] array is way larger than
50743 I'd expect: for all arches except HPPA it has 32 (!) elements.
50747 into tcp->u_args[1...N] on entry and prints it on exit, a-la
50749 memcpy(&tcp->u_arg[1], &sc.oldmask[0], sizeof(sigset_t))
50753 &tcp->u_args[1] even with MAX_ARGS == 32:
50754 On 32 bits, sizeof(tcp->u_args) == 32*4 == 128 bytes!
50759 thus NSIG / 8 is <= 16 bytes == 4 32-bit words,
50760 and even MAX_ARGS == 5 should be enough for saving signal masks.
50762 * defs.h: Reduce MAX_ARGS for X86_64 and I386 from 32 to 8
50763 for FreeBSD and to 6 for everyone else. Add comment about current
50769 * linux/mips/syscallent.h: Reduce nargs of printargs-type syscall to 7.
50770 * linux/arm/syscallent.h: Reduce nargs of printargs-type syscall to 6.
50780 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50783 * mem.c (sys_old_mmap): For Ia64 and 32-bit personality of x86-64,
50785 separate ones; then assign them to long u_arg[i]. For SH[64],
50786 avoid copying of tcp->u_arg.
50787 (sys_mmap): Add FIXME comment - SH64 and i386 seem to be handled
50788 differently for no apparent reason.
50791 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50793 Untangle ifdef forest in sys_mmap64. No code changes.
50796 parameters are on stack (pointed to by tcp->u_arg[0]).
50799 After this, it's apparent we use tcp->u_arg[4,5,6] and possibly
50806 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50808 Style and comment fixes, no code changes.
50816 Cosmetic fixes, no code changes.
50827 2011-08-23 Dmitry V. Levin <ldv@altlinux.org>
50839 * configure.ac: Check for BLKGETSIZE64.
50840 * block.c (block_ioctl): Check for HAVE_BLKGETSIZE64.
50842 2011-08-17 Denys Vlasenko <dvlasenk@redhat.com>
50844 Remove tcp->parent and TCB_CLONE_THREAD.
50845 tcp->parent is used for only two things:
50848 (2) to optimize out ptrace options setting for new tracees.
50855 Despite the name, there is no guarantee it is set only on non-leader:
50856 if one would run "strace -f -p THREAD_ID" and THREAD_ID is *not*
50859 since we no longer detach when we think tracee is going to die,
50860 this bug no longer matters, because we do not use the knowledge
50861 about thread group leaders for anything. (We used it to delay
50864 IOW: after this patch strace has no need to know about threads, parents
50871 * process.c (internal_fork): Don't set tcpchild->parent.
50873 TCB_CLONE_THREAD to avoid attach attempts on already-attached threads.
50878 not only when tcp->parent == NULL.
50880 2011-08-17 Denys Vlasenko <dvlasenk@redhat.com>
50883 Since we no longer suspend waitpid'ing tracees, we have only one case when
50888 new process/thread. This is ugly and not safe, but what matters for us
50898 strace can determine who is its parent (it needs child's pid for this,
50900 This is inherently racy. For example, what if SIGKILL kills
50904 But after previous commit, we DO NOT NEED parent<->child link for anything.
50908 right away. Next patch will remove tcp->parent member.
50917 2011-08-17 Denys Vlasenko <dvlasenk@redhat.com>
50933 First guess is that it's a workaround for old kernel bugs:
50938 The patch deletes the hacks. We no longer need tcp->nclone_threads,
50950 (handle_new_child): Don't ++tcp->nclone_threads.
50953 * strace.c (startup_attach): Don't tcbtab[tcbi]->nclone_threads++.
50954 (droptcb): Don't delay dropping if tcp->nclone_threads > 0,
50961 print "+++ exited with EXITCODE +++" for every WIFEXITED pid.
50962 * syscall.c (internal_syscall): Do not treat sys_exit specially -
50965 2011-08-16 Sergei Trofimovich <slyfox@gentoo.org>
50970 2011-08-15 Denys Vlasenko <dvlasenk@redhat.com>
50975 Consistently check wait errors as pid < 0, not pid == -1.
50976 Indent ifdefs for better readability.
50983 2011-07-19 Dmitry V. Levin <ldv@altlinux.org>
50985 Check for additional PTRACE_* constants.
50992 Reported-by: Douglas Mencken <dougmencken@gmail.com>
50993 Reported-by: Steve Bennett <steveb@workware.net.au>
50995 2011-07-19 Denys Vlasenko <dvlasenk@redhat.com>
50997 Remove superfluous backslash-continuation in configure.ac.
51001 2011-06-24 Denys Vlasenko <dvlasenk@redhat.com>
51009 "+++ killed by SIG +++" message for systems without WCOREDUMP macro.
51024 * strace.c (startup_attach): If -d, report pid and success/failure
51028 * strace.c (alloc_tcb): Print number of allocated tcb's if -d.
51032 ptrace event name, WCOREDUMP - all on one line.
51034 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51037 * syscall.c (syscall_enter) [BFIN]: Make register no array "static const".
51038 [SH]: Make register no array "const", pre-multiply it by 4.
51039 [SH64]: Make register no array "const".
51040 [X86_64]: Make register no array "const", pre-multiply it by 8.
51042 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51044 Deindent syscall_enter by removing unnecessary braces. No code changes.
51051 "tcp->u_nargs*sizeof..." -> "tcp->u_nargs * sizeof...".
51052 There is no actual changes to the code here.
51056 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51059 process.c defines CLONE_PTRACE for Linux, so it can't be undefined.
51066 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51068 Add a comment about setbpt. No code changes.
51071 Untangle a particularly badly obfuscated bit of code. No logic changes.
51074 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51081 and replaces checks for this bit by checks of followfork value.
51087 test followfork instead of tcp->flags & TCB_FOLLOWFORK.
51091 2011-06-23 Dmitry V. Levin <ldv@altlinux.org>
51095 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51097 Make initial tcb allocation more readable. No logic changes.
51100 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51104 for malloc failure. Resulting code decrease:
51112 for them.
51115 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51117 Use [p]error_msg[_and_die] where appropriate. No logic changes.
51126 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51128 Whitespace cleanups. No code changes.
51143 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51150 the behavior doesn't seem to be right: it means with -ff
51151 on open error for new LOGFILE.PID the output will continue
51152 to go into *the same file as the previous process* - which
51163 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51167 such as -1 or non-opened one. If we do, we have a bug
51168 in the caller. It makes no sense to try to continue
51177 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51180 It makes no sense to postpone abort on strace_popen error
51181 unti it returns. Moreover, out-of-memory error was exiting
51183 While at it, use 0 as "none" for popen_pid, as optimization.
51185 * strace: Initialize popen_pid to 0 - this puts it in bss.
51186 (trace): Reset popen_pid to 0 instead of -1.
51191 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51196 it only sets tcp->flags |= TCB_FOLLOWFORK and maybe calls
51199 This patch deletes fork_tcb(), open-coding tcp->flags |= TCB_FOLLOWFORK
51207 (internal_fork): Open-code fork_tcb.
51213 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51222 from old ones because we forgot to re-initialize it.
51224 * strace.c (expand_tcbtab): Simplify this function. No logic changes.
51227 2011-06-21 Denys Vlasenko <dvlasenk@redhat.com>
51230 * process.c (internal_fork): Remove conditionals which make no difference
51234 2011-06-21 Dmitry V. Levin <ldv@altlinux.org>
51236 Fix build when libaio-devel is not available.
51240 Reported-by: Denys Vlasenko <dvlasenk@redhat.com>
51242 2011-06-21 Dmitry V. Levin <ldv@altlinux.org>
51246 * tests/ptrace_setoptions: Check for Linux kernel > 2.6.
51248 2011-06-21 Denys Vlasenko <dvlasenk@redhat.com>
51250 Remove write-only nchildren member from struct tcb.
51252 * process.c (handle_new_child): Remove inc/decrements of tcp->nchildren.
51256 (alloc_tcb): Remove initialization of tcp->nchildren.
51260 Remove write-only nzombies member from struct tcb.
51262 * strace.c (droptcb): Remove "tcp->parent->nzombies++".
51263 (alloc_tcb): Remove "tcp->nzombies = 0".
51265 2011-06-21 Denys Vlasenko <dvlasenk@redhat.com>
51270 The check (tcp->parent == NULL) in old code was meant to check
51271 "if we are not a child created by auto-attach" - in this case,
51274 I misunderstood the check and if tcp->parent is not NULL, I was
51289 depending on "tcp->parent == NULL" condition. Add a comment
51292 2011-06-18 Denys Vlasenko <dvlasenk@redhat.com>
51296 for waitpid'ing process to collect status from.
51308 * strace.c (alloc_tcb): Do not set tcp->nclone_waiting.
51315 2011-06-13 Andi Kleen <ak@linux.intel.com>
51325 2011-06-13 Dmitry V. Levin <ldv@altlinux.org>
51342 2011-06-13 Andi Kleen <ak@linux.intel.com>
51346 pointer for the timer id in the memory pointed to by timer_id.
51348 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51350 Add test for PTRACE_O_TRACESYSGOOD.
51354 tests: update test for linux kernel version.
51355 * tests/ptrace_setoptions_followfork: Check for Linux kernel > 2.6.
51357 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51360 The test have to be adjusted after commit v4.6-5-g3454e4b.
51367 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51371 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51374 * linux/mips/syscallent.h: Remove duplicate entries for 4336, 4337,
51377 Reported-by: Denys Vlasenko <dvlasenk@redhat.com>
51379 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51381 Don't display bogus parameter for sigreturn syscall.
51382 * linux/*/syscallent.h: For those arches which use sys_sigreturn,
51385 (I guess kernel doesn't actually _have_ any parameters for this syscall,
51386 at least on these architectures). Do the same change for I386 and x86-64
51389 (I hesitate to change 1 to 0 params for arches I don't know -
51390 it is remotely possible some of them do have a parameter for this syscall).
51394 and for SPARC and MIPS, stack pointer and sigmask reading code
51396 in this branch; load tcp->u_arg[1] into sigmask for display
51397 _after_ we know for sure u_arg[1] does contain valid sigmask
51404 "Modernize" four old-style function parameter declarations.
51406 Convert old-style C function definitions to a "modern" form.
51409 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51418 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51423 "SYSCALL(ARGS <unavailable>)= ? <unavailable>" - note jammed together ")=".
51428 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51432 Update test/* directory, it seem to be a bit bit-rotted.
51437 2011-06-07 Denys Vlasenko <dvlasenk@redhat.com>
51439 Whitespace cleanups. no code changes.
51445 add space between "if" and (condition), correct non-standard
51485 2011-05-30 Dmitry V. Levin <ldv@altlinux.org>
51487 ARM EABI: fix 64-bit syscall's arguments decoding.
51489 With EABI, 64-bit function parameters passed in registers are aligned to
51490 an even-numbered register instead of using the next available pair, see
51499 Reported-by: Damir Shayhutdinov <damir@altlinux.org>
51501 2011-05-30 Damir Shayhutdinov <damir@altlinux.ru>
51508 2011-05-30 Denys Vlasenko <dvlasenk@redhat.com>
51510 "Modernize" all old-style function parameter declarations.
51511 * bjm.c: Convert all remaining old-style C function definitions
51527 2011-05-27 Denys Vlasenko <dvlasenk@redhat.com>
51536 (startup_attach): Change strace_tracer_pid if we are in -D mode.
51540 2011-05-25 Denys Vlasenko <dvlasenk@redhat.com>
51545 2011-05-24 Denys Vlasenko <dvlasenk@redhat.com>
51551 if we know that post-execve SIGTRAP is not going to happen.
51553 2011-05-23 Denys Vlasenko <dvlasenk@redhat.com>
51564 (trace): Check events and set ptrace options without -f too.
51565 Check WSTOPSIG(status) not for SIGTRAP, but for SYSCALLTRAP.
51567 2011-04-24 Mike Frysinger <vapier@gentoo.org>
51574 2011-04-24 Mike Frysinger <vapier@gentoo.org>
51580 2011-04-08 Grant Edwards <grant.b.edwards@gmail.com>
51584 user-specified file paths.
51590 (usage, main): Implement handling of -y and -P options.
51591 * strace.1: Add descriptions of -y and -P options.
51598 2011-04-07 Dmitry V. Levin <ldv@altlinux.org>
51601 * block.c: Fix typo in the check for BLKTRACESTOP.
51604 2011-03-15 Dmitry V. Levin <ldv@altlinux.org>
51613 2011-03-14 Dmitry V. Levin <ldv@altlinux.org>
51618 Prepare for 4.6 release.
51619 * NEWS: Update for 4.6 release.
51621 * debian/changelog: 4.6-1.
51622 * strace.spec: 4.6-1.
51624 2011-03-14 Mike Frysinger <vapier@gentoo.org>
51631 - each arch has linux/<arch>/ioctlent.h.in which defines only the
51632 arch-specific ioctls;
51633 - linux/ioctlent.h.in which defines only the common ioctls;
51634 - at build time, these two headers are combined and sorted to produce
51642 non-asm entries from the latter.
51644 non-asm entries.
51646 non-asm entries.
51648 non-asm entries.
51650 non-asm entries.
51652 non-asm entries.
51654 remove non-asm entries.
51656 non-asm entries.
51658 non-asm entries.
51660 non-asm entries.
51677 * Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS).
51683 2011-03-10 Dmitry V. Levin <ldv@altlinux.org>
51693 PTRACE_GETSIGINFO for all signals.
51695 Enhance decoding of kernel-generated signals.
51697 zero-initialized fields.
51699 Fix decoding of user-generated signals.
51705 [LINUX || SVR4] (siginfo_codes): Add entries for SI_KERNEL and
51708 2011-03-05 Sebastian Pipping <sebastian@pipping.org>
51710 Take all git branches into account for generation of CREDITS file.
51713 2011-03-04 Dmitry V. Levin <ldv@altlinux.org>
51728 sys_fallocate): Use printfd() for decoding of file descriptors.
51730 decode_select, sys_epoll_ctl, epoll_wait_common): Use printfd() for
51741 2011-03-03 Sebastian Pipping <sebastian@pipping.org>
51751 2011-03-03 Dmitry V. Levin <ldv@altlinux.org>
51757 NULL-terminated.
51760 * tests/ptrace_setoptions: Replace "grep -q" with "grep > /dev/null".
51765 2011-03-01 Mike Frysinger <vapier@gentoo.org>
51771 2011-02-27 Dmitry V. Levin <ldv@altlinux.org>
51774 * configure.ac (AM_INIT_AUTOMAKE): Replace dist-bzip2 with dist-xz.
51776 * make-dist: Update for dist-xz.
51779 * .gitignore: Add strace-*.tar.xz.
51782 * debian/control: Update Build-Depends.
51786 Implement two basic "strace -f" tests.
51793 * tests/strace-f: Likewise.
51795 2011-02-26 Dmitry V. Levin <ldv@altlinux.org>
51808 2011-02-25 Dmitry V. Levin <ldv@altlinux.org>
51821 2011-02-24 Dmitry V. Levin <ldv@altlinux.org>
51832 2011-02-23 Dmitry V. Levin <ldv@altlinux.org>
51844 Fix compilation warning reported by gcc -Wunused-but-set-variable.
51847 2011-02-22 Mike Frysinger <vapier@gentoo.org>
51855 2011-02-22 Mike Frysinger <vapier@gentoo.org>
51863 2011-02-22 Dmitry V. Levin <ldv@altlinux.org>
51866 * debian/changelog: Sync with 4.5.20-2.
51869 2011-02-20 Dmitry V. Levin <ldv@altlinux.org>
51907 2011-02-19 Dmitry V. Levin <ldv@altlinux.org>
51913 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51917 the few sparc-specific pieces into the linux/syscall.h header.
51919 * linux/syscall.h: Add sparc-specific pieces from sparc/syscall.h.
51924 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51932 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51941 2011-02-19 Dmitry V. Levin <ldv@altlinux.org>
51944 * syscall.c (trace_syscall_entering): Check for sys_exit instead of
51947 2011-02-18 Dmitry V. Levin <ldv@altlinux.org>
51950 * syscall.c (known_scno): Do not check for native_scno field on
51955 2011-02-09 Dmitry V. Levin <ldv@altlinux.org>
51958 * syscall.c (dumpio): Switch on tcp->sys_func instead of tcp->scno
51959 for more reliable results.
51964 2011-02-05 Dmitry V. Levin <ldv@altlinux.org>
51968 2011-01-19 Dmitry V. Levin <ldv@altlinux.org>
51972 * linux/dummy.h: Change redirection for sys_get[ug]id, sys_gete[ug]id
51974 * linux/*/syscallent.h: Set SYSCALL_NEVER_FAILS flag for get[ug]id,
51977 * syscall.c (NF): New shorthand macro for use in syscallent.h files.
51983 2011-01-18 Mike Frysinger <vapier@gentoo.org>
51988 2011-01-17 Dmitry V. Levin <ldv@altlinux.org>
51995 * linux/alpha/syscallent.h: Add hooks for fanotify_init, fanotify_mark,
52009 * linux/arm/syscallent.h: Add hooks for accept4, fanotify_init,
52011 * linux/hppa/syscallent.h: Add hook for prlimit64.
52013 2011-01-16 Dmitry V. Levin <ldv@altlinux.org>
52023 2011-01-15 Dmitry V. Levin <ldv@altlinux.org>
52033 2011-01-14 Holger Hans Peter Freyther <zecke@selfish.org>
52043 2011-01-14 Dmitry V. Levin <ldv@altlinux.org>
52046 * strace.1: Use bold instead of italics for "-e trace=" keywords.
52057 2011-01-13 Dmitry V. Levin <ldv@altlinux.org>
52064 2011-01-10 Dmitry V. Levin <ldv@altlinux.org>
52068 2011-01-10 Holger Hans Peter Freyther <holger@freyther.de>
52072 2011-01-10 Carmelo AMOROSO <carmelo.amoroso@st.com>
52074 sh: Add entry for not-multiplexed accept4.
52075 * linux/sh/syscallent.h: Add specific entry for not-multiplexed accept4
52076 available in kernel mainline since v2.6.37-rc6, see
52077 …http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=21b6e4c7106b2d68a67105…
52079 2010-12-14 Carmelo AMOROSO <carmelo.amoroso@st.com>
52081 sh: Add entries for not-multiplexed socket calls.
52082 * linux/sh/syscallent.h: Add specific entries for not-multiplexed
52083 socket calls (available in kernel mainline since v2.6.37-rc1)
52093 2010-12-14 Dmitry V. Levin <ldv@altlinux.org>
52099 2010-12-07 Dmitry V. Levin <ldv@altlinux.org>
52101 Fix strace -f -o '|command' hangup.
52103 -o option, otherwise a forked command will cause a hangup inside
52106 2010-12-03 Dmitry V. Levin <ldv@altlinux.org>
52114 (clone_flags): Add entries for them.
52117 Decode struct ucred for getsockopt SO_PEERCRED.
52121 2010-12-03 Carmelo AMOROSO <carmelo.amoroso@st.com>
52123 sh: Add support for tracing sys_cacheflush system call.
52129 Reviewed-by: Angelo Castello <angelo.castello@st.com>
52131 2010-11-30 Dmitry V. Levin <ldv@altlinux.org>
52138 2010-11-30 Wang Chao <wang.chao@cn.fujitsu.com>
52148 for sys_clone.
52156 2010-11-30 Wang Chao <wang.chao@cn.fujitsu.com>
52163 at the same time, this test seems to be enough for these 3 options.
52169 in the new variable ptrace_setoptions for later use.
52172 2010-09-17 Dmitry V. Levin <ldv@altlinux.org>
52174 Enable support for less verbose build rules.
52175 * configure.ac (AM_INIT_AUTOMAKE): Add silent-rules.
52177 2010-09-17 Wang Chao <wang.chao@cn.fujitsu.com>
52186 2010-09-17 Dmitry V. Levin <ldv@altlinux.org>
52192 2010-09-16 Dmitry V. Levin <ldv@altlinux.org>
52195 * linux/hppa/syscallent.h: Add hooks for recvmmsg and accept4.
52197 2010-09-15 Dmitry V. Levin <ldv@altlinux.org>
52204 (qualify): Update use of qualify_one and qual_options->qualify.
52206 2010-09-15 Wang Chao <wang.chao@cn.fujitsu.com>
52208 Fix -e option with only one value in qualifier statement.
52209 Fix regression introduced by commit v4.5.20-19-g30145dd:
52210 if -e option is used with only one value in qualifier statement,
52211 e.g. 'strace -e trace=open ls', syscall information would not be
52216 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52218 Fix off_t/rlim_t size checks when cross-compiling.
52220 which obviously doesn't work when cross-compiling. While we don't hit
52229 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52231 Fix long long little endian detection when cross-compiling.
52233 doesn't work when cross-compiling, it sets a fallback value. However,
52235 sets it to "no". This probably breaks most little endian systems out
52236 there when cross-compiling for them. It certainly breaks Blackfin
52238 and key off of that when cross-compiling.
52241 * m4/long_long.m4 (AC_LITTLE_ENDIAN_LONG_LONG): Set cross-compiling
52244 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52251 * linux/ioctlent.sh: Search a few non-exported paths.
52253 2010-09-15 Roland McGrath <roland@redhat.com>
52256 * strace.c (pid2tcb): Always match pid. Fail for argument <= 0.
52260 2010-09-09 Dmitry V. Levin <ldv@altlinux.org>
52263 * configure.ac: Enable gcc -Wwrite-strings.
52268 * Makefile.am (AM_CFLAGS): Update for new warnings.m4.
52271 * Makefile.am (ACLOCAL_AMFLAGS): Add "-I m4".
52287 2010-09-07 Dmitry V. Levin <ldv@altlinux.org>
52289 Fix const-correctness issues uncovered by gcc -Wwrite-strings.
52322 2010-09-04 Wang Chao <wang.chao@cn.fujitsu.com>
52330 2010-08-28 Wang Chao <wang.chao@cn.fujitsu.com>
52333 Remove nclone_detached since CLONE_DETACHED flag was no-op for a very
52345 2010-08-09 Neil Campbell <lists@thebatcave.org.uk>
52347 Correct get/set_robust_list syscall numbers for powerpc.
52350 2010-08-09 Wang Chao <wang.chao@cn.fujitsu.com>
52357 * process.c (internal_wait): Processes counted in tcp->nclone_threads
52360 2010-08-09 Wang Chao <wang.chao@cn.fujitsu.com>
52362 Forbid using mutually exclusive options -D and -p together.
52363 If we use -D and -p option together to trace a multi-thread program, in
52365 present -f option. Moreover, when executing 'strace -D -p <non-exist pid>',
52370 2010-08-05 David Daney <ddaney@caviumnetworks.com>
52372 Update Linux MIPS syscalls to match 2.6.35-rc6+
52375 2010-08-05 Edgar E. Iglesias <edgar.iglesias@gmail.com>
52377 Add support for the MicroBlaze architecture.
52387 2010-08-05 Frederik Schüler <fs@debian.org>
52392 2010-07-17 Andreas Schwab <schwab@linux-m68k.org>
52398 2010-07-13 Andreas Schwab <schwab@linux-m68k.org>
52400 Add biarch support for powerpc64.
52410 32-bit personality.
52414 (printcall) [POWERPC64]: Use wider format for IP prefix.
52415 * syscall.c (get_scno) [POWERPC64]: Check for 64/32 bit mode.
52421 2010-07-09 Andreas Schwab <schwab@redhat.com>
52427 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
52433 2010-06-24 Andreas Schwab <schwab@redhat.com>
52435 Document -C/-D.
52436 * strace.c (usage): Document -C.
52437 * strace.1: Document -D.
52439 2010-06-13 Roland McGrath <roland@redhat.com>
52443 2010-06-05 Andreas Schwab <schwab@linux-m68k.org>
52449 2010-05-28 Andreas Schwab <schwab@linux-m68k.org>
52452 * linux/m68k/syscallent.h: Add entries for get_thread_area,
52458 Fix warning when compiling for m68k.
52461 2010-04-13 Dmitry V. Levin <ldv@altlinux.org>
52463 Prepare for 4.5.20 release.
52464 * NEWS: Update for 4.5.20 release.
52466 * debian/changelog: 4.5.20-1.
52467 * strace.spec: 4.5.20-1.
52469 2010-04-13 Frederik Schüler <fs@debian.org>
52471 Update debian/* files for the upcoming release.
52472 * debian/control: update standards-version to 3.8.4.
52474 * debian/rules: comment out verbose build, only needed for debugging.
52477 * debian/rules: use *-stamp instead of stamp-*, so dh_clean can tidy
52478 up for us.
52480 2010-04-13 Heiko Carstens <heiko.carstens@de.ibm.com>
52483 * linux/s390/syscallent.h: Add the missing entries for preadv and
52487 2010-04-07 Dmitry V. Levin <ldv@altlinux.org>
52490 * linux/ioctlent.sh: Search in asm-generic directory as well.
52495 * linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
52497 * linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
52500 * linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
52502 * linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
52504 * linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
52507 * linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
52510 * linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
52522 2010-04-07 Andreas Schwab <schwab@linux-m68k.org>
52544 2010-04-07 Dmitry V. Levin <ldv@altlinux.org>
52548 Split trace_syscall() for better readability.
52552 Implement -C option to combine regular and -c output.
52554 * strace.1: Document -C option.
52556 (main): Handle -C option.
52562 Fix "make dist" regression introduced by commit v4.5.19-12-g5078770.
52569 2010-03-31 Dmitry V. Levin <ldv@altlinux.org>
52572 This regression was introduced by commit v4.5.18-136-g783f5bc.
52577 2010-03-23 Mark Wielaard <mjw@redhat.com>
52587 2010-03-09 Andreas Schwab <schwab@redhat.com>
52589 Avoid spurious error when checking for linux/netlink.h.
52590 * configure.ac: Include <asm/types.h> when checking for
52593 2010-02-23 Andreas Schwab <schwab@linux-m68k.org>
52599 2010-02-09 David Daney <ddaney@caviumnetworks.com>
52603 tcp->pid to ptrace().
52605 2010-02-05 Chris Metcalf <cmetcalf@tilera.com>
52607 Add support for the TILE architecture.
52609 * defs.h: Define TCB_WAITEXECVE for TILE.
52619 2010-02-04 Dmitry V. Levin <ldv@altlinux.org>
52643 2010-02-04 Frederik Schüler <fs@debian.org>
52650 * debian/control: Update standards-version to 3.8.3.
52661 2010-01-25 Andreas Schwab <schwab@redhat.com>
52666 2010-01-12 Andreas Schwab <schwab@redhat.com>
52671 2009-12-25 Dmitry V. Levin <ldv@altlinux.org>
52677 2009-12-24 Chris Metcalf <cmetcalf@tilera.com>
52683 2009-11-16 Mike Frysinger <vapier@gentoo.org>
52685 Move i386-specific files out of common linux dir.
52692 2009-11-16 Andreas Schwab <schwab@redhat.com>
52694 Remove support for pre-C89.
52698 2009-11-13 Dmitry V. Levin <ldv@altlinux.org>
52706 2009-11-11 Andreas Schwab <schwab@redhat.com>
52711 2009-11-06 Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
52714 * acinclude.m4 (AC_STATFS64): New macro to check for struct statfs64.
52719 2009-11-06 Dmitry V. Levin <ldv@altlinux.org>
52737 Fix check for linux/netlink.h on Linux 2.6.32-rc5+
52738 * configure.ac (AC_CHECK_HEADERS): In check for linux/netlink.h, include
52741 2009-11-04 Andreas Schwab <schwab@redhat.com>
52763 2009-11-03 Andreas Schwab <schwab@redhat.com>
52770 * linux/powerpc/syscallent.h (sys_readahead): Account for 64bit
52773 2009-10-27 Andreas Schwab <schwab@redhat.com>
52775 Maintain separate print column for each process.
52782 2009-10-21 Roland McGrath <roland@redhat.com>
52784 * strace.spec: 4.5.19-1 release.
52786 2009-10-21 Dmitry V. Levin <ldv@altlinux.org>
52790 2009-10-16 Andreas Schwab <schwab@redhat.com>
52792 Fix decoding of newfstatat syscall on x86-64.
52793 * file.c (printstat64) [LINUX && X68_64]: If tracing a 64-bit
52795 Fixes RH#529316 "Field values shown for "newfstatat" system
52798 2009-10-12 Dmitry V. Levin <ldv@altlinux.org>
52802 2009-10-12 Mike Frysinger <vapier@gentoo.org>
52823 2009-10-11 Roland McGrath <roland@redhat.com>
52825 * make-dist: Clean up.
52829 2009-10-09 Dmitry V. Levin <ldv@altlinux.org>
52831 * make-dist: New script for preparing release tarballs.
52833 * git-set-file-times: Import from rsync.
52837 2009-10-08 Dmitry V. Levin <ldv@altlinux.org>
52841 add check for umove() return code.
52844 * NEWS: Update for 4.5.19 release.
52851 2009-10-08 Jakub Bogusz <qboosh@pld-linux.org>
52857 2009-10-08 Mike Frysinger <vapier@gentoo.org>
52859 Add support for Linux/no-mmu with vfork.
52873 2009-10-07 Mike Frysinger <vapier@gentoo.org>
52875 Add sys_nanosleep() prototype for sparc.
52893 * linux/ioctlsort.c: Check for __powerpc__.
52895 2009-10-07 Andreas Schwab <schwab@redhat.com>
52898 * linux/ia64/syscallent.h: Update for addition of accept4 syscall
52901 2009-10-07 Roland McGrath <roland@redhat.com>
52903 * strace.spec (%doc): Add ChangeLog-CVS.
52908 ($(srcdir)/ChangeLog): New target, replaces gen-changelog phony target.
52911 2009-10-06 Dmitry V. Levin <ldv@altlinux.org>
52913 * NEWS: Update for 4.5.19 release.
52915 2009-10-05 Frederik Schüler <fs@debian.org>
52917 Prepare debian/* files for release.
52921 * debian/changelog: Document changes and prepare for release.
52923 2009-10-05 Dmitry V. Levin <ldv@altlinux.org>
52930 2009-10-05 Carlos O'Donell <carlos@systemhalted.org>
52935 Fix SA_HANDLER function pointer comparisons for hppa.
52939 2009-10-05 Edgar E. Iglesias <edgar.iglesias@gmail.com>
52947 2009-10-05 Dmitry V. Levin <ldv@altlinux.org>
52951 2009-09-21 Dmitry V. Levin <ldv@altlinux.org>
52955 2009-09-19 Dmitry V. Levin <ldv@altlinux.org>
52957 Prepare for 4.5.19 release.
52958 * NEWS: Update for 4.5.19 release.
52960 * debian/changelog: 4.5.19-1.
52961 * strace.spec: 4.5.19-1.
52963 Update debian/* to 4.5.18-1.
52964 * debian/changelog: Update to 4.5.18-1.
52966 * debian/control (Build-Depends): Update debhelper requirement.
52969 2009-09-19 Kirill A. Shutemov <kirill@shutemov.name>
52974 2009-09-18 Dmitry V. Levin <ldv@altlinux.org>
52977 __NR_SYSCALL_BASE eis 0 for EABI and is 0x900000 for OABI.
52981 Reviewed-by: Kirill A. Shutemov <kirill@shutemov.name>
52983 2009-09-18 Mike Frysinger <vapier@gentoo.org>
52994 2009-09-01 Paolo Bonzini <pbonzini@redhat.com>
52997 This second patch in the series adds support for accept4 as a socketcall
52998 sub-call. Besides the need to renumber all system calls, this poses
52999 no problem.
53016 2009-09-01 Paolo Bonzini <pbonzini@redhat.com>
53018 Replace x86-64 paccept with accept4.
53019 This patch changes the paccept syscall to accept4 for x86-64, since
53020 the former was dropped in Linux kernel commit v2.6.27-rc7-14-g2d4c826.
53021 At the same time, it adds support for pretty printing its arguments.
53029 2009-08-28 Andreas Schwab <schwab@redhat.com>
53031 Zero-extend 32-bit addresses when printing argv array.
53032 (printargv): Zero-extend 32-bit addresses.
53033 Fixes RH#519480 "64-bit strace is lazy on execve of 32-bit
53036 2009-08-12 Andreas Schwab <schwab@redhat.com>
53041 (futexops): Add entries for them.
53045 2009-07-08 Dmitry V. Levin <ldv@altlinux.org>
53049 * ChangeLog: Rename to ChangeLog-CVS.
53050 * Makefile.am (gen-changelog): New rule.
53051 (dist-hook): Depend on it.
53052 (EXTRA_DIST): Add ChangeLog-CVS.
53053 * README-hacking: Describe changes.
53054 * gitlog-to-changelog: Import from gnulib.
53057 See ChangeLog-CVS for older changes.