• Home
  • Raw
  • Download

Lines Matching +full:tests +full:- +full:debian +full:- +full:minimal

1 2018-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10 2018-10-25 Dmitry V. Levin <ldv@altlinux.org>
14 2018-10-25 Elvira Khabirova <lineprinter@altlinux.org>
23 * tests/ioctl_nbd.c: Likewise.
24 * tests/.gitignore: Add ioctl_nbd.
25 * tests/pure_executables.list: Likewise.
26 * tests/gen_tests.in (ioctl_nbd): New entry.
28 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
30 2018-10-25 Dmitry V. Levin <ldv@altlinux.org>
32 tests: fix build with recent kernel headers.
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.
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>
104 * tests/ioctl_inotify.c (main): Update expected output.
105 * tests/ioctl_loop. (main): Likewise.c
106 * tests/ioctl_perf.c (main): Likewise.
107 * tests/ioctl_scsi.c (main): Likewise.
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
128 * tests/netlink_inet_diag.c (check_responses): Likewise.
129 * tests/netlink_netlink_diag.c (check_responses): Likewise.
130 * tests/netlink_unix_diag.c (check_responses): Likewise.
134 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
136 tests/sprintrc.c: drop redundant check.
137 * tests/sprintrc.c (sprintrc_ex): Remove fmt check, this also fixes the
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>
146 tests: exclude arm_sync_file_range from ksysent test.
149 * tests/ksysent.sed: Filter out arm_sync_file_range.
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.
169 * tests/execve.c (main): Explicitly mark q_envp variable as used
170 to workaround clang -Wunneeded-internal-declaration bug.
171 * tests/execveat.c (main): Likewise.
172 * tests/nsyscalls.c (main): Explicitly mark syscallent variable as used
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>
224 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
235 (decode_packet_diag_msg): Decode pdiag_num as an low-level protocol.
236 * tests/netlink_sock_diag.c: Update expected output.
237 * tests/nlattr_packet_diag_msg.c: Likewise.
243 * tests/net-sockaddr.c (check_x25): New function.
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>
323 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
333 (get_sockaddr_by_inode_uncached): Update protocols->get calls.
335 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
341 tests: add utimensat test variants with different xlat verbosity levels.
342 * tests/utimensat-Xabbrev.c: New file.
343 * tests/utimensat-Xraw.c: Likewise.
344 * tests/utimensat-Xverbose.c: Likewise.
345 * tests/utimensat.c: Add handling of XLAT_RAW and XLAT_VERBOSE flags.
346 * tests/pure_executables.list: Add utimensat-Xabbrev, utimensat-Xraw,
347 and utimensat-Xverbose.
348 * tests/.gitignore: Likewise.
349 * tests/gen_tests.in (utimensat-Xabbrev, utimensat-Xraw, utimensat-Xverbose): New
350 tests.
356 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
369 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
377 constant (introduced by Linux commit v4.16-rc1~3^2~3).
389 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
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.
455 tests/ioctl_v4l2: do not calculate page end address each time.
456 * tests/ioctl_v4l2.c (main): Replace page + size with page_end.
458 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
480 * tests/bpf.c: Update expected output.
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.
491 * tests/bpf.c: Update expected output.
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.
560 * tests/netlink_sock_diag.c (test_smc_diag_msg): Update expected output.
561 * tests/nlattr_smc_diag_msg.c (print_smc_diag_msg): Likewise.
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.
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.
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.
631 * tests/nlattr_smc_diag_msg.c: Add SMC_DIAG_DMBINFO check.
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.
642 * tests/inotify.c (main): Update expected output.
644 2018-08-22 Dmitry V. Levin <ldv@altlinux.org>
646 tests: workaround systemd-nspawn habit of disabling unimplemented syscalls
647 * tests/nsyscalls.c (test_syscall): Do not assume that unimplemented
650 tests: workaround systemd-nspawn habit of disabling mlockall syscall.
651 * tests/mmap.c (main): Do not assume that mlockall syscall always
654 tests: workaround systemd-nspawn habit of disabling munlockall syscall.
655 * tests/munlockall.c (main): Do not assume that munlockall syscall
658 2018-08-21 Eugene Syromyatnikov <evgsyr@gmail.com>
669 * tests/nlattr_smc_diag_msg.c [!AF_SMC]: Define AF_SMC to 43, enable
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>
717 tests: enhance test coverage of evdev ioctl.
718 * tests/ioctl_evdev.c (main): Test EVIOCGMTSLOTS(8) command.
720 tests: check decoding of successful evdev ioctl.
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.
726 * tests/Makefile.am (check_PROGRAMS): Likewise.
727 (DECODER_TESTS): Add the two tests mentioned above.
729 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
744 * tests/ioctl_evdev.c (main): Use 0 instead of EV_SYN in EVIOCGBIT
748 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
751 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
760 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
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'
776 * tests/ioctl_kvm_run_common.c (main): Check decoding
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.
810 * debian/changelog.in: Add a changelog entry for 4.24-1.
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
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
850 * tests/btrfs.c (FS_IOC_GETFSLABEL, FS_IOC_SETFSLABEL): Add fallback
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>
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>
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>
945 tests: allow any error code when trying to set time.
949 (e.g. mock that uses systemd-nspawn).
951 * tests/clock_xettime.c (main): Do not hardcode EINVAL, print return
953 * tests/xettimeofday.c (main): Likewise.
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,
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
994 2018-08-04 Dmitry V. Levin <ldv@altlinux.org>
1006 * constants introduced by Linux kernel commit v4.18-rc1~114^2~165^2~2.
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>
1037 tests: check decoding of getsockopt(PACKET_STATISTICS)
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.
1047 tests: check decoding of setsockopt(PACKET_[R|T]X_RING)
1048 * tests/net-tpacket_req.c: New file.
1049 * tests/.gitignore: Add net-tpacket_req.
1050 * tests/pure_executables.list: Likewise.
1051 * tests/gen_tests.in (net-tpacket_req): New test.
1053 tests: check decoding of setsockopt(PACKET_[ADD|DROP]_MEMBERSHIP)
1054 * tests/net-packet_mreq.c: New file.
1055 * tests/.gitignore: Add net-packet_mreq.
1056 * tests/pure_executables.list: Likewise.
1057 * tests/gen_tests.in (net-packet_mreq): New test.
1059 2018-07-20 Dmitry V. Levin <ldv@altlinux.org>
1061 tests: bring lists back to the sorted order.
1062 * tests/.gitignore: Make the list sorted again.
1063 * tests/pure_executables.list: Likewise.
1064 * tests/Makefile.am (check_PROGRAMS, DECODER_TESTS, MISC_TESTS):
1067 2018-07-20 Zhibin Li <08826794brmt@gmail.com>
1069 tests: check decoding of successful quotactl.
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.
1080 * tests/Makefile.am (check_PROGRAMS): Likewise.
1081 (DECODER_TESTS): Add four new tests listed above.
1082 * tests/quotactl.h: [INJECT_RETVAL] (check_quota): Use errstr instead of
1085 * tests/quotactl.c: Changed condition rc != 0 to rc < 0 in callback
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
1106 non-negative *optlen and writes MIN(sizeof(struct ucred), *optlen)
1109 * tests/so_percred.c: Include <string.h>.
1114 behaviour: getsockopt syscall accepts any non-negative *optlen
1117 * tests/so_linger.c: Include <stddef.h> and <string.h>.
1126 2018-07-15 Dmitry V. Levin <ldv@altlinux.org>
1128 tests: fix build with fresh glibc.
1130 <asm/stat.h> introduced by glibc-2.27.9000-566-gfd70af4.
1132 * tests/xstatx.c (statx, statx_timestamp): Redefine before the inclusion
1136 2018-07-15 Eugene Syromyatnikov <evgsyr@gmail.com>
1138 tests/quotactl.h: document check_quota.
1139 * tests/quotactl.h (check_quota): Add a comment describing the function
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.
1153 * tests/quotactl.c (main): Add invalid_cmd_str and invalid_id_str local
1156 * tests/quotaclt.c (main): Add invalid_cmd_str variable, remove unused
1159 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1161 tests: enhance test coverage of quotactl syscall parser.
1162 * tests/quotactl.c (print_dqfmt): New function.
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.
1225 * tests/bpf.c: Update expected output.
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>
1270 tests: check decoding of vcpu auxstr.
1271 * tests/ioctl_kvm_run_common.c: Rename from ioctl_kvm_run.c.
1276 * tests/Makefile.am (EXTRA_DIST): Add ioctl_kvm_run_common.c.
1277 * tests/ioctl_kvm_run.c: New file, a wrapper around
1280 * tests/gen_tests.in (ioctl_kvm_run_auxstr_vcpu): New test.
1281 * tests/pure_executables.list: Add ioctl_kvm_run_auxstr_vcpu.
1282 * tests/.gitignore: Likewise.
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>
1304 change prints the reason as auxstr if "-e kvm=vcpu" option is given,
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.
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>
1363 tests: check verbose decoding of kvm ioctl.
1364 * tests/ioctl_kvm_run-v.c: New file.
1365 * tests/ioctl_kvm_run.c: Include xlat.h and xlat/kvm_cpuid_flags.h.
1369 * tests/gen_tests.in (ioctl_kvm_run-v): New entry.
1370 * tests/pure_executables.list: Add ioctl_kvm_run-v.
1371 * tests/.gitignore: Likewise.
1373 tests: check decoding of kvm ioctls related to struct kvm_cpuid2.
1374 * tests/ioctl_kvm_run.c [!HAVE_STRUCT_KVM_CPUID2]: Skip the test.
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>
1398 tests: fix race condition in aio.test.
1399 * tests/aio.c (main): Print aio_key fields before the io_submit syscall
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>
1468 * tests/aio.c: Update expected output.
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.
1495 * debian/changelog.in: Add a changelog entry for 4.23-1.
1498 2018-06-14 Dmitry V. Levin <ldv@altlinux.org>
1507 tests: add missing copyright headers.
1508 * tests/prctl-spec-inject.test: Add copyright header.
1509 * tests/qualify_personality.sh: Likewise.
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>
1540 tests: check decoding of io_pgetevents syscall.
1543 * tests/aio_pgetevents.c: New file.
1544 * tests/.gitignore: Add aio_pgetevents.
1545 * tests/pure_executables.list: Likewise.
1546 * tests/gen_tests.in (aio_pgetevents): New test.
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.
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
1579 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1589 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1591 tests: add personality specification syntax checks.
1592 * tests/options-syntax.test: Add personality specification syntax
1595 tests: add basic checks for personality designation support.
1596 * tests/qualify_personality.sh: New file.
1597 * tests/qualify_personality_empty.in: Likewise.
1598 * tests/trace_personality_32.in: Likewise.
1599 * tests/trace_personality_64.in: Likewise.
1600 * tests/trace_personality_regex_32.in: Likewise.
1601 * tests/trace_personality_regex_64.in: Likewise.
1602 * tests/trace_personality_regex_x32.in: Likewise.
1603 * tests/trace_personality_x32.in: Likewise.
1604 * tests/Makefile.am (EXTRA_DIST): Add them.
1605 * tests/gen_tests.in (trace_personality_32, trace_personality_64,
1607 trace_personality_regex_64, trace_personality_regex_x32): New tests.
1609 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1619 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
1648 * tests/Makefile.am (MISC_TESTS): Add them.
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
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>
1704 tests: check decoding of IFLA_LINKINFO netlink attribute.
1705 * tests/nlattr_ifla_linkinfo.c: New file.
1706 * tests/pure_executables.list: Add nlattr_ifla_linkinfo.
1707 * tests/.gitignore: Likewise.
1708 * tests/gen_tests.in (nlattr_ifla_linkinfo): New test.
1710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1712 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1714 tests: add print_quoted_stringn to print string with a size limit.
1717 * tests/print_quoted_string.c (print_quoted_stringn): New function.
1718 * tests/tests.h (print_quoted_stringn): New declaration.
1720 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1722 tests: add fallback_func argument to TEST_NESTED_NLATTR_OBJECT_EX_
1723 * tests/test_nlattr.h (TEST_NESTED_NLATTR_OBJECT_EX_): Add fallback_func
1727 * tests/nlattr_ifla_af_spec.c: Specify print_quoted_hex as
1730 tests/test_nlattr.h: add ability to provide additional nlattr payload.
1731 * tests/test_nlattr.h (print_nlattr): Add add_data argument, print
1738 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1748 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
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"
1830 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1832 tests: check decoding of IFLA_AF_SPEC netlink attribute.
1836 * tests/nlattr_ifla_af_spec.c: New file.
1837 * tests/pure_executables.list: Add nlattr_ifla_af_spec.
1838 * tests/.gitignore: Likewise.
1839 * tests/gen_tests.in (nlattr_ifla_af_spec): New test.
1841 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1843 tests: add TEST_NESTED_NLATTR_ARRAY_EX to test_nlattr.h.
1849 * tests/test_nlattr.h (TEST_NESTED_NLATTR_ARRAY_EX): Rename from
1854 * tests/nlattr_tca_stab.c [!HAVE_DECL_TCA_STAB_DATA] (TCA_STAB_DATA):
1857 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1859 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1861 tests: pass index to print_elem_ callback in TEST_NLATTR_NESTED_ARRAY.
1862 * tests/test_nlattr.h (TEST_NLATTR_NESTED_ARRAY): Pass array index
1864 * tests/nlattr_tca_stab.c (print_uint16): Add index argument.
1866 tests: move common ifinfomsg boilerplate into a separate header.
1869 * tests/nlattr_ifla.h: New file.
1870 * tests/Makefile.am (EXTRA_DIST): Add it.
1871 * tests/nlattr_ifla_brport.c [!HAVE_DECL_IFLA_PROTINFO] (IFLA_PROTINFO):
1876 * tests/nlattr_ifla_port.c [!HAVE_DECL_IFLA_PORT_SELF] (IFLA_PORT_SELF):
1881 * tests/nlattr_ifla_xdp.c
1882 * tests/nlattr_ifla_xdp.c [!HAVE_DECL_IFLA_XDP] (IFLA_XDP): New
1908 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1918 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
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
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>
2031 tests: use STRINGIFY instead of _STR.
2035 * tests/tests.h (_STR): Remove.
2036 * tests/add_key.c (main): Replace _STR with STRINGIFY.
2037 * tests/keyctl.c (XARG_STR): Likewise.
2038 * tests/request_key.c (main): Likewise.
2040 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2042 tests: check decoding of IFLA_EVENT netlink attribute.
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>
2096 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2104 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2106 tests/opipe.test: remove unneeded run_prog call.
2109 * tests/opipe.test: Remove run_prog decoration for the grep invocation.
2111 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2113 tests: check BPF_OBJ_GET_INFO_BY_FD decoding.
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.
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.
2123 * tests/.gitignore: Likewise.
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>
2166 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2168 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2173 * tests/bpf.c: Update expected output.
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>
2222 tests: cast printf arguments to short when %h format qualifier is used.
2225 * tests/mknod.c (main): Cast printf argument for %#03ho format to short.
2226 * tests/mknodat.c (main): Likewise.
2227 * tests/net-sockaddr.c (main): Cast printf argument for %hu format
2229 * tests/semop.c (main): Likewise.
2231 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2242 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2246 v3.1-rc2~19^2~29.
2251 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
2279 tests: check short read of struct flock/flock64.
2280 * tests/fcntl-common.c (test_flock_einval): Check short read
2284 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2286 tests: extend struct flock/flock64 decoding checks.
2287 * tests/fcntl-common.c (test_flock_einval, test_flock): Create
2291 * tests/fcntl64.c (test_flock64_lk64): Likewise.
2293 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2295 tests: extend F_OFD_* decoding checks.
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.
2312 * tests/fcntl.c (test_flock64_undecoded): Likewise.
2313 * tests/fcntl64.c (test_flock64_lk64): Likewise.
2315 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2317 tests/fcntl-common.c: add fd argument to invoke_test_syscall.
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.
2329 * tests/fcntl64.c (test_flock64): Rename to test_flock64_lk64.
2332 * tests/fcntl-common.c: ... here.
2335 * tests/fcntl.c (test_flock64_einval): Rename to test_flock64_undecoded.
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.
2345 * tests/fcntl.c: Move main, [TEST_FLOCK64_EINVAL],
2347 * tests/fcntl-common.c: ... here.
2349 * tests/fcntl64.c (main): Remove.
2351 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2353 tests: rename struct_flock.c to fcntl-common.c.
2354 It is not limited to struct flock, more fcntl tests are going to land
2357 * tests/struct_flock.c: Rename to fcntl-common.c.
2358 * tests/Makefile.am (EXTRA_DIST): Rename struct_flock.c
2359 to fcntl-common.c.
2360 * tests/fcntl.c: Likewise.
2361 * tests/fcntl64.c: Likewise.
2363 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2365 tests: check decoding of new FRA_* netlink attributes.
2368 * tests/nlattr_fib_rule_hdr.c: Include <linux/in.h>.
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.
2418 * tests/ioctl_inotify.c (sys_ioctl): New function.
2420 * tests/ioctl_loop.c: Likewise.
2421 * tests/ioctl_perf.c: Likewise.
2423 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2433 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2435 tests/test_nlattr.h: fix pointer calculation in TEST_NLATTR_ARRAY, take 2
2438 * tests/test_nlattr.h (TEST_NLATTR_ARRAY): Fix pointer address
2441 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2448 * tests/nlattr_inet_diag_msg.c: Update expected output.
2450 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2458 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2474 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2486 * tests/execve.c (main): Update expected output.
2487 * tests/execveat.c (main): Likewise.
2488 * tests/msg_control.c (test_scm_rights1, test_scm_rights2,
2490 * tests/netlink_protocol.c (send_query): Likewise.
2491 * tests/nlattr.c (test_nlattr): Likewise.
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,
2553 * tests/aio.c (main): Update expected output.
2554 * tests/bpf.c (print_BPF_PROG_QUERY_attr5): Likewise.
2555 * tests/ioctl_perf-success.c (main): Likewise.
2556 * tests/ioctl_v4l2.c (main): Update expected output.
2557 * tests/kexec_load.c (main): Likewise.
2558 * tests/mmsg_name.c (test_mmsg_name): Update expected output.
2559 * tests/move_pages.c (print_page_array, print_node_array): Likewise.
2560 * tests/poll.c (print_pollfd_array_entering): Likewise.
2561 * tests/preadv-pwritev.c (main): Likewise.
2562 * tests/preadv2-pwritev2.c (dumpio): Likewise.
2563 * tests/process_vm_readv_writev.c (print_iov): Likewise.
2564 * tests/pwritev.c (print_iovec): Likewise.
2565 * tests/readv.c (main): Likewise.
2566 * tests/seccomp-filter-v.c
2567 * tests/semop.c (main): Likewise.
2568 * tests/set_mempolicy.c (print_nodes): Likewise.
2569 * tests/setgroups.c (main): Likewise.
2570 * tests/test_nlattr.h (print_nlattr) Likewise.
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>
2609 tests: use TAIL_ALLOC_OBJECT_CONST_PTR where appropriate.
2610 * tests/kcmp.c (main): Use TAIL_ALLOC_OBJECT_CONST_PTR.
2611 * tests/modify_ldt.c (main): Likewise.
2612 * tests/netlink_protocol.c (send_query): Likewise.
2613 * tests/ptrace.c (test_peeksiginfo, main): Likewise.
2614 * tests/s390_guarded_storage.c (main): Likewise.
2615 * tests/s390_sthyi.c (main): Likewise.
2616 * tests/xet_thread_area_x86.c (main): Likewise.
2618 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2633 * tests/bpf.c (BPF_OBJ_GET_INFO_BY_FD_checks): Print info field
2636 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2638 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
2667 tests: add union bpf_attr.query.prog_ids field decoding checks.
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.
2673 * tests/Makefile.am (check_PROGRAMS): Likewise.
2674 (DECODER_TESTS): Add bpf-success.test and bpf-success-v.test.
2675 * tests/bpf.c [INJECT_RETVAL] (sys_bpf): Check that retuned value
2686 uint64_t to uint32_t), as they are 32-bit; use common trick with
2689 * tests/bpf.c (BIG_ADDR_MAYBE): New macro.
2698 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2700 tests: check decoding of successful PERF_EVENT_IOC_{ID,QUERY_BPF} ioctls
2703 * tests/ioctl_perf-success.c: New file.
2704 * tests/ioctl_perf-success.test: New test.
2705 * tests/Makefile.am (DECODER_TESTS): Add it.
2706 (check_PROGRAMS): Add ioctl_perf-success.
2707 * tests/.gitignore: Likewise.
2708 * tests/ioctl_perf.c: Remove TODO.
2710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2712 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2726 * tests/gen_tests.in (ioctl_perf): New test.
2727 * tests/ioctl_perf.c: New file.
2728 * tests/pure_executables.list: ioctl_perf.
2729 * tests/.gitignore: Likewise.
2731 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2733 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2735 tests: fix ipc_msgbuf.test.
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.
2775 tests: add keyctl variants with different xlat verbosity levels.
2776 * tests/keyctl-Xabbrev.c: New file.
2777 * tests/keyctl-Xraw.c: Likewise.
2778 * tests/keyctl-Xverbose.c: Likewise.
2779 * tests/keyctl.c (XARG_STR): New macro.
2782 * tests/pure_executables.list: Add keyctl-Xabbrev, keyctl-Xraw,
2783 and keyctl-Xverbose.
2784 * tests/.gitignore: Likewise.
2785 * tests/gen_tests.in (keyctl-Xabbrev, keyctl-Xraw, keyctl-Xverbose): New
2786 tests.
2792 * tests/keyctl.c: Update expected output.
2798 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
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)>:
2815 * tests/nsyscalls.c [!LINUX_MIPSO32] (test_syscall): Update expected
2817 * tests/qual_fault.c (invoke) <if (is_raw)>: Likewise.
2820 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2827 * tests/ioctl_inotify.c: New file.
2828 * tests/.gitignore: Add ioctl_inotify.
2829 * tests/pure_executables.list: Likewise.
2830 * tests/gen_tests.in (ioctl_inotify): New test.
2832 tests/test_nlattr.h: avoid testing cropped objects of size 1.
2833 * tests/test_nlattr.h (TEST_NLATTR_OBJECT_EX_): Check
2836 tests: pass index to print_elem_ callback in TEST_NLATTR_ARRAY.
2837 * tests/test_nlattr.h (TEST_NLATTR_ARRAY): Pass array index to the
2839 * tests/nlattr_inet_diag_msg.c (print_uint): Add index argument.
2840 * tests/nlattr_netlink_diag_msg.c (print_xlong): Likewise.
2841 * tests/nlattr_packet_diag_msg.c (print_packet_diag_mclist,
2843 * tests/nlattr_unix_diag_msg.c (print_uint): Likewise.
2845 2018-05-24 Dmitry V. Levin <ldv@altlinux.org>
2847 tests: further cleanup bpf big address checks.
2850 * tests/bpf.c (BIG_ADDR): New macro.
2856 2018-05-23 Dmitry V. Levin <ldv@altlinux.org>
2858 tests: cleanup bpf big address checks.
2861 * tests/bpf.c (BIG_ADDR_IS_64BIT, BIG_ADDR_IS_32BIT): New macros.
2865 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2873 introduced by Linux commit v4.17-rc1~148^2~19^2~4^2~3.
2879 * tests/bpf.c (union bpf_attr_data): Add
2894 * tests/bpf.c: Update expected output.
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
2906 * tests/nlattr_inet_diag_msg.c (main): Update expected output.
2908 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2918 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2927 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2932 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2934 tests/test_nlattr.h: fix pointer calculation in TEST_NLATTR_ARRAY.
2937 * tests/test_nlattr.h (TEST_NLATTR_ARRAY): Fix pointer address
2940 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2944 field was added only by commit v3.5-rc1~35^2~3^2~18^2^2~39.
2953 * tests/net-sockaddr.c (check_l2): Put l2_bdaddr_type usage/printing
2957 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2967 2018-05-22 Dmitry V. Levin <ldv@altlinux.org>
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>
3038 tests/qual_fault.test: swap expected/output files in match_diff calls.
3042 * tests/qual_fault.test (check_fault_injection): Swap arguments
3045 2018-05-21 Dmitry V. Levin <ldv@altlinux.org>
3053 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
3082 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3089 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
3135 * tests/bpf.c (BPF_PROG_LOAD_checks): Update expected output.
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.
3146 * tests/bpf.c (BPF_PROG_QUERY_checks): Update expected output.
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>
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>
3255 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
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>
3365 * tests/netlink_netlink_diag.c (send_query) <req>: Likewise.
3367 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3369 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3371 tests: introduce midtail_alloc and use it in netlink tests.
3372 netlink tests happen to access memory located before the tail_malloc'ed
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.
3379 * tests/tests.h (midtail_alloc): New macro.
3380 * tests/netlink_crypto.c: Use it instead of tail_malloc for nlh0 allocation.
3381 * tests/netlink_netfilter.c: Likewise.
3382 * tests/netlink_protocol.c: Likewise.
3383 * tests/netlink_route.c: Likewise.
3384 * tests/netlink_selinux.c: Likewise.
3385 * tests/netlink_sock_diag.c: Likewise.
3386 * tests/nlattr_br_port_msg.c: Likewise.
3387 * tests/nlattr_crypto_user_alg.c: Likewise.
3388 * tests/nlattr_dcbmsg.c: Likewise.
3389 * tests/nlattr_fib_rule_hdr.c: Likewise.
3390 * tests/nlattr_ifaddrlblmsg.c: Likewise.
3391 * tests/nlattr_ifaddrmsg.c: Likewise.
3392 * tests/nlattr_ifinfomsg.c: Likewise.
3393 * tests/nlattr_ifla_brport.c: Likewise.
3394 * tests/nlattr_ifla_port.c: Likewise.
3395 * tests/nlattr_ifla_xdp.c: Likewise.
3396 * tests/nlattr_inet_diag_msg.c: Likewise.
3397 * tests/nlattr_inet_diag_req_compat.c: Likewise.
3398 * tests/nlattr_inet_diag_req_v2.c: Likewise.
3399 * tests/nlattr_mdba_mdb_entry.c: Likewise.
3400 * tests/nlattr_mdba_router_port.c: Likewise.
3401 * tests/nlattr_ndmsg.c: Likewise.
3402 * tests/nlattr_ndtmsg.c: Likewise.
3403 * tests/nlattr_netconfmsg.c: Likewise.
3404 * tests/nlattr_netlink_diag_msg.c: Likewise.
3405 * tests/nlattr_nlmsgerr.c: Likewise.
3406 * tests/nlattr_packet_diag_msg.c: Likewise.
3407 * tests/nlattr_rtgenmsg.c: Likewise.
3408 * tests/nlattr_rtmsg.c: Likewise.
3409 * tests/nlattr_smc_diag_msg.c: Likewise.
3410 * tests/nlattr_tc_stats.c: Likewise.
3411 * tests/nlattr_tca_stab.c: Likewise.
3412 * tests/nlattr_tcamsg.c: Likewise.
3413 * tests/nlattr_tcmsg.c: Likewise.
3414 * tests/nlattr_unix_diag_msg.c: Likewise.
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.
3441 * tests/ipc_msg.c: Check it.
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.
3450 * tests/ipc_sem.c: Check it.
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.
3459 * tests/ipc_shm.c: Check it.
3461 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3463 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
3498 * tests/.gitignore: Likewise.
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>
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.
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
3657 * tests/s390_runtime_instr.c: Update expected output.
3659 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3661 tests/init.sh: add run_prog_match_grep.
3662 * tests/init.sh (run_prog_match_grep): New function, similar
3665 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3667 tests: add so_peercred variants with different xlat verbosity levels.
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.
3673 * tests/.gitignore: Likewise.
3674 * tests/so_peercred.c: Add handling of XLAT_RAW and XLAT_VERBOSE flags.
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>
3682 tests: add personality variants with different xlat verbosity levels.
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.
3688 * tests/.gitignore: Likewise.
3689 * tests/personality.c: Add handling of XLAT_RAW and XLAT_VERBOSE flags.
3690 * tests/personality.test: Add support for accepting test arguments.
3691 * tests/gen_tests.in (personality-Xabbrev, personality-Xraw,
3692 personality-Xverbose): New tests.
3694 tests: add fanotify_mark variants with different xlat verbosity levels.
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.
3700 * tests/.gitignore: Likewise.
3701 * tests/fanotify_mark.c: Add handling of XLAT_RAW and XLAT_VERBOSE
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>
3716 v2.6.17-rc1~1175^2~206.
3718 v2.6.25-rc1~1162^2~1415.
3723 tests: add more v4l2 checks.
3724 * tests/ioctl_v4l2.c (main): Add more VIDIOC_S_EXT_CTRLS checks.
3726 tests: add variants of IPC tests with different xlat verbosity levels.
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.
3731 * tests/pure_executables.list: Likewise.
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.
3749 * tests/ipc_msgbuf.test: Likewise.
3750 * tests/ipc_msg.c: Add handling of XLAT_RAW and XLAT_VERBOSE flags.
3751 * tests/ipc_msgbuf.c: Likewise.
3752 * tests/ipc_sem.c: Likewise.
3753 * tests/ipc_shm.c: Likewise.
3755 tests: make ipc tests a bit more strict.
3756 * tests/gen_tests.in (ipc_msg, ipc_sem, ipc_shm): Add -a option.
3757 * tests/ipc_msg.c: Replace " +" with " " in expected output.
3758 * tests/ipc_sem.c: Likewise.
3759 * tests/ipc_shm.c: Likewise.
3764 tests: check all bits of mtype in ipc_msgbuf test.
3765 * tests/ipc_msgbuf.c: Include <unistd.h> and <asm/unistd.h>.
3768 check for -mtype in msgrcv.
3770 tests: print expected output by ipc_msgbuf test itself.
3771 * tests/ipc_msgbuf.expected: Remove.
3772 * tests/Makefile.am (EXTRA_DIST): Remove tests/ipc_msgbuf.expected.
3773 * tests/ipc_msgbuf.c: Add expected output.
3774 * tests/ipc_msgbuf.test: Add -a31. Redirect output to $EXP. Call
3777 2018-05-07 Dmitry V. Levin <ldv@altlinux.org>
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" '
3845 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3847 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3864 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
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.
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>
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>
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,
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>
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
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
4084 +-------------------------------------+
4086 +------------------+------------------+
4087 | unwind-libunwind | unwind-libdw |
4088 +------------------+------------------+
4090 +------------------+ |
4092 +-------------------------------------+
4094 +-------------------------------------+
4103 * unwind-libdw.c: Include "mmap_notify.h" instead of "mmap_cache.h".
4118 * unwind-libunwind.c (init): Enable the mmap_cache subsystem.
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
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>
4154 2018-05-03 Masatake YAMATO <yamato@redhat.com>
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>
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>
4244 2018-05-03 Zhibin Li <08826794brmt@gmail.com>
4246 tests: check decoding of F_GETOWN_EX and F_SETOWN_EX fcntl commands.
4247 * tests/fcntl.c (TEST_F_OWNER_EX): New macro.
4253 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4255 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4266 2018-05-02 Masatake YAMATO <yamato@redhat.com>
4268 tests/ioctl_kvm_run.c: handle cpuid at the end of vcpu dentry.
4272 anon_inode:kvm-vcpu:0
4276 anon_inode:kvm-vcpu
4281 * tests/ioctl_kvm_run.c: Include unistd.h for using readlink(2).
4287 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
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
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>
4398 tests: add more mount checks.
4399 * tests/gen_tests.in (mount, mount-Xabbrev, mount-Xraw, mount-Xverbose):
4400 Add -a33 option.
4401 * tests/mount.c: Check printing of flags and pointers.
4403 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4405 2018-04-28 Dmitry V. Levin <ldv@altlinux.org>
4407 tests: use sprintrc in mount test.
4408 * tests/mount.c (main): Use sprintrc.
4410 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4412 tests: add mount variants with different xlat verbosity levels.
4413 * tests/mount-Xabbrev.c: New file.
4414 * tests/mount-Xraw.c: Likewise.
4415 * tests/mount-Xverbose.c: Likewise.
4416 * tests/mount.c: Add handling of XLAT_RAW and XLAT_VERBOSE macros.
4417 * tests/pure_executables.list: Add mount-Xabbrev, mount-Xraw,
4418 and mount-Xverbose.
4419 * tests/.gitignore: Likewise.
4420 * tests/gen_tests.in (mount-Xabbrev, mount-Xraw, mount-Xverbose): New
4421 tests.
4423 tests: add old_mmap variants with different xlat verbosity levels.
4424 * tests/old_mmap-Xabbrev.c: New file.
4425 * tests/old_mmap-Xraw.c: Likewise.
4426 * tests/old_mmap-Xverbose.c: Likewise.
4427 * tests/old_mmap.c (main): Add handling of XLAT_RAW and XLAT_VERBOSE
4429 * tests/pure_executables.list: Add old_mmap-Xabbrev, old_mmap-Xraw,
4430 and old_mmap-Xverbose.
4431 * tests/.gitignore: Likewise.
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>
4437 tests: add mmap/mmap64 variants different xlat verbosity levels.
4438 * tests/tests.h [!XLAT_RAW] (XLAT_RAW): Define.
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.
4446 * tests/mmap.c (main): Add handling of XLAT_RAW and XLAT_VERBOSE macros.
4447 * tests/mmap.test: Add handling of optional test arguments that set
4449 * tests/Makefile.am (mmap64_Xabbrev_CPPFLAGS, mmap64_Xraw_CPPFLAGS,
4451 * tests/pure_executables.list: Add mmap-Xabbrev, mmap-Xraw,
4452 mmap-Xverbose, mmap64-Xabbrev, mmap64-Xraw, and mmap64-Xverbose.
4453 * tests/.gitignore: Likewise.
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>
4474 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4480 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4488 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4490 Switch to use of value-indexed xlats for evdev constants.
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.
4547 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4561 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4569 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4577 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4585 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4593 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4604 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
4639 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4641 tests: add more evdev ioctl checks.
4642 tests/ioctl_evdev.c (TEST_NULL_ARG_EX): Rename from TEST_NULL_ARG, add
4649 * tests/ioctl_evdev.c [!EV_SW] (EV_SW): Define.
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>
4707 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4715 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4720 * tests/btrfs.c (btrfs_test_get_dev_stats_ioctl): Update expected output.
4730 * tests/btrfs.c: Update expected output.
4739 * tests/btrfs.c: Include "xlat/btrfs_cont_reading_from_srcdev_mode.h".
4754 * tests/btrfs.c (btrfs_test_get_dev_stats_ioctl): Update expected output.
4759 * tests/btrfs.c (sprint_xlat_): New function.
4765 of non-abbreviated output.
4766 * tests/btrfs.c (btrfs_test_ino_path_ioctls): Update expected output.
4768 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4776 * tests/btrfs.c (btrfs_test_quota_ctl_ioctl): Update expected output.
4780 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4791 * tests/btrfs.c: Update expected output in order to account fields that
4794 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4800 for holding non-zero value.
4801 * tests/btrfs.c (btrfs_print_search_key): Update expected output.
4803 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4805 tests/btrfs.c: accept possible failure of BTRFS_IOC_BALANCE_V2.
4809 * tests/btrfs.c (btrfs_test_balance_ioctls): Print expected output for
4812 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4814 tests/btrfs.c: support volumes with mixed data/metadata in BTRFS_IOC_BALANCE_V2
4817 * tests/btrfs.c (btrfs_test_balance_ioctls): Set args.meta.pend and
4821 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4823 tests/btrfs.c: check BTRFS_IOC_SUBVOL_CREATE_V2 result.
4826 * tests/btrfs.c (btrfs_test_subvol_ioctls): Check return code of the
4829 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4831 tests/btrfs.c: add pid suffix to the created directory, remove it on exit
4832 If multiple tests are running simultaneously in the same directory,
4835 * tests/btrfs.c (path, dir_name_fmt, dir_name): New variables.
4841 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4851 * tests/btrfs.c (btrfs_test_set_received_subvol_ioctl): Update expected
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.
4866 * tests/btrfs.c: Update expected output.
4881 * tests/btrfs.c (btrfs_print_objectid, btrfs_print_key_type): Update
4884 tests: add btrfs tests with verbose xlat decoding.
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.
4889 * tests/Makefile.am (DECODER_TESTS): Add them.
4890 * tests/btrfs.c (verbose_xlat): New static variable.
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>
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>
4943 * tests/bpf.c: Update expected output.
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>
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>
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
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>
5033 v4.15-rc1~84^2~605^2~3 and v4.16-rc1~123^2~145^2~5^2~8, respectively.
5036 * tests/bpf.c (init_BPF_MAP_CREATE_attr7): New function.
5043 * tests/bpf.c (BPF_MAP_CREATE_checks): Add two more checks.
5045 tests: add checks for bpf BPF_MAP_CREATE arguments.
5046 * tests/bpf.c (BPF_MAP_CREATE_checks): Add two more checks.
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.
5077 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5086 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5093 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5103 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5111 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5123 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5129 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5151 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5157 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5166 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5182 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5194 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
5257 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5260 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5262 tests: robustify signal delivery test against kernel bugs.
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
5270 * tests/signal_receive.c (s_sig, s_code, s_pid, s_uid): New volatile
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
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>
5341 tests: check corner cases of udev_monitor_netlink_header decoding.
5342 * tests/netlink_kobject_uevent.c (test_nlmsg_type_kernel): Create
5343 a tail-allocated udev_monitor_netlink_header object and pass it
5348 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5350 tests: check decoding of udev_monitor_netlink_header.
5351 * tests/netlink_kobject_uevent.c: Include <string.h>, <arpa/inet.h>,
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>
5369 tests: check basic decoding of PTP_* ioctl commands.
5370 * tests/ioctl_ptp.c: New file.
5371 * tests/gen_tests.in (ioctl_ptp): New entry.
5372 * tests/pure_executables.list: Add ioctl_ptp.
5373 * tests/.gitignore: Likewise.
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.
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>
5430 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5442 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5444 2018-04-08 Dmitry V. Levin <ldv@altlinux.org>
5447 Introduce --enable-stacktrace configure option to control whether
5448 -k option support is compiled in, --with-libunwind option remains
5459 * strace.1.in: Replace libunwind with an unwinder-agnostic wording.
5462 (print_version): Print stack-trace instead of stack-unwind.
5464 * tests/Makefile.am: Likewise. Replace LIBUNWIND_TESTS
5466 * tests/strace-V.test: Update expected output.
5468 2018-04-08 Eugene Syromyatnikov <evgsyr@gmail.com>
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).
5479 * tests/bpf.c (init_BPF_PROG_LOAD_attr): Rename
5485 2018-04-08 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
5499 * tests/strace-k.expected: New file.
5500 * tests/strace-k-demangle.expected: Likewise.
5501 * tests/Makefile.am (EXTRA_DIST): Add them.
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.
5523 * debian/changelog.in: Add a changelog entry for 4.22-1.
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
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>
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>
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>
5646 * tests/localtime.c: New file.
5647 * tests/localtime.test: New test.
5648 * tests/Makefile.am (check_PROGRAMS): Add localtime.
5651 * tests/.gitignore: Add localtime.
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>
5694 tests: check decoding of bpf_attr of size 1.
5695 * tests/bpf.c (BPF_PROG_GET_NEXT_ID_checks): New entry.
5697 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5700 Since pointers stored in the bpf_attr union are 64-bit regardless
5707 * tests/bpf.c (BPF_OBJ_PIN_checks): Check it.
5709 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5711 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5714 These were introduced by Linux commit v4.15-rc1~84^2~384^2~4.
5732 * tests/bpf.c (BPF_OBJ_PIN_checks, BPF_PROG_GET_NEXT_ID_checks,
5735 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5737 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5739 tests: refactor bpf test.
5746 * tests/bpf.c (print_bpf_attr): New function, a wrapper around
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>
5800 tests: check bpf syscall decoder unconditionally.
5803 * tests/bpf.c: Remove the test guard, include "scno.h", "bpf_attr.h",
5849 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
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>
5912 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5924 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5926 tests: forward SIZEOF_KERNEL_LONG_T and SIZEOF_LONG to C preprocessor.
5927 * tests/Makefile.am (AM_CPPFLAGS): Forward SIZEOF_KERNEL_LONG_T
5929 * tests/tests.h [TESTS_SIZEOF_KERNEL_LONG_T] (SIZEOF_KERNEL_LONG_T):
5933 Complements: v4.21~5 ("Export SIZEOF_LONG and SIZEOF_KERNEL_LONG_T to tests")
5935 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5937 tests/tests.h: fix indentation.
5939 tests: fix potential errno clobbering in netlink_kobject_uevent.test.
5940 * tests/netlink_kobject_uevent.c (errstr): New variable.
5944 2018-04-03 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
5948 of kvm-capable architectures.
5954 2018-04-03 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
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.
5982 * tests/bpf.c (main): Add a check with 0 passed in the third argument.
5984 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5991 * tests/bpf.c: Update expected output.
5993 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
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)
6020 * tests/init.sh: Export LC_ALL=C.
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>
6049 tests: check handling of some invalid delay injection parameters.
6050 * tests/qual_inject-syntax.test: Check for negative delay injection
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
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>
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>
6141 tests: check decoding of kern_features syscall.
6142 * tests/kern_features.c: New file.
6143 * tests/kern_features-fault.test: New test.
6144 * tests/gen_tests.in (kern_features): New entry.
6145 * tests/Makefile.am (DECODER_TESTS): Add kern_features-fault.test.
6146 * tests/pure_executables.list: Add kern_features.
6147 * tests/.gitignore: Likewise.
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>
6191 tests: check injection of return values into a "never fails" syscall.
6192 * tests/inject-nf.c: New file.
6193 * tests/inject-nf.test: New test.
6194 * tests/.gitignore: Add inject-nf.
6195 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
6237 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6239 tests: fix potentially unbound variable in kernel_version_code.
6242 $ sh -uc '. tests/init.sh; kernel_version_code 4.5'
6243 tests/init.sh: line 242: 3: unbound variable
6245 * tests/init.sh (kernel_version_code): Fix potentially unbound variable.
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>
6289 tests/bpf.c: convert TEST_BPF_ macro to a function.
6292 them error-prone.
6294 * tests/bpf.c (TEST_BPF_): Convert it to...
6300 2018-03-22 Eugene Syromyatnikov <evgsyr@gmail.com>
6302 tests: btrfs.c whitespace cleanup.
6303 * tests/btrfs.c: Add spaces after PRI* format specifiers.
6305 2018-03-22 Elvira Khabirova <lineprinter@altlinux.org>
6307 tests: check delay injection.
6308 * tests/delay.c: New file.
6309 * tests/delay.test: New test.
6310 * tests/.gitignore: Add delay.
6311 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
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).
6377 * tests/bpf.c (print_BPF_PROG_LOAD_first): Update expected output.
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.
6386 * tests/btrfs.c (btrfs_test_ino_path_ioctls): Check it.
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.
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.
6472 * tests/count.test: Check it.
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>
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.
6544 This change affects only tests yet, but this is going to be
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>
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>
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
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.
6635 * tests/ioctl.test: Extend the filter of ioctl calls with standard
6636 descriptor arguments to -y output.
6638 2018-03-12 Harsha Sharma <harshasharmaiitr@gmail.com>
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.
6670 * tests/netlink_netfilter.c: Include <netinet/in.h>, <arpa/inet.h>
6684 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6692 2018-03-10 Dmitry V. Levin <ldv@altlinux.org>
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>
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.
6741 Fixes: v4.21-67-g8c209d1 ("tests: fix remap_file_pages.test breakage on hppa")
6743 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6748 * tests/bpf.c: Update expected output.
6750 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6752 tests: fix remap_file_pages.test breakage on hppa.
6754 defined to 0x3 instead of 0xf, and the tests hit that corner case.
6756 * tests/remap_file_pages.c (main) [MAP_HUGETLB]: Print the value
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.
6832 tests/test_printstrn.c: do not declare i again.
6834 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6836 tests/s390_sthyi.c: make utility functions inline.
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]
6846 used in non-verbose mode. Let's avoid this in the future by inlining
6849 * tests/s390_sthyi.c (print_0x8, print_u8, print_u16, print_x32,
6854 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6857 The field has been introduced in Linux commit v4.15-rc1~135^2~17.
6863 * tests/btrfs.c: Update expected output, add additional checks.
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
6891 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6894 These commands were introduced in Linux commit v4.15-rc1~110^2~9.
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.
6939 * tests/ioctl_v4l2.c (init_v4l2_format): Reorganize the switch statement
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>
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>
6987 (BTN_STYLUS3): New constant, added in Linux commit v4.15-rc1~114^2^2~1.
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>
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>
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.
7050 * tests/v4l2.c: Test it, update expected output.
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),
7063 * tests/ioctl_v4l2.c [WORDS_BIGENDIAN]: Remove.
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>
7071 tests: do not include <stdbool.h> in files that include "tests.h"
7072 Starting with commit v4.21-37-g4f63bc70ca95012d72e288fc3c1eeb3ba26068a4,
7073 <stdbool.h> is included by tests.h, so all tests that already include
7074 "tests.h" do not need to include <stdbool.h>.
7076 * tests/btrfs.c: Do not include <stdbool.h>.
7077 * tests/file_handle.c: Likewise.
7078 * tests/futex.c: Likewise.
7079 * tests/ioctl_dm.c: Likewise.
7080 * tests/ioctl_loop.c: Likewise.
7081 * tests/ioctl_sock_gifconf.c: Likewise.
7082 * tests/keyctl.c: Likewise.
7083 * tests/mq_sendrecv.c: Likewise.
7084 * tests/perf_event_open.c: Likewise.
7085 * tests/s390_guarded_storage.c: Likewise.
7086 * tests/s390_pci_mmio_read_write.c: Likewise.
7087 * tests/s390_sthyi.c: Likewise.
7088 * tests/xet_thread_area_x86.c: Likewise.
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.
7095 * tests/.gitignore: Likewise.
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.
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>
7139 * tests/print_quoted_string.c (print_octal): New function.
7143 * tests/tests.h (print_quoted_string_ex, print_quoted_memory_ex): Add
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.
7155 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
7162 tests: add print_quoted_string_ex and print_quoted_memory_ex functions.
7163 * tests/tests.h (print_quoted_string_ex, print_quoted_memory_ex): New
7165 * tests/print_quoted_string.c (print_quoted_string_ex): New function,
7172 tests: check escaping in string printing.
7173 * tests/test_printstrn.c (test_print_memory): New function.
7179 * tests/print_quoted_string.c (print_quoted_memory): Likewise.
7181 tests: fix abbreviated octal escape check in print_quoted_memory.
7182 * tests/print_quoted_string.c (print_quoted_memory): Check the next
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.
7222 * tests/sched_xetattr.c: Update expected output.
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.
7288 tests: check decoding of ip6:port pairs associated with socket descriptors
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.
7292 * tests/.gitignore: Likewise.
7293 * tests/gen_tests.in (net-yy-inet6): New entry.
7295 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
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>
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>
7421 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7439 2018-02-25 Dmitry V. Levin <ldv@altlinux.org>
7441 debian: sync with 4.21-1 package.
7445 * debian/changelog.in: Fix ancient changelog entries.
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.
7451 * debian/rules: Use /usr/share/dpkg/architecture.mk instead of manually
7454 (build/Makefile, build-udeb/Makefile, build64/Makefile): Depend on it.
7455 (binary-arch): Use build64/strace.1 for strace64 subpackage.
7456 * debian/strace.manpages: Add build/ prefix.
7457 * debian/strace64.manpages: Add build64/ prefix.
7459 2018-02-24 Eugene Syromyatnikov <evgsyr@gmail.com>
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
7483 The mailing list has been moved to strace-devel@lists.strace.io.
7491 * strace-log-merge.1.in (.SH REPORTING BUGS): Likewise.
7493 * tests/scno_tampering.sh: 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>
7538 * debian/copyright: Replace the sourceforge.net based strace project URL
7542 2018-02-15 Dmitry V. Levin <ldv@altlinux.org>
7546 * debian/copyright: Sync with COPYING.
7548 2018-02-14 Dmitry V. Levin <ldv@altlinux.org>
7550 Post-release administrivia.
7552 * debian/changelog.in: Add a changelog entry for 4.21-1.
7555 2018-02-13 Dmitry V. Levin <ldv@altlinux.org>
7560 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7562 tests/s390_sthyi.c: skip the test if s390_sthyi returns an error.
7563 tests/s390_sthyi.c (main): replace error_msg_and_fail with
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>
7593 Export SIZEOF_LONG and SIZEOF_KERNEL_LONG_T to tests.
7595 * tests/Makefile.am (SIZEOF_LONG, SIZEOF_KERNEL_LONG_T): New variables.
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
7611 * tests/ioctl_kvm_run.c (code): Remove function.
7616 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7618 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7620 tests/ioctl_kvm_run.c: add KVM_EXIT_MMIO diagnostics.
7623 * tests/ioctl_kvm_run.c (run_kvm) <case KVM_EXIT_MMIO:>: Fail
7626 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7628 tests: add compatibility layer for accept call.
7632 v4.4-rc8~4^2~1.
7634 * tests/accept_compat.h: New file.
7635 * tests/Makefile.am (EXTRA_DIST): Add it.
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.
7640 * tests/net.expected: Allow accept4.
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.
7681 * tests/pkey_alloc.c: Update expected output.
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.
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>
7738 * tests/ptrace.c: Likewise.
7739 * tests/test_ucopy.c: Include <sys/ptrace.h> before <signal.h>.
7741 2018-02-11 Dmitry V. Levin <ldv@altlinux.org>
7750 * tests/getcwd.c: Likewise.
7751 * tests/group_req.c: Likewise.
7752 * tests/inode_of_sockfd.c: Likewise.
7753 * tests/ip_mreq.c: Likewise.
7754 * tests/printpath-umovestr.c: Likewise.
7755 * tests/qual_fault.c: Likewise.
7756 * tests/test_printpath.c: Likewise.
7757 * tests/umovestr3.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>
7781 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7803 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7815 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7817 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7912 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7914 tests/nsyscall-d.test: swap exp and log in diff calls.
7915 In line with the rest of the tests.
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>
7976 * tests/nsyscalls.c: Update expected output.
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.
8000 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8005 * tests/nsyscalls.c: Update expected output.
8009 tests/accept.c: call accept syscall directly, if available.
8010 * tests/accept.c [__NR_accept && !TEST_SYSCALL_NAME]: Define a wrapper that
8012 * tests/sockname.c [TEST_SYSCALL_STR]: Do not define TEST_SYSCALL_STR.
8017 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
8068 tests/membarrier.c: fix expected output on nohz_full systems.
8071 * tests/membarrier.c: check availability of MEMBARRIER_CMD_GLOBAL
8074 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8080 * tests/membarrier.c (main): Update expected output.
8082 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8084 2018-02-07 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
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>
8137 * tests/open.c: Include <asm/fcntl.h> instead of <fcntl.h>. Remove
8139 * tests/openat.c: Include <asm/fcntl.h> instead of <fcntl.h>.
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.
8168 * tests/ioctl_dm.c: Replace strncpy calls with memcpy as the character
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>
8195 tests: check s390_pci_mmio_read and s390_pci_mmio_write decoders.
8196 * tests/s390_pci_mmio_read_write.c: New file.
8197 * tests/.gitignore: Add s390_pci_mmio_read_write.
8198 * tests/pure_executables.list: Likewise.
8199 * tests/gen_tests.in (s390_pci_mmio_read_write): New test.
8208 tests: check s390_runtime_instr system call decoder.
8209 * tests/s390_runtime_instr.c: New file.
8210 * tests/.gitignore: Add s390_runtime_instr.
8211 * tests/pure_executables.list: Likewise.
8212 * tests/gen_tests.in (s390_runtime_instr): New test.
8220 tests: check s390_guarded_storage system call decoder.
8222 * tests/s390_guarded_storage-v.c: New file.
8223 * tests/s390_guarded_storage.c: Likewise.
8224 * tests/.gitignore: Add s390_guarded_storage, s390_guarded_storage-v.
8225 * tests/pure_executables.list: Likewise.
8226 * tests/gen_tests.in (s390_guarded_storage, s390_guarded_storage-v):
8227 New tests.
8240 tests: check s390_sthyi system call decoder.
8243 * tests/s390_sthyi-v.c: New file.
8244 * tests/s390_sthyi.c: Likewise.
8245 * tests/.gitignore: Add s390_sthyi, s390_sthyi-v.
8246 * tests/pure_executables.list: Likewise.
8247 * tests/gen_tests.in (s390_sthyi, s390_sthyi): New tests.
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
8279 * tests/ioctl.test: Pass script arguments to the strace invocation.
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.
8289 * tests/ioctl_dm.test: Likewise.
8290 * tests/ioctl_kvm_run.test: Likewise.
8291 * tests/ioctl_loop-nv.test: Likewise.
8292 * tests/ioctl_nsfs.test: Likewise.
8293 * tests/ioctl_sock_gifconf.test: Likewise.
8294 * tests/ioctl-v.sh: Likewise.
8295 * tests/Makefile.am (DECODER_TESTS, EXTRA_DIST): Remove them.
8297 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8299 tests/gen_tests.sh: enable passing arguments to sourced tests.
8300 * tests/gen_tests.sh: Read first argument separately, put it in $arg0,
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.
8334 tests/futex.c: improve error diagnostics.
8335 * tests/futex.c (futex_error): Add func and line arguments, print them.
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>
8356 tests: check riscv_flush_icache syscall decoder.
8357 * tests/riscv_flush_icache.c: New file.
8358 * tests/.gitignore: Add riscv_flush_icache.
8359 * tests/gen_tests.in: Likewise.
8360 * tests/pure_executables.list: Likewise.
8369 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8372 We (apparently) had a long-standing test failure inside strace-ff.test
8388 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8390 2018-01-24 Dmitry V. Levin <ldv@altlinux.org>
8392 tests: robustify set_ptracer_any.
8393 * tests/set_ptracer_any.c (main) [HAVE_PRCTL]: Provide fallback
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>
8425 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8427 tests: check path tracing of old select syscall.
8428 * tests/xselect.c [xselect] (xselect): Turn into prototype.
8429 * tests/oldselect-P.c: New file.
8430 * tests/oldselect-efault-P.c: Likewise.
8431 * tests/oldselect-efault.c: Likewise.
8432 * tests/oldselect.c: Use xselect.c
8433 * tests/pure_executables.list: Add oldselect-efault.
8434 * tests/gen_tests.in (oldselect, oldselect-P, oldselect-efault,
8435 oldselect-efault-P): New entries.
8436 * tests/oldselect.expected: Remove.
8437 * tests/oldselect.test: Remove.
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.
8445 tests: check path tracing of select/_newselect syscalls.
8446 * tests/xselect.c (main) [PATH_TRACING_FD]: Skip if /proc/self/fd/
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.
8453 * tests/.gitignore: Likewise.
8454 * tests/gen_tests.in (_newselect-P, select-P): New entries.
8456 tests: extend the check of select/_newselect syscalls decoding.
8457 * tests/xselect.c: Rewrite for better coverage.
8459 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8461 tests: redirect stdin to /dev/null.
8465 * tests/run.sh: Redirect test's stdin to /dev/null.
8467 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8469 tests: add file:line to perror_msg_and_fail/error_msg_and_fail output.
8470 * tests/tests.h [!perror_msg_and_fail] (perror_msg_and_fail): New macro
8473 * tests/error_msg.c (perror_msg_and_fail, error_msg_and_fail): New
8496 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8512 2018-01-23 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
8562 - Multidimensional arrays are replaced with single-dimensional ones.
8563 In most places it's a "][" -> ", " replacement, as awk allows some
8568 - "switch" statements are replaced with sets of "if ... else if ...
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>
8612 Commit v4.13-rc1~137^2~13 (and a follow-up fix v4.14-rc4~20^2~3
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>
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.
8798 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8800 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8802 tests: improve setugid error diagnostics a bit.
8803 * tests/setugid.c (main): Print unexpected code returned by syscall.
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>
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>
8894 tests: check path tracing of ppoll syscall.
8895 * tests/ppoll.c (main) [PATH_TRACING_FD]: Skip if /proc/self/fd/
8899 * tests/ppoll-P.c: New file.
8900 * tests/pure_executables.list: Add ppoll-P.
8901 * tests/.gitignore: Likewise.
8902 * tests/gen_tests.in (ppoll-P): New entry.
8904 tests: check path tracing of poll syscall.
8905 * tests/poll.c (main) [PATH_TRACING_FD]: Skip if /proc/self/fd/
8906 is not available. Add tests calls that use PATH_TRACING_FD.
8909 * tests/poll-P.c: New file.
8910 * tests/pure_executables.list: Add poll-P.
8911 * tests/.gitignore: Likewise.
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,
8921 * tests/old_mmap.c: Update condition.
8925 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8927 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8929 tests: check path tracing of old mmap syscall.
8930 * tests/old_mmap.c [!TEST_FD]: Define TEST_FD.
8934 * tests/old_mmap-P.c: New file.
8935 * tests/pure_executables.list: Add old_mmap-P.
8936 * tests/.gitignore: Likewise.
8937 * tests/gen_tests.in: Add old_mmap-P test.
8939 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
8958 * tests/.gitignore: Likewise.
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
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.
9005 Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
9007 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
9010 tests: improve descriptor set syntax testing.
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>
9045 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
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>
9107 * Makefile.am (mpers-m%.stamp:): Pass $(mpers_CC_FLAGS) as the second
9113 * tests/Makefile.am (MERS_CC_FLAGS): New variable.
9117 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9120 tests: improve syscall set syntax testing.
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>
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>
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.
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.
9271 * debian/rules (build/Makefile, build64/Makefile): Specify
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>
9296 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9298 tests: add more checks of reboot syscall decoding.
9301 * tests/gen_tests.in (reboot): Provide -s 256 option.
9302 * tests/reboot.c (STR32, STR128): New macros.
9305 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9307 tests: use sprintrc in reboot.test.
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>
9329 This is the location where this header is installed on Debian-based
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.
9355 * tests/Makefile.am (NATIVE_ARCH): New variable, set to @arch_native@.
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>
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
9402 * tests/perf_event_open.c: Update expected output.
9404 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9407 This field was introduced by linux kernel commit v4.12-rc1~152^2~42^2~10.
9413 * tests/perf_event_open.c (struct pea_flags): Add namespaces field.
9416 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9418 tests: check decoding of [gs]et_thread_area syscalls on x86.
9419 * tests/xet_thread_area_x86.c: New file.
9420 * tests/xet_thread_area_x86.test: New test.
9421 * tests/Makefile.am (DECODER_TESTS): Add it.
9422 * tests/.gitignore: Add xet_thread_area_x86.
9423 * tests/pure_executables.list: Likewise.
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>
9455 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9457 tests: move struct user_desc printing function into a separate file.
9460 * tests/modify_ldt.c (print_user_desc): Move it ...
9461 * tests/print_user_desc.c: ... to new file.
9462 * tests/Makefile.am (EXTRA_DIST): Add print_user_desc.c.
9464 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9466 tests: check decoding of modify_ldt syscall.
9467 * tests/modify_ldt.c: New file.
9468 * tests/gen_tests.in: Add modify_ldt test.
9469 * tests/pure_executables.list: Add modify_ldt.
9470 * tests/.gitignore: Likewise.
9474 return code is erroneous and set tcp->u_error appropriately along with
9477 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
9507 (SYS_FUNC(set_thread_area)): Change field key-value separator from ":"
9510 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
9622 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9628 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9638 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9645 2018-01-07 Chen Jingpiao <chenjingpiao@gmail.com>
9650 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9656 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
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
9760 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9769 (call_summary_pers): Remove error_str. Print cc->errors
9772 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9779 2018-01-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
9790 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
9792 2018-01-04 Lubomir Rintel <lkundrak@v3.sk>
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>
9929 2018-01-03 Eugene Syromyatnikov <evgsyr@gmail.com>
9940 Reported-by: Dmitry V. Levin <ldv@altlinux.org>
9943 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9948 v4.20-64-g61c03be.
9952 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
9985 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
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>
10075 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
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>
10117 2017-12-24 Harsha Sharma <harshasharmaiitr@gmail.com>
10119 tests: enhance run.sh usage error diagnostics.
10120 * tests/run.sh: Execute timeout command only when invoked with
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.
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.
10168 in <mtd/mtd-abi.h>.
10172 * tests/ioctl_mtd.c: Likewise.
10173 * tests/ioctl.c (main): Likewise.
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>
10205 tests: consistently use $STRACE_EXE instead of local alternatives.
10206 * tests/get_regs.test: Replace "${STRACE##* }" with "$STRACE_EXE".
10207 * tests/options-syntax.test: Replace "$strace_exp" with "$STRACE_EXE".
10208 * tests/syntax.sh: Likewise.
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>
10226 2017-12-20 Eugene Syromiatnikov <esyr@redhat.com>
10234 2017-12-20 Harsha Sharma <harshasharmaiitr@gmail.com>
10240 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10242 tests: check (some) debugging output generated during nsyscalls test.
10243 * tests/nsyscalls-d.c: New file.
10244 * tests/.gitignore: Add it.
10245 * tests/nsyscalls-d.test: New test, variant of nsyscalls.test with debug
10247 * tests/nsyscalls-nd.test: Likewise.
10248 * tests/nsyscalls.c: Add expected debug output.
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>
10290 tests: check error diagnostics when exec file name is too long.
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.
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>
10365 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10373 2017-12-04 Masatake YAMATO <yamato@redhat.com>
10376 tests: check decoding of KVM ioctl commands.
10377 * tests/ioctl_kvm_run.c: New file.
10378 * tests/ioctl_kvm_run.test: New test.
10379 * tests/Makefile.am (DECODER_TESTS): Add ioctl_kvm_run.test.
10380 * tests/pure_executables.list: Add ioctl_kvm_run.
10381 * tests/.gitignore: Likewise.
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>
10448 tests: robustify ipc_msgbuf.test against broken libc.
10449 glibc between commits glibc-2.25~130 and glibc-2.26~740 had broken
10455 * tests/ipc_msgbuf.c (cleanup): Change return type to int,
10459 2017-12-01 Masatake YAMATO <yamato@redhat.com>
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.
10519 * debian/strace.manpages: Likewise.
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
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>
10554 tests: fix llseek test.
10555 * tests/llseek.test: Fix typo.
10557 INSTALL-git.md: fix typo.
10559 tests: simplify bpf test a bit.
10560 * tests/bpf.c (DEF_BPF_INIT_FIRST): New macro.
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.
10595 * tests/bpf.c: Add macro guard for BPF_*_GET_*_ID decoder tests.
10608 2017-11-20 Dmitry V. Levin <ldv@altlinux.org>
10615 * tests/bpf.c: Include "print_fields.h".
10624 2017-11-20 Dmitry V. Levin <ldv@altlinux.org>
10628 command introduced by linux kernel commit v4.14-rc1~130^2~196^2~1.
10634 * tests/bpf.c: Update macro guards of BPF_MAP_CREATE decoder test.
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.
10657 * tests/ipc_shm.c: Check it.
10659 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10663 v4.14-rc1~126^2~17.
10670 * tests/memfd_create.c: Check it.
10672 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10676 argument is NAME_MAX - strlen("memfd:").
10680 * tests/memfd_create.c: Check it.
10682 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10686 v3.8-rc1~175^2~36.
10692 * tests/remap_file_pages.c: Check it.
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>
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.
10716 * tests/shmxt.c (SHM_EXEC): Likewise.
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.
10726 * tests/ipc_shm.c (main): Update expected output.
10727 * tests/shmxt.c (main): Update expected output, check SHM_EXEC decoding.
10729 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10733 and are used unconditionally in tests without any complaints.
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>
10754 tests: check [gs]etsockopt SOL_NETLINK decoding.
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.
10758 * tests/.gitignore: Likewise.
10760 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10770 2017-11-15 Dmitry V. Levin <ldv@altlinux.org>
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.
10815 * debian/changelog.in: Add a changelog entry for 4.20-1.
10818 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
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
10831 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10833 maint: make gen-contributors-list.sh suitable for generation of CREDITS.
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>
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
10891 * tests/kcmp.c: Likewise.
10892 * tests/membarrier.c: Likewise.
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>
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.
10947 2017-11-05 Dmitry V. Levin <ldv@altlinux.org>
10952 2017-11-04 Dmitry V. Levin <ldv@altlinux.org>
10954 tests: check signal mask transparency.
10955 Starting with commit v4.17-5-gf83b49b strace is expected
10958 * tests/check_sigblock.c: New file.
10959 * tests/set_sigblock.c: Likewise.
10960 * tests/sigblock.test: New test.
10961 * tests/.gitignore: Add check_sigblock and set_sigblock.
10962 * tests/Makefile.am (check_PROGRAMS): Likewise.
10965 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
10967 tests: check signal disposition transparency.
10968 Starting with commit v4.17-8-ge97a66f strace is expected
10971 * tests/check_sigign.c: New file.
10972 * tests/list_sigaction_signum.c: Likewise.
10973 * tests/set_sigign.c: Likewise.
10974 * tests/sigign.test: New test.
10975 * tests/.gitignore: Add check_sigign, list_sigaction_signum,
10977 * tests/Makefile.am (check_PROGRAMS): Likewise.
10980 2017-11-03 Eugene Syromyatnikov <evgsyr@gmail.com>
10982 tests: update futex test to accommodate the recent kernel change.
10983 Kernel commit v4.14-rc1~162^2~8 refactored futex implementation and
10987 * tests/futex.c (CHECK_FUTEX_GENERIC): Reset errno before the syscall.
10996 2017-11-03 Eugene Syromyatnikov <evgsyr@gmail.com>
10998 tests: cleanup futex test.
10999 * tests/futex.c (main) <wake_ops>: Remove unused errstr field
11002 2017-11-02 Dmitry V. Levin <ldv@altlinux.org>
11009 * tests/seccomp_get_action_avail.c: New file.
11010 * tests/gen_tests.in (seccomp_get_action_avail): New entry.
11011 * tests/pure_executables.list: Add seccomp_get_action_avail.
11012 * tests/.gitignore: Likewise.
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.
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.
11065 * tests/membarrier.c (main): Update expected output.
11067 2017-10-31 JingPiao Chen <chenjingpiao@gmail.com>
11069 tests: check decoding of NFNL_SUBSYS_NFT_COMPAT netlink message flags.
11070 * tests/nfnetlink_nft_compat.c (test_nlmsg_flags): New function.
11073 tests: check decoding of NFNL_SUBSYS_NFTABLES netlink message flags.
11074 * tests/nfnetlink_nftables.c (test_nlmsg_flags): New function.
11077 tests: check decoding of NFNL_SUBSYS_CTHELPER netlink message flags.
11078 * tests/nfnetlink_cthelper.c (test_nlmsg_flags): New function.
11081 tests: check decoding of NFNL_SUBSYS_CTNETLINK_TIMEOUT netlink message flags
11082 * tests/nfnetlink_cttimeout.c (test_nlmsg_flags): New function.
11085 tests: check decoding of NFNL_SUBSYS_ACCT netlink message flags.
11086 * tests/nfnetlink_acct.c (test_nlmsg_flags): New function.
11089 tests: check decoding of NFNL_SUBSYS_CTNETLINK_EXP netlink message flags
11090 * tests/nfnetlink_ctnetlink_exp.c (test_nlmsg_flags): New function.
11093 tests: check decoding of NFNL_SUBSYS_CTNETLINK netlink message flags.
11094 * tests/nfnetlink_ctnetlink.c (test_nlmsg_flags): New function.
11097 2017-10-26 JingPiao Chen <chenjingpiao@gmail.com>
11110 * tests/netlink_crypto.c (test_nlmsg_flags): Check this.
11111 * tests/netlink_route.c (test_nlmsg_flags): Likewise.
11112 * tests/netlink_xfrm.c (test_nlmsg_flags): Likewise.
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
11135 * tests/nfnetlink_osf.c: Include <linux/ip.h> and <linux/tcp.h>
11138 2017-09-24 JingPiao Chen <chenjingpiao@gmail.com>
11140 tests: check decoding of NFNL_SUBSYS_NFT_COMPAT netlink message types.
11143 * tests/nfnetlink_nft_compat.c: New file.
11144 * tests/gen_tests.in (nfnetlink_nft_compat): New entry.
11145 * tests/pure_executables.list: Add nfnetlink_nft_compat.
11146 * tests/.gitignore: Likewise.
11148 tests: check decoding of NFNL_SUBSYS_NFTABLES netlink message types.
11150 * tests/nfnetlink_nftables.c: New file.
11151 * tests/gen_tests.in (nfnetlink_nftables): New entry.
11152 * tests/pure_executables.list: Add nfnetlink_nftables.
11153 * tests/.gitignore: Likewise.
11155 tests: check decoding of NFNL_SUBSYS_CTHELPER netlink message types.
11158 * tests/nfnetlink_cthelper.c: New file.
11159 * tests/gen_tests.in (nfnetlink_cthelper): New entry.
11160 * tests/pure_executables.list: Add nfnetlink_cthelper.
11161 * tests/.gitignore: Likewise.
11163 tests: check decoding of NFNL_SUBSYS_CTNETLINK_TIMEOUT netlink message types
11166 * tests/nfnetlink_cttimeout.c: New file.
11167 * tests/gen_tests.in (nfnetlink_cttimeout): New entry.
11168 * tests/pure_executables.list: Add nfnetlink_cttimeout.
11169 * tests/.gitignore: Likewise.
11171 tests: check decoding of NFNL_SUBSYS_ACCT netlink message types.
11174 * tests/nfnetlink_acct.c: New file.
11175 * tests/gen_tests.in (nfnetlink_acct): New entry.
11176 * tests/pure_executables.list: Add nfnetlink_acct.
11177 * tests/.gitignore: Likewise.
11179 tests: check decoding of NFNL_SUBSYS_IPSET netlink message types.
11181 * tests/nfnetlink_ipset.c: New file.
11182 * tests/gen_tests.in (nfnetlink_ipset): New entry.
11183 * tests/pure_executables.list: Add nfnetlink_ipset.
11184 * tests/.gitignore: Likewise.
11186 tests: check decoding of NFNL_SUBSYS_OSF netlink message types.
11188 * tests/nfnetlink_osf.c: New file.
11189 * tests/gen_tests.in (nfnetlink_osf): New entry.
11190 * tests/pure_executables.list: Add nfnetlink_osf.
11191 * tests/.gitignore: Likewise.
11193 tests: check decoding of NFNL_SUBSYS_ULOG netlink message types.
11196 * tests/nfnetlink_ulog.c: New file.
11197 * tests/gen_tests.in (nfnetlink_ulog): New entry.
11198 * tests/pure_executables.list: Add nfnetlink_ulog.
11199 * tests/.gitignore: Likewise.
11201 tests: check decoding of NFNL_SUBSYS_QUEUE netlink message types.
11204 * tests/nfnetlink_queue.c: New file.
11205 * tests/gen_tests.in (nfnetlink_queue): New entry.
11206 * tests/pure_executables.list: Add nfnetlink_queue.
11207 * tests/.gitignore: Likewise.
11209 tests: check decoding of NFNL_SUBSYS_CTNETLINK_EXP netlink message types
11210 * tests/nfnetlink_ctnetlink_exp.c: New file.
11211 * tests/gen_tests.in (nfnetlink_ctnetlink_exp): New entry.
11212 * tests/pure_executables.list: Add nfnetlink_ctnetlink_exp.
11213 * tests/.gitignore: Likewise.
11215 tests: check decoding of NFNL_SUBSYS_CTNETLINK netlink message types.
11218 * tests/nfnetlink_ctnetlink.c: New file.
11219 * tests/gen_tests.in (nfnetlink_ctnetlink): New entry.
11220 * tests/pure_executables.list: Add nfnetlink_ctnetlink.
11221 * tests/.gitignore: Likewise.
11244 * tests/netlink_netfilter.c (test_nlmsg_type): Update expected output.
11246 2017-09-20 Dmitry V. Levin <ldv@altlinux.org>
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.
11258 of POWERPC to handle -m32 case properly.
11260 2017-09-19 Dmitry V. Levin <ldv@altlinux.org>
11264 * tests/ioctl_loop.c (main): Check it.
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.
11276 * tests/ioctl_loop.c (main): Update.
11278 2017-09-19 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
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>
11324 Added in Linux commit v4.13-rc1~137^2~14.
11331 * tests/ioctl_dm.c [!DM_DEV_ARM_POLL] (DM_DEV_ARM_POLL): New macro.
11334 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11340 * tests/kcmp.c: Update test.
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.
11354 * tests/.gitignore: Likewise.
11356 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11359 This is a preparation for the future introduction of cross-NS PID
11371 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11373 tests/kcmp: add more checks.
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>
11383 tests/kcmp: use <linux/kcmp.h> if it is available.
11389 * tests/kcmp.h [HAVE_LINUX_KCMP_H]: Include <linux/kcmp.h>,
11392 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11394 tests: check decoding of MDBA_ROUTER_PORT netlink attribute.
11395 * tests/nlattr_mdba_router_port.c: New file.
11396 * tests/gen_tests.in (nlattr_mdba_router_port): New entry.
11397 * tests/pure_executables.list: Add nlattr_mdba_router_port.
11398 * tests/.gitignore: Likewise.
11400 tests: check decoding of MDBA_MDB_ENTRY_INFO netlink attributes.
11401 * tests/nlattr_mdba_mdb_entry.c: New file.
11402 * tests/gen_tests.in (nlattr_mdba_mdb_entry): New entry.
11403 * tests/pure_executables.list: Add nlattr_mdba_mdb_entry.
11404 * tests/.gitignore: Likewise.
11406 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11408 tests: extend TEST_NESTED_NLATTR_OBJECT macro.
11409 Extend TEST_NESTED_NLATTR_OBJECT macro for multi-nested netlink
11421 * tests/test_nlattr.h (TEST_NESTED_NLATTR_OBJECT_EX_,
11425 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
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).
11462 * tests/nlattr_inet_diag_msg.c (main): Check INET_DIAG_CLASS_ID
11465 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11469 introduced by kernel commit v4.14-rc1~174^2^2^4.
11471 * tests/membarrier.c (main): Update expected output.
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.
11484 * tests/memfd_create.c (main): Update expected output.
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.
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>
11548 tests: check decoding of TCA_STAB netlink attribute of tcmsg.
11549 * tests/test_nlattr.h (TEST_NESTED_NLATTR_ARRAY): New macro.
11550 * tests/nlattr_tca_stab.c: New file.
11551 * tests/gen_tests.in (nlattr_tca_stab): New entry.
11552 * tests/pure_executables.list: Add nlattr_tca_stab.
11553 * tests/.gitignore: Likewise.
11555 tests: check decoding of TCA_STATS2 netlink attribute of tcmsg.
11556 * tests/nlattr_tc_stats.c: New file.
11557 * tests/gen_tests.in (nlattr_tc_stats): New entry.
11558 * tests/pure_executables.list: Add nlattr_tc_stats.
11559 * tests/.gitignore: Likewise.
11561 tests: check decoding of tcmsg netlink attributes.
11562 * tests/nlattr_tcmsg.c: Include <stddef.h> and <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.
11598 * debian/changelog.in: Add a changelog entry for 4.19-1.
11601 2017-09-05 Dmitry V. Levin <ldv@altlinux.org>
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>
11633 configure.ac: specify minimal GNU Automake version.
11636 * configure.ac (AM_INIT_AUTOMAKE): Specify minimal GNU Automake version as
11641 2017-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
11645 2017-09-03 JingPiao Chen <chenjingpiao@gmail.com>
11647 tests: check decoding of IFLA_XDP netlink attribute of ifinfomsg.
11648 * tests/nlattr_ifla_xdp.c: New file.
11649 * tests/gen_tests.in (nlattr_ifla_xdp): New entry.
11650 * tests/pure_executables.list: Add nlattr_ifla_xdp.
11651 * tests/.gitignore: Likewise.
11653 tests: check decoding of IFLA_PORT_SELF netlink attribute of ifinfomsg.
11654 * tests/nlattr_ifla_port.c: New file.
11655 * tests/gen_tests.in (nlattr_ifla_port): New entry.
11656 * tests/pure_executables.list: Add nlattr_ifla_port.
11657 * tests/.gitignore: Likewise.
11659 tests: check decoding of more ifinfomsg netlink attributes.
11660 * tests/nlattr_ifinfomsg.c (IFLA_LINKINFO, IFLA_VF_PORTS,
11685 2017-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
11698 * tests/keyctl.c: Include assert.h.
11706 tests/keyctl: improve readability.
11707 * tests/keyctl.c: Since do_keyctl() has so convoluted calling convention
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>
11751 tests: check decoding of IFLA_PROTINFO netlink attribute of ifinfomsg.
11752 * tests/nlattr_ifla_brport.c: New file.
11753 * tests/gen_tests.in (nlattr_ifla_brport): New entry.
11754 * tests/pure_executables.list: Add nlattr_ifla_brport.
11755 * tests/.gitignore: Likewise.
11756 * tests/test_nlattr.h (TEST_NESTED_NLATTR_OBJECT): New macro.
11767 tests: check decoding of ndtmsg netlink attributes.
11768 * tests/nlattr_ndtmsg.c (NDTA_PARMS, NDTPA_IFINDEX): New macros.
11781 tests: check decoding of ifaddrlblmsg netlink attributes.
11782 * tests/nlattr_ifaddrlblmsg.c (main): Check decoding of IFAL_ADDRESS.
11789 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11794 2017-08-31 JingPiao Chen <chenjingpiao@gmail.com>
11796 tests/.gitignore: add missing files that should be ignored.
11797 * tests/.gitignore: Add is_linux_mips_n64.
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.
11820 * tests/nlattr_fib_rule_hdr.c (FRA_TABLE): New macro.
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.
11832 * tests/nlattr_rtmsg.c (main): Check RTA_TABLE decoding.
11834 2017-08-29 JingPiao Chen <chenjingpiao@gmail.com>
11844 tests: check decoding of ndmsg netlink attributes.
11845 * tests/nlattr_ndmsg.c: Include <netinet/in.h> and <arpa/inet.h>.
11858 tests: check decoding of fib_rule_hdr netlink attributes.
11859 * tests/nlattr_fib_rule_hdr.c: Include <inttypes.h>.
11879 * tests/netlink_route.c (test_rtnl_neigh): Update the test.
11880 * tests/nlattr_ndmsg.c (init_ndmsg, print_ndmsg): Likewise.
11882 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
11939 tests: check decoding of ifinfomsg netlink attributes.
11940 * tests/nlattr_ifinfomsg.c: Include <stddef.h> and <linux/if_link.h>.
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
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>
12044 * tests/ioctl_v4l2.c: Update expected output.
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>
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.
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>
12121 2017-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
12124 Old git versions (like the one shipped in Debian 8) do not support setting
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
12144 2017-08-26 JingPiao Chen <chenjingpiao@gmail.com>
12147 tests: check decoding of rtmsg netlink attributes.
12148 * tests/nlattr_rtmsg.c: Include <netinet/in.h> and <arpa/inet.h>.
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>
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>
12210 tests: really skip mips o32 scno tampering tests on mips n64.
12211 * tests/is_linux_mips_n64.c: New file.
12212 * tests/Makefile.am (check_PROGRAMS): Add it.
12213 * tests/scno_tampering.sh <$STRACE_ARCH == mips>:
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>
12287 2017-08-22 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
12301 2017-08-22 JingPiao Chen <chenjingpiao@gmail.com>
12303 tests: check decoding of ifaddrmsg netlink attributes.
12304 * tests/nlattr_ifaddrmsg.c: Include <arpa/inet.h>.
12316 2017-08-22 Dmitry V. Levin <ldv@altlinux.org>
12329 2017-08-20 Dmitry V. Levin <ldv@altlinux.org>
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>
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;
12389 * tests/futimesat.c (main): In initialization of struct timeval.tv_usec,
12391 * tests/xetitimer.c: Likewise.
12392 * tests/xettimeofday.c: Likewise.
12393 * tests/xselect.c: Likewise.
12394 * tests/xutimes.c: Likewise.
12396 Reported-by: Anatoly Pugachev <matorola@gmail.com>
12398 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12400 tests: fix sigaction.test on sparc.
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
12419 * tests/nlattr.c (test_nlattr): Check it.
12421 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12423 tests: check decoding of NETLINK_ROUTE rtgenmsg attributes.
12424 * tests/nlattr_rtgenmsg.c: New file.
12425 * tests/gen_tests.in (nlattr_rtgenmsg): New entry.
12426 * tests/pure_executables.list: Add nlattr_rtgenmsg.
12427 * tests/.gitignore: Likewise.
12429 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12437 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12439 tests: check decoding of NETLINK_ROUTE br_port_msg attributes.
12440 * tests/nlattr_br_port_msg.c: New file.
12441 * tests/gen_tests.in (nlattr_br_port_msg): New entry.
12442 * tests/pure_executables.list: Add nlattr_br_port_msg.
12443 * tests/.gitignore: Likewise.
12445 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12454 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12456 tests: check decoding of NETLINK_ROUTE netconfmsg attributes.
12457 * tests/nlattr_netconfmsg.c: New file.
12458 * tests/gen_tests.in (nlattr_netconfmsg): New entry.
12459 * tests/pure_executables.list: Add nlattr_netconfmsg.
12460 * tests/.gitignore: Likewise.
12462 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12471 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12473 tests: check decoding of NETLINK_ROUTE dcbmsg attributes.
12474 * tests/nlattr_dcbmsg.c: New file.
12475 * tests/gen_tests.in (nlattr_dcbmsg): New entry.
12476 * tests/pure_executables.list: Add nlattr_dcbmsg.
12477 * tests/.gitignore: Likewise.
12479 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12488 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12490 tests: check decoding of NETLINK_ROUTE ifaddrlblmsg attributes.
12491 * tests/nlattr_ifaddrlblmsg.c: New file.
12492 * tests/gen_tests.in (nlattr_ifaddrlblmsg): New entry.
12493 * tests/pure_executables.list: Add nlattr_ifaddrlblmsg.
12494 * tests/.gitignore: Likewise.
12496 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12505 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12507 tests: check decoding of NETLINK_ROUTE tcamsg attributes.
12508 * tests/nlattr_tcamsg.c: New file.
12509 * tests/gen_tests.in (nlattr_tcamsg): New entry.
12510 * tests/pure_executables.list: Add nlattr_tcamsg.
12511 * tests/.gitignore: Likewise.
12513 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12521 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12523 tests: check decoding of NETLINK_ROUTE tcmsg attributes.
12524 * tests/nlattr_tcmsg.c: New file.
12525 * tests/gen_tests.in (nlattr_tcmsg): New entry.
12526 * tests/pure_executables.list: Add nlattr_tcmsg.
12527 * tests/.gitignore: Likewise.
12529 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12537 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12539 tests: check decoding of NETLINK_ROUTE ndtmsg attributes.
12540 * tests/nlattr_ndtmsg.c: New file.
12541 * tests/gen_tests.in (nlattr_ndtmsg): New entry.
12542 * tests/pure_executables.list: Add nlattr_ndtmsg.
12543 * tests/.gitignore: Likewise.
12545 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12553 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12555 tests: check decoding of NETLINK_ROUTE ndmsg attributes.
12556 * tests/nlattr_ndmsg.c: New file.
12557 * tests/gen_tests.in (nlattr_ndmsg): New entry.
12558 * tests/pure_executables.list: Add nlattr_ndmsg.
12559 * tests/.gitignore: Likewise.
12561 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12569 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12571 tests: check decoding of NETLINK_ROUTE fib_rule_hdr attributes.
12572 * tests/nlattr_fib_rule_hdr.c: New file.
12573 * tests/gen_tests.in (nlattr_fib_rule_hdr): New entry.
12574 * tests/pure_executables.list: Add nlattr_fib_rule_hdr.
12575 * tests/.gitignore: Likewise.
12577 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12585 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12587 tests: check decoding of NETLINK_ROUTE rtmsg attributes.
12588 * tests/nlattr_rtmsg.c: New file.
12589 * tests/gen_tests.in (nlattr_rtmsg): New entry.
12590 * tests/pure_executables.list: Add nlattr_rtmsg.
12591 * tests/.gitignore: Likewise.
12593 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12601 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12603 tests: check decoding of NETLINK_ROUTE ifaddrmsg attributes.
12604 * tests/nlattr_ifaddrmsg.c: New file.
12605 * tests/gen_tests.in (nlattr_ifaddrmsg): New entry.
12606 * tests/pure_executables.list: Add nlattr_ifaddrmsg.
12607 * tests/.gitignore: Likewise.
12609 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12617 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12619 tests: check decoding of NETLINK_ROUTE ifinfomsg attributes.
12620 * tests/nlattr_ifinfomsg.c: New file.
12621 * tests/gen_tests.in (nlattr_ifinfomsg): New entry.
12622 * tests/pure_executables.list: Add nlattr_ifinfomsg.
12623 * tests/.gitignore: Likewise.
12625 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12633 2017-08-15 Dmitry V. Levin <ldv@altlinux.org>
12635 tests/test_nlattr.h: include <stdint.h>
12636 * tests/test_nlattr.h: Include <stdint.h> for definition of uint16_t
12639 tests: use ifindex_lo and IFINDEX_LO_STR.
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.
12654 * tests/nlattr_inet_diag_req_compat.c: Do not check
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.
12676 tests/msg_control: use ifindex_lo and IFINDEX_LO_STR.
12677 * tests/msg_control.c (test_ip_pktinfo): Use ifindex_lo instead
12680 tests/inet-cmsg: use IFINDEX_LO_STR.
12681 * tests/inet-cmsg.c (print_pktinfo): Use IFINDEX_LO_STR instead
12684 tests/ip_mreq: use ifindex_lo and IFINDEX_LO_STR.
12685 * tests/ip_mreq.c: Do not check for HAVE_IF_INDEXTONAME.
12689 tests/group_req: use ifindex_lo and IFINDEX_LO_STR.
12690 * tests/group_req.c: Do not check for HAVE_IF_INDEXTONAME.
12694 tests: add ifindex_lo function and IFINDEX_LO_STR macro to libtests.
12695 * tests/ifindex.c: New file.
12696 * tests/Makefile.am (libtests_a_SOURCES): Add it.
12697 * tests/tests.h (ifindex_lo): New prototype.
12700 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12705 * tests/netlink_route.c: Likewise.
12707 2017-08-14 Eugene Syromyatnikov <evgsyr@gmail.com>
12719 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12723 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12726 tests: check decoding of rtnetlink nsid messages.
12727 * tests/netlink_route.c (test_rtnl_nsid): New function.
12737 tests: check decoding of rtnetlink mdb messages.
12738 * tests/netlink_route.c: Include <netinet/in.h>
12752 tests: check decoding of rtnetlink netconf messages.
12753 * tests/netlink_route.c: Include <linux/netconf.h>.
12766 tests: check decoding of rtnetlink dcb messages.
12767 * tests/netlink_route.c: Include <linux/dcbnl.h>.
12780 tests: check decoding of rtnetlink addrlabel messages.
12781 * tests/netlink_route.c: Include <linux/if_addrlabel.h>.
12794 tests: check decoding of rtnetlink tc action messages.
12795 * tests/netlink_route.c (test_rtnl_tca): New function.
12805 tests: check decoding of rtnetlink tc messages.
12806 * tests/netlink_route.c (test_rtnl_tc): New function.
12817 tests: check decoding of rtnetlink neightbl messages.
12818 * tests/netlink_route.c (test_rtnl_neightbl): New function.
12828 tests: check decoding of rtnetlink neigh messages.
12829 * tests/netlink_route.c: Include <linux/neighbour.h>.
12844 tests: check decoding of rtnetlink rule messages.
12845 * tests/netlink_route.c: Include <linux/fib_rules.h>.
12861 tests: check decoding of rtnetlink route messages.
12862 * tests/netlink_route.c: Include <linux/ip.h>.
12879 tests: check decoding of rtnetlink addr messages.
12880 * tests/netlink_route.c: Include <linux/if_addr.h>.
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>
12909 tests: check decoding of NLMSG_DONE messages of NETLINK_ROUTE.
12910 * tests/netlink_route.c (test_nlmsg_done): New function.
12913 2017-08-11 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
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>
12958 * Makefile.am (dist-hook): Add .strace.1.in.date generation.
12965 * file-date-gen: New auxiliary script.
12972 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12979 (.SH SYNOPSYS): Format using .SY/.OP/.OM/.OR. Put -p/command inside
12982 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
13019 tests: check decoding of rtnetlink link messages.
13020 * tests/netlink_route.c: Include <linux/if_arp.h>.
13036 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13048 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13051 tests: check netlink family specific decoder of NETLINK_ROUTE.
13052 * tests/netlink_route.c: Include <stdint.h>,
13063 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13066 tests: check decoding of NETLINK_KOBJECT_UEVENT messages.
13067 * tests/netlink_kobject_uevent.c: New file.
13068 * tests/gen_tests.in (netlink_kobject_uevent): New entry.
13069 * tests/pure_executables.list: Add netlink_kobject_uevent.
13070 * tests/.gitignore: Likewise.
13072 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13078 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13085 (get_fd_nl_family): Replace NL_FAMILY_ERROR with -1.
13093 2017-08-07 Dmitry V. Levin <ldv@altlinux.org>
13095 Make sysent_shorthand_defs.h suitable for tests.
13097 tests/ksysent.c and tests/nsyscalls.c.
13098 * tests/ksysent.c: Remove shorthand notations.
13099 * tests/nsyscalls.c: Likewise.
13101 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
13113 2017-08-07 JingPiao Chen <chenjingpiao@gmail.com>
13118 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
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 ...
13146 * tests/syntax.sh: ... new file.
13147 * tests/Makefile.am (EXTRA_DIST): Add syntax.sh.
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>
13186 2017-08-06 Dmitry V. Levin <ldv@altlinux.org>
13190 (line_ended, droptcb, print_event_exit): Use it to flush tcp->outf.
13191 * tests/fflush.c: New file.
13192 * tests/fflush.test: New test.
13193 * tests/Makefile.am (MISC_TESTS): Add it.
13194 * tests/.gitignore: Add fflush.
13195 * tests/pure_executables.list: Likewise.
13197 tests: check handling of CLONE_PARENT'ed and CLONE_PTRACE'ed processes.
13198 * tests/clone_parent.c: New file.
13199 * tests/clone_ptrace.c: Likewise.
13200 * tests/clone_parent.test: New test.
13201 * tests/clone_ptrace.test: Likewise.
13202 * tests/.gitignore: Add clone_parent and clone_ptrace.
13203 * tests/Makefile.am (check_PROGRAMS): Likewise.
13206 tests: export a path to the trace executable to check_PROGRAMS.
13207 * tests/init.sh (STRACE_EXE): Initialize from $STRACE and export.
13209 2017-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
13212 This solves potential issues when tests run first and strace is rebuilt
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>
13236 tests: fix unaligned access in nlattr.test.
13237 * tests/nlattr.c (test_nlattr): Use SET_STRUCT
13240 tests: fix unaligned access in nlattr_packet_diag_msg.test.
13241 * tests/nlattr_packet_diag_msg.c (init_packet_diag_msg): Use SET_STRUCT
13244 2017-08-04 Dmitry V. Levin <ldv@altlinux.org>
13252 This condition is triggered and therefore tested by prctl-dumpable test.
13257 2017-08-02 Dmitry V. Levin <ldv@altlinux.org>
13259 tests: enhance test coverage of printstrn and umoven.
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.
13269 * tests/.gitignore: Likewise.
13271 tests: add test_printstrn function to libtests.
13272 * tests/test_ucopy.h (test_printstrn): New prototype.
13273 * tests/test_printstrn.c: New file.
13274 * tests/Makefile.am (libtests_a_SOURCES): Add it.
13276 2017-08-01 Dmitry V. Levin <ldv@altlinux.org>
13278 tests: enhance test coverage of printpath and umovestr.
13279 * tests/init.sh (TIMEOUT_DURATION): Raise from 300 to 600.
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.
13289 * tests/.gitignore: Likewise.
13291 tests: add test_printpath function to libtests.
13292 * tests/test_ucopy.h (test_printpath): New prototype.
13293 * tests/test_printpath.c: New file.
13294 * tests/Makefile.am (libtests_a_SOURCES): Add it.
13296 tests: add test_process_vm_readv and test_ptrace_peekdata to libtests.
13297 * tests/test_ucopy.c: New file.
13298 * tests/test_ucopy.h: Likewise.
13299 * tests/Makefile.am (libtests_a_SOURCES): Add them.
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
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>
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>
13395 * tests/bpf.c (print_BPF_MAP_DELETE_ELEM_first,
13401 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13406 v4.6-rc1~91^2~108^2~6 and v4.12-rc1~64^3~373^2~2, respectively.
13414 * tests/bpf.c: Update macro guards of BPF_MAP_CREATE decoder test.
13420 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13424 command introduced by linux kernel commit v4.12-rc2~34^2~29^2~2.
13431 * tests/bpf.c: Update macro guards of BPF_PROG_LOAD decoder test.
13436 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13438 tests: enhance test coverage of bpf syscall parser.
13440 * tests/bpf.c: Rewrite.
13441 * tests/bpf-v.c: New file.
13442 * tests/gen_tests.in (bpf-v): New entry.
13443 * tests/pure_executables.list: Add bpf-v.
13444 * tests/.gitignore: Likewise.
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.
13459 zero. Print this extra data when it contains non-zero bytes to enhance
13469 * tests/bpf.c (map_delete_elem): New function.
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.
13546 * tests/tests.h (print_quoted_cstring): New prototype.
13547 * tests/print_quoted_string.c (print_quoted_cstring): New function.
13548 * tests/ioctl_block.c (main): Update expected output.
13549 * tests/ioctl_dm.c (main): Likewise.
13550 * tests/ioctl_loop.c (print_loop_info, print_loop_info64): Likewise.
13551 * tests/netlink_crypto.c (test_crypto_msg_newalg): Likewise.
13553 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13555 tests: check decoding of NETLINK_CRYPTO crypto_user_alg attributes.
13556 * tests/nlattr_crypto_user_alg.c: New file.
13557 * tests/gen_tests.in (nlattr_crypto_user_alg): New entry.
13558 * tests/pure_executables.list: Add nlattr_crypto_user_alg.
13559 * tests/.gitignore: Likewise.
13561 tests: extend TEST_NLATTR_OBJECT macro.
13562 * tests/test_nlattr.h (TEST_NLATTR_OBJECT_EX_,
13579 tests: check decoding of NETLINK_CRYPTO messages.
13580 * tests/netlink_crypto.c: Include "test_netlink.h"
13585 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13587 tests: extend TEST_NETLINK_OBJECT macro.
13592 * tests/test_netlink.h (TEST_NETLINK_OBJECT_EX_,
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>
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>
13670 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13676 * tests/keyctl.c (main): Check KEYCTL_RESTRICT_KEYRING decoding.
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
13685 * tests/strace-t.test: Allow any time stamp between start and finish
13688 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
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>
13707 tests: update valgrind suppressions.
13708 * tests/strace.supp: Add a suppression for the memleak before
13711 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
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
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.
13757 * tests/Makefile.am (BUILT_SOURCES): Add ksysent.h.
13759 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13761 tests: fix valgrind suppression file path.
13762 * tests/Makefile.am (VALGRIND_SUPPRESSIONS_FILES): Replace srcdir
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.
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>
13841 tests: check decoding of nlmsgerr attributes.
13842 * tests/nlattr_nlmsgerr.c: New file.
13843 * tests/gen_tests.in (nlattr_nlmsgerr): New entry.
13844 * tests/pure_executables.list: Add nlattr_nlmsgerr.
13845 * tests/.gitignore: Likewise.
13855 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
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>
13874 * tests/netlink_protocol.c (test_ack_flags): New function, check this.
13877 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13879 tests: enhance error diagnostics.
13880 * tests/init.sh (dump_log_and_fail_with): Dump $LOG to stderr instead
13884 tests: enhance timeout diagnostics.
13885 * tests/init.sh: Trap SIGXCPU.
13886 * tests/run.sh: Send SIGXCPU instead of SIGKILL in case of timeout, send
13895 * tests/ioctl_uffdio.c: Include "xlat.h" and "xlat/uffd_api_features.h".
13898 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13901 As struct uffdio_api.features has read-write semantics,
13908 * tests/ioctl_uffdio.c (main): Update expected output.
13910 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13919 * tests/ioctl_uffdio.c (main): Update expected output.
13921 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13926 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13933 * tests/aio.c (main): Update expected output.
13935 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13944 * tests/aio.c (main): Update expected output.
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>
13975 tests: check decoding of NETLINK_SELINUX protocol.
13977 * tests/netlink_selinux.c: Include "test_netlink.h"
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>
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>
14063 tests/tests.h. Avoid this redundancy by moving these definitions
14069 * tests/tests.h (PRI__64, PRI__d64, PRI__u64, PRI__x64): Remove.
14071 2017-07-13 Lazar Trsic <Lazar.Trsic@imgtec.com>
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>
14088 * tests/ioctl_block.c (main): Update expected output.
14090 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14100 * tests/nlattr_inet_diag_msg.c (main): Check it.
14102 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14104 tests: extend coverage of netlink_diag_req decoder.
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>
14114 tests: check decoding of NETLINK_CRYPTO nlmsg_flags.
14115 * tests/netlink_crypto.c (test_nlmsg_flags): New function.
14121 tests: check decoding of NETLINK_CRYPTO message types.
14123 * tests/netlink_crypto.c: New file.
14124 * tests/gen_tests.in (netlink_crypto): New entry.
14125 * tests/pure_executables.list: Add netlink_crypto.
14126 * tests/.gitignore: Likewise.
14133 tests: introduce TEST_NETLINK and TEST_NETLINK_ macros.
14134 * tests/test_netlink.h: New file.
14135 * tests/Makefile.am (libtests_a_SOURCES): Add it.
14136 * tests/netlink_sock_diag.c: Include "test_netlink.h"
14148 2017-07-11 JingPiao Chen <chenjingpiao@gmail.com>
14150 tests: check decoding of nlattr_inet_diag_req_v2 attributes.
14151 * tests/nlattr_inet_diag_req_v2.c: New file.
14152 * tests/gen_tests.in (nlattr_inet_diag_req_v2): New entry.
14153 * tests/pure_executables.list: Add nlattr_inet_diag_req_v2.
14154 * tests/.gitignore: Likewise.
14156 tests: check decoding of nlattr_inet_diag_req_compat attributes.
14157 * tests/nlattr_inet_diag_req_compat.c: New file.
14158 * tests/gen_tests.in (nlattr_inet_diag_req_compat): New entry.
14159 * tests/pure_executables.list: Add nlattr_inet_diag_req_compat.
14160 * tests/.gitignore: Likewise.
14174 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
14191 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
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.
14216 * tests/netlink_sock_diag.c (test_inet_diag_sockid, test_inet_diag_req,
14219 * tests/nlattr_inet_diag_msg.c (print_inet_diag_msg): Likewise.
14220 * tests/nlattr_smc_diag_msg.c (print_smc_diag_msg): Likewise.
14222 2017-07-10 JingPiao Chen <chenjingpiao@gmail.com>
14224 tests: check decoding of netlink smc_diag_msg attributes.
14225 * tests/nlattr_smc_diag_msg.c: New file.
14226 * tests/gen_tests.in (nlattr_smc_diag_msg): New entry.
14227 * tests/pure_executables.list: Add nlattr_smc_diag_msg.
14228 * tests/.gitignore: Likewise.
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>
14256 tests: check decoding of MCAST_JOIN_GROUP/MCAST_LEAVE_GROUP.
14257 * tests/group_req.c: New file.
14258 * tests/gen_tests.in (group_req): New entry.
14259 * tests/pure_executables.list: Add group_req.
14260 * tests/.gitignore: Likewise.
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>
14290 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14299 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14306 * tests/ip_mreq.c (main): Check it. Update expected output.
14311 * tests/so_linger.c (main): Check it.
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>
14402 tests: check decoding of packet_diag_msg attributes.
14403 * tests/netlink_sock_diag-v.sh: New file.
14404 * tests/Makefile.am (EXTRA_DIST): Add it.
14405 * tests/nlattr_packet_diag_msg.c: New file.
14406 * tests/gen_tests.in (nlattr_packet_diag_msg): New entry.
14407 * tests/pure_executables.list: Add nlattr_packet_diag_msg.
14408 * tests/.gitignore: Likewise.
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
14431 * tests/test_nlattr.h (TEST_NLATTR_OBJECT): Pass "plen"
14437 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14439 tests: introduce TEST_NLATTR_nla macro in test_nlattr.h.
14443 * tests/test_nlattr.h (TEST_NLATTR_): Rename nla to TEST_NLATTR_nla.
14445 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14447 tests: check decoding of SO_PEERCRED socket option.
14448 * tests/so_peercred.c: New file.
14449 * tests/gen_tests.in (so_peercred): New entry.
14450 * tests/pure_executables.list: Add so_peercred.
14451 * tests/.gitignore: Likewise.
14458 tests: check decoding of socket filters.
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.
14462 * tests/.gitignore: Likewise.
14477 tests: check decoding of SO_LINGER socket option.
14478 * tests/so_linger.c: New file.
14479 * tests/gen_tests.in (so_linger): New entry.
14480 * tests/pure_executables.list: Add so_linger.
14481 * tests/.gitignore: Likewise.
14483 tests: fix print_quoted_hex output of bytes with high bit set.
14484 * tests/tests.h (print_quoted_memory, print_quoted_hex): Change the type
14486 * tests/print_quoted_string.c: Likewise.
14489 * tests/netlink_protocol.c (send_query): Remove the cast of print_quoted_hex
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>
14563 the minimal kernel version supported by strace.
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>
14584 * tests/netlink_sock_diag.c (test_odd_family_req,
14590 * tests/nlattr.c (test_nlattr): Update expected output.
14595 * tests/netlink_protocol.c (send_query): Update expected output.
14600 * tests/netlink_protocol.c (send_query, test_nlmsgerr,
14602 * tests/netlink_generic.c (test_nlmsg_type): Likewise.
14607 * tests/netlink_protocol.c (test_nlmsgerr): Update expected output.
14612 * tests/tests.h (print_quoted_hex): New prototype.
14613 * tests/print_quoted_string.c (print_quoted_hex): New function.
14614 * tests/test_nlattr.h (TEST_NLATTR_OBJECT, TEST_NLATTR_ARRAY): Use it
14617 * tests/nlattr.c (test_nlattr): Update expected output.
14619 tests: print quotation marks in print_quoted_memory.
14620 * tests/print_quoted_string.c (print_quoted_memory): Print opening
14622 * tests/getcwd.c (main): Do not print quotation marks around
14624 * tests/uname.c (main): Likewise.
14625 * tests/keyctl.c (print_quoted_string_limit): Do not print quotation
14627 * tests/netlink_protocol.c (send_query): Likewise.
14628 * tests/xattr.c (main): Likewise.
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.
14642 * debian/changelog.in: Add a changelog entry for 4.18-1.
14645 2017-07-05 Dmitry V. Levin <ldv@altlinux.org>
14650 2017-07-04 Dmitry V. Levin <ldv@altlinux.org>
14652 tests: robustify create_nl_socket based tests against the race condition
14658 * tests/create_nl_socket.c (create_nl_socket_ext): Add a getsockopt call
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(),
14694 initialization. Add per-process loop, open expfd, gotfd, out_fd, pidfd
14697 * tests/qual_fault.test (N): increase to 100 in order to check
14702 Specify -ff parameter to strace invocation.
14706 * tests/init.sh (TIMEOUT_DURATION): Raise from 120 to 300.
14708 2017-07-03 Dmitry V. Levin <ldv@altlinux.org>
14710 tests: adjust TEST_NLATTR_OBJECT and TEST_NLATTR_ARRAY for large objects
14711 * tests/test_nlattr.h (TEST_NLATTR_OBJECT, TEST_NLATTR_ARRAY): Add
14713 * tests/nlattr_inet_diag_msg.c (main): Change pattern size
14715 * tests/nlattr_netlink_diag_msg.c: Likewise.
14716 * tests/nlattr_unix_diag_msg.c: Likewise.
14718 Reported-by: JingPiao Chen <chenjingpiao@gmail.com>
14720 2017-07-03 Dmitry V. Levin <ldv@altlinux.org>
14722 tests: move DEFAULT_STRLEN macro to tests.h.
14723 * tests/tests.h [!DEFAULT_STRLEN] (DEFAULT_STRLEN): New macro.
14724 * tests/mincore.c (DEFAULT_STRLEN): Remove.
14725 * tests/mmsg_name.c: Likewise.
14726 * tests/msg_control.c: Likewise.
14727 * tests/netlink_protocol.c: Likewise.
14728 * tests/nlattr.c: Likewise.
14729 * tests/nlattr_inet_diag_msg.c: Likewise.
14730 * tests/nlattr_netlink_diag_msg.c: Likewise.
14731 * tests/nlattr_unix_diag_msg.c: Likewise.
14732 * tests/printstr.c: Likewise.
14733 * tests/xattr.c: Likewise.
14734 * tests/execve.c: Likewise.
14736 * tests/execveat.c: Likewise.
14738 Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
14740 2017-07-03 Eugene Syromyatnikov <evgsyr@gmail.com>
14742 tests: use unified diff in order to improve test log readability.
14743 * tests/init.sh (match_diff): Add -u option to the diff invocation.
14745 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14750 * tests/zeroargc.c: New file.
14751 * tests/.gitignore: Add zeroargc.
14752 * tests/Makefile.am (check_PROGRAMS): Likewise.
14753 * tests/options-syntax.test: Check strace error diagnostics
14756 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14767 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14774 * tests/sockname.c (TEST_SYSCALL_STR__, TEST_SYSCALL_STR_): Remove.
14777 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14781 strace and its tests. Start this unification with ARRAY_SIZE macro.
14787 * tests/tests.h: Include "macros.h".
14790 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14797 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14814 * tests/quotactl.h: Include "print_fields.h".
14815 * tests/quotactl-xfs.c: Update callers of PRINT_FIELD_* macros.
14816 * tests/quotactl.c: Likewise.
14818 * tests/test_nlattr.h: Include "print_fields.h".
14820 * tests/xstatx.c: Include "print_fields.h".
14823 * tests/tests.h [!STRACE_PRINTF] (STRACE_PRINTF): Define to printf.
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>
14846 tests: enhance nlattr_unix_diag_msg test.
14847 * tests/nlattr_unix_diag_msg.c: Include "test_nlattr.h".
14854 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14856 tests: check decoding of netlink unix_diag_msg attributes.
14857 * tests/nlattr_unix_diag_msg.c: New file.
14858 * tests/gen_tests.in (nlattr_unix_diag_msg): New entry.
14859 * tests/pure_executables.list: Add nlattr_unix_diag_msg.
14860 * tests/.gitignore: Likewise.
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>
14888 tests: enhance nlattr_netlink_diag_msg test.
14889 * tests/nlattr_netlink_diag_msg.c: Include "test_nlattr.h".
14896 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14898 tests: check decoding of netlink_diag_msg attributes.
14899 * tests/nlattr_netlink_diag_msg.c: New file.
14900 * tests/gen_tests.in (nlattr_netlink_diag_msg): New entry.
14901 * tests/pure_executables.list: Add nlattr_netlink_diag_msg.
14902 * tests/.gitignore: Likewise.
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>
14938 * tests/nlattr_inet_diag_msg.c: Include <net/if.h>.
14943 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14946 tests: check decoding of several standard netlink attributes.
14947 * tests/nlattr_inet_diag_msg.c (main): Check decoding of uint32_t,
14948 uint8_t, and zero-terminated string attributes.
14950 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14952 tests: enhance nlattr_inet_diag_msg test.
14953 * tests/test_nlattr.h: New file.
14954 * tests/Makefile.am (libtests_a_SOURCES): Add it.
14955 * tests/nlattr_inet_diag_msg.c: Include "test_nlattr.h".
14964 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
14966 tests: check decoding of netlink inet_diag_msg attributes.
14967 * tests/nlattr_inet_diag_msg.c: New file.
14968 * tests/gen_tests.in (nlattr_inet_diag_msg): New entry.
14969 * tests/pure_executables.list: Add nlattr_inet_diag_msg.
14970 * tests/.gitignore: Likewise.
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>
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>
15095 tests: introduce NLMSG_ATTR macro.
15096 * tests/tests.h (NLMSG_ATTR): New macro.
15097 * tests/nlattr.c (test_nlattr, test_nla_type): Use it.
15099 2017-06-27 JingPiao Chen <chenjingpiao@gmail.com>
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>
15140 * tests/create_nl_socket.c: Likewise.
15141 * tests/net-sockaddr.c: Likewise.
15142 * tests/netlink_audit.c: Likewise.
15143 * tests/netlink_generic.c: Likewise.
15144 * tests/netlink_inet_diag.c: Likewise.
15145 * tests/netlink_netfilter.c: Likewise.
15146 * tests/netlink_route.c: Likewise.
15147 * tests/netlink_selinux.c: Likewise.
15148 * tests/netlink_xfrm.c: Likewise.
15149 * tests/net-yy-netlink.c: Include "netlink.h" instead
15151 * tests/netlink_netlink_diag.c: Likewise.
15152 * tests/netlink_protocol.c: Likewise.
15153 * tests/netlink_sock_diag.c: Likewise.
15154 * tests/netlink_unix_diag.c: Likewise.
15155 * tests/nlattr.c: Likewise.
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>
15220 tests: check more corner cases of nlattr decoding.
15221 * tests/nlattr.c (test_nlattr): Check decoding in case of invalid
15224 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15226 tests: check decoding of netlink attribute.
15227 * tests/nlattr.c: New file.
15228 * tests/gen_tests.in (nlattr): New entry.
15229 * tests/pure_executables.list: Add nlattr.
15230 * tests/.gitignore: Likewise.
15232 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15244 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15253 * tests/netlink_protocol.c: Replace <linux/netlink.h> with "netlink.h".
15254 * tests/netlink_sock_diag.c: Likewise.
15256 2017-06-20 Dmitry V. Levin <ldv@altlinux.org>
15258 tests: add SET_STRUCT macro to tests.h.
15259 * tests/netlink_sock_diag.c (INIT_STRUCT): Rename to SET_STRUCT,
15261 * tests/tests.h: ... here.
15263 2017-06-19 Dmitry V. Levin <ldv@altlinux.org>
15265 tests: fix potential unaligned access in netlink_sock_diag.test.
15273 * tests/netlink_sock_diag.c (INIT_STRUCT): New macro.
15279 unaligned struct nlmsghdr. Do not access nlh->nlmsg_len.
15281 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15283 tests: check decoding of NETLINK_GENERIC message types.
15284 * tests/netlink_generic.c: New file.
15285 * tests/gen_tests.in (netlink_generic): New entry.
15286 * tests/pure_executables.list: Add netlink_generic.
15287 * tests/.gitignore: Likewise.
15289 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15303 $ ./strace -yy -e 'sendto' ip tcp_metrics > /dev/null
15313 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15324 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15343 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15350 2017-06-18 Dmitry V. Levin <ldv@altlinux.org>
15355 * tests/netlink_audit.c (test_nlmsg_type): Update expected output.
15356 * tests/netlink_netfilter.c: Likewise.
15357 * tests/netlink_selinux.c: Likewise.
15358 * tests/netlink_protocol.c (send_query): Likewise.
15359 * tests/netlink_route.c (test_nlmsg_type, test_nlmsg_flags): Likewise.
15360 * tests/netlink_sock_diag.c: Likewise.
15361 * tests/netlink_xfrm.c: Likewise.
15363 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
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>
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,
15425 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15427 tests: check decoding of incomplete SCM_TIMESTAMP* control messages.
15428 * tests/msg_control.c (test_scm_timestamp, test_scm_timestampns,
15431 2017-06-15 Miroslav Lichvar <mlichvar@redhat.com>
15445 * tests/msg_control.c: Include "xlat.h" and "xlat/scmvals.h".
15450 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15452 tests: check decoding of NETLINK_SOCK_DIAG AF_SMC messages.
15453 * tests/netlink_sock_diag.c: Include <linux/smc_diag.h>.
15468 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15471 tests: check decoding of NETLINK_SOCK_DIAG AF_INET messages.
15472 * tests/netlink_sock_diag.c: Include <arpa/inet.h>
15490 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15497 * tests/ip_mreq.c (main): Update expected output.
15499 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15502 tests: check decoding of NETLINK_SOCK_DIAG AF_PACKET messages.
15503 * tests/netlink_sock_diag.c: Include <linux/if_ether.h>
15518 tests: check decoding of NETLINK_SOCK_DIAG AF_NETLINK messages.
15519 * tests/netlink_sock_diag.c: Include <linux/netlink_diag.h>.
15533 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15537 tests: check decoding of NETLINK_SOCK_DIAG AF_UNIX messages.
15538 * tests/netlink_sock_diag.c: Include <netinet/tcp.h>
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>
15585 tests: extend printstr test.
15586 * tests/printstr.c (main): Add a case for short read.
15588 2017-06-13 Dmitry V. Levin <ldv@altlinux.org>
15597 * tests/ioctl_v4l2.c (init_v4l2_format, dprint_ioctl_v4l2): Likewise.
15599 2017-06-12 Dmitry V. Levin <ldv@altlinux.org>
15607 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15628 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15643 2017-06-12 JingPiao Chen <chenjingpiao@gmail.com>
15645 tests: fix typo.
15646 * tests/dup3.c (SKIP_MAIN_UNDEFINED): Remove duplicated &&.
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.
15666 * tests/netlink_route.c (test_nlmsg_flags): New function, checks
15669 * tests/netlink_sock_diag.c (test_nlmsg_flags): New function, checks
15672 * tests/netlink_xfrm.c: (test_nlmsg_flags): New function, checks
15676 2017-06-08 JingPiao Chen <chenjingpiao@gmail.com>
15688 2017-06-08 Dmitry V. Levin <ldv@altlinux.org>
15696 2017-06-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
15718 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15720 tests: guard against missing linux/netfilter/nfnetlink.h.
15721 nfnetlink was introduced in linux by commit v2.6.14-rc1~1035^2~217,
15725 * tests/netlink_netfilter.c: Check for HAVE_LINUX_NETFILTER_NFNETLINK_H.
15727 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15729 tests: check decoding of NETLINK_XFRM message types.
15730 * tests/netlink_xfrm.c: New file.
15731 * tests/gen_tests.in (netlink_xfrm): New entry.
15732 * tests/pure_executables.list: Add netlink_xfrm.
15733 * tests/.gitignore: Likewise.
15735 tests: check decoding of NETLINK_SELINUX message types.
15736 * tests/netlink_selinux.c: New file.
15737 * tests/gen_tests.in (netlink_selinux): New entry.
15738 * tests/pure_executables.list: Add netlink_selinux.
15739 * tests/.gitignore: Likewise.
15741 tests: check decoding of NETLINK_NETFILTER message types.
15742 * tests/netlink_netfilter.c: New file.
15743 * tests/gen_tests.in (netlink_netfilter): New entry.
15744 * tests/pure_executables.list: Add netlink_netfilter.
15745 * tests/.gitignore: Likewise.
15747 tests: check decoding of NETLINK_AUDIT message types.
15748 * tests/netlink_audit.c: New file.
15749 * tests/gen_tests.in (netlink_audit): New entry.
15750 * tests/pure_executables.list: Add netlink_audit.
15751 * tests/.gitignore: Likewise.
15753 tests: check decoding of NETLINK_ROUTE message types.
15754 * tests/netlink_route.c: New file.
15755 * tests/gen_tests.in (netlink_route): New entry.
15756 * tests/pure_executables.list: Add netlink_route.
15757 * tests/.gitignore: Likewise.
15759 tests: check decoding of NETLINK_SOCK_DIAG message types.
15760 * tests/netlink_sock_diag.c: New file.
15761 * tests/netlink_sock_diag.test: New test.
15762 * tests/pure_executables.list: Add netlink_sock_diag.
15763 * tests/.gitignore: Likewise.
15764 * tests/Makefile.am (DECODER_TESTS): Add netlink_sock_diag.test.
15766 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15768 tests: use create_nl_socket in netlink_protocol.test.
15769 * tests/netlink_protocol.c (main): Use create_nl_socket.
15771 tests: change netlink_protocol.test to trace sendto syscalls only.
15772 * tests/gen_tests.in (netlink_protocol): Replace %network with sendto.
15773 * tests/netlink_protocol.c (main): Update expected output.
15775 tests: enhance create_nl_socket diagnostics messages.
15776 * tests/tests.h (create_nl_socket): Rename to create_nl_socket_ext,
15779 * tests/create_nl_socket.c (create_nl_socket): Rename
15783 tests: use const and designated initializers in create_nl_socket.c.
15784 * tests/create_nl_socket.c: Stop including <string.h>.
15787 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15789 tests: add create_nl_socket function to libtests.
15790 * tests/create_nl_socket.c: New file.
15791 * tests/tests.h (create_nl_socket): New prototype.
15792 * tests/Makefile.am (libtests_a_SOURCES): Add create_nl_socket.c.
15794 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15825 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
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>
15917 tests: avoid hitting SO_SNDBUF limit in sendfile/sendfile64 tests.
15921 * tests/sendfile.c (main): Create a regular file of the right size
15923 * tests/sendfile64.c: Likewise.
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.
15943 tests: extend checking of NLMSG_DONE decoding.
15944 * tests/netlink_protocol.c (test_nlmsg_done): Use designated
15945 initializers. Check decoding of messages with non-integer payload.
15947 2017-06-04 JingPiao Chen <chenjingpiao@gmail.com>
15951 * tests/netlink_protocol.c (test_nlmsg_done): New function
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>
16014 2017-06-02 Victor Krapivensky <krapivenskiy.va@phystech.edu>
16019 for implementing a pull-style API for LuaJIT.
16026 2017-05-30 Dmitry V. Levin <ldv@altlinux.org>
16036 Reported-by: David Robins <dbrobins@i4031.net>
16038 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16040 tests: check decoding of sigaction syscall.
16041 * tests/sigaction.c: New file.
16042 * tests/gen_tests.in (sigaction): New entry.
16043 * tests/pure_executables.list: Add sigaction.
16044 * tests/.gitignore: Likewise.
16046 tests: rename sigaction.test to rt_sigaction.test.
16047 * tests/sigaction.awk: Rename to rt_sigaction.awk.
16048 * tests/sigaction.c: Rename to tests/rt_sigaction.c.
16049 * tests/sigaction.test: Rename to tests/rt_sigaction.test.
16050 * tests/.gitignore: Replace sigaction with rt_sigaction.
16051 * tests/pure_executables.list: Likewise.
16052 * tests/Makefile.am (DECODER_TESTS): Replace sigaction.test
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>
16106 tests: check decoding of sigpending syscall.
16107 * tests/sigpending.c: New file.
16108 * tests/gen_tests.in (sigpending): New entry.
16109 * tests/pure_executables.list: Add sigpending.
16110 * tests/.gitignore: Likewise.
16112 tests: check decoding of sigprocmask syscall.
16113 * tests/sigprocmask.c: New file.
16114 * tests/gen_tests.in (sigprocmask): New entry.
16115 * tests/pure_executables.list: Add sigprocmask.
16116 * tests/.gitignore: Likewise.
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>
16144 tests: check termination signal forwarding.
16145 * tests/run_expect_termsig.c: New file.
16146 * tests/unblock_reset_raise.c: Likewise.
16147 * tests/termsig.test: New test.
16148 * tests/.gitignore: Add run_expect_termsig and unblock_reset_raise.
16149 * tests/Makefile.am (check_PROGRAMS): Likewise.
16152 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16161 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16174 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16180 tests: check how signals are unblocked in interactive mode.
16181 * tests/block_reset_raise_run.c: New file.
16182 * tests/interactive_block.test: New test.
16183 * tests/.gitignore: Add block_reset_raise_run.
16184 * tests/Makefile.am (check_PROGRAMS): Likewise.
16187 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16190 In interactive mode (-I2), those signals that were blocked at startup
16199 2017-05-26 Dmitry V. Levin <ldv@altlinux.org>
16205 tests: check decoding of signal syscall.
16206 * tests/signal.c: New file.
16207 * tests/gen_tests.in (signal): New entry.
16208 * tests/pure_executables.list: Add signal.
16209 * tests/.gitignore: Likewise.
16211 2017-05-26 Eugene Syromyatnikov <evgsyr@gmail.com>
16215 2017-05-25 Dmitry V. Levin <ldv@altlinux.org>
16217 Post-release administrivia.
16219 * debian/changelog.in: Add a changelog entry for 4.17-1.
16222 2017-05-24 Dmitry V. Levin <ldv@altlinux.org>
16232 2017-05-23 Dmitry V. Levin <ldv@altlinux.org>
16237 * tests/sxetmask.c (main): Check decoding of signal mask containing
16240 2017-05-22 Dmitry V. Levin <ldv@altlinux.org>
16249 * tests/sxetmask.c: New file.
16250 * tests/gen_tests.in (sxetmask): New entry.
16251 * tests/pure_executables.list: Add sxetmask.
16252 * tests/.gitignore: Likewise.
16255 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
16259 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
16292 tests: enhance sigsuspend.test.
16293 * tests/sigsuspend.c (sigtxt): New variable.
16296 2017-05-20 Dmitry V. Levin <ldv@altlinux.org>
16303 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
16312 * HACKING-scripts: Update.
16316 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
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.
16350 * tests/sigsuspend.c: New file.
16351 * tests/gen_tests.in (sigsuspend): New entry.
16352 * tests/pure_executables.list: Add sigsuspend.
16353 * tests/.gitignore: Likewise.
16356 2017-05-01 Dmitry V. Levin <ldv@altlinux.org>
16358 tests: raise default timeout for individual tests.
16359 Recently added tests based on pure_executables.list are quite slow
16363 * tests/init.sh (TIMEOUT_DURATION): Raise from 60 to 120.
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>
16383 tests: enhance madvise decoder check.
16384 * tests/mmap.c (main): Remove madvise check.
16385 * tests/madvise.c: New file.
16386 * tests/gen_tests.in (madvise): New entry.
16387 * tests/.gitignore: Add madvise.
16388 * tests/pure_executables.list: Likewise.
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
16397 * tests/trace_question.in: New file.
16398 * tests/Makefile.am (EXTRA_DIST): Add it.
16400 2017-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
16402 tests: add more information to generated header comments.
16403 * tests/gen_tests.sh: Update header comment with the source string
16406 tests: move generated common header comment into a variable.
16407 * tests/gen_tests.sh: Move generated file header comment
16410 2017-04-25 Dmitry V. Levin <ldv@altlinux.org>
16412 tests: use TAIL_ALLOC_OBJECT_CONST_PTR in v4l2 test.
16413 * tests/ioctl_v4l2.c (main): Use TAIL_ALLOC_OBJECT_CONST_PTR.
16415 2017-04-25 Edgar Kaziahmedov <edos@linux.com>
16417 tests: Check decoding of VIDIOC_G/S_TUNER's arg.
16418 * tests/ioctl_v4l2.c (main): Add checks for 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>
16464 tests: check decoding of invalid tv_sec and tv_usec values.
16465 * tests/futimesat.c (main): Check decoding of invalid tv_sec and tv_usec
16467 * tests/xetitimer.c (main): Likewise.
16468 * tests/xettimeofday.c (main): Likewise.
16469 * tests/xselect.c (main): Likewise.
16470 * tests/xutimes.c (main): Likewise.
16472 tests: check decoding of invalid tv_sec and tv_nsec values.
16473 * tests/aio.c (main): Check decoding of invalid tv_sec and tv_nsec
16475 * tests/clock_nanosleep.c (main): Likewise.
16476 * tests/clock_xettime.c (main): Likewise.
16477 * tests/futex.c (main): Likewise.
16478 * tests/nanosleep.c (main): Likewise.
16479 * tests/ppoll.c (main): Likewise.
16480 * tests/pselect6.c (main): Likewise.
16481 * tests/recvmmsg-timeout.c (main): Likewise.
16482 * tests/rt_sigtimedwait.c (main): Likewise.
16483 * tests/semop.c (main): Likewise.
16484 * tests/timer_xettime.c (main): Likewise.
16485 * tests/timerfd_xettime.c (main): Likewise.
16486 * tests/utimensat.c (main): Likewise.
16488 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16494 * tests/time.c (main): Update expected output.
16496 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16507 * tests/futimesat.c (print_tv): Update expected output.
16508 * tests/utimensat.c (print_ts): Likewise.
16509 * tests/xutimes.c (print_tv): Likewise.
16511 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16513 tests: add support for printing timestamp with microsecond precision.
16516 * tests/tests.h (print_time_t_usec): New prototype.
16517 * tests/print_time.c (print_time_t_usec): New function, a thin wrapper
16520 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16523 Print microseconds/nanoseconds as non-negative.
16539 * tests/adjtimex.c (main): Change tv_sec printing format to %lld, cast
16542 * tests/clock_nanosleep.c (main): Change tv_sec printing format to %lld,
16545 * tests/clock_xettime.c (main): Likewise.
16546 * tests/futex.c (main): Likewise.
16547 * tests/futimesat.c (print_tv): Likewise.
16548 * tests/getrusage.c (invoke_print): Likewise.
16549 * tests/mq_sendrecv.c (do_send, do_recv, main): Likewise.
16550 * tests/nanosleep.c (main): Likewise.
16551 * tests/pselect6.c (main): Likewise.
16552 * tests/restart_syscall.c (main): Likewise.
16553 * tests/rt_sigtimedwait.c (iterate, main): Likewise.
16554 * tests/sched_rr_get_interval.c (main): Likewise.
16555 * tests/semop.c (main): Likewise.
16556 * tests/timer_xettime.c (main): Likewise.
16557 * tests/timerfd_xettime.c (main): Likewise.
16558 * tests/waitid.c (main): Likewise.
16559 * tests/xetitimer.c (main): Likewise.
16560 * tests/xettimeofday.c (main): Likewise.
16561 * tests/xselect.c (main): Likewise.
16562 * tests/xutimes.c (print_tv): Likewise.
16563 * tests/wait4.c (sprint_rusage): Likewise.
16564 * tests/waitid.c (sprint_rusage): Likewise.
16565 * tests/utimensat.c (print_ts): Likewise.
16568 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16594 * tests/tests.h (print_time_t_nsec): Add int argument.
16595 * tests/print_time.c (print_time_t_ex): New function.
16598 * tests/utime.c (main): Update expected output.
16599 * tests/xstatx.c [!IS_STATX] (HAVE_NSEC): New macro.
16604 2017-04-24 Dmitry V. Levin <ldv@altlinux.org>
16625 * tests/btrfs.c (btrfs_test_get_dev_stats_ioctl,
16631 * tests/execve.c: Update expected output.
16632 * tests/execveat.c: Likewise.
16633 * tests/qual_syscall.test: Likewise.
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.
16646 * tests/ioctl_dm.c: Update expected output.
16651 2017-04-23 Eugene Syromyatnikov <evgsyr@gmail.com>
16653 tests: add faulty pointer check to time test.
16654 * tests/time.c (main): Add check for an inaccessible pointer.
16656 2017-04-22 Dmitry V. Levin <ldv@altlinux.org>
16658 tests: fix print_time_t_nsec usage in xstatx.c.
16659 * tests/xstatx.c (print_stat): Pass tv_nsec field through
16662 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16664 tests: fix netlink_protocol on sparc.
16665 * tests/netlink_protocol.c (test_nlmsgerr): Do not access fields of an
16668 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16676 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16678 tests: remove stat.sample creation from gen_tests.in.
16681 * tests/gen_tests.in (trace_fstat, trace_lstat, trace_stat,
16684 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16686 tests: tabulate fstat.test.
16687 * tests/gen_tests.in (fstat): New entry.
16689 * tests/fstat.test: Remove.
16690 * tests/Makefile.am (DECODER_TESTS): Remove fstat.test.
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
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,
16731 * tests/gen_tests.in (trace_stat): New entry.
16732 * tests/trace_stat.in: New file.
16733 * tests/Makefile.am (EXTRA_DIST): Add it.
16734 * tests/ksysent.c (TST): New macro, defined to 0.
16735 * tests/nsyscalls.c: Likewise.
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
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,
16776 * tests/gen_tests.in (trace_lstat): New entry.
16777 * tests/trace_lstat.in: New file.
16778 * tests/Makefile.am (EXTRA_DIST): Add it.
16779 * tests/ksysent.c (TLST): New macro, defined to 0.
16780 * tests/nsyscalls.c: Likewise.
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
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,
16825 * tests/gen_tests.in (trace_fstat): New entry.
16826 * tests/trace_fstat.in: New file.
16827 * tests/Makefile.am (EXTRA_DIST): Add it.
16828 * tests/ksysent.c (TFST): New macro, defined to 0.
16829 * tests/nsyscalls.c: Likewise.
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/' \
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,
16894 * tests/gen_tests.in (trace_stat_like): New entry.
16895 * tests/trace_stat_like.in: New file.
16896 * tests/Makefile.am (EXTRA_DIST): Add it.
16897 * tests/ksysent.c (TSTA): New macro, defined to 0.
16898 * tests/nsyscalls.c: Likewise.
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
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.
16977 * tests/gen_tests.in (trace_statfs_like): New entry.
16978 * tests/trace_statfs_like.in: New file.
16979 * tests/Makefile.am (EXTRA_DIST): Add it.
16980 * tests/ksysent.c (TSFA): New macro, defined to 0.
16981 * tests/nsyscalls.c: 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/' \
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.
17025 * tests/gen_tests.in (trace_fstatfs): New entry.
17026 * tests/trace_fstatfs.in: New file.
17027 * tests/Makefile.am (EXTRA_DIST): Add it.
17028 * tests/ksysent.c (TFSF): New macro, defined to 0.
17029 * tests/nsyscalls.c: Likewise.
17031 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17036 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17038 tests: tabulate sched.test.
17041 * tests/gen_tests.in (sched): New entry.
17042 * tests/sched.in: New file, derived from a set of tests in sched.test.
17043 * tests/sched.test: Remove.
17044 * tests/Makefile.am (DECODER_TESTS): Remove sched.test.
17047 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17049 tests: tabulate regex.test.
17052 * tests/gen_tests.in (regex): New entry.
17053 * tests/regex.in: New file, derived from a set of tests in regex.test.
17054 * tests/regex.test: Remove.
17055 * tests/Makefile.am (DECODER_TESTS): Remove regex.test.
17058 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17060 tests: tabulate clock.test.
17063 * tests/gen_tests.in (clock): New entry.
17064 * tests/clock.in: New file, derived from a set of tests in clock.test.
17065 * tests/clock.test: Remove.
17066 * tests/Makefile.am (DECODER_TESTS): Remove clock.test.
17069 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17071 tests: tabulate trace_statfs.test.
17074 * tests/gen_tests.in (trace_statfs): New entry.
17075 * tests/trace_statfs.in: New file, derived from a set of tests
17077 * tests/trace_statfs.test: Remove.
17078 * tests/Makefile.am (DECODER_TESTS): Remove trace_statfs.test.
17081 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17083 tests/init.sh: add helpers for running set of programs.
17087 test_trace_expr tests trace expressions.
17089 * tests/init.sh (prog_set_subtract, test_pure_prog_set,
17092 2017-04-20 Dmitry V. Levin <ldv@altlinux.org>
17094 tests: extend gen_tests.sh further.
17095 * tests/gen_tests.sh: Extend support of arbitrary rules.
17097 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17099 tests/xstat.c: do not remove sample file after test.
17100 As tests are executed in separate directories now, there is no need to
17103 * tests/xstat.c (main): Remove unlink calls.
17105 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17107 tests: use fixed name for stat tests sample file.
17108 As tests are now run in separate directories.
17110 * tests/xstatx.c: Use fixed "stat.sample" name for sample file.
17111 * tests/fstat.test: Use it as an argument for -P option.
17112 * tests/gen_tests.in (fstat64, lstat, lstat64, newfstatat, oldlstat,
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.
17133 Reported-by: Andreas Schwab <schwab@suse.de>
17135 2017-04-19 Dmitry V. Levin <ldv@altlinux.org>
17137 tests: move /proc/ checks from scripts to executables.
17141 * tests/attach-f-p.test: Move /proc/self/task/ check ...
17142 * tests/attach-f-p-cmd.c (main): ... here.
17143 * tests/fstat.test: Move /proc/self/fd/ check ...
17144 * tests/xstatx.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.
17170 tests: add skip_if_unavailable function to libtests.
17171 * tests/skip_unavailable.c: New file.
17172 * tests/tests.h (skip_if_unavailable): New prototype.
17173 * tests/Makefile.am (libtests_a_SOURCES): Add skip_unavailable.c.
17175 tests: tabulate netlink_protocol.test.
17176 * tests/gen_tests.in (netlink_protocol): New entry.
17177 * tests/netlink_protocol.test: Remove.
17178 * tests/Makefile.am (DECODER_TESTS): Remove netlink_protocol.test.
17180 tests: tabulate statfs.test.
17181 * tests/gen_tests.in (statfs): New entry.
17183 * tests/statfs.test: Remove.
17184 * tests/Makefile.am (DECODER_TESTS): Remove statfs.test.
17186 2017-04-18 Dmitry V. Levin <ldv@altlinux.org>
17188 tests: skip statfs related tests if their sample files are not available
17189 * tests/xstatfsx.c (print_statfs): Skip the test if open failed.
17191 tests: extend gen_tests.sh to support arbitrary test_* rules.
17192 * tests/gen_tests.sh: Add support of arbitrary test_* rules.
17194 tests: change gen_tests.sh to read its input as raw input.
17195 * tests/gen_tests.sh: Specify -r option to read.
17196 * tests/gen_tests.in (shmxt): Update.
17198 2017-04-18 Eugene Syromyatnikov <evgsyr@gmail.com>
17202 2017-04-17 Dmitry V. Levin <ldv@altlinux.org>
17211 * tests/netlink_protocol.c (send_query): Check decoding
17228 * tests/move_pages.c (print_status_array): Update expected output.
17230 tests: generate pure_executables part of check_PROGRAMS automatically.
17231 * tests/gen_pure_executables.sh: New file.
17233 * tests/Makefile.am: Include pure_executables.am.
17237 * tests/.gitignore: Add pure_executables.am.
17239 tests: make EXTRA_DIST sorted.
17240 * tests/Makefile.am (EXTRA_DIST): Sort.
17242 tests: check decoding of alpha specific osf_utimes syscall.
17243 * tests/osf_utimes.c: New file.
17244 * tests/gen_tests.in (osf_utimes): New entry.
17245 * tests/Makefile.am (check_PROGRAMS): Add osf_utimes.
17246 * tests/pure_executables.list: Likewise.
17247 * tests/.gitignore: Likewise.
17249 tests: parametrize utimes.c.
17250 * tests/xutimes.c: New file, based on utimes.c.
17251 * tests/utimes.c [__NR_utimes] (TEST_SYSCALL_NR, TEST_SYSCALL_STR,
17254 * tests/Makefile.am (EXTRA_DIST): Add xutimes.c.
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>
17276 tests: do more rigorous testing of utimes syscall parser.
17277 * tests/utimes.c (errstr): New variable.
17280 * tests/gen_tests.in (utimes): Update -a option.
17282 tests: do more rigorous testing of futimesat syscall parser.
17283 * tests/futimesat.c (errstr): New variable.
17287 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17298 * tests/futimesat.c (main): Update expected output.
17299 * tests/utimes.c (main): Likewise.
17301 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17303 tests: rewrite utimensat.test without relying on libc utimensat wrapper.
17306 * tests/utimensat.c: Stop including <assert.h> and <errno.h>, include
17313 * tests/gen_tests.in (utimensat): New entry.
17314 * tests/utimensat.test: Remove.
17315 * tests/Makefile.am (DECODER_TESTS): Remove it.
17317 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17319 tests: use fixed timestamps in utime related tests.
17320 * tests/clock.test: Remove futimesat, utime, utimensat, and utimes tests
17322 * tests/utime.c (main): Do not use time(), use fixed timestamp instead.
17323 * tests/futimesat.c (main): Do not use gettimeofday(), use fixed
17325 * tests/utimensat.c (main): Likewise.
17326 * tests/utimes.c (main): Likewise.
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.
17351 * tests/xstatx.c (print_stat, main): Update to test decoding
17354 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17356 tests: add more regex match checks.
17357 * tests/qual_syscall.test: Add regex match checks.
17359 tests: make mq_sendrecv* test executables reenterable.
17360 * tests/mq_sendrecv.c (MQ_NAME): Remove.
17366 tests: make mq test executable reenterable.
17367 * tests/mq.c (NAME): Remove.
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
17376 tests: tabulate shmxt.test.
17377 * tests/gen_tests.in (shmxt): New entry.
17378 * tests/shmxt.test: Remove.
17379 * tests/Makefile.am (DECODER_TESTS): Remove shmxt.test.
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.
17419 * tests/sched.test: Replace trace=%sched with trace=/sched.
17420 * tests/ksysent.c (TSC): Remove.
17421 * tests/nsyscalls.c: 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.
17461 * tests/clock.test: Replace trace=%clock with trace=/clock.
17462 * tests/ksysent.c (TCL): Remove.
17463 * tests/nsyscalls.c: Likewise.
17465 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17467 tests: robustify regex.test.
17468 * tests/regex.test: Use trace_statfs.test as a template instead
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.
17481 * tests/regex.test: New test.
17482 * tests/Makefile.am (DECODER_TESTS): Add it.
17483 * tests/options-syntax.test: Add checks for invaild regexp
17486 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17488 tests: fix ioctl_nsfs.test on hppa.
17489 * tests/ioctl_nsfs.c (test_user_namespace): Specify an address
17494 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17496 tests: fix ioctl_nsfs.test on ia64.
17501 * tests/ioctl_nsfs.c [IA64] (__clone2): New prototype.
17504 2017-04-13 Edgar Kaziahmedov <edos@linux.com>
17506 tests: check decoding of the remaining V4L2_BUF_TYPE_* types.
17507 * tests/ioctl_v4l2.c (init_v4l2_format, print_ioctl_v4l2): New functions
17508 to avoid code duplication in VIDIOC_S_FMT and VIDIOC_TRY_FMT tests.
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>
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>
17552 * tests/ioctl_nsfs.c: New file.
17553 * tests/ioctl_nsfs.test: Likewise.
17554 * tests/.gitignore: Add ioctl_nsfs.
17555 * tests/Makefile.am (check_PROGRAMS): Likewise.
17559 2017-04-13 Dmitry V. Levin <ldv@altlinux.org>
17562 * travis-build.sh (coverage): Print tests*/test-suite.log
17563 and tests*/ksysent.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.
17575 * tests/gen_tests.sh: Use abs_srcdir instead of srcdir to construct
17578 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17586 * tests/get_regs.test: New test.
17587 * tests/Makefile.am (MISC_TESTS): Add it.
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>
17628 tests: check decoding of gettid syscall.
17629 * tests/gettid.c: New file.
17630 * tests/.gitignore: Add gettid.
17631 * tests/Makefile.am (check_PROGRAMS): Likewise.
17632 * tests/gen_tests.in (gettid): New entry.
17634 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17636 tests: fix build on alpha.
17637 * tests/getpid.c: Skip if __NR_getpid is not defined.
17638 * tests/getppid.c: Skip if __NR_getppid is not defined.
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>
17676 tests: remove statfs.expected.
17677 statfs.expected is unused since commit v4.11-515-g67c2f67.
17679 * tests/statfs.expected: Remove.
17680 * tests/Makefile.am (EXTRA_DIST): Remove it.
17682 2017-04-07 Sandhya Bankar <bankarsandhya512@gmail.com>
17684 tests: add tests for getpid and getppid syscalls.
17688 * tests/getpid.c: New file.
17689 * tests/getppid.c: Likewise.
17690 * tests/.gitignore: Add getpid and getppid.
17691 * tests/pure_executables.list: Likewise.
17692 * tests/Makefile.am (check_PROGRAMS): Likewise.
17693 * tests/gen_tests.in (getpid, getppid): New entries.
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/' \
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.
17770 * tests/trace_statfs.test: New test.
17771 * tests/Makefile.am (DECODER_TESTS): Add it.
17772 * tests/ksysent.c (TSF): New macro, defined to 0.
17773 * tests/nsyscalls.c: 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
17800 * linux/mips/syscallent-n32.h: Likewise.
17801 * linux/mips/syscallent-n64.h: Likewise.
17802 * linux/mips/syscallent-o32.h: Likewise.
17814 * tests/clock.test: New test.
17815 * tests/Makefile.am (DECODER_TESTS): Add it.
17816 * tests/ksysent.c (TCL): New macro, defined to 0.
17817 * tests/nsyscalls.c: Likewise.
17819 2017-04-06 Dmitry V. Levin <ldv@altlinux.org>
17821 tests: tabulate xattr.test.
17822 * tests/gen_tests.in (xattr): New entry.
17823 * tests/xattr.test: Remove.
17824 * tests/Makefile.am (DECODER_TESTS): Remove xattr.test.
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.
17830 * tests/Makefile.am (EXTRA_DIST): Add it.
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>
17841 tests: tabulate stereotypical test scripts.
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"
17866 * tests/gen_tests.in: New file.
17867 * tests/gen_tests.sh: New file.
17869 * tests/.gitignore: Add *.gen.test and gen_tests.am.
17870 * tests/_newselect.test: Remove.
17871 * tests/accept.test: Ditto.
17872 * tests/accept4.test: Ditto.
17873 * tests/access.test: Ditto.
17874 * tests/acct.test: Ditto.
17875 * tests/add_key.test: Ditto.
17876 * tests/adjtimex.test: Ditto.
17877 * tests/aio.test: Ditto.
17878 * tests/alarm.test: Ditto.
17879 * tests/bpf.test: Ditto.
17880 * tests/btrfs.test: Ditto.
17881 * tests/chmod.test: Ditto.
17882 * tests/chown.test: Ditto.
17883 * tests/chown32.test: Ditto.
17884 * tests/chroot.test: Ditto.
17885 * tests/clock_adjtime.test: Ditto.
17886 * tests/clock_nanosleep.test: Ditto.
17887 * tests/clock_xettime.test: Ditto.
17888 * tests/copy_file_range.test: Ditto.
17889 * tests/creat.test: Ditto.
17890 * tests/delete_module.test: Ditto.
17891 * tests/dup.test: Ditto.
17892 * tests/dup2.test: Ditto.
17893 * tests/dup3.test: Ditto.
17894 * tests/epoll_create.test: Ditto.
17895 * tests/epoll_create1.test: Ditto.
17896 * tests/epoll_ctl.test: Ditto.
17897 * tests/epoll_pwait.test: Ditto.
17898 * tests/epoll_wait.test: Ditto.
17899 * tests/erestartsys.test: Ditto.
17900 * tests/execveat-v.test: Ditto.
17901 * tests/execveat.test: Ditto.
17902 * tests/faccessat.test: Ditto.
17903 * tests/fadvise64_64.test: Ditto.
17904 * tests/fallocate.test: Ditto.
17905 * tests/fanotify_init.test: Ditto.
17906 * tests/fanotify_mark.test: Ditto.
17907 * tests/fchdir.test: Ditto.
17908 * tests/fchmod.test: Ditto.
17909 * tests/fchmodat.test: Ditto.
17910 * tests/fchown.test: Ditto.
17911 * tests/fchown32.test: Ditto.
17912 * tests/fchownat.test: Ditto.
17913 * tests/fcntl.test: Ditto.
17914 * tests/fcntl64.test: Ditto.
17915 * tests/fdatasync.test: Ditto.
17916 * tests/file_handle.test: Ditto.
17917 * tests/file_ioctl.test: Ditto.
17918 * tests/finit_module.test: Ditto.
17919 * tests/flock.test: Ditto.
17920 * tests/fork-f.test: Ditto.
17921 * tests/fstat64.test: Ditto.
17922 * tests/fstatat64.test: Ditto.
17923 * tests/fstatfs.test: Ditto.
17924 * tests/fstatfs64.test: Ditto.
17925 * tests/fsync.test: Ditto.
17926 * tests/ftruncate.test: Ditto.
17927 * tests/ftruncate64.test: Ditto.
17928 * tests/futimesat.test: Ditto.
17929 * tests/get_mempolicy.test: Ditto.
17930 * tests/getcpu.test: Ditto.
17931 * tests/getcwd.test: Ditto.
17932 * tests/getdents.test: Ditto.
17933 * tests/getdents64.test: Ditto.
17934 * tests/getegid.test: Ditto.
17935 * tests/getegid32.test: Ditto.
17936 * tests/geteuid.test: Ditto.
17937 * tests/geteuid32.test: Ditto.
17938 * tests/getgid.test: Ditto.
17939 * tests/getgid32.test: Ditto.
17940 * tests/getgroups.test: Ditto.
17941 * tests/getgroups32.test: Ditto.
17942 * tests/getpeername.test: Ditto.
17943 * tests/getpgrp.test: Ditto.
17944 * tests/getrandom.test: Ditto.
17945 * tests/getresgid.test: Ditto.
17946 * tests/getresgid32.test: Ditto.
17947 * tests/getresuid.test: Ditto.
17948 * tests/getresuid32.test: Ditto.
17949 * tests/getrlimit.test: Ditto.
17950 * tests/getrusage.test: Ditto.
17951 * tests/getsid.test: Ditto.
17952 * tests/getsockname.test: Ditto.
17953 * tests/getuid32.test: Ditto.
17954 * tests/getxxid.test: Ditto.
17955 * tests/inet-cmsg.test: Ditto.
17956 * tests/init_module.test: Ditto.
17957 * tests/inotify.test: Ditto.
17958 * tests/inotify_init1.test: Ditto.
17959 * tests/int_0x80.test: Ditto.
17960 * tests/ioctl_block.test: Ditto.
17961 * tests/ioctl_evdev.test: Ditto.
17962 * tests/ioctl_loop.test: Ditto.
17963 * tests/ioctl_mtd.test: Ditto.
17964 * tests/ioctl_rtc.test: Ditto.
17965 * tests/ioctl_scsi.test: Ditto.
17966 * tests/ioctl_sg_io_v3.test: Ditto.
17967 * tests/ioctl_sg_io_v4.test: Ditto.
17968 * tests/ioctl_uffdio.test: Ditto.
17969 * tests/ioctl_v4l2.test: Ditto.
17970 * tests/ioperm.test: Ditto.
17971 * tests/iopl.test: Ditto.
17972 * tests/ioprio.test: Ditto.
17973 * tests/ip_mreq.test: Ditto.
17974 * tests/ipc.test: Ditto.
17975 * tests/ipc_msg.test: Ditto.
17976 * tests/ipc_sem.test: Ditto.
17977 * tests/ipc_shm.test: Ditto.
17978 * tests/kcmp.test: Ditto.
17979 * tests/kexec_file_load.test: Ditto.
17980 * tests/kexec_load.test: Ditto.
17981 * tests/keyctl.test: Ditto.
17982 * tests/kill.test: Ditto.
17983 * tests/lchown.test: Ditto.
17984 * tests/lchown32.test: Ditto.
17985 * tests/link.test: Ditto.
17986 * tests/linkat.test: Ditto.
17987 * tests/lookup_dcookie.test: Ditto.
17988 * tests/lstat.test: Ditto.
17989 * tests/lstat64.test: Ditto.
17990 * tests/mbind.test: Ditto.
17991 * tests/membarrier.test: Ditto.
17992 * tests/memfd_create.test: Ditto.
17993 * tests/migrate_pages.test: Ditto.
17994 * tests/mincore.test: Ditto.
17995 * tests/mkdir.test: Ditto.
17996 * tests/mkdirat.test: Ditto.
17997 * tests/mknod.test: Ditto.
17998 * tests/mknodat.test: Ditto.
17999 * tests/mlock.test: Ditto.
18000 * tests/mlock2.test: Ditto.
18001 * tests/mlockall.test: Ditto.
18002 * tests/mmap64.test: Ditto.
18003 * tests/mmsg-silent.test: Ditto.
18004 * tests/mmsg.test: Ditto.
18005 * tests/mmsg_name-v.test: Ditto.
18006 * tests/mmsg_name.test: Ditto.
18007 * tests/mount.test: Ditto.
18008 * tests/move_pages.test: Ditto.
18009 * tests/mq.test: Ditto.
18010 * tests/mq_sendrecv-read.test: Ditto.
18011 * tests/mq_sendrecv-write.test: Ditto.
18012 * tests/mq_sendrecv.test: Ditto.
18013 * tests/msg_control-v.test: Ditto.
18014 * tests/msg_control.test: Ditto.
18015 * tests/msg_name.test: Ditto.
18016 * tests/munlockall.test: Ditto.
18017 * tests/nanosleep.test: Ditto.
18018 * tests/net-icmp_filter.test: Ditto.
18019 * tests/net-sockaddr.test: Ditto.
18020 * tests/newfstatat.test: Ditto.
18021 * tests/old_mmap.test: Ditto.
18022 * tests/oldfstat.test: Ditto.
18023 * tests/oldlstat.test: Ditto.
18024 * tests/oldstat.test: Ditto.
18025 * tests/open.test: Ditto.
18026 * tests/openat.test: Ditto.
18027 * tests/pause.test: Ditto.
18028 * tests/perf_event_open.test: Ditto.
18029 * tests/perf_event_open_nonverbose.test: Ditto.
18030 * tests/perf_event_open_unabbrev.test: Ditto.
18031 * tests/pipe2.test: Ditto.
18032 * tests/pkey_alloc.test: Ditto.
18033 * tests/pkey_free.test: Ditto.
18034 * tests/pkey_mprotect.test: Ditto.
18035 * tests/ppoll-v.test: Ditto.
18036 * tests/ppoll.test: Ditto.
18037 * tests/preadv-pwritev.test: Ditto.
18038 * tests/preadv.test: Ditto.
18039 * tests/preadv2-pwritev2.test: Ditto.
18040 * tests/printstr.test: Ditto.
18041 * tests/prlimit64.test: Ditto.
18042 * tests/process_vm_readv.test: Ditto.
18043 * tests/process_vm_writev.test: Ditto.
18044 * tests/pselect6.test: Ditto.
18045 * tests/ptrace.test: Ditto.
18046 * tests/pwritev.test: Ditto.
18047 * tests/quotactl-v.test: Ditto.
18048 * tests/quotactl-xfs-v.test: Ditto.
18049 * tests/quotactl-xfs.test: Ditto.
18050 * tests/quotactl.test: Ditto.
18051 * tests/readahead.test: Ditto.
18052 * tests/readdir.test: Ditto.
18053 * tests/readlink.test: Ditto.
18054 * tests/readlinkat.test: Ditto.
18055 * tests/reboot.test: Ditto.
18056 * tests/recvfrom.test: Ditto.
18057 * tests/recvmmsg-timeout.test: Ditto.
18058 * tests/recvmsg.test: Ditto.
18059 * tests/remap_file_pages.test: Ditto.
18060 * tests/rename.test: Ditto.
18061 * tests/renameat.test: Ditto.
18062 * tests/renameat2.test: Ditto.
18063 * tests/request_key.test: Ditto.
18064 * tests/rmdir.test: Ditto.
18065 * tests/rt_sigpending.test: Ditto.
18066 * tests/rt_sigprocmask.test: Ditto.
18067 * tests/rt_sigqueueinfo.test: Ditto.
18068 * tests/rt_sigreturn.test: Ditto.
18069 * tests/rt_sigsuspend.test: Ditto.
18070 * tests/rt_sigtimedwait.test: Ditto.
18071 * tests/rt_tgsigqueueinfo.test: Ditto.
18072 * tests/sched_get_priority_mxx.test: Ditto.
18073 * tests/sched_rr_get_interval.test: Ditto.
18074 * tests/sched_xetaffinity.test: Ditto.
18075 * tests/sched_xetattr.test: Ditto.
18076 * tests/sched_xetparam.test: Ditto.
18077 * tests/sched_xetscheduler.test: Ditto.
18078 * tests/sched_yield.test: Ditto.
18079 * tests/seccomp-filter-v.test: Ditto.
18080 * tests/seccomp-filter.test: Ditto.
18081 * tests/select.test: Ditto.
18082 * tests/semop.test: Ditto.
18083 * tests/sendfile.test: Ditto.
18084 * tests/sendfile64.test: Ditto.
18085 * tests/set_mempolicy.test: Ditto.
18086 * tests/setdomainname.test: Ditto.
18087 * tests/setfsgid.test: Ditto.
18088 * tests/setfsgid32.test: Ditto.
18089 * tests/setfsuid.test: Ditto.
18090 * tests/setfsuid32.test: Ditto.
18091 * tests/setgid.test: Ditto.
18092 * tests/setgid32.test: Ditto.
18093 * tests/setgroups.test: Ditto.
18094 * tests/setgroups32.test: Ditto.
18095 * tests/sethostname.test: Ditto.
18096 * tests/setns.test: Ditto.
18097 * tests/setregid.test: Ditto.
18098 * tests/setregid32.test: Ditto.
18099 * tests/setresgid.test: Ditto.
18100 * tests/setresgid32.test: Ditto.
18101 * tests/setresuid.test: Ditto.
18102 * tests/setresuid32.test: Ditto.
18103 * tests/setreuid.test: Ditto.
18104 * tests/setreuid32.test: Ditto.
18105 * tests/setrlimit.test: Ditto.
18106 * tests/setuid.test: Ditto.
18107 * tests/setuid32.test: Ditto.
18108 * tests/shutdown.test: Ditto.
18109 * tests/siginfo.test: Ditto.
18110 * tests/signal_receive.test: Ditto.
18111 * tests/signalfd4.test: Ditto.
18112 * tests/sigreturn.test: Ditto.
18113 * tests/socketcall.test: Ditto.
18114 * tests/splice.test: Ditto.
18115 * tests/stat.test: Ditto.
18116 * tests/stat64.test: Ditto.
18117 * tests/statfs64.test: Ditto.
18118 * tests/statx.sh: Ditto.
18119 * tests/statx.test: Ditto.
18120 * tests/swap.test: Ditto.
18121 * tests/symlink.test: Ditto.
18122 * tests/symlinkat.test: Ditto.
18123 * tests/sync.test: Ditto.
18124 * tests/sync_file_range.test: Ditto.
18125 * tests/sync_file_range2.test: Ditto.
18126 * tests/sysinfo.test: Ditto.
18127 * tests/syslog.test: Ditto.
18128 * tests/tee.test: Ditto.
18129 * tests/time.test: Ditto.
18130 * tests/timer_create.test: Ditto.
18131 * tests/timer_xettime.test: Ditto.
18132 * tests/timerfd_xettime.test: Ditto.
18133 * tests/times-fail.test: Ditto.
18134 * tests/times.test: Ditto.
18135 * tests/truncate.test: Ditto.
18136 * tests/truncate64.test: Ditto.
18137 * tests/ugetrlimit.test: Ditto.
18138 * tests/umask.test: Ditto.
18139 * tests/umoven-illptr.test: Ditto.
18140 * tests/umovestr-illptr.test: Ditto.
18141 * tests/umovestr3.test: Ditto.
18142 * tests/unlink.test: Ditto.
18143 * tests/unlinkat.test: Ditto.
18144 * tests/unshare.test: Ditto.
18145 * tests/userfaultfd.test: Ditto.
18146 * tests/ustat.test: Ditto.
18147 * tests/utime.test: Ditto.
18148 * tests/utimes.test: Ditto.
18149 * tests/vfork-f.test: Ditto.
18150 * tests/vhangup.test: Ditto.
18151 * tests/vmsplice.test: Ditto.
18152 * tests/wait4-v.test: Ditto.
18153 * tests/wait4.test: Ditto.
18154 * tests/waitid-v.test: Ditto.
18155 * tests/waitid.test: Ditto.
18156 * tests/waitpid.test: Ditto.
18157 * tests/xattr-strings.test: Ditto.
18158 * tests/xet_robust_list.test: Ditto.
18159 * tests/xetitimer.test: Ditto.
18160 * tests/xetpgid.test: Ditto.
18161 * tests/xetpriority.test: Ditto.
18162 * tests/xettimeofday.test: Ditto.
18163 * tests/Makefile.am (DECODER_TESTS, MISC_TESTS): Remove them.
18165 (TESTS): Add $(GEN_TESTS).
18169 (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
18171 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18173 tests: handle test scripts with .gen.test suffix.
18174 * tests/init.sh: If script name ends with .gen.test,
18177 2017-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
18188 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18195 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18197 tests: cleanup temporary files removals.
18201 * tests/init.sh (run_strace_match_diff): Do not remove $EXP.
18202 * tests/brk.test: Likewise.
18203 * tests/options-syntax.test: Likewise.
18204 * tests/qual_inject-retval.test (check_injection): Likewise.
18205 * tests/qual_signal.test (test_one_sig): Likewise.
18206 * tests/sched.test: 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.
18213 * tests/personality.test: Likewise.
18214 * tests/poll.test: Likewise.
18215 * tests/fstat.test: Likewise.
18216 * tests/ipc.sh: Likewise.
18217 * tests/restart_syscall.test: Likewise.
18218 * tests/utimensat.test: Likewise.
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.
18224 * tests/redirect.test: Do not remove $OUT.
18225 * tests/strace-S.test: Likewise.
18226 * tests/getdents.test: Do not remove $LOG.dir.
18227 * tests/getdents64.test: Likewise.
18228 * tests/readdir.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.
18233 * tests/execve.test: Likewise.
18234 * tests/fadvise64.test: Likewise.
18235 * tests/getuid.test: Likewise.
18236 * tests/ioctl.test: Likewise.
18237 * tests/ioctl_dm-v.test: Likewise.
18238 * tests/ioctl_dm.test: Likewise.
18239 * tests/ioctl_evdev-v.test: Likewise.
18240 * tests/ioctl_loop-nv.test: Likewise.
18241 * tests/ioctl_loop-v.test: Likewise.
18242 * tests/ioctl_loop.test: Likewise.
18243 * tests/ioctl_rtc-v.test: Likewise.
18244 * tests/ioctl_sock_gifconf.test: Likewise.
18245 * tests/llseek.test: Likewise.
18246 * tests/lseek.test: Likewise.
18247 * tests/mmap.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.
18252 * tests/opipe.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.
18263 * tests/umovestr2.test: Likewise.
18264 * tests/uname.test: Likewise.
18265 * tests/pread64-pwrite64.test: Do nore remove pread64-pwrite64-tmpfile.
18266 * tests/read-write.test: Do nore remove read-write-tmpfile.
18267 * tests/qual_fault.test (check_fault_injection): Do not remove $EXP,
18269 * tests/redirect-fds.test (check_fd): Reorder removal of work files.
18270 * tests/pc.test: Use $EXP instead of $EXPECTED, do not remove it.
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>
18278 tests: enhance sched.test negative check.
18279 * tests/sched.test: Test that trace=%sched doesn't match
18284 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18286 tests: add a list of executables without side effects.
18287 These are executables that could be used by several different tests
18290 * tests/pure_executables.list: New file.
18291 * tests/Makefile.am (EXTRA_DIST): Add it.
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>
18315 tests: run every test except ksysent.test in its own subdirectory.
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.
18332 * tests/bexecve.test: Likewise.
18333 * tests/btrfs-v.test: Likewise.
18334 * tests/btrfs-vw.test: Likewise.
18335 * tests/btrfs-w.test: Likewise.
18336 * tests/count.test: Likewise.
18337 * tests/detach-running.test: Likewise.
18338 * tests/detach-sleeping.test: Likewise.
18339 * tests/detach-stopped.test: Likewise.
18340 * tests/mmap.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.
18345 * tests/net.test: Likewise.
18346 * tests/opipe.test: Likewise.
18347 * tests/poll.test: Likewise.
18348 * tests/prctl-seccomp-strict.test: Likewise.
18349 * tests/qual_fault-exit_group.test: Likewise.
18350 * tests/qual_fault.test: Likewise.
18351 * tests/qual_inject-error-signal.test: Likewise.
18352 * tests/qual_inject-retval.test: Likewise.
18353 * tests/qual_inject-signal.test: Likewise.
18354 * tests/qual_signal.test: Likewise.
18355 * tests/qual_syscall.test: Likewise.
18356 * tests/readv.test: Likewise.
18357 * tests/redirect-fds.test: Likewise.
18358 * tests/sched.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.
18374 * tests/sun_path.test: Likewise.
18375 * tests/uname.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>
18381 tests: make test executables invocable outside current work directory.
18385 * tests/getdents.c (main): Use fixed name for the sample directory.
18386 * tests/getdents64.c (main): Likewise.
18387 * tests/readdir.c (main): Likewise.
18388 * tests/mknod.c (sample): Change to a pointer.
18390 * tests/symlink.c (main): Use av[0] as a linkpath.
18391 * tests/umode_t.c (sample): Change to a pointer.
18395 2017-03-31 Dmitry V. Levin <ldv@altlinux.org>
18397 tests: cleanup access.test.
18398 * tests/access.test: Use run_strace_match_diff.
18399 * tests/access.c (main): Update expected output.
18401 2017-03-30 Dmitry V. Levin <ldv@altlinux.org>
18403 tests: cleanup oldfstat.test.
18404 * tests/oldfstat.test: Use fstat.test.
18406 2017-03-29 Dmitry V. Levin <ldv@altlinux.org>
18410 the 3rd argument of sched_getattr syscall is not quite 32-bit
18417 * tests/sched_xetattr.c (main) [__arm64__ || __aarch64__]: Test it.
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.
18473 2017-03-19 Dmitry V. Levin <ldv@altlinux.org>
18476 * test/README: Rename to README.md, turn ../tests reference into an URL.
18484 2017-03-18 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18494 * tests/.gitignore: Add statx.
18495 * tests/Makefile.am (check_PROGRAMS): Likewise.
18497 * tests/statx.c: New file.
18498 * tests/statx.test: Likewise.
18499 * tests/xstatx.c: Modify to support statx.
18505 2017-03-17 Dmitry V. Levin <ldv@altlinux.org>
18507 tests: check for out of bounds fetch in parsers of stat family syscalls.
18508 * tests/xstatx.c (main): Create STRUCT_STAT object using
18511 tests: check unexpected syscall errors returned by stat family syscalls.
18512 * tests/xstatx.c (main) [!OLD_STAT]: Do not skip the test
18516 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18518 tests: move try_run_prog to init.sh.
18520 tests.
18522 * tests/sched.test (try_run_prog): Move it...
18523 * tests/init: ... here.
18525 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18527 tests/sched.test: rc should be a local variable in try_run_prog.
18528 * tests/sched.test (try_run_prog): Add local rc.
18530 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18532 tests: check decoding of int 0x80 on x86_64, x32, and x86.
18533 * tests/int_0x80.c: New file.
18534 * tests/int_0x80.test: New test.
18535 * tests/.gitignore: Add int_0x80.
18536 * tests/Makefile.am (check_PROGRAMS): Likewise.
18539 (CLEANFILES): Add $(TESTS:=.tmp.out) and $(TESTS:=.tmp.exp).
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>
18553 tests: use TAIL_ALLOC_OBJECT_CONST_PTR.
18554 Automatically convert tests to use TAIL_ALLOC_OBJECT_CONST_PTR macro
18557 sed -ri \
18559 tests/*.c
18561 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18563 tests: use TAIL_ALLOC_OBJECT_VAR_PTR.
18564 Automatically convert tests to use TAIL_ALLOC_OBJECT_VAR_PTR macro
18567 sed -ri \
18569 tests/{move_pages,net-sockaddr,sendfile}.c
18571 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18573 tests: add TAIL_ALLOC_OBJECT_{CONST,VAR}_PTR to tests.h.
18576 * tests/tests.h (TAIL_ALLOC_OBJECT_CONST_PTR,
18579 2017-03-16 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18584 * tests/getrusage.c: Test decoding of RUSAGE_THREAD.
18586 2017-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
18588 tests/sched.test: use heredoc in order to avoid spawning of subprocess.
18595 * tests/sched.test: Move test cases to heredoc.
18597 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18599 tests: do not skip sched.test if one of its subtests skips.
18600 * tests/sched.test (try_run_prog): New function.
18603 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18605 tests: do not check decoding of setitimer syscall outside xetitimer.test
18607 syscall parser, no need to duplicate its parts in other tests.
18609 * tests/clock_nanosleep.c (main): Remove setitimer expected output.
18610 * tests/nanosleep.c (main): Likewise.
18611 * tests/clock_nanosleep.test: Remove setitimer from the trace set.
18612 * tests/nanosleep.test: Likewise.
18614 2017-03-14 Dmitry V. Levin <ldv@altlinux.org>
18616 tests: check decoding of getitimer and setitimer corner cases.
18617 * tests/sched_xetattr.c: Include <unistd.h> and <asm/unistd.h>.
18620 * tests/xetitimer.test: Add -a option.
18622 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18624 tests: rewrite sigreturn syscall decoding check from match_grep to match_diff
18628 * tests/sigreturn.c: Rewrite.
18629 * tests/sigreturn.test: Likewise.
18631 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18642 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18653 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18655 tests: check decoding of rt_sigreturn syscall.
18656 * tests/rt_sigreturn.c: New file.
18657 * tests/rt_sigreturn.test: New test.
18658 * tests/.gitignore: Add rt_sigreturn.
18659 * tests/Makefile.am (check_PROGRAMS): Likewise.
18675 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18716 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
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>
18770 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18779 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18788 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18797 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18806 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
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 \
18909 * linux/mips/syscallent-n32.h: Likewise.
18910 * linux/mips/syscallent-n64.h: Likewise.
18911 * linux/mips/syscallent-o32.h: Likewise.
18924 * tests/ksysent.c: Define TSC to 0.
18925 * tests/nsyscalls.c: Likewise.
18926 * tests/sched.test: New test.
18927 * tests/Makefile.am (DECODER_TESTS): Add sched.test.
18931 2017-03-04 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
18946 * tests/netlink_protocol.test: Likewise.
18947 * tests/qual_fault-exit_group.test: Likewise.
18948 * tests/qual_syscall.test: Likewise.
18949 * tests/scm_rights-fd.test: Likewise.
18950 * tests/sigreturn.test: Likewise.
18951 * tests/uio.test: Likewise.
18954 2017-02-28 Dmitry V. Levin <ldv@altlinux.org>
18956 tests: simplify print_time_t.
18957 * tests/print_time.c (print_time_t): Treat localtime errors as fatal.
18959 2017-02-27 Dmitry V. Levin <ldv@altlinux.org>
18963 * debian/control: Likewise.
18966 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18968 tests: transform print_time_t into print_time_t_nsec.
18969 * tests/print_time.c (print_time_t): Rename to print_time_t_nsec,
18971 * tests/tests.h (print_time_t): Rename to print_time_t_nsec,
18973 * tests/utime.c (main): Use print_time_t_nsec instead of print_time_t.
18974 * tests/xstatx.c (print_stat): Likewise. Pass nanoseconds
18977 tests: use print_time_t in utime.test.
18978 * tests/utime.c (print_tm): Remove.
18981 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18983 tests: move print_time function to libtests.
18986 * tests/print_time.c: New file.
18987 * tests/Makefile.am (libtests_a_SOURCES): Add it.
18988 * tests/tests.h (print_time_t): New prototype.
18989 * tests/print_time.c (print_time): Remove.
18992 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18994 tests: macroize printing of atime, mtime, and ctime fields in xstatx.c.
19000 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
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>
19023 tests: rewrite ppoll syscall decoding check from match_grep to match_diff
19027 * tests/ppoll-v.c: New file.
19028 * tests/ppoll-v.test: New test.
19029 * tests/ppoll.c: Rewrite.
19030 * tests/ppoll.test: Likewise.
19031 * tests/ppoll.expected: Remove.
19032 * tests/ppoll-v.expected: Remove.
19033 * tests/.gitignore: Add ppoll-v.
19034 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
19040 tests: move get_sigset_size function to libtests.
19041 * tests/get_sigset_size.c: New file.
19042 * tests/Makefile.am (libtests_a_SOURCES): Add it.
19043 * tests/tests.h (get_sigset_size): New prototype.
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>
19055 the minimal size allowed by the kernel.
19067 * tests/sched_xetattr.c (main): Check it.
19069 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19071 tests: check decoding of sched_[gs]etattr corner cases.
19072 * tests/sched_xetattr.c (main): Check that integer arguments
19078 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19088 * tests/sched_xetattr.c: Include it.
19091 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19093 tests: rewrite sched_xetattr.test from match_grep to match_diff.
19097 * tests/adjtimex.c: Include "xlat.h" and "xlat/schedulers.h",
19100 * tests/adjtimex.test: Use run_strace_match_diff.
19102 2017-02-17 Dmitry V. Levin <ldv@altlinux.org>
19112 2017-02-17 Dmitry V. Levin <ldv@altlinux.org>
19116 command introduced by linux kernel commit v4.10-rc7-174-g7f67763.
19125 * tests/bpf.c: Check for HAVE_UNION_BPF_ATTR_ATTACH_FLAGS
19130 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19132 tests: rewrite adjtimex.test from match_grep to match_diff.
19136 * tests/adjtimex.c: Include "xlat.h", "xlat/adjtimex_state.h",
19139 * tests/adjtimex.test: Use run_strace_match_diff.
19141 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19143 tests: replace casts of 0xffffffff00000000ULL with F8ILL_KULONG_MASK.
19144 * tests/init_delete_module.h (bogus_zero): Remove.
19145 * tests/delete_module.c (main): Replace bogus_zero and
19147 * tests/finit_module.c (main): Replace bogus_zero
19149 * tests/init_module.c (main): Likewise.
19150 * tests/pipe2.c (main): Likewise.
19151 * tests/epoll_ctl.c (invoke_syscall): Replace
19153 * tests/rt_tgsigqueueinfo.c (k_tgsigqueueinfo): Likewise.
19154 * tests/fanotify_init.c (main): Likewise.
19155 * tests/xetpgid.c (main): Likewise.
19156 * tests/xetpriority.c (main): Likewise.
19158 * tests/fanotify_mark.c (main): Likewise.
19159 * tests/file_handle.c (main): Likewise.
19160 * tests/kexec_load.c (main): Likewise.
19161 * tests/setfsugid.c (main): Likewise.
19162 * tests/getgroups.c (main): Replace (long) 0xffffffff00000000ULL
19164 * tests/setgroups.c (main): Replace (long) 0xffffffff00000000ULL
19167 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19169 tests: fill higher bits of integer arguments of fcntl* syscalls.
19173 * tests/struct_flock.c (invoke_test_syscall): Cast "fd" and "cmd"
19176 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19178 tests: use sprintrc in tests of fcntl and fcntl64 syscalls.
19179 * tests/struct_flock.c (EINVAL_STR): Remove.
19181 * tests/fcntl.c (test_flock64_einval): Likewise.
19182 * tests/fcntl64.c (test_flock64_einval, test_flock64): Likewise.
19184 2017-02-15 Dmitry V. Levin <ldv@altlinux.org>
19186 Post-release administrivia.
19188 * debian/changelog.in: Add a changelog entry for 4.16-1.
19191 2017-02-14 Dmitry V. Levin <ldv@altlinux.org>
19196 2017-02-13 Dmitry V. Levin <ldv@altlinux.org>
19202 tests: skip scno tampering tests on compat mips abi.
19203 * tests/scno_tampering.sh: In case of mips abi, skip the test
19206 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19208 Fix -Werror=duplicate-decl-specifier compilation issues.
19224 * tests/rt_tgsigqueueinfo.c (k_tgsigqueueinfo): Change the type of last
19226 * tests/utime.c (main): Change the type of "tail_u" variable
19228 * tests/waitid.c (do_waitid): Change the type of 3rd argument
19231 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19233 tests: rewrite pipe syscall decoding check from match_grep to match_diff
19235 * tests/pipe.c: Include <asm/unistd.h>, skip the test if [!__NR_pipe]
19238 * tests/pipe.test: Skip the test if libc pipe wrapper does not use
19240 * tests/pipe.expected: Update expected output.
19242 2017-02-11 Dmitry V. Levin <ldv@altlinux.org>
19244 tests: rewrite pipe2 syscall decoding check from match_grep to match_diff
19248 * tests/pipe2.c: New file.
19249 * tests/pipe2.test: New test.
19250 * tests/.gitignore: Add pipe2.
19251 * tests/Makefile.am (check_PROGRAMS): Likewise.
19254 2017-02-10 Dmitry V. Levin <ldv@altlinux.org>
19256 tests: rewrite mq.test from match_grep to match_diff.
19260 * tests/mq.c: Include <stdio.h>.
19263 * tests/mq.expected: Remove.
19264 * tests/Makefile.am (EXTRA_DIST): Remove mq.expected.
19265 * tests/mq.test: Use run_strace_match_diff.
19267 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19280 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19282 tests: check signal injection along with fault injection.
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.
19287 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
19303 * tests/qual_fault.c (main): Likewise.
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
19332 * tests/ipc_sem.c (main) [__GLIBC__]: Remove.
19334 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19336 tests: fix typo in bpf.test.
19337 * tests/bpf.c (main): Add missing semicolon.
19339 Fixes: ad427721 ("tests: rewrite bpf.test from match_grep to match_diff")
19341 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19343 tests: check signal injection.
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.
19348 * tests/Makefile.am (check_PROGRAMS): Likewise.
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
19373 * tests/qual_fault.c (DEFAULT_ERRNO): Set to ENOSYS unconditionally.
19374 * tests/qual_inject-retval.test: Replace -e fault= option
19375 with -e inject= option.
19376 * tests/qual_inject-syntax.test: New test.
19377 * tests/Makefile.am (MISC_TESTS): Add it.
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.
19389 * tests/fault_injection.c: Rename to tests/qual_fault.c.
19390 * tests/fault_injection.test: Rename to tests/qual_fault.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.
19394 * tests/fault_injection.sh: Rename to tests/scno_tampering.sh.
19395 * tests/.gitignore: Update.
19396 * tests/Makefile.am (check_PROGRAMS, DECODER_TESTS, MISC_TESTS,
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>
19430 tests: make Makefile.am lists sorted in C locale.
19431 * tests/Makefile.am (check_PROGRAMS, DECODER_TESTS, MISC_TESTS,
19434 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19436 tests: use ARG_STR in msg_control.test.
19437 Drop local VAL_STR macro in favour of ARG_STR macro from tests/tests.h.
19439 * tests/msg_control.c (VAL_STR): Remove.
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>
19474 2017-02-04 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
19490 2017-01-31 Dmitry V. Levin <ldv@altlinux.org>
19492 tests: check decoding of bpf corner cases.
19493 * tests/bpf.c (bogus_bpf): New function.
19496 * tests/bpf.test: Add -a option.
19498 2017-01-29 Dmitry V. Levin <ldv@altlinux.org>
19500 tests: rewrite bpf.test from match_grep to match_diff.
19501 * tests/bpf.c (errstr): New variable.
19505 * tests/bpf.test: Use run_strace_match_diff.
19511 2017-01-29 Quentin Monnet <quentin.monnet@6wind.com>
19526 * tests/bpf.c [HAVE_UNION_BPF_ATTR_BPF_FD] (obj_manage): New function.
19530 2017-01-28 Elvira Khabirova <lineprinter0@gmail.com>
19532 tests: check success injection.
19533 * tests/fault_injection-retval.c: New file.
19534 * tests/fault_injection-retval.test: New test.
19535 * tests/.gitignore: Add fault_injection-retval.
19536 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
19614 2017-01-20 JingPiao Chen <chenjingpiao@gmail.com>
19621 * tests/ustat.c: New file.
19622 * tests/ustat.test: New test.
19623 * tests/.gitignore: Add ustat.
19624 * tests/Makefile.am (check_PROGRAMS): Likewise.
19635 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19637 tests: drop non-USE_ASM_STAT case support.
19638 With the switch of fstatat family tests to USE_ASM_STAT variant,
19639 there are no non-USE_ASM_STAT users left. Remove support of unused
19640 non-USE_ASM_STAT case.
19643 * tests/fstatat.c (USE_ASM_STAT): Remove.
19644 * tests/fstatx.c: Likewise.
19645 * tests/lstatx.c: Likewise.
19646 * tests/xstatx.c: Assume USE_ASM_STAT.
19649 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19651 tests: call newfstatat and fstatat64 syscalls directly.
19657 * tests/fstatat.c (TEST_SYSCALL_INVOKE): Invoke the relevant syscall
19660 * tests/fstatat64.c (TEST_BOGUS_STRUCT_STAT): Remove.
19665 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19667 tests: remove redundant SAMPLE_SIZE definitions.
19669 definition in tests/xstatx.c.
19671 * tests/fstat64.c (SAMPLE_SIZE): Remove.
19672 * tests/lstat64.c (SAMPLE_SIZE): Remove.
19673 * tests/stat64.c (SAMPLE_SIZE): Remove.
19675 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19677 tests: change SAMPLE_SIZE type to libc_off_t.
19682 * tests/fstat.c (SAMPLE_SIZE): Cast to libc_off_t.
19683 * tests/lstat.c (SAMPLE_SIZE): Likewise.
19684 * tests/oldfstat.c (SAMPLE_SIZE): Likewise.
19685 * tests/oldlstat.c (SAMPLE_SIZE): Likewise.
19686 * tests/oldstat.c (SAMPLE_SIZE): Likewise.
19687 * tests/stat.c (SAMPLE_SIZE): Likewise.
19688 * tests/xstatx.c (SAMPLE_SIZE): Likewise.
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>
19705 tests: treat struct stat mismatch as an error.
19710 * tests/xstatx.c (main): Return 1 instead of 77
19713 2017-01-12 Dmitry V. Levin <ldv@altlinux.org>
19715 tests: rewrite diagnostics about struct stat mismatch.
19716 * tests/xstatx.c (LOG_STAT_OFFSETOF_SIZEOF): New macro.
19719 tests: fix typo in tests/xstatx.c.
19720 * tests/xstatx.c [!IS_FSTAT]: Define IS_FSTAT instead of IS_STAT.
19722 2017-01-12 JingPiao Chen <chenjingpiao@gmail.com>
19724 tests: fix typo in mlock.c.
19725 * tests/mlock.c [!(__NR_mlock && __NR_munlock)]: Fix spelling
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.
19773 * tests/kexec_file_load.c: Likewise.
19775 Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
19777 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19779 tests: check decoding of scsi ioctl commands.
19780 * tests/ioctl_scsi.c: New file.
19781 * tests/ioctl_scsi.test: New test.
19782 * tests/.gitignore: Add ioctl_scsi.
19783 * tests/Makefile.am (check_PROGRAMS): Likewise.
19796 tests: check decoding of ioctl SG_IO v3 commands.
19797 * tests/ioctl_sg_io_v3.c: New file.
19798 * tests/ioctl_sg_io_v3.test: New test.
19799 * tests/.gitignore: Add ioctl_sg_io_v3.
19800 * tests/Makefile.am (check_PROGRAMS): Likewise.
19803 tests: check decoding of ioctl SG_IO v4 commands.
19804 * tests/ioctl_sg_io_v4.c: New file.
19805 * tests/ioctl_sg_io_v4.test: New test.
19806 * tests/.gitignore: Add ioctl_sg_io_v4.
19807 * tests/Makefile.am (check_PROGRAMS): Likewise.
19810 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19820 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19828 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
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,
19878 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19899 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
20035 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20044 * tests/aio.c (main): Likewise.
20046 2017-01-06 Dmitry V. Levin <ldv@altlinux.org>
20055 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20057 getrandom: print string as hex-escaped.
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>
20092 tests: skip fault injection tests on hppa if the kernel is too old.
20093 * tests/fault_injection.sh: Add the minimal kernel version for hppa.
20095 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20097 tests: skip readahead.test on MIPS n64 when built with glibc < 2.25.
20101 * tests/readahead.c [HAVE_READAHEAD && LINUX_MIPSN64 && glibc < 2.25]:
20104 Reported-by: James Cowgill <james410@cowgill.org.uk>
20106 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20108 tests: replace init_magic with fill_memory.
20109 Use the same fill_memory/fill_memory_ex interface in all affected tests.
20111 * tests/ioctl_block.c (init_magic): Remove.
20113 * tests/ioctl_evdev.c: Likewise.
20114 * tests/ioctl_v4l2.c: Likewise.
20115 * tests/ioctl_mtd.c (magic, init_magic): Remove.
20117 * tests/ioctl_rtc.c: Likewise.
20119 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20121 tests: rewrite ioctl_v4l2 test without reliance on init_magic.
20122 * tests/ioctl_v4l2.c (cc0, cc1, cc2, cc3, fourcc): New macros.
20126 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20128 tests: remove redundant casts in fill_memory{,_ex} invocations.
20129 * tests/ioctl_loop.c (main): Remove redundant casts of fill_memory
20131 * tests/kexec_load.c (main): Likewise.
20132 * tests/perf_event_open.c (main): Likewise.
20133 * tests/quotactl.c (main): Likewise.
20134 * tests/mq_sendrecv.c (main): Remove redundant casts of fill_memory_ex
20136 * tests/quotactl-xfs.c (main): Likewise.
20138 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20140 tests: change the type of fill_memory{,_ex} first argument to void *
20144 * tests/fill_memory.c (fill_memory, fill_memory_ex): Change the type
20146 * tests/tests.h (fill_memory, fill_memory_ex): Likewise.
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.
20153 * tests/ioctl_loop.c [!ABBREV] (ABBREV): Define to 0.
20155 * tests/.gitignore: Add ioctl_loop-nv.
20156 * tests/Makefile.am (check_PROGRAMS): Likewise.
20158 tests: add more checks of LOOP_* ioctls decoding.
20159 * tests/ioctl_loop.c: Include <linux/ioctl.h>.
20164 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20167 tests: check decoding of LOOP_* ioctls.
20168 * tests/ioctl_loop.c: New file.
20169 * tests/ioctl_loop-v.c: Likewise.
20170 * tests/ioctl_loop.test: New test.
20171 * tests/ioctl_loop-v.test: Likewise.
20172 * tests/.gitignore: Add ioctl_loop and ioctl_loop-v.
20173 * tests/Makefile.am (check_PROGRAMS): Likewise.
20174 (DECODER_TESTS): Add ioctl_loop.test and ioctl_loop-v.test.
20176 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20180 Apparently nobody tests strace with this vfprintf enabled, otherwise
20193 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
20223 tests: add more checks of unknown ioctl command formatting.
20224 * tests/ioctl.c (main): Additional check for unknown ioctl command
20226 * tests/ioctl_evdev.c (main): Likewise.
20227 * tests/ioctl_dm.c: Include <linux/ioctl.h> for _IOC_SIZE and _IOC_NR.
20231 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20234 Specifying output width for size argument is rather misleading - it can
20242 * tests/ioctl.c (main): Update expected test output.
20243 * tests/ioctl_dm.c (main): Likewise.
20244 * tests/ioctl_evdev.c (main): Likewise.
20246 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20258 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20260 tests: check ioctl(SIOCGIFCONF) decoding.
20261 * tests/ioctl_sock_gifconf.c: New file.
20262 * tests/ioctl_sock_gifconf.test: New test.
20263 * tests/.gitignore: Add ioctl_sock_gifconf.
20264 * tests/Makefile.am (check_PROGRAMS): Likewise.
20269 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20273 * tests/.gitignore: Add scno.h and syscallent.i.
20275 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20277 tests/.gitignore: add generated files that should be ignored.
20278 * tests/.gitignore: Replace addkey with add_key, add attach-f-p-cmd.
20280 2017-01-03 Dmitry V. Levin <ldv@altlinux.org>
20295 2017-01-01 Dmitry V. Levin <ldv@altlinux.org>
20304 * tests/generate_scno.c: Remove.
20305 * tests/.gitignore: Remove generate_scno.
20306 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
20335 tests: do not use BUILT_SOURCES.
20336 * tests/Makefile.am (ksysent.$(OBJEXT)): New rule.
20339 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20343 v4.15-39-g605a705a63d533dceb3c2d489468fcd3aed3963c.
20345 * tests/Makefile.am (BUILT_SOURCES): Remove scno.h
20349 Reported-by: Joakim Bech <joakim.bech@linaro.org>
20351 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20353 tests: do not use defs.h and syscall.h.
20354 * tests/generate_scno.c: Include "tests.h", "sysent.h", <stdio.h>,
20356 * tests/ksysent.c: Likewise.
20357 * tests/nsyscalls.c: Include "tests.h", "sysent.h", <errno.h>,
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>
20399 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20402 Since these are architecture-independent and have been added over the
20411 2016-12-29 Dmitry V. Levin <ldv@altlinux.org>
20419 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20434 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20440 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
20465 tests: check decoding of prctl PR_GET_TID_ADDRESS operation.
20466 * tests/prctl-tid_address.c: New file.
20467 * tests/prctl-tid_address.test: New test.
20468 * tests/.gitignore: Add prctl-tid_address.
20469 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
20561 * tests/pselect6.c (main): Likewise.
20570 * tests/pselect6.c: Likewise.
20585 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20600 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20613 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20624 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20637 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20647 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20666 * tests/ipc_sem.c (main): Update expected output.
20668 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20672 * tests/ipc_sem.c (cleanup): Update expected output.
20674 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20684 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20695 * tests/umoven-illptr.c: New file.
20696 * tests/umoven-illptr.test: New test.
20697 * tests/.gitignore: Add umoven-illptr.
20698 * tests/Makefile.am (check_PROGRAMS): Likewise.
20699 (DECODER_TESTS): Add umoven-illptr.test.
20701 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20712 * tests/umovestr-illptr.c: New file.
20713 * tests/umovestr-illptr.test: New test.
20714 * tests/.gitignore: Add umovestr-illptr.
20715 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
20737 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20769 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
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>
20804 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20806 tests: check decoding of a subset of prctl operations.
20810 * tests/prctl-arg2-intptr.c: New file.
20811 * tests/prctl-arg2-intptr.test: New test.
20812 * tests/.gitignore: Add prctl-arg2-intptr.
20813 * tests/Makefile.am (check_PROGRAMS): Likewise.
20814 (DECODER_TESTS): Add prctl-arg2-intptr.test.
20816 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
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>
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>
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>
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,
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.
21230 * tests/printstr.c: New file.
21231 * tests/printstr.test: New test.
21232 * tests/.gitignore: Add printstr.
21233 * tests/Makefile.am (check_PROGRAMS): Likewise.
21236 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21248 * tests/sethostname.c [HAVE_LINUX_UTSNAME_H]: Include <linux/utsname.h>.
21254 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21256 tests: add F8ILL_KULONG_* and f8ill_ptr_to_kulong to tests.h.
21257 * tests/tests.h (F8ILL_KULONG_SUPPORTED, F8ILL_KULONG_MASK): New macros.
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.
21754 * tests/xattr.c (DEFAULT_STRLEN): New macro.
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.
21764 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
21780 tests: use scno.h in finit_module, kcmp, renameat2 tests.
21781 * tests/finit_module.c: Include "scno.h".
21782 * tests/kcmp.c: Likewise.
21783 * tests/renameat2.c: Likewise.
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
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
21865 tests: check decoding of unreadable ip_mreq and ipv6_mreq structures.
21866 * tests/ip_mreq.c (main): Check short read.
21868 tests: rewrite ip_mreq.c using arrays and iterators.
21869 * tests/ip_mreq.c (main): Create arrays of setsockopt arguments to test.
21873 tests: rewrite ip_mreq.c using tail_alloc.
21874 * tests/ip_mreq.c (main): Allocate objects of struct ip_mreq
21877 tests: rewrite ip_mreq.c without asserts.
21878 * tests/ip_mreq.c: Do not include <assert.h>.
21881 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21889 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21891 tests: use scno.h in tests of relatively new syscalls.
21892 * tests/add_key.c: Include "scno.h" after <asm/unistd.h>.
21893 * tests/copy_file_range.c: Likewise.
21894 * tests/execveat.c: Likewise.
21895 * tests/kexec_file_load.c: Likewise.
21896 * tests/membarrier.c: Likewise.
21897 * tests/memfd_create.c: Likewise.
21898 * tests/mlock2.c: Likewise.
21899 * tests/pkey_alloc.c: Likewise.
21900 * tests/pkey_free.c: Likewise.
21901 * tests/pkey_mprotect.c: Likewise.
21902 * tests/preadv2-pwritev2.c: Likewise.
21903 * tests/userfaultfd.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.
21911 Some tests need just __NR_* constants without any kernel support.
21912 Such tests can include "scno.h" after <asm/unistd.h> to get definitions
21915 * tests/generate_scno.c: New file.
21916 * tests/.gitignore: Add generate_scno.
21917 * tests/Makefile.am (check_PROGRAMS): Likewise.
21921 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21923 tests: fix potential errno clobbering in membarrier test.
21924 * tests/membarrier.c (main): Save errno.
21926 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21935 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21946 64-bit type, so the automatic argument truncation cannot be applied.
21954 of compat syscalls to 32-bit values.
21955 * tests/ksysent.c (CST): New macro, defined to 0.
21956 * tests/nsyscalls.c (CST): Likewise.
21958 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21969 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21975 2016-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
21995 There is no compat (and no 32-bit version, ever) for x32 ABI, so
22005 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
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>
22096 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22105 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
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>
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.
22231 * travis-success.sh: Merge into ...
22232 * travis-build.sh: ... this file. Disable optimization
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>
22248 tests: check decoding of prctl operations without arguments.
22249 * tests/prctl-no-args.c: New file.
22250 * tests/prctl-no-args.test: New test.
22251 * tests/.gitignore: Add prctl-no-args.
22252 * tests/Makefile.am (check_PROGRAMS): Likewise.
22253 (DECODER_TESTS): Add prctl-no-args.test.
22255 tests: check decoding of prctl PR_[GS]ET_SECUREBITS operations.
22256 * tests/prctl-securebits.c: New file.
22257 * tests/prctl-securebits.test: New test.
22258 * tests/.gitignore: Add prctl-securebits.
22259 * tests/Makefile.am (check_PROGRAMS): Likewise.
22260 (DECODER_TESTS): Add prctl-securebits.test.
22262 tests: check decoding of prctl PR_[GS]ET_DUMPABLE operations.
22263 * tests/prctl-dumpable.c: New file.
22264 * tests/prctl-dumpable.test: New test.
22265 * tests/.gitignore: Add prctl-dumpable.
22266 * tests/Makefile.am (check_PROGRAMS): Likewise.
22267 (DECODER_TESTS): Add prctl-dumpable.test.
22276 2016-12-16 Dmitry V. Levin <ldv@altlinux.org>
22278 Include "kernel_types.h" in defs.h and tests/tests.h.
22282 in defs.h and tests/tests.h files.
22285 * tests/tests.h: Likewise.
22291 * tests/answer.c: Likewise.
22292 * tests/epoll_pwait.c: Likewise.
22293 * tests/fanotify_init.c: Likewise.
22294 * tests/fanotify_mark.c: Likewise.
22295 * tests/file_handle.c: Likewise.
22296 * tests/ftruncate.c: Likewise.
22297 * tests/getdents.c: Likewise.
22298 * tests/init_delete_module.h: Likewise.
22299 * tests/inotify.c: Likewise.
22300 * tests/inotify_init1.c: Likewise.
22301 * tests/ioprio.c: Likewise.
22302 * tests/ipc_msgbuf.c: Likewise.
22303 * tests/kcmp.c: Likewise.
22304 * tests/kexec_file_load.c: Likewise.
22305 * tests/kexec_load.c: Likewise.
22306 * tests/keyctl.c: Likewise.
22307 * tests/lookup_dcookie.c: Likewise.
22308 * tests/lseek.c: Likewise.
22309 * tests/mq_sendrecv.c: Likewise.
22310 * tests/nsyscalls.c: Likewise.
22311 * tests/pkey_alloc.c: Likewise.
22312 * tests/pkey_free.c: Likewise.
22313 * tests/pkey_mprotect.c: Likewise.
22314 * tests/prctl-pdeathsig.c: Likewise.
22315 * tests/prctl-tsc.c: Likewise.
22316 * tests/preadv2-pwritev2.c: Likewise.
22317 * tests/process_vm_readv_writev.c: Likewise.
22318 * tests/read-write.c: Likewise.
22319 * tests/setfsugid.c: Likewise.
22320 * tests/setns.c: Likewise.
22321 * tests/truncate.c: Likewise.
22322 * tests/unshare.c: Likewise.
22323 * tests/xgetrlimit.c: Likewise.
22325 2016-12-15 Dmitry V. Levin <ldv@altlinux.org>
22327 Post-release administrivia.
22329 * debian/changelog.in: Add a changelog entry for 4.15-1.
22332 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22343 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22345 tests: relax getaffinity return value check in tests/sched_xetaffinity.c
22346 * tests/sched_xetaffinity.c (errstr): New variable.
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>
22363 Sync strace.spec and debian/ with packages.
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>
22370 tests: workaround a bug in GNU grep.
22372 https://lists.gnu.org/archive/html/bug-grep/2016-12/msg00011.html
22374 * tests/init.sh (grep_pid_status): New function.
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.
22392 2016-12-13 Eugene Syromyatnikov <evgsyr@gmail.com>
22397 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22399 tests: skip fault injection tests on unsupported platforms.
22400 * tests/fault_injection.sh: New file.
22401 * tests/Makefile.am (EXTRA_DIST): Add it.
22402 * tests/fault_injection-exit_group.test: Use it.
22403 * tests/fault_injection.test: Likewise.
22405 tests: introduce require_min_kernel_version_or_skip function.
22406 * tests/init.sh (kernel_version_code,
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.
22417 Rrobustify remaining prctl tests against unrelated prctl invocations
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>
22476 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22492 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22502 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22510 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22512 tests: add valgrind support to "make check"
22513 * m4/ax_valgrind_check.m4: Import from the autoconf-archive package.
22515 * valgrind.supp: Move to tests/strace.supp.
22517 * tests/Makefile.am: Add @VALGRIND_CHECK_RULES@.
22520 * tests/init.sh: Add valgrind command prefix to $STRACE when appropriate.
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
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
22547 * tests/strace-tt.test: Allow any time stamp between start and finish
22550 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22552 tests: robustify redirect.test against race conditions.
22555 * tests/redirect.test: Change timeout file to $OUT. Let the tracee
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>.
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>.
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.
22657 * tests/readv.test: Check dumping of negated 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>
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>
22704 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22708 tests: use kernel_ulong_t as argument type in setfsuid/setfsgid tests.
22710 (main): Change type of entries of the "tests" array from long to
22713 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22721 * tests/getgroups.c: Update expected output.
22722 * tests/setgroups.c: Likewise.
22724 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22729 * tests/setfsugid.c (printuid): New function.
22731 * tests/setgroups.c: Likewise.
22732 * tests/setugid.c (ugid2int): Remove.
22736 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22738 tests: additional check for PTRACE_SETSIGINFO ptrace command.
22739 * tests/ptrace.c (main): Add an additional PTRACE_SETSIGINFO check.
22741 2016-12-01 Dmitry V. Levin <ldv@altlinux.org>
22748 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22760 * tests/ptrace.c (main): Update expected output.
22762 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22766 * tests/sched_xetaffinity.c (main): Update expected output.
22772 * tests/statfs.expected: Update expected output.
22773 * tests/xstatfsx.c (print_statfs): Likewise.
22776 * swapon.c (SYS_FUNC(swapon)): Do not check for non-zero the value
22778 * tests/swap.c (main): Update expected output.
22780 2016-12-01 Elvira Khabirova <lineprinter0@gmail.com>
22782 tests: show pattern line number in match_grep.
22785 * tests/init.sh (match_grep): Add the cnt variable, increment it on every
22786 pattern line read, print it as a prefix for non-matched pattern.
22788 2016-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
22796 * tests/futex.c (main): Update expected output.
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.
22814 * tests/Makefile.am (check_PROGRAMS): Likewise.
22815 (DECODER_TESTS): Add prctl-pdeathsig.test and prctl-tsc.test.
22817 2016-11-30 Dmitry V. Levin <ldv@altlinux.org>
22827 * tests/tests.h (pipe_maxfd): New prototype.
22828 * tests/pipe_maxfd.c: New file.
22829 * tests/print_maxfd.c: Likewise.
22830 * tests/.gitignore: Add print_maxfd.
22831 * tests/Makefile.am (check_PROGRAMS): Likewise.
22833 * tests/readv.c (main): Use pipe_maxfd() instead of pipe(),
22835 * tests/readv.test: Use print_maxfd to specify dump descriptor numbers.
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>
22865 * tests/sigaction.awk: Update expected output.
22867 2016-11-29 Elvira Khabirova <lineprinter0@gmail.com>
22871 * tests/utime.c (print_tm): Update expected output.
22872 * tests/xstatx.c (print_time): Likewise.
22874 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22876 tests: rewrite utime.test without relying on libc utime wrapper.
22877 * tests/utime.c (k_utime): New function, a thin wrapper around
22880 * tests/utime.test: Update.
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
22896 * tests/fault_syntax.test: Add checks of negated sets.
22898 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22903 * tests/mq_sendrecv.c (main): Update expected output in accordance with
22905 * tests/timer_create.c (main): Likewise.
22907 tests: add more utime checks.
22908 * tests/utime.c: Include <unistd.h> and <asm/unistd.h>.
22915 * tests/utime.c (main): Update expected output.
22919 * tests/mincore.c (print_mincore): Update expected output in accordance
22922 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22934 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22942 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22947 * tests/caps.awk: Update test output.
22949 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
22951 tests: fix "comparison between signed and unsigned" compilation warnings
22952 * tests/readv.c (main): Cast r_len to int.
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.
22969 tests: check basic options syntax.
22970 * tests/options-syntax.test: New file.
22971 * tests/Makefile.am (MISC_TESTS): Add it.
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.
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>
22988 * tests/futimesat.c (main): Update to test new behaviour.
22989 * tests/utimes.c (main): Likewise.
22991 tests: treat tv_sec/tv_usec as signed types in futimesat and utimes tests
22992 * tests/futimesat.c: Print tv_sec and tv_usec fields as signed types.
22993 * tests/utimes.c: Likewise.
22995 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23005 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23014 * tests/getrusage.c (main): Print tv_sec and tv_usec fields as signed.
23015 * tests/waitid.c (sprint_rusage): Likewise.
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
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.
23038 * tests/Makefile.am (check_PROGRAMS): Likewise.
23040 (MISC_TESTS): Add threads-execve.test.
23042 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23044 tests: check decoding of fault injected exit_group syscall.
23045 * tests/answer.c: New file.
23046 * tests/fault_injection-exit_group.expected: Likewise.
23047 * tests/fault_injection-exit_group.test: New test.
23048 * tests/.gitignore: Add answer.
23049 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
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>
23140 * tests/fault_injection.test: Check it.
23141 * tests/fault_syntax.test: Check empty syscall sets.
23143 2016-11-24 Dmitry V. Levin <ldv@altlinux.org>
23149 2016-11-26 Eugene Syromyatnikov <evgsyr@gmail.com>
23159 * tests/adjtimex.c (main): Add field names to expected output.
23160 * tests/clock_nanosleep.c (main): Likewise.
23161 * tests/futimesat.c (main): Likewise.
23162 * tests/getrusage.c (main): Likewise.
23163 * tests/nanosleep.c (main): Likewise.
23164 * tests/oldselect.expected: Likewise.
23165 * tests/utimes.c (main): Likewise.
23166 * tests/wait4.c (sprint_rusage): Likewise.
23167 * tests/waitid.c (sprint_rusage): Likewise.
23168 * tests/xetitimer.c (main): Likewise.
23169 * tests/xettimeofday.c (main): Likewise.
23170 * tests/xselect.c (main): Likewise.
23175 * tests/aio.c: Add field names to expected output.
23176 * tests/clock_nanosleep.c (main): Likewise.
23177 * tests/clock_xettime.c (main): Likewise.
23178 * tests/futex.c (main): Likewise.
23179 * tests/mq_sendrecv.c (do_send, do_recv): Likewise.
23180 * tests/nanosleep.c (main): Likewise.
23181 * tests/ppoll-v.expected: Likewise.
23182 * tests/ppoll.expected: Likewise.
23183 * tests/pselect6.c (main): Likewise.
23184 * tests/recvmmsg-timeout.c (main): Likewise.
23185 * tests/restart_syscall.c (main): Likewise.
23186 * tests/rt_sigtimedwait.c (iterate, main): Likewise.
23187 * tests/sched_rr_get_interval.c (main): Likewise.
23188 * tests/semop.c (main): Likewise.
23189 * tests/strace-T.expected: Likewise.
23190 * tests/timer_xettime.c (main): Likewise.
23191 * tests/timerfd_xettime.c (main): Likewise.
23192 * tests/utimensat.c (print_ts): 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"
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>
23243 * maint/ioctls_sym.sh: Remove pre-include linux/kvm.h workarounds.
23245 Introduce post-process workarounds, add post-process workarounds
23248 2016-11-20 Elvira Khabirova <lineprinter0@gmail.com>
23255 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
23289 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23308 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23316 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23324 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23326 tests: check decoding of prctl PR_GET_NAME/PR_SET_NAME operations.
23327 * tests/prctl-name.c: New file.
23328 * tests/prctl-name.test: New test.
23329 * tests/.gitignore: Add prctl-name.
23330 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
23398 tests: fix btrfs build error on some old systems.
23404 * tests/btrfs.c (btrfs_test_dev_replace_ioctl): Move initialization
23408 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23410 tests: check decoding of ERESTARTSYS error code.
23411 * tests/erestartsys.c: New file.
23412 * tests/erestartsys.test: New test.
23413 * tests/.gitignore: Add erestartsys.
23414 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
23429 * tests/qual_signal.c: New file.
23430 * tests/qual_signal.test: New test.
23431 * tests/.gitignore: Add qual_signal.
23432 * tests/Makefile.am (check_PROGRAMS): Likewise.
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
23440 -e fault=file:when=3+ -e fault=chdir
23445 * tests/fault_injection.test: Check it.
23447 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23449 tests: check syscall fault injection.
23450 * tests/fault_injection.c: New file.
23451 * tests/fault_injection.test: New test.
23452 * tests/fault_syntax.test: Likewise.
23453 * tests/.gitignore: Add fault_injection.
23454 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
23515 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23583 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23586 The incomplete CRIS support introduced by commit v4.5.18-77-gea0e6e8
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>
23631 tests: fix potential compilation warning in ioctl_block.c.
23634 * tests/ioctl_block.c (init_magic): Define only for
23637 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23644 * linux/mips/syscallent-n32.h: Likewise.
23645 * linux/mips/syscallent-n64.h: Likewise.
23646 * linux/mips/syscallent-o32.h: Likewise.
23658 * tests/.gitignore: Add pkey_alloc, pkey_free, and pkey_mprotect.
23659 * tests/Makefile.am (check_PROGRAMS): Likewise.
23662 * tests/pkey_alloc.c: New file.
23663 * tests/pkey_free.c: Likewise.
23664 * tests/pkey_mprotect.c: Likewise.
23665 * tests/pkey_alloc.test: New test.
23666 * tests/pkey_free.test: Likewise.
23667 * tests/pkey_mprotect.test: Likewise.
23669 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23671 tests: fix "constant is too large" compilation warnings.
23819 preadv-pwritev.c: In function 'main':
23820 preadv-pwritev.c:162: warning: comparison between signed and unsigned
23892 * tests/alarm.c (main): Add proper suffix to integer constant.
23893 * tests/aio.c (main): Likewise.
23894 * tests/btrfs.c (btrfs_test_sync_ioctls, btrfs_test_subvol_ioctls): Likewise.
23895 * tests/dup2.c (main): Likewise.
23896 * tests/dup3.c (main): Likewise.
23897 * tests/epoll_create.c (main): Likewise.
23898 * tests/epoll_ctl.c (invoke_syscall): Likewise.
23899 * tests/faccessat.c (main): Likewise.
23900 * tests/fchdir.c (main): Likewise.
23901 * tests/fcntl.c (test_flock64_einval): Likewise.
23902 * tests/fcntl64.c (test_flock64_einval): Likewise.
23903 * tests/fdatasync.c (main): Likewise.
23904 * tests/flock.c (main): Likewise.
23905 * tests/fstat64.c (SAMPLE_SIZE): Likewise.
23906 * tests/fstat.c (SAMPLE_SIZE): Likewise.
23907 * tests/fsync.c (main): Likewise.
23908 * tests/ftruncate64.c (main): Likewise.
23909 * tests/futimesat.c (main): Likewise.
23910 * tests/get_mempolicy.c (main): Likewise.
23911 * tests/getdents.c (main): Likewise.
23912 * tests/getdents64.c (main): Likewise.
23913 * tests/ioctl_block.c (lmagic, main): Likewise.
23914 * tests/ioctl_evdev.c (lmagic): Likewise.
23915 * tests/ioctl_mtd.c (lmagic): Likewise.
23916 * tests/ioctl_rtc.c (lmagic): Likewise.
23917 * tests/ioctl_v4l2.c (main): Likewise.
23918 * tests/ioperm.c (main): Likewise.
23919 * tests/ipc.c (ipc_call): Likewise.
23920 * tests/kill.c (main): Likewise.
23921 * tests/linkat.c (main): Likewise.
23922 * tests/lstat64.c (SAMPLE_SIZE): Likewise.
23923 * tests/lstat.c (SAMPLE_SIZE): Likewise.
23924 * tests/mbind.c (main): Likewise.
23925 * tests/migrate_pages.c (main): Likewise.
23926 * tests/mkdirat.c (TEST_SYSCALL_PREFIX_ARGS): Likewise.
23927 * tests/mknod.c (call_mknod, main): Likewise.
23928 * tests/mknodat.c (fd, call_mknodat, main): Likewise.
23929 * tests/mmap.c (main): Likewise.
23930 * tests/move_pages.c (print_stat_pages, print_move_pages): Likewise.
23931 * tests/mq_sendrecv.c (main): Likewise.
23932 * tests/nsyscalls.c (test_syscall): Likewise.
23933 * tests/prlimit64.c (main): Likewise.
23934 * tests/remap_file_pages.c (main): Likewise.
23935 * tests/renameat.c (main): Likewise.
23936 * tests/rt_sigqueueinfo.c (main): Likewise.
23937 * tests/rt_tgsigqueueinfo.c (k_tgsigqueueinfo, main): Likewise.
23938 * tests/sendfile.c (main): Likewise.
23939 * tests/sendfile64.c (main): Likewise.
23940 * tests/set_mempolicy.c (main): Likewise.
23941 * tests/setrlimit.c (main): Likewise.
23942 * tests/socketcall.c (test_socketcall): Likewise.
23943 * tests/splice.c (main): Likewise.
23944 * tests/stat64.c (SAMPLE_SIZE): Likewise.
23945 * tests/stat.c (SAMPLE_SIZE): Likewise.
23946 * tests/struct_flock.c (invoke_test_syscall, test_flock_einval): Likewise.
23947 * tests/symlinkat.c (main): Likewise.
23948 * tests/sync_file_range.c (main): Likewise.
23949 * tests/syslog.c (main): Likewise.
23950 * tests/tee.c (main): Likewise.
23951 * tests/timer_create.c (main): Likewise.
23952 * tests/truncate64.c (main): Likewise.
23953 * tests/umode_t.c (test_syscall): Likewise.
23954 * tests/unlinkat.c (main): Likewise.
23955 * tests/waitid.c (main): Likewise.
23956 * tests/waitpid.c (main): Likewise.
23957 * tests/xetpgid.c (main): Likewise.
23958 * tests/xetpriority.c (main): Likewise.
23959 * tests/xgetrlimit.c (main): Likewise.
23960 * tests/xstatfsx.c (main) [CHECK_ODD_SIZE]: Likewise.
23961 * tests/xstatx.c (main): Likewise.
23963 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23965 tests: fix "comparison between signed and unsigned" compilation warnings
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.
23974 * tests/readv.c (main): Likewise.
23975 * tests/recvmsg.c (main): Likewise.
23977 2016-11-13 Dmitry V. Levin <ldv@altlinux.org>
24002 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
24059 tests: do not run old_mmap test on m68k.
24060 * tests/old_mmap.c: Skip test on m68k.
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>
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>
24114 * configure.ac (AC_CHECK_HEADERS): Add linux/dm-ioctl.h.
24118 * tests/ioctl_dm.c: New file.
24119 * tests/ioctl_dm-v.c: Likewise.
24120 * tests/ioctl_dm.test: New test.
24121 * tests/ioctl_dm-v.test: Likewise.
24122 * tests/.gitignore: Add ioctl_dm and ioctl_dm-v.
24123 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
24134 This enables printing size-limited (expectedly) ASCIZ strings.
24140 -1). As a result, there is one excess byte for string_quote in case
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
24157 2016-11-09 Eugene Syromyatnikov <evgsyr@gmail.com>
24159 tests: check decoding of mq_{notify,open,timedreceive,timedsend,unlink}
24160 * tests/mq_sendrecv.c: New file.
24161 * tests/mq_sendrecv-read.c: Likewise.
24162 * tests/mq_sendrecv-write.c: Likewise.
24163 * tests/mq_sendrecv.test: New test.
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.
24168 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
24176 tests: skip times.test if CLOCK_PROCESS_CPUTIME_ID does not work.
24177 * tests/times.c (main): Skip if clock_gettime consistenly returns zero
24180 2016-10-31 Eugene Syromyatnikov <evgsyr@gmail.com>
24182 tests: add tests for perf_event_attr structure decoding in perf_event_open
24185 * tests/perf_event_open.c: New file.
24186 * tests/perf_event_open_unabbrev.c: Likewise.
24187 * tests/perf_event_open.test: New test.
24188 * tests/perf_event_open_unabbrev.test: Likewise.
24189 * tests/.gitignore: Add perf_event_open, perf_event_open_unabbrev.
24190 * tests/Makefile.am (check_PROGRAMS): Likewise.
24219 * tests/perf_event_open.c: Renamed to
24220 tests/perf_event_open_nonverbose.c.
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.
24226 tests: fix name spelling.
24228 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24230 tests: fix name spelling.
24234 Fix typo in comment in tests/quotactl.h.
24236 tests: fix invalid pointer checks in quotactl test.
24237 * tests/quotactl.h (bogus_special, bogus_addr): Move it...
24238 * tests/quotactl.c (main): ... here; remove static and const qualifiers,
24240 * tests/quotactl-xfs.c (main): Likewise.
24242 tests: fix invalid pointer checks in getcpu test.
24246 tests: fix invalid pointer checks in request_key test.
24250 tests: fix invalid pointer checks in add_key test.
24267 * defs.h (ARRAY_SIZE): Add MUST_BE_ARRAY for build-time type check.
24269 tests: check decoding of oldfstat, oldlstat, and oldstat syscalls.
24270 * tests/oldfstat.c: New file.
24271 * tests/oldlstat.c: Likewise.
24272 * tests/oldstat.c: Likewise.
24273 * tests/oldfstat.test: New test.
24274 * tests/oldlstat.test: Likewise.
24275 * tests/oldstat.test: Likewise.
24276 * tests/xstatx.c [!OLD_STAT]: define OLD_STAT to 0.
24282 print address only on non-successful rc.
24283 * tests/.gitignore: Add oldfstat, oldlstat, and oldstat.
24284 * tests/Makefile.am (check_PROGRAMS): Likewise.
24287 tests: additional tests of stat decoders.
24288 * tests/fstatx.c (IS_FSTAT): Define to 1.
24289 * tests/fstatat64.c [__GLIBC__ && __sparc64__] (TEST_BOGUS_STRUCT_STAT):
24291 * tests/xstatx.c [!IS_STAT] (IS_STAT): Define to 0.
24293 (main): Add a check for non-available pointer and a check
24295 * tests/statx.sh: Add tracing of /dev/full file, specify alignment.
24296 * tests/fstat.test: Specify alignment.
24298 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24300 tests: prepare for additional tests of stat decoders.
24305 * tests/xstatx.c: Include <errno.h>.
24307 * tests/fstatat.c (PRINT_SYSCALL_HEADER): Add errno saving.
24309 * tests/fstatx.c: Likewise.
24310 * tests/lstatx.c: Likewise.
24312 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24319 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24328 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
24361 * tests/mq.expected: Update expected output.
24363 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24373 * tests/mq.expected: Update expected output.
24375 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24387 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24393 tests: additional name_to_handle_at/open_by_handle_at checks.
24394 * tests/file_handle.c: Additional name_to_handle_at/open_by_handle_at
24397 tests: require only presence of __NR_* macros for file_handle test.
24398 * tests/file_handle.c: replace fcntl.h include with asm/unistd.h.
24405 tests: proper type conversion in keyctl test.
24406 * tests/keyctl.c (printarg): Add intermediate conversion of arg to uintptr_t
24409 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24419 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24421 tests: check decoding of kexec_file_load and kexec_load syscalls.
24422 * tests/kexec_file_load.c: New file.
24423 * tests/kexec_load.c: Likewise.
24424 * tests/kexec_file_load.test: New test.
24425 * tests/kexec_load.test: Likewise.
24426 * tests/.gitignore: Add kexec_file_load and kexec_load.
24427 * tests/Makefile.am (check_PROGRAMS): Likewise.
24430 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24439 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24448 tests: check decoding of unshare syscall.
24449 * tests/unshare.c: New file.
24450 * tests/unshare.test: New test.
24451 * tests/.gitignore: Add unshare.
24452 * tests/Makefile.am (check_PROGRAMS): Likewise.
24455 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24464 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24474 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24476 tests: check decoding of setns syscall.
24477 * tests/setns.c: New file.
24478 * tests/setns.test: New test.
24479 * tests/.gitignore: Add setns.
24480 * tests/Makefile.am (check_PROGRAMS): Likewise.
24483 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
24499 * tests/Makefile.am (check_PROGRAMS): Likewise.
24500 (DECODER_TESTS): Add caps-abbrev.test.
24501 (EXTRA_DIST): Add caps-abbrev.awk.
24503 tests: additional capset decoder checks.
24504 * tests/caps.awk: Add patterns for additional checks.
24505 * tests/caps.c: Implement additional checks.
24507 tests: check decoding of fanotify_init syscall.
24508 * tests/fanotify_init.c: New file.
24509 * tests/fanotify_init.test: New test.
24510 * tests/.gitignore: Add fanotify_init.
24511 * tests/Makefile.am (check_PROGRAMS): Likewise.
24514 tests: some additional checks for fanotify_mark.
24515 * tests/fanotify_mark.c (do_call): New function.
24518 tests: use sprintrc in tests/fanotify_mark.c.
24519 * tests/fanotify.c (main): Use sprintrc.
24521 tests: check decoding of {init,finit,delete}_module syscalls.
24522 * tests/delete_module.c: New file.
24523 * tests/finit_module.c: Likewise.
24524 * tests/init_delete_module.h: Likewise.
24525 * tests/init_module.c: Likewise.
24526 * tests/delete_module.test: New test.
24527 * tests/finit_module.test: Likewise.
24528 * tests/init_module.test: Likewise.
24529 * tests/.gitignore: Add delete_nodule, finit_module, and init_module.
24530 * tests/Makefile.am (check_PROGRAMS): Likewise.
24535 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24546 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24554 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24562 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24572 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24574 tests: check decoding of process_vm_readv and process_vm_writev syscalls
24575 * tests/process_vm_readv.c: New file.
24576 * tests/process_vm_readv_writev.c: Likewise.
24577 * tests/process_vm_writev.c: Likewise.
24578 * tests/process_vm_readv.test: New test.
24579 * tests/process_vm_writev.test: Likewise.
24580 * tests/.gitignore: Add process_vm_readv and process_vm_writev.
24581 * tests/Makefile.am (check_PROGRAMS): Likewise.
24590 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24597 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24604 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24613 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
24653 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24655 tests: check decoding of kcmp syscall.
24656 * tests/kcmp.c: New file.
24657 * tests/kcmp.test: New test.
24658 * tests/.gitignore: Add kcmp.
24659 * tests/Makefile.am (check_PROGRAMS): Likewise.
24662 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24668 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24670 tests: check decoding of inotify family syscalls.
24671 * tests/inotify.c: New file.
24672 * tests/inotify_init1.c: Likewise.
24673 * tests/inotify.test: New test.
24674 * tests/inotify_init1.test: Likewise.
24675 * tests/.gitignore: Add inotify and inotify_init1.
24676 * tests/Makefile.am (check_PROGRAMS): Likewise.
24683 tests: check decoding of lookup_dcookie syscall.
24684 * tests/lookup_dcookie.c: New file.
24685 * tests/lookup_dcookie.test: New test.
24686 * tests/.gitignore: Add lookup_dcookie.
24687 * tests/Makefile.am (check_PROGRAMS): Likewise.
24690 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24699 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24708 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24710 tests: move ARG_STR and similar macros to tests.h.
24711 * tests/add_key.c (_STR, ARG_STR): Move ...
24712 * tests/tests.h: ... here.
24714 * tests/keyctl.c (ARG_STR): Remove.
24715 * tests/quotactl.h (ARG_STR): Likewise.
24716 * tests/request_key.c (ARG_STR): Likewise.
24718 tests: move LL_PAIR and LL_VAL_TO_PAIR macros to tests.h.
24719 * tests/fadvise.h (LL_PAIR, LL_VAL_TO_PAIR): Move ...
24720 * tests/tests.h: ... here.
24722 tests: check decoding of ioprio_get and ioprio_set syscalls.
24723 * tests/ioprio.c: New file.
24724 * tests/ioprio.test: New test.
24725 * tests/.gitignore: Add ioprio.
24726 * tests/Makefile.am (check_PROGRAMS): Likewise.
24729 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24739 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24741 tests: move fill_memory and fill_memory_ex into a separate file.
24742 * tests/fill_memory.c: New file.
24743 * tests/Makefile.am (libtests_a_SOURCES): Add it.
24744 * tests/quotactl.h (fill_memory, fill_memory_ex): Move to fill_memory.c.
24745 * tests/tests.h (fill_memory, fill_memory_ex): New prototypes.
24747 tests: add period parameter to fill_memory_ex.
24748 * tests/quotactl.h (fill_memory_ex): Add period parameter,
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.
24757 * debian/changelog.in: Add a changelog entry for 4.14-1.
24760 2016-10-04 Dmitry V. Levin <ldv@altlinux.org>
24768 2016-10-04 Dmitry V. Levin <ldv@altlinux.org>
24776 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24778 tests: check decoding of add_key, keyctl, and request_key syscalls.
24779 * tests/add_key.c: New file.
24780 * tests/keyctl.c: Likewise.
24781 * tests/request_key.c: Likewise.
24782 * tests/add_key.test: New test.
24783 * tests/keyctl.test: Likewise.
24784 * tests/request_key.test: Likewise.
24785 * tests/.gitignore: Add add_key, keyctl, and request_key.
24786 * tests/Makefile.am (check_PROGRAMS): Likewise.
24789 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24803 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24816 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
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
24830 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
24860 2016-10-03 Dmitry V. Levin <ldv@altlinux.org>
24866 tests: fix another regression in qual_syscall.test.
24867 * tests/qual_syscall.test: Fix pattern_nonabbrev_verbose pattern.
24872 of open-coding it. Print unrecognized errno values using %lu format
24875 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24885 2016-10-03 Dmitry V. Levin <ldv@altlinux.org>
24897 2016-10-02 Dmitry V. Levin <ldv@altlinux.org>
24908 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24920 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24928 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24931 UID/GID are unsigned except special -1 value (which is also special in
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>
24949 tests: fix typo in qual_syscall.test.
24950 Fix test regression introduced by commit v4.13-225-g55334ef.
24952 * tests/qual_syscall.test: Fix typo.
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.
24963 * tests/qual_syscall.test: Check it.
24965 2016-09-30 Dmitry V. Levin <ldv@altlinux.org>
24967 tests/qual_syscall.test: rewrite without ls.
24968 * tests/qual_syscall.test: Invoke ./umovestr instead of ls.
24971 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24973 tests: check decoding of fadvise64 and fadvise64_64 syscalls.
24974 * tests/fadvise.h: New file.
24975 * tests/fadvise64.c: Likewise.
24976 * tests/fadvise64_64.c: Likewise.
24977 * tests/fadvise64.test: New test.
24978 * tests/fadvise64_64.test: Likewise.
24979 * tests/.gitignore: Add fadvise64 and fadvise64_64.
24980 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
24999 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25002 Since its type is size_t, it is 64-bit wide on x32 and special care
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>
25028 2016-09-28 Dmitry V. Levin <ldv@altlinux.org>
25031 This change is no-op yet, but things will change when decoder
25038 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25040 tests: check decoding of fallocate syscall.
25042 * tests/fallocate.c: New file.
25043 * tests/fallocate.test: New test.
25044 * tests/.gitignore: Add fallocate.
25045 * tests/Makefile.am (check_PROGRAMS): Likewise.
25048 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25058 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25066 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25068 tests: check decoding of getcpu syscall.
25069 * tests/getcpu.c: New file.
25070 * tests/getcpu.test: New test.
25071 * tests/.gitignore: Add getcpu.
25072 * tests/Makefile.am (check_PROGRAMS): Likewise.
25075 tests: make magic values in ioctl_block test distinctive.
25076 * tests/ioctl.block (init_magic): Add iterator value to magic value
25077 in order to enable detection of potential 4-byte aligned shifts.
25079 tests: additional getcwd decoding checks.
25080 * tests/getcwd.c (main): Add more checks for getcwd arguments decoding.
25082 tests: check decoding of quotactl syscall.
25085 * tests/.gitignore: Add quotactl, quotactl-v, quotactl-xfs,
25086 and quotactl-xfs-v.
25087 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
25110 * tests/tests.h (zero_extend_signed_to_ull, sign_extend_unsigned_to_ll):
25117 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
25153 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25156 Q_XQUOTASYNC is no-op, but it does not require id/addr arguments anyway.
25162 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25170 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25185 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
25201 * tests/waitid.c (sprint_rusage): Check VERBOSE instead
25204 tests: use VERBOSE macro in wait4 and wait4-v tests.
25205 * tests/wait4-v.c (VERBOSE_RUSAGE): Remove.
25207 * tests/wait4.c (sprint_rusage): Check VERBOSE instead
25210 tests: use VERBOSE macro in msg_control and msg_control-v tests.
25211 * tests/msg_control-v.c (VERBOSE_MSGHDR): Remove.
25213 * tests/msg_control.c (print_fds, print_ip_opts): Check VERBOSE instead
25216 tests: use VERBOSE macro in mmsg_name and mmsg_name-v tests.
25217 * tests/mmsg_name-v.c (VERBOSE_MMSGHDR): Remove.
25219 * tests/mmsg_name.c (test_mmsg_name): Check VERBOSE instead
25222 tests: use VERBOSE macro in ioctl_rtc and ioctl_rtc-v tests.
25223 * tests/ioctl_rtc-v.c (VERBOSE_IOCTL): Remove.
25225 * tests/ioctl_rtc.c (print_rtc_time): Check VERBOSE instead
25228 tests: use VERBOSE macro in ioctl_evdev and ioctl_evdev-v tests.
25229 * tests/ioctl_evdev-v.c (VERBOSE_IOCTL): Remove.
25231 * tests/ioctl_evdev.c: Check VERBOSE instead of VERBOSE_IOCTL.
25233 tests: use VERBOSE macro in execveat and execveat-v tests.
25234 * tests/execveat-v.c (VERBOSE_EXECVEAT): Remove.
25236 * tests/execveat.c (main): Check VERBOSE instead of VERBOSE_EXECVEAT.
25238 tests: use VERBOSE macro in execve and execve-v tests.
25239 * tests/execve-v.c (VERBOSE_EXECVE): Remove.
25241 * tests/execve.c (main): Check VERBOSE instead of VERBOSE_EXECVE.
25243 2016-09-26 Dmitry V. Levin <ldv@altlinux.org>
25245 tests: add VERBOSE macro.
25247 to 1 by code testing "strace -v" output.
25249 * tests/tests.h [!VERBOSE] (VERBOSE): New macro.
25251 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25258 * tests/open.c (main): Check it.
25261 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25263 tests: use sprintrc in tests/ptrace.c.
25264 * tests/ptrace.c (errstr): New static variable.
25268 tests: use sprintrc in tests/netlink_protocol.c.
25269 * tests/netlink_protocol.c (main): Use sprintrc.
25271 tests: use sprintrc in tests/fchownat.c.
25272 * tests/fchownat.c (main): Use sprintrc.
25274 tests: use sprintrc in tests/fchmodat.c.
25275 * tests/fchmodat.c (main): Use sprintrc. Add more fchmodat decoding tests.
25277 tests: use sprintrc in tests/fchmod.c.
25278 * tests/fchmod.c (main): Use sprintrc. Add more fchmod decoding tests.
25279 * tests/fchmod.test: Update the value specified for strace -a parameter.
25281 tests: use sprintrc in tests/getgroups.c.
25282 * tests/getgroups.c (main): Use sprintrc.
25284 tests: use sprintrc in tests/setgroups.c.
25285 * tests/setgroups.c (main): Use sprintrc.
25287 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
25289 tests/utime.c: rewrite without assert.
25290 * tests/utime.c: Do not include <assert.h>.
25293 tests/xattr.c: rewrite without assert.
25294 * tests/xattr.c: Do not include <assert.h>.
25297 tests: use sprintrc in tests/xchownx.c.
25298 * tests/xchownx.c (main): Do not include <errno.h>. Use sprintrc.
25300 tests/xstatfsx.c: fix potential errno clobbering.
25301 * tests/xstatfsx.c (main): Use sprintrc.
25303 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
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>
25340 tests: workaround limited semctl implementation in musl.
25344 * tests/ipc_sem.c (main): Update semctl expected output.
25346 2016-09-13 Eugene Syromyatnikov <evgsyr@gmail.com>
25348 tests: add more IPC decoding checks.
25349 * tests/ipc_msg.c: Additional msgget (parameter format) and msgctl
25352 * tests/ipc_sem.c: Additional semget and semctl checks.
25353 * tests/ipc_shm.c: Additional shmget and shmctl checks.
25354 * tests/semop.c: Additional semop checks. Add checks for semtimedop.
25355 * tests/semop.test: Add explicit -e parameter in order to trace both
25357 * tests/shmxt.c: Additional shmat and shmdt checks.
25359 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25365 2016-09-12 Eugene Syromyatnikov <evgsyr@gmail.com>
25373 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25380 2016-09-12 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
25389 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25391 tests: use sprintrc_grep in tests/ipc_shm.c.
25392 * tests/ipc_shm.c (main): Use sprintrc_grep.
25394 tests: use sprintrc_grep in tests/ipc_sem.c.
25395 * tests/ipc_sem.c (main): Use sprintrc_grep.
25397 2016-09-11 Dmitry V. Levin <ldv@altlinux.org>
25399 tests: use sprintrc_grep in tests/ipc_msg.c.
25400 * tests/ipc_msg.c (main): Use sprintrc_grep.
25402 2016-09-10 Dmitry V. Levin <ldv@altlinux.org>
25404 tests: use sprintrc in tests/chmod.c.
25405 * tests/chmod.c (main): Use sprintrc. Add more chmod decoding tests.
25407 2016-09-09 Dmitry V. Levin <ldv@altlinux.org>
25417 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
25419 tests/aio.c: bring indentation in conformance with the rest of the file.
25421 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
25423 tests: use predefined constant in aio_context_t checks in aio test.
25427 * tests/aio.c (main): Update syscall checks in order to use newly
25430 2016-09-09 Dmitry V. Levin <ldv@altlinux.org>
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>
25453 tests: use PRI__*64 macros in aio test.
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>
25474 2016-09-08 Dmitry V. Levin <ldv@altlinux.org>
25482 * tests/ipc_msg.c (main): Test it.
25483 * tests/ipc_sem.c (main): Likewise.
25484 * tests/ipc_shm.c (main): Likewise.
25486 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25488 tests: add more sched_getattr and sched_setattr decoding checks.
25489 * tests/sched_xetattr.c (main): Add more sched_getattr and sched_setattr
25492 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25494 tests: change type of sched_nice field to signed in sched_xetattr test.
25498 * tests/sched_xetattr.c (main): Change type of sched_nice field of struct
25501 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25503 tests: add sprintrc_grep function to libtests.
25505 tests where grep-base pattern matching is employed.
25507 * tests/tests.h (sprintrc_grep): New prototype.
25508 * tests/sprintrc.c (enum sprintrc_fmt): New sprintrc format enumeration.
25514 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25516 tests: perform more strict structure allocation in sched_xetattr test.
25519 * tests/sched_xetattr.c (main): Eliminate usage of anonymous union type.
25524 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25526 tests: split long lines in sched_xetattr test.
25527 * tests/sched_xetattr.c (main): Split long lines.
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
25536 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25546 * tests/aio.c (sprint_aio_context_t): Remove.
25549 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25551 tests/aio.c: rewrite without assert.
25552 * tests/aio.c: Do not include <assert.h>.
25555 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25557 tests: add more aio decoding checks.
25558 * tests/aio.c (sprint_aio_context_t): New function.
25561 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25563 tests: add suffix and cast to 64-bit constants in aio test.
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>
25573 tests: check decoding of perf_event_open syscall.
25574 * tests/perf_event_open.c: New file.
25575 * tests/perf_event_open.test: New test.
25576 * tests/.gitignore: Add perf_event_open.
25577 * tests/Makefile.am (check_PROGRAMS): Likewise.
25584 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25586 tests: use sprintrc in tests/xetpriority.c.
25587 * tests/xetpriority.c (main): Use sprintrc.
25589 tests: use sprintrc in vhangup.test.
25590 * tests/vhangup.c (main): Use sprintrc.
25592 tests: use sprintrc in tests/sockname.c.
25593 * tests/sockname.c (test_sockname_syscall): Use sprintrc.
25595 tests: use sprintrc in signalfd4.test.
25596 * tests/signalfd4.c (main): Use sprintrc.
25598 tests: use sprintrc in setrlimit.test.
25599 * tests/setrlimit.c (main): Use sprintrc.
25601 tests: use sprintrc in set_mempolicy.test.
25602 * tests/set_mempolicy.c (main, print_nodes): Use sprintrc.
25604 tests: use sprintrc in openat.test.
25605 * tests/openat.c (main): Use sprintrc.
25607 tests: use sprintrc in open.test.
25608 * tests/open.c (main): Use sprintrc.
25610 tests: use sprintrc in move_pages.test.
25611 * tests/move_pages.c (print_stat_pages, print_move_pages): Use sprintrc.
25613 tests: use sprintrc in mlockall.test.
25614 * tests/mlockall.c (main): Use sprintrc.
25616 tests: use sprintrc in mlock.test.
25617 * tests/mlock.c (main): Use sprintrc.
25619 tests: use sprintrc in epoll_create1.test.
25620 * tests/epoll_create1.c (main): Use sprintrc.
25622 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25624 tests: fix printing of min_nr and nr arguments of io_getevents syscall.
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.
25632 * tests/sched_rr_get_interval.c (main): Check decoding of invalid
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>
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>
25680 tests: check decoding of readahead syscall.
25682 * tests/readahead.c: New file.
25683 * tests/readahead.test: New test.
25684 * tests/.gitignore: Add readahead.
25685 * tests/Makefile.am (check_PROGRAMS): Likewise.
25688 2016-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
25690 tests: move sprintrc function to libtests.
25691 * tests/tests.h (sprintrc): New prototype.
25692 * tests/futex.c (sprintrc): Move to ...
25693 * tests/sprintrc.c: ... new file.
25694 * tests/Makefile.am (libtests_a_SOURCES): Add sprintrc.c.
25696 tests/futex: add support to sprintrc for return codes other than 0 and -1
25697 * tests/futex.c (sprintrc): Print the actual return code provided,
25700 tests/futex: increase sprintrc static buffer size.
25701 * tests/futex.c (sprintrc): Increase buffer size from 256 to 4096.
25703 tests/futex: rename retstr to sprintrc.
25704 * tests/futex.c (retstr): Rename to sprintrc.
25707 2016-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
25716 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25718 tests/xstatx.c: use zero_extend_signed_to_ull/sign_extend_unsigned_to_ll
25722 * tests/xstatx.c (print_time, main): Use zero_extend_signed_to_ull
25727 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25729 tests: add sign_extend_unsigned_to_ll macro.
25730 * tests/tests.h (sign_extend_unsigned_to_ll): New macro from defs.h.
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>
25798 tests: check decoding of futex syscall.
25799 * tests/futex.c: New file.
25800 * tests/futex.test: New test.
25801 * tests/.gitignore: Add futex.
25802 * tests/Makefile.am (check_PROGRAMS): Likewise.
25805 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
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>
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>
25874 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25876 tests: use correct m32/mx32 st_mtime_nsec checks in tests/xstatx.c.
25877 * bootstrap: Add -DMPERS_IS_$(MPERS_NAME) to ARCH_MFLAGS.
25878 * tests/xstatx.c [USE_ASM_STAT && STRUCT_STAT_IS_STAT64 && MPERS_IS_m32]:
25893 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
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>
25958 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25961 glibc, starting with commit glibc-2.24-28-gdbab657, has deprecated
25973 * tests/mknod.c: Likewise.
25974 * tests/mknodat.c: Likewise.
25975 * tests/xstatx.c: Likewise.
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>
25997 Revert "tests/xstatx.c: fix stat syscall tests on mips64"
26004 * tests/xstatx.c (create_sample) [__mips64]: Remove.
26006 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26041 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
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>
26063 * tests/xstatx.c: Remove redefinition of stat types.
26065 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26068 For the reason described in commit v4.10-517-gcfde1e3, a correct
26070 "asm_stat.h" with -mx32 on x86_64.
26077 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26080 This enables x32/asm_stat.h with -m32.
26087 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26100 * linux/mips/syscallent-o32.h: Likewise.
26110 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26124 * tests/xstatx.c: Likewise.
26126 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26134 * tests/tests.h: Likewise.
26139 * tests/tests.h: Likewise.
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>
26159 2016-08-22 Eugene Syromyatnikov <evgsyr@gmail.com>
26161 tests: fill old_value argument in timer{,fd}_xettime tests.
26168 * tests/timer_xettime.c (main): Fill old.its field with value different
26170 * tests/timerfd_xettime.c: Likewise.
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.
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
26219 2016-08-21 Dmitry V. Levin <ldv@altlinux.org>
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>
26262 * linux/sparc64/get_syscall_args.c (get_syscall_args): Zero-extend
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>
26294 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26306 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26308 tests: fix pause.test when pause syscall is not available.
26309 * tests/pause.c (main): Fix expected output when pause syscall
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.
26335 * tests/Makefile.am (check_PROGRAMS): Likewise.
26336 (MISC_TESTS): Add redirect-fds.test.
26338 tests/init.sh: print exit code of failed commands.
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
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>
26372 tests: fix *stat64 tests on alpha.
26376 fields. Fix tests to take this difference into account.
26378 * tests/fstat64.c (STRUCT_STAT_IS_STAT64): New macro, defined to 1.
26379 * tests/lstat64.c (STRUCT_STAT_IS_STAT64): Likewise.
26380 * tests/stat64.c (STRUCT_STAT_IS_STAT64): Likewise.
26381 * tests/xstatx.c [!STRUCT_STAT] (STRUCT_STAT_IS_STAT64): New macro,
26387 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26389 tests: skip rt_tgsigqueueinfo.test when the syscall is not available.
26390 * tests/rt_tgsigqueueinfo.c (main): Skip the test when the syscall
26393 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26395 tests/fcntl.c: fix fcntl test on mips64.
26399 tests/fcntl.c (test_flock64): Do not test F_SETLKW64 on mips64.
26401 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26403 tests/nsyscalls.test: only trace the "syscall" syscall on mips o32.
26405 64-bit mips ABIs. Pass MIPS_ABI from the configure script through to
26409 * tests/Makefile.am (MIPS_ABI): Export via AM_TEST_LOG_FLAGS.
26410 * tests/nsyscalls.test: Restrict special mips handling to mips o32.
26412 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26414 tests/xstatx.c: fix stat syscall tests on mips64.
26416 32-bit integers on mips64. Therefore, while it's possible to give a file a
26421 * tests/xstatx.c (create_sample): Use positive timestamps on mips64.
26423 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26425 tests/mlock2.c: fix test failure on mips64.
26426 * tests/mlock2.c (main): Pass unsigned long arguments to mlock2 syscall
26431 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26443 * tests/_newselect.c: Likewise.
26444 * tests/access.c: Likewise.
26445 * tests/acct.c: Likewise.
26446 * tests/aio.c: Likewise.
26447 * tests/alarm.c: Likewise.
26448 * tests/attach-f-p.c: Likewise.
26449 * tests/bpf.c: Likewise.
26450 * tests/brk.c: Likewise.
26451 * tests/chmod.c: Likewise.
26452 * tests/chown.c: Likewise.
26453 * tests/chown32.c: Likewise.
26454 * tests/chroot.c: Likewise.
26455 * tests/clock_adjtime.c: Likewise.
26456 * tests/clock_nanosleep.c: Likewise.
26457 * tests/clock_xettime.c: Likewise.
26458 * tests/copy_file_range.c: Likewise.
26459 * tests/creat.c: Likewise.
26460 * tests/dup2.c: Likewise.
26461 * tests/dup3.c: Likewise.
26462 * tests/epoll_create.c: Likewise.
26463 * tests/epoll_create1.c: Likewise.
26464 * tests/epoll_ctl.c: Likewise.
26465 * tests/epoll_pwait.c: Likewise.
26466 * tests/epoll_wait.c: Likewise.
26467 * tests/eventfd.c: Likewise.
26468 * tests/execveat.c: Likewise.
26469 * tests/faccessat.c: Likewise.
26470 * tests/fchdir.c: Likewise.
26471 * tests/fchmod.c: Likewise.
26472 * tests/fchmodat.c: Likewise.
26473 * tests/fchown.c: Likewise.
26474 * tests/fchown32.c: Likewise.
26475 * tests/fchownat.c: Likewise.
26476 * tests/fcntl.c: Likewise.
26477 * tests/fcntl64.c: Likewise.
26478 * tests/fdatasync.c: Likewise.
26479 * tests/flock.c: Likewise.
26480 * tests/fstat.c: Likewise.
26481 * tests/fstat64.c: Likewise.
26482 * tests/fstatat64.c: Likewise.
26483 * tests/fstatfs.c: Likewise.
26484 * tests/fstatfs64.c: Likewise.
26485 * tests/fsync.c: Likewise.
26486 * tests/ftruncate.c: Likewise.
26487 * tests/ftruncate64.c: Likewise.
26488 * tests/futimesat.c: Likewise.
26489 * tests/get_mempolicy.c: Likewise.
26490 * tests/getcwd.c: Likewise.
26491 * tests/getdents.c: Likewise.
26492 * tests/getdents64.c: Likewise.
26493 * tests/getegid.c: Likewise.
26494 * tests/getegid32.c: Likewise.
26495 * tests/geteuid.c: Likewise.
26496 * tests/geteuid32.c: Likewise.
26497 * tests/getgid.c: Likewise.
26498 * tests/getgid32.c: Likewise.
26499 * tests/getgroups.c: Likewise.
26500 * tests/getgroups32.c: Likewise.
26501 * tests/getpgrp.c: Likewise.
26502 * tests/getrandom.c: Likewise.
26503 * tests/getresgid.c: Likewise.
26504 * tests/getresgid32.c: Likewise.
26505 * tests/getresuid.c: Likewise.
26506 * tests/getresuid32.c: Likewise.
26507 * tests/getrlimit.c: Likewise.
26508 * tests/getrusage.c: Likewise.
26509 * tests/getuid.c: Likewise.
26510 * tests/getuid32.c: Likewise.
26511 * tests/getxxid.c: Likewise.
26512 * tests/ioctl_uffdio.c: Likewise.
26513 * tests/ioperm.c: Likewise.
26514 * tests/iopl.c: Likewise.
26515 * tests/ipc.c: Likewise.
26516 * tests/kill.c: Likewise.
26517 * tests/lchown.c: Likewise.
26518 * tests/lchown32.c: Likewise.
26519 * tests/libmmsg.c: Likewise.
26520 * tests/libsocketcall.c: Likewise.
26521 * tests/link.c: Likewise.
26522 * tests/linkat.c: Likewise.
26523 * tests/llseek.c: Likewise.
26524 * tests/lseek.c: Likewise.
26525 * tests/lstat.c: Likewise.
26526 * tests/lstat64.c: Likewise.
26527 * tests/mbind.c: Likewise.
26528 * tests/membarrier.c: Likewise.
26529 * tests/memfd_create.c: Likewise.
26530 * tests/migrate_pages.c: Likewise.
26531 * tests/mkdir.c: Likewise.
26532 * tests/mkdirat.c: Likewise.
26533 * tests/mknod.c: Likewise.
26534 * tests/mknodat.c: Likewise.
26535 * tests/mlock.c: Likewise.
26536 * tests/mlock2.c: Likewise.
26537 * tests/move_pages.c: Likewise.
26538 * tests/newfstatat.c: Likewise.
26539 * tests/nsyscalls.c: Likewise.
26540 * tests/old_mmap.c: Likewise.
26541 * tests/oldselect.c: Likewise.
26542 * tests/open.c: Likewise.
26543 * tests/openat.c: Likewise.
26544 * tests/pause.c: Likewise.
26545 * tests/poll.c: Likewise.
26546 * tests/prctl-seccomp-filter-v.c: Likewise.
26547 * tests/prctl-seccomp-strict.c: Likewise.
26548 * tests/preadv2-pwritev2.c: Likewise.
26549 * tests/prlimit64.c: Likewise.
26550 * tests/pselect6.c: Likewise.
26551 * tests/ptrace.c: Likewise.
26552 * tests/readdir.c: Likewise.
26553 * tests/readlink.c: Likewise.
26554 * tests/readlinkat.c: Likewise.
26555 * tests/reboot.c: Likewise.
26556 * tests/remap_file_pages.c: Likewise.
26557 * tests/rename.c: Likewise.
26558 * tests/renameat.c: Likewise.
26559 * tests/renameat2.c: Likewise.
26560 * tests/rmdir.c: Likewise.
26561 * tests/rt_sigpending.c: Likewise.
26562 * tests/rt_sigprocmask.c: Likewise.
26563 * tests/rt_sigsuspend.c: Likewise.
26564 * tests/rt_sigtimedwait.c: Likewise.
26565 * tests/rt_tgsigqueueinfo.c: Likewise.
26566 * tests/sched_get_priority_mxx.c: Likewise.
26567 * tests/sched_rr_get_interval.c: Likewise.
26568 * tests/sched_xetaffinity.c: Likewise.
26569 * tests/sched_xetattr.c: Likewise.
26570 * tests/sched_xetparam.c: Likewise.
26571 * tests/sched_xetscheduler.c: Likewise.
26572 * tests/sched_yield.c: Likewise.
26573 * tests/seccomp-filter-v.c: Likewise.
26574 * tests/seccomp-filter.c: Likewise.
26575 * tests/seccomp-strict.c: Likewise.
26576 * tests/select.c: Likewise.
26577 * tests/sendfile.c: Likewise.
26578 * tests/sendfile64.c: Likewise.
26579 * tests/set_mempolicy.c: Likewise.
26580 * tests/setdomainname.c: Likewise.
26581 * tests/setfsgid.c: Likewise.
26582 * tests/setfsgid32.c: Likewise.
26583 * tests/setfsuid.c: Likewise.
26584 * tests/setfsuid32.c: Likewise.
26585 * tests/setgid.c: Likewise.
26586 * tests/setgid32.c: Likewise.
26587 * tests/setgroups.c: Likewise.
26588 * tests/setgroups32.c: Likewise.
26589 * tests/sethostname.c: Likewise.
26590 * tests/setregid.c: Likewise.
26591 * tests/setregid32.c: Likewise.
26592 * tests/setresgid.c: Likewise.
26593 * tests/setresgid32.c: Likewise.
26594 * tests/setresuid.c: Likewise.
26595 * tests/setresuid32.c: Likewise.
26596 * tests/setreuid.c: Likewise.
26597 * tests/setreuid32.c: Likewise.
26598 * tests/setrlimit.c: Likewise.
26599 * tests/setuid.c: Likewise.
26600 * tests/setuid32.c: Likewise.
26601 * tests/signalfd4.c: Likewise.
26602 * tests/socketcall.c: Likewise.
26603 * tests/splice.c: Likewise.
26604 * tests/stat.c: Likewise.
26605 * tests/stat64.c: Likewise.
26606 * tests/statfs.c: Likewise.
26607 * tests/statfs64.c: Likewise.
26608 * tests/swap.c: Likewise.
26609 * tests/symlink.c: Likewise.
26610 * tests/symlinkat.c: Likewise.
26611 * tests/sync.c: Likewise.
26612 * tests/sync_file_range.c: Likewise.
26613 * tests/sync_file_range2.c: Likewise.
26614 * tests/syslog.c: Likewise.
26615 * tests/tee.c: Likewise.
26616 * tests/time.c: Likewise.
26617 * tests/timer_create.c: Likewise.
26618 * tests/timer_xettime.c: Likewise.
26619 * tests/timerfd_xettime.c: Likewise.
26620 * tests/times-fail.c: Likewise.
26621 * tests/times.c: Likewise.
26622 * tests/truncate.c: Likewise.
26623 * tests/truncate64.c: Likewise.
26624 * tests/ugetrlimit.c: Likewise.
26625 * tests/umount.c: Likewise.
26626 * tests/umount2.c: Likewise.
26627 * tests/uname.c: Likewise.
26628 * tests/unix-pair-send-recv.c: Likewise.
26629 * tests/unlink.c: Likewise.
26630 * tests/unlinkat.c: Likewise.
26631 * tests/userfaultfd.c: Likewise.
26632 * tests/utimes.c: Likewise.
26633 * tests/vhangup.c: Likewise.
26634 * tests/vmsplice.c: Likewise.
26635 * tests/waitid.c: Likewise.
26636 * tests/waitpid.c: Likewise.
26637 * tests/xet_robust_list.c: Likewise.
26638 * tests/xetpgid.c: Likewise.
26639 * tests/xetpriority.c: Likewise.
26640 * tests/xettimeofday.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>
26700 tcp->s_ent->sys_name instead of syscall_name.
26703 * tests/nsyscalls.c (main) [SYS_socket_subcall]: Check decoding
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>
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
26804 macro definitions - maybe it's better to change extension of such files
26821 2016-08-06 Dmitry V. Levin <ldv@altlinux.org>
26823 tests: add #include guards.
26824 * tests/tests.h: Add #include guard.
26826 2016-08-05 Dmitry V. Levin <ldv@altlinux.org>
26836 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
26838 tests/umode_t.c: guard against libc printf format errors.
26839 * tests/umode_t.c (test_syscall): Use different printf format specifiers
26842 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
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>
26879 * tests/umode_t.c: New file.
26880 * tests/Makefile.am (EXTRA_DIST): Add it.
26881 * tests/creat.c: Rewrite as a thin wrapper around umode_t.c
26882 * tests/mkdir.c: Likewise.
26883 * tests/mkdirat.c: Likewise.
26884 * tests/mknod.c: Extend test coverage of mknod syscall.
26885 * tests/mknodat.c: Extend test coverage of mknodat syscall.
26886 * tests/umask.c: Extend test coverage of umask syscall.
26887 * tests/creat.test: Update the value specified for strace -a parameter.
26888 * tests/mkdir.test: Likewise.
26889 * tests/mkdirat.test: Likewise.
26890 * tests/mknodat.test: Likewise.
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.
26905 * tests/ip_mreq.c (main): Print expected output.
26906 * tests/ip_mreq.test: Use run_strace_match_diff.
26907 * tests/ip_mreq.expected: Remove.
26908 * tests/Makefile.am (EXTRA_DIST): Remove it.
26911 * tests/fanotify_mark.c (main): Print expected output.
26912 * tests/fanotify_mark.test: Use run_strace_match_diff.
26913 * tests/fanotify_mark.expected: Remove.
26914 * tests/Makefile.am (EXTRA_DIST): Remove it.
26917 * tests/signalfd4.c (get_sigset_size): New function.
26919 * tests/signalfd4.test: Use run_strace_match_diff.
26920 * tests/signalfd4.expected: Remove.
26921 * tests/Makefile.am (EXTRA_DIST): Remove it.
26923 2016-07-31 Dmitry V. Levin <ldv@altlinux.org>
26925 tests: rename signalfd.test to signalfd4.test.
26926 * tests/signalfd.c: Rename to signalfd4.c.
26927 * tests/signalfd.test: Rename to signalfd4.test.
26928 * tests/signalfd.expected: Rename to signalfd4.expected.
26929 * tests/.gitignore: Replace signalfd with signalfd4.
26930 * tests/Makefile.am (check_PROGRAMS): Likewise.
26934 2016-07-30 Dmitry V. Levin <ldv@altlinux.org>
26937 * tests/memfd_create.c (main): Print expected output.
26938 * tests/memfd_create.test: Use run_strace_match_diff.
26939 * tests/memfd_create.expected: Remove.
26940 * tests/Makefile.am (EXTRA_DIST): Remove it.
26942 2016-07-29 Dmitry V. Levin <ldv@altlinux.org>
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>
26992 tests: use terse notation in designated initializers where appropriate.
26993 * tests/btrfs.c (btrfs_test_dev_replace_ioctl): Initialize
26995 * tests/clock_nanosleep.c (main): Initialize struct timespec
26997 * tests/nanosleep.c (main): Likewise.
26999 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
27012 * make-dsc: Likewise.
27015 * tests/Makefile.am (ksysent.h): Likewise.
27016 * tests/ksysent.sed: Likewise.
27017 * tests/pc.test: 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>
27024 tests: fix extended regexps.
27025 * tests/adjtimex.c (main): Consistently quote curly braces
27027 * tests/uio.expected: Likewise.
27029 2016-07-27 Dmitry V. Levin <ldv@altlinux.org>
27031 Post-release administrivia.
27033 * debian/changelog.in: Add a changelog entry for 4.13-1.
27036 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27043 to avoid breaking strict-aliasing rules reported by some gcc compilers.
27046 * tests/btrfs.c (btrfs_test_send_ioctl): Likewise.
27057 tests/btrfs.c: do not include the same header file twice.
27058 * tests/btrfs.c: Do not include <sys/fcntl.h>, <fcntl.h> is enough.
27060 tests: fix accept4.test on systems that lack SOCK_CLOEXEC definition.
27061 * tests/accept4.c: Check that O_CLOEXEC is defined. Use O_CLOEXEC
27064 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27066 tests: fix vhangup.test.
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>
27074 tests: fix chown.test.
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>
27085 tests/ipc.c: fix typo.
27087 2016-07-24 Dmitry V. Levin <ldv@altlinux.org>
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>
27099 tests: check decoding of ipc syscall.
27100 * tests/ipc.c: New file.
27101 * tests/ipc.test: New test.
27102 * tests/.gitignore: Add ipc.
27103 * tests/Makefile.am (check_PROGRAMS): Likewise.
27113 [S390 || S390X]: Skip ipc cubcalls that have non-zero version.
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>
27124 tests: skip netlink_protocol.test on old systems.
27125 * tests/netlink_protocol.c: Check that HAVE_SYS_XATTR_H is defined.
27132 * tests/socketcall.c (test_socketcall): Update expected output.
27133 * tests/socketcall.test: Likewise.
27135 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27137 tests/nsyscalls.c: change the type of syscall arguments to kernel_ulong_t
27138 As most syscalls on x32 and mips n32 are actually 64-bit,
27139 check that 64-bit syscall arguments are decoded properly.
27145 * tests/nsyscalls.c: Include "kernel_types.h".
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>
27164 tests: check decoding of socketcall syscall.
27165 * tests/socketcall.c: New file.
27166 * tests/socketcall.test: New test.
27167 * tests/.gitignore: Add socketcall.
27168 * tests/Makefile.am (check_PROGRAMS): Likewise.
27180 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27182 tests: check decoding and dumping of send and recv syscalls.
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.
27187 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
27202 tests: check decoding of shutdown syscall.
27203 * tests/shutdown.c: New file.
27204 * tests/shutdown.test: New test.
27205 * tests/.gitignore: Add shutdown.
27206 * tests/Makefile.am (check_PROGRAMS): Likewise.
27210 * xlat/shutdown_modes.in: Replace open-coded xlat table with a list
27213 tests: check silent decoding of sendmmsg and recvmmsg syscalls.
27214 * tests/mmsg-silent.c: New file.
27215 * tests/mmsg-silent.test: New test.
27216 * tests/.gitignore: Add mmsg-silent.
27217 * tests/Makefile.am (check_PROGRAMS): Likewise.
27218 (DECODER_TESTS): Add mmsg-silent.test.
27225 * tests/mmsg_name.c (test_mmsg_name): Check it.
27236 * tests/mmsg_name.c (test_mmsg_name): Check it.
27238 tests: check verbose decoding of msg_name* fields of struct mmsghdr array
27239 * tests/mmsg_name-v.c: New file.
27240 * tests/mmsg_name-v.test: New test.
27241 * tests/.gitignore: Add mmsg_name-v.
27242 * tests/Makefile.am (check_PROGRAMS): Likewise.
27243 (DECODER_TESTS): Add mmsg_name-v.test.
27245 tests: check decoding of msg_name* fields of struct mmsghdr array.
27246 * tests/mmsg_name.c: New file.
27247 * tests/mmsg_name.test: New test.
27248 * tests/.gitignore: Add mmsg_name.
27249 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
27275 tests: check decoding of timeout argument of recvmmsg syscall.
27276 * tests/recvmmsg-timeout.c: New file.
27277 * tests/recvmmsg-timeout.test: New test.
27278 * tests/.gitignore: Add recvmmsg-timeout.
27279 * tests/Makefile.am (check_PROGRAMS): Likewise.
27280 (DECODER_TESTS): Add recvmmsg-timeout.test.
27285 * tests/mmsg.c (main): Update expected output.
27290 tests: add recv_mmsg and send_mmsg functions to libtests.
27291 * tests/tests.h (recv_mmsg, send_mmsg): New prototype.
27292 * tests/libmmsg.c: New file.
27293 * tests/Makefile.am (libtests_a_SOURCES): Add it.
27294 * tests/mmsg.c Do not check for __NR_sendmmsg, __NR_recvmmsg,
27298 tests: add socketcall function to libtests.
27299 * tests/tests.h (socketcall): New prototype.
27300 * tests/libsocketcall.c: New file.
27301 * tests/Makefile.am (libtests_a_SOURCES): Add it.
27303 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27310 * tests/msg_control.c: Likewise.
27312 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
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.
27397 * tests/msg_name.c (test_msg_name) [!__GLIBC__]: Do not test
27400 2016-07-13 Dmitry V. Levin <ldv@altlinux.org>
27404 * tests/aio.c (main): Update expected output.
27405 * tests/inet-cmsg.c (main): Likewise.
27406 * tests/mmsg.c (main): Likewise.
27407 * tests/msg_name.c (test_msg_name): Likewise.
27408 * tests/preadv-pwritev.c (main): Likewise.
27409 * tests/preadv2-pwritev2.c (main): Likewise.
27410 * tests/preadv.c (main): Likewise.
27411 * tests/pwritev.c (main): Likewise.
27412 * tests/readv.c (main): Likewise.
27413 * tests/recvmsg.c (main): Likewise.
27414 * tests/vmsplice.c (main): Likewise.
27415 * tests/scm_rights-fd.test: Likewise.
27416 * tests/uio.expected: Likewise.
27418 tests: check decoding of msghdr.msg_name* arguments of recvmsg syscall.
27419 * tests/msg_name.c: New file.
27420 * tests/msg_name.test: New test.
27421 * tests/.gitignore: Add msg_name.
27422 * tests/Makefile.am (check_PROGRAMS): 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>
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.
27469 * tests/ioctl_block.c (main): Remove BLKDAXGET test.
27471 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27477 tests: check decoding of sockaddr related arguments of recvfrom syscall.
27479 * tests/recvfrom.c: New file.
27480 * tests/recvfrom.test: New test.
27481 * tests/.gitignore: Add recvfrom.
27482 * tests/Makefile.am (check_PROGRAMS): Likewise.
27492 tests: check decoding of accept4 syscall.
27494 * tests/accept4.c: New file.
27495 * tests/accept4.test: New test.
27496 * tests/.gitignore: Add accept4.
27497 * tests/Makefile.am (check_PROGRAMS): Likewise.
27500 tests: check decoding of accept syscall.
27501 * tests/accept.c: New file.
27502 * tests/accept.test: New test.
27503 * tests/.gitignore: Add accept.
27504 * tests/Makefile.am (check_PROGRAMS): Likewise.
27507 tests: check decoding of getpeername syscall.
27508 * tests/getpeername.c: New file.
27509 * tests/getpeername.test: New test.
27510 * tests/.gitignore: Add getpeername.
27511 * tests/Makefile.am (check_PROGRAMS): Likewise.
27514 tests: check decoding of getsockname syscall.
27515 * tests/getsockname.c: New file.
27516 * tests/getsockname.test: New test.
27517 * tests/sockname.c: New file.
27518 * tests/.gitignore: Add getsockname.
27519 * tests/Makefile.am (check_PROGRAMS): Likewise.
27526 * tests/net-y-unix.c (main): Update expected output.
27527 * tests/net-yy-unix.c (main): Likewise.
27528 * tests/net.expected: Likewise.
27533 * tests/sun_path.expected: Update expected output.
27542 2016-07-11 Dmitry V. Levin <ldv@altlinux.org>
27552 2016-07-08 Dmitry V. Levin <ldv@altlinux.org>
27561 * tests/netlink_parsing.c (send_query): Check them.
27563 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27565 tests: extend netlink protocol check.
27566 * tests/netlink_protocol.c (send_query): Check that no part
27571 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
27573 tests: check decoding of netlink protocol.
27574 * tests/netlink_protocol.test: New test.
27575 * tests/netlink_protocol.c: New file.
27576 * tests/.gitignore: Add netlink_protocol.
27577 * tests/Makefile.am (check_PROGRAMS): Likewise.
27580 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
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>
27648 * tests/msg_control.c (test_big_len): New function.
27651 2016-07-03 Dmitry V. Levin <ldv@altlinux.org>
27653 tests: add read_int_from_file function to libtests.
27654 * tests/overflowuid.c (read_int_from_file): New function.
27656 * tests/tests.h (read_int_from_file): New prototype.
27658 2016-07-02 Dmitry V. Levin <ldv@altlinux.org>
27663 * tests/msg_control.c (print_ip_opts): Use DEFAULT_STRLEN.
27669 * tests/msg_control.c (DEFAULT_STRLEN): New macro.
27673 * tests/msg_control-v.c: New file.
27674 * tests/msg_control-v.test: New test.
27675 * tests/.gitignore: Add msg_control-v.
27676 * tests/Makefile.am (check_PROGRAMS): Likewise.
27677 (DECODER_TESTS): Add msg_control-v.test.
27679 2016-07-01 Dmitry V. Levin <ldv@altlinux.org>
27681 tests: check decoding of struct msghdr ancillary data.
27682 * tests/msg_control.c: New file.
27683 * tests/msg_control.test: New test.
27684 * tests/.gitignore: Add msg_control.
27685 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
27752 * tests/mmsg.c (main): Update expected output.
27778 * tests/mmsg.c (main): Update expected output.
27784 * tests/mmsg.c: Include "msghdr.h". Remove fallback definition
27787 2016-06-26 Dmitry V. Levin <ldv@altlinux.org>
27792 * tests/inet-cmsg.c (main): Update expected output.
27793 * tests/mmsg.c (main): Likewise.
27794 * tests/recvmsg.c (main): Likewise.
27795 * tests/scm_rights-fd.test: Likewise.
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>
27836 tests: check decoding of sockaddr structures.
27837 * tests/net-sockaddr.c: New file.
27838 * tests/net-sockaddr.test: New test.
27839 * tests/.gitignore: Add net-sockaddr.
27840 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
27907 2016-06-23 Dmitry V. Levin <ldv@altlinux.org>
27917 * tests/net-y-unix.c (main): Update expected pattern.
27918 * tests/net-yy-unix.c (main): Likewise.
27919 * tests/net.expected: Likewise.
27921 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
27936 2016-06-22 Fabien Siron <fabien.siron@epita.fr>
27958 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
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>
28003 * tests/ip_mreq.c: Remove HAVE_INET_PTON check.
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.
28023 * tests/netlink_unix_diag.c: Likewise.
28025 2016-06-19 Dmitry V. Levin <ldv@altlinux.org>
28039 2016-06-19 Fabien Siron <fabien.siron@epita.fr>
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>
28080 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28088 * tests/btrfs.c (btrfs_print_defrag_range_args): Cast "start" and "len"
28091 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
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.
28103 * tests/btrfs.c: Likewise.
28105 Reported-by: Li Er <phoooyb@gmail.com>
28107 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28114 2016-06-16 Elvira Khabirova <lineprinter0@gmail.com>
28118 2016-06-16 Fei Jie <feij.fnst@cn.fujitsu.com>
28120 tests: add signal_receive.test.
28121 * tests/signal_receive.c: New file.
28122 * tests/signal_receive.test: New test.
28123 * tests/.gitignore: Add signal_receive.
28124 * tests/Makefile.am (check_PROGRAMS): Likewise.
28127 tests: add signal2name function to libtests.
28128 * tests/tests.h (signal2name): New prototype.
28129 * tests/signal2name.c: New file.
28130 * tests/Makefile.am (libtests_a_SOURCES): Add it.
28132 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
28137 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
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>
28158 * net.c: Follow the example of tests/net-icmp_filter.c and include
28161 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28171 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28175 and since tcp->s_ent can only be set to &sysent[tcp->scno]
28177 to check for UNDEFINED_SCNO before calling syscall_name(tcp->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>
28204 tests/ioctl_evdev.c: fix typo in comment.
28206 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28212 tests/xgetrlimit.c: fix a warning reported by -Wtype-limits.
28213 * tests/xgetrlimit.c (sprint_rlim): Explicitly cast constants
28216 2016-06-11 Dmitry V. Levin <ldv@altlinux.org>
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 ...
28245 tests: enhance test coverage of SIGCHLD siginfo_t.
28246 * tests/siginfo.c: New file.
28247 * tests/siginfo.test: New test.
28248 * tests/wait.c: Remove.
28249 * tests/wait.expected: Remove.
28250 * tests/wait.test: Remove.
28251 * tests/.gitignore: Add siginfo, remove wait.
28252 * tests/Makefile.am (check_PROGRAMS): Likewise.
28256 tests: extend test coverage of waitid syscall.
28257 * tests/waitid.c: New file.
28258 * tests/waitid-v.c: Likewise.
28259 * tests/waitid.test: New test.
28260 * tests/waitid-v.test: Likewise.
28261 * tests/.gitignore: Add waitid and waitid-v.
28262 * tests/Makefile.am (check_PROGRAMS): Likewise.
28263 (DECODER_TESTS): Add waitid.test and waitid-v.test.
28265 tests: extend test coverage of wait4 syscall.
28266 * tests/wait4.c: New file.
28267 * tests/wait4-v.c: Likewise.
28268 * tests/wait4.test: New test.
28269 * tests/wait4-v.test: Likewise.
28270 * tests/.gitignore: Add wait4 and wait4-v.
28271 * tests/Makefile.am (check_PROGRAMS): Likewise.
28272 (DECODER_TESTS): Add wait4.test and wait4-v.test.
28274 tests: add widen_to_ull macro to tests.h.
28275 * tests.h (widen_to_ull): New macro, copied from defs.h
28281 2016-06-09 Dmitry V. Levin <ldv@altlinux.org>
28283 tests: check decoding of waitpid syscall.
28284 * tests/waitpid.c: New file.
28285 * tests/waitpid.test: New test.
28286 * tests/.gitignore: Add waitpid.
28287 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
28295 * tests/Makefile.am (MISC_TESTS): Add it.
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>
28316 Parametrize debian/changelog.
28319 (AC_CONFIG_FILES): Add debian/changelog.
28321 * debian/changelog: Rename to ...
28322 * debian/changelog.in: ... this file. Add parametrized entry.
28323 * debian/.gitignore: New file.
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.
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.
28349 * tests/Makefile.am (MISC_TESTS): Remove it.
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>
28368 tests: check decoding of setrlimit, getrlimit, and ugetrlimit syscalls.
28369 * tests/getrlimit.c: New file.
28370 * tests/setrlimit.c: Likewise.
28371 * tests/ugetrlimit.c: Likewise.
28372 * tests/xgetrlimit.c: Likewise.
28373 * tests/getrlimit.test: New test.
28374 * tests/setrlimit.test: Likewise.
28375 * tests/ugetrlimit.test: Likewise.
28376 * tests/.gitignore: Add getrlimit, setrlimit, and ugetrlimit.
28377 * tests/Makefile.am (check_PROGRAMS): Likewise.
28382 tests: check decoding of prlimit64 syscall.
28383 * tests/prlimit64.c: New file.
28384 * tests/prlimit64.test: New test.
28385 * tests/.gitignore: Add prlimit64.
28386 * tests/Makefile.am (check_PROGRAMS): Likewise.
28393 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28423 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28429 2016-06-06 Elvira Khabirova <lineprinter0@gmail.com>
28435 tests/ptrace.c: fix fork() return value check.
28436 * tests/ptrace.c (test_peeksiginfo): Explicitly cast fork() return value
28442 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28444 debian: sync with the package.
28445 * debian/control (Build-Depends) [amd64]: Remove libunwind-dev.
28446 * debian/changelog: Sync with 4.12-3.
28447 * debian/rules: Likewise.
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.
28473 2016-05-31 Dmitry V. Levin <ldv@altlinux.org>
28477 * debian/changelog: 4.12-1.
28478 * strace.spec: 4.12-1.
28480 Sync strace.spec and debian/changelog with packages.
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>
28512 tests/ioctl_evdev.c: check EVIOCGUNIQ decoding.
28513 * tests/ioctl_evdev.c (main): Check EVIOCGUNIQ(0) decoding.
28515 tests/ioctl_mtd.c: fix build with musl.
28516 * tests/ioctl_mtd.c: Include <linux/ioctl.h>.
28518 tests: check decoding of 'M' type ioctls.
28519 * tests/ioctl_mtd.c: New file.
28520 * tests/ioctl_mtd.test: New test.
28521 * tests/.gitignore: Add ioctl_mtd.
28522 * tests/Makefile.am (check_PROGRAMS): Likewise.
28538 tests: check decoding of EVIOC* ioctls.
28539 * tests/ioctl_evdev.c: New file.
28540 * tests/ioctl_evdev-v.c: Likewise.
28541 * tests/ioctl_evdev.test: New test.
28542 * tests/ioctl_evdev-v.test: Likewise.
28543 * tests/.gitignore: Add ioctl_evdev and ioctl_evdev-v.
28544 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
28639 * tests/btrfs.c (btrfs_test_extent_same_ioctl): Handle newly
28642 2016-05-27 Dmitry V. Levin <ldv@altlinux.org>
28647 2016-05-27 Jeff Mahoney <jeffm@suse.com>
28649 tests: check decoding of btrfs RDWR ioctls returned data.
28650 * tests/btrfs-vw.test: New file.
28651 * tests/btrfs-w.test: New file.
28652 * tests/Makefile.am (DECODER_TESTS): Add them.
28654 tests/btrfs.c: fix live btrfs_test_search_ioctls output.
28655 * tests/btrfs.c (btrfs_test_search_ioctls): Use print_tree_search_buf
28666 2016-05-26 Jeff Mahoney <jeffm@suse.com>
28668 tests/btrfs.c: fix btrfs-v for BTRFS_IOC_TREE_SEARCH.
28669 * tests/btrfs.c (btrfs_test_send_ioctl): Assign key_reference
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>
28680 tests/ioctl_block.c: tweak magic constants to make the test more reliable
28681 * tests/ioctl_block.c (main): Change bad pointer to make
28682 its lower 32-bit part closer to -1U.
28684 tests/btrfs.c: check basic decoding of read-only ioctls.
28685 * tests/btrfs.c (btrfs_test_read_ioctls): New function.
28688 tests: check decoding of BLK* ioctls.
28690 * tests/ioctl_block.c: New file.
28691 * tests/ioctl_block.test: New test.
28692 * tests/.gitignore: Add ioctl_block.
28693 * tests/Makefile.am (check_PROGRAMS): Likewise.
28748 2016-05-25 Dmitry V. Levin <ldv@altlinux.org>
28750 tests: check decoding of RTC_* ioctls.
28752 * tests/ioctl_rtc.c: New file.
28753 * tests/ioctl_rtc-v.c: Likewise.
28754 * tests/ioctl_rtc.test: New test.
28755 * tests/ioctl_rtc-v.test: Likewise.
28756 * tests/.gitignore: Add ioctl_rtc and ioctl_rtc-v.
28757 * tests/Makefile.am (check_PROGRAMS): Likewise.
28758 (DECODER_TESTS): Add ioctl_rtc.test and ioctl_rtc-v.test.
28789 tests: check decoding of mount syscall.
28790 * tests/mount.c: New file.
28791 * tests/mount.test: New test.
28792 * tests/.gitignore: Add mount.
28793 * tests/Makefile.am (check_PROGRAMS): Likewise.
28796 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28798 tests/vhangup.c: diassociate from the controlling terminal first.
28799 * tests/vhangup.c (main): Call setsid before vhangup.
28801 2016-05-24 Fei Jie <feij.fnst@cn.fujitsu.com>
28803 tests: add vhangup.test.
28804 * tests/vhangup.c: New file.
28805 * tests/vhangup.test: New test.
28806 * tests/.gitignore: Add vhangup.
28807 * tests/Makefile.am (check_PROGRAMS): Likewise.
28810 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28814 2016-05-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
28816 tests/btrfs.c: fix build on x32.
28817 * tests/btrfs.c (btrfs_test_ino_path_ioctls): Fix printing of st_ino.
28819 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28821 tests/btrfs.c: fix build with u64 based BTRFS_IOC_DEFAULT_SUBVOL.
28822 * tests/btrfs.c: Fix build on systems where BTRFS_IOC_DEFAULT_SUBVOL
28828 * tests/btrfs.c (btrfs_test_extent_same_ioctl): Skip this part
28831 tests/btrfs.c: fix printing struct btrfs_ioctl_clone_range_args.
28832 * tests/btrfs.c (btrfs_test_clone_ioctls): Print __u64 members
28835 tests/btrfs.c: tweak magic constants to make the test more reliable.
28836 * tests/btrfs.c (btrfs_test_sync_ioctls): Change u64val
28839 to make their lower 32-bit parts closer to -1U.
28845 * tests/btrfs.c (btrfs_print_vol_args_v2, btrfs_test_subvol_ioctls,
28849 tests/btrfs.c: do not print errno in case of fs type mismatch.
28850 * tests/btrfs.c (main): Use error_msg_and_fail instead of
28854 tests/btrfs.c: fix indentation.
28855 * tests/btrfs.c: Fix indentation of preprocessor directives
28858 tests/btrfs.c: sort included headers.
28859 * tests/btrfs.c: Sort included headers.
28861 tests/btrfs.c: do not use alloca.
28862 * tests/btrfs.c: Don't include <alloca.h>.
28866 tests/btrfs.c: fix build on systems without <linux/btrfs.h> or <linux/fiemap.h>
28867 * tests/btrfs.c: Include "tests.h" first.
28871 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28873 tests: add testing for btrfs ioctls.
28874 * tests/btrfs.c: New file.
28875 * tests/btrfs.test: New test.
28876 * tests/btrfs-v.test: Likewise.
28877 * tests/.gitignore: Add btrfs.
28878 * tests/Makefile.am (check_PROGRAMS): Likewise.
28879 (DECODER_TESTS): Add btrfs.test and btrfs-v.test.
28881 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28883 tests/file_ioctl.c: use tail_alloc.
28884 * tests/file_ioctl.c (main): Allocate struct fiemap using tail_alloc.
28886 tests/file_ioctl.c: fix build on systems without <linux/fiemap.h>
28887 * tests/file_ioctl.c: Include "tests.h" first.
28890 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28892 tests: add testing for FS_IOC_FIEMAP.
28896 * tests/file_ioctl.c: New file.
28897 * tests/file_ioctl.test: New test.
28898 * tests/.gitignore: Add file_ioctl.
28899 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
28988 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29001 2016-05-24 Jeff Mahoney <jeffm@suse.com>
29009 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29015 2016-05-24 Jeff Mahoney <jeffm@suse.com>
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.
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>
29091 tests: define PRI__[dux]64 macros to print __s64 and __u64 values.
29097 * tests/tests.h (PRI__d64, PRI__u64, PRI__x64): New macros.
29099 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29101 tests: remove manual creation of memory mapping holes.
29106 * tests/clock_adjtime.c (main): Remove creation of memory mapping holes
29108 * tests/futimesat.c (main): Likewise.
29109 * tests/get_mempolicy.c (print_nodes, main): Likewise.
29110 * tests/getgroups.c (main): Likewise.
29111 * tests/getresugid.c (main): Likewise.
29112 * tests/ioctl_uffdio.c (main): Likewise.
29113 * tests/ioctl_v4l2.c (main): Likewise.
29114 * tests/move_pages.c (main): Likewise.
29115 * tests/net-icmp_filter.c (main): Likewise.
29116 * tests/ptrace.c (test_peeksiginfo, main): Likewise.
29117 * tests/pwritev.c (main): Likewise.
29118 * tests/set_mempolicy.c (print_nodes): Likewise.
29119 * tests/setgroups.c (main): Likewise.
29120 * tests/umovestr3.c (main): Likewise.
29121 * tests/utimes.c (main): Likewise.
29122 * tests/xattr.c (main): Likewise.
29124 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29126 tests: make tail_alloc create additional memory mapping holes.
29127 * tests/tail_alloc.c (tail_alloc): Create additional memory mapping
29130 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29147 * README-mpers: Update description of MPERS_PRINTER_DECL syntax.
29161 2016-05-20 Dmitry V. Levin <ldv@altlinux.org>
29171 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29176 * tests/netlink_inet_diag.c (check_responses): Likewise.
29177 * tests/netlink_netlink_diag.c (check_responses): Likewise.
29178 * tests/netlink_unix_diag.c (check_responses): Likewise.
29180 2016-05-21 Fabien Siron <fabien.siron@epita.fr>
29182 tests: add check for netlink protocol decoding with -yy option.
29183 * tests/netlink_netlink_diag.c: New file.
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
29187 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
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.
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>
29224 * tests/umovestr3.c: Include <sys/param.h>.
29225 (main): Test with each number between PATH_MAX-1 and 0.
29227 tests/timer_create.c: robustify against os specific issues.
29228 * tests/timer_create.c (main): Do not assume any specific error code
29234 * tests/inet-cmsg.c (print_origdstaddr): Define only
29255 2016-05-17 Fei Jie <feij.fnst@cn.fujitsu.com>
29257 tests: add brk.test.
29258 * tests/brk.c: New file.
29259 * tests/brk.test: New test.
29260 * tests/.gitignore: Add brk.
29261 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
29304 * tests/mbind.c (main): Update.
29321 * tests/remap_file_pages.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>
29397 * tests/epoll_ctl.c (invoke_syscall): New function.
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>
29422 * tests/struct_flock.c (invoke_test_syscall): New function.
29424 * tests/fcntl.c (test_flock64_einval): Use it.
29425 * tests/fcntl64.c (test_flock64_einval, test_flock64): Use it.
29427 2016-05-15 Dmitry V. Levin <ldv@altlinux.org>
29442 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29464 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29467 Prior to v2.6.25-rc3, <linux/videodev2.h> didn't include all
29470 This issue doesn't arise in v4l2.c and tests/ioctl_v4l2.c files
29476 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29484 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29497 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29505 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29518 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29520 tests/ptrace.c: tweak magic constants to make the test more reliable.
29521 * tests/ptrace.c (main): Change bad_request and bad_data to make they
29522 lower 32-bit parts closer to -1U.
29524 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29526 tests/ioctl_v4l2.c: fix build on older systems.
29530 * tests/ioctl_v4l2.c (main) [VIDIOC_S_EXT_CTRLS]: Disable part of the
29534 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29541 * tests/ioctl_v4l2.c (main): Likewise.
29543 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29545 tests/ioctl_v4l2.c: fix typo.
29546 * tests/ioctl_v4l2.c (main)
29550 tests: check decoding of ptrace syscall.
29551 * tests/ptrace.c: New file.
29552 * tests/ptrace.test: New test.
29553 * tests/.gitignore: Add ptrace.
29554 * tests/Makefile.am (check_PROGRAMS): Likewise.
29557 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29568 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
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>
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.
29682 2016-05-11 Fei Jie <feij.fnst@cn.fujitsu.com>
29684 tests: add munlockall.test.
29685 * tests/munlockall.c: New file.
29686 * tests/munlockall.test: New test.
29687 * tests/.gitignore: Add munlockall.
29688 * tests/Makefile.am (check_PROGRAMS): Likewise.
29691 tests: add link.test.
29692 * tests/link.c: New file.
29693 * tests/link.test: New test.
29694 * tests/.gitignore: Add link.
29695 * tests/Makefile.am (check_PROGRAMS): Likewise.
29698 2016-05-11 Dmitry V. Levin <ldv@altlinux.org>
29700 tests: check decoding and dumping of preadv2 and pwritev2 syscalls.
29701 * tests/preadv2-pwritev2.c: New file.
29702 * tests/preadv2-pwritev2.test: New test.
29703 * tests/.gitignore: Add preadv2-pwritev2.
29704 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
29737 tests: extend test coverage of xattr family syscalls.
29738 * tests/xattr.c: Check decoding of all xattr family syscalls.
29739 * tests/xattr.test: Use run_strace_match_diff.
29740 * tests/xattr.expected: Remove.
29741 * tests/Makefile.am (EXTRA_DIST): Remove it.
29743 tests: add print_quoted_memory function to libtests.
29744 * tests/print_quoted_string.c (print_quoted_memory): New function.
29746 * tests/tests.h (print_quoted_memory): New prototype.
29755 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
29757 userfaultfd: Add ioctl tests.
29758 * tests/ioctl_uffdio.c: New file.
29759 * tests/ioctl_uffdio.test: New test.
29760 * tests/.gitignore: Add ioctl_uffdio.
29761 * tests/Makefile.am (check_PROGRAMS): Likewise.
29764 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
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.
29790 * tests/epoll_pwait.c (main): Explicitly cast last syscall argument
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.
29806 * tests/Makefile.am (MISC_TESTS): Add it.
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.
29812 * tests/Makefile.am (EXTRA_DIST): Add it.
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.
29820 * tests/Makefile.am (MISC_TESTS): Add it.
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.
29832 * tests/Makefile.am (MISC_TESTS): Add it.
29834 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29836 tests: check decoding of epoll_pwait syscall.
29837 * tests/epoll_pwait.c: New file.
29838 * tests/epoll_pwait.test: New test.
29839 * tests/.gitignore: Add epoll_pwait.
29840 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
29853 * tests/epoll_wait.c: Likewise.
29855 2016-05-08 Fabien Siron <fabien.siron@epita.fr>
29861 2016-05-08 Dmitry V. Levin <ldv@altlinux.org>
29863 tests: relax timings.
29867 * tests/count.test: Treat 1.1 seconds as valid output.
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.
29909 * tests/poll.c: Update.
29910 * tests/poll.test: Update.
29920 * tests/move_pages.c: Update.
29921 * tests/set_mempolicy.c: Likewise.
29922 * tests/set_mempolicy.test: Likewise.
29941 * tests/preadv.c (main): Update.
29942 * tests/pwritev.c (print_iovec, main): Likewise.
29959 * tests/aio.c (main): Check decoding of io_submit with negative "nr".
29965 2016-05-06 Dmitry V. Levin <ldv@altlinux.org>
29969 * tests/net-icmp_filter.c: New file.
29970 * tests/net-icmp_filter.test: New test.
29971 * tests/.gitignore: Add net-icmp_filter.
29972 * tests/Makefile.am (check_PROGRAMS): Likewise.
29973 (DECODER_TESTS): Add net-icmp_filter.test.
29975 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29980 * tests/caps.awk: Update.
29982 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
29984 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29986 tests/xstatfsx.c: fix mips o32 support.
29987 mips o32 differs from all other 32-bit architectures by defining
29990 * tests/xstatfsx.c (print_statfs): Explicitly cast elements
29993 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29996 * v4l2.c: Mpersify arch-specific structures.
29998 * tests/ioctl_v4l2.c: New file.
29999 * tests/ioctl_v4l2.test: New test.
30000 * tests/.gitignore: Add ioctl_v4l2.
30001 * tests/Makefile.am (check_PROGRAMS): Likewise.
30004 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30019 Acked-by: Elvira Khabirova <lineprinter0@gmail.com>
30021 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30025 * tests/ioctl.c (main): Update.
30027 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30030 Out-of-range syscalls looks differently on mips o32.
30032 * tests/nsyscalls.c (main): Handle LINUX_MIPSO32.
30033 * tests/nsyscalls.test: Trace syscall called "syscall" on mips.
30035 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
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.
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>
30090 * tests/move_pages.c: New file.
30091 * tests/move_pages.test: New test.
30092 * tests/.gitignore: Add move_pages.
30093 * tests/Makefile.am (check_PROGRAMS): Likewise.
30096 tests: check decoding of mbind syscall.
30097 * tests/mbind.c: New file.
30098 * tests/mbind.test: New test.
30099 * tests/.gitignore: Add mbind.
30100 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
30124 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
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>
30153 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
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.
30177 * tests/remap_file_pages.c (main): Remove artificial garbage from flags.
30179 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30191 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30203 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30213 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30224 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30236 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30246 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30253 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30260 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30262 tests: check decoding of migrate_pages syscall.
30263 * tests/migrate_pages.c: New file.
30264 * tests/migrate_pages.test: New test.
30265 * tests/.gitignore: Add migrate_pages.
30266 * tests/Makefile.am (check_PROGRAMS): Likewise.
30273 tests: check decoding of set_mempolicy syscall.
30274 * tests/set_mempolicy.c: New file.
30275 * tests/set_mempolicy.test: New test.
30276 * tests/.gitignore: Add set_mempolicy.
30277 * tests/Makefile.am (check_PROGRAMS): Likewise.
30280 tests: check decoding of get_mempolicy syscall.
30281 * tests/get_mempolicy.c: New file.
30282 * tests/get_mempolicy.test: New test.
30283 * tests/.gitignore: Add get_mempolicy.
30284 * tests/Makefile.am (check_PROGRAMS): Likewise.
30293 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30303 tests: add printxval function to libtests.
30304 * tests/tests.h (printxval): New prototype.
30305 * tests/printxval.c: New file.
30306 * tests/Makefile.am (libtests_a_SOURCES): Add it.
30308 tests: check decoding of remap_file_pages syscall.
30309 * tests/remap_file_pages.c: New file.
30310 * tests/remap_file_pages.test: New test.
30311 * tests/.gitignore: Add remap_file_pages.
30312 * tests/Makefile.am (check_PROGRAMS): Likewise.
30315 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30317 tests: add pause.test.
30318 * tests/pause.c: New file.
30319 * tests/pause.test: New test.
30320 * tests/.gitignore: Add pause.
30321 * tests/Makefile.am (check_PROGRAMS): Likewise.
30324 tests: add kill.test.
30325 * tests/kill.c: New file.
30326 * tests/kill.test: New test.
30327 * tests/.gitignore: Add kill.
30328 * tests/Makefile.am (check_PROGRAMS): Likewise.
30331 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30337 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30339 tests: add mlock.test.
30340 * tests/mlock.c: New file.
30341 * tests/mlock.test: New test.
30342 * tests/.gitignore: Add mlock.
30343 * tests/Makefile.am (check_PROGRAMS): Likewise.
30346 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30355 tests/umovestr3.c: robustify against os specific issues.
30356 * tests/umovestr3.c (main): Create extra gap before unreadable page.
30358 tests: extend test coverage of umovestr short read condition.
30359 * tests/umovestr3.c: New file.
30360 * tests/umovestr3.test: New test.
30361 * tests/.gitignore: Add umovestr3.
30362 * tests/Makefile.am (check_PROGRAMS): Likewise.
30365 tests: check decoding of out-of-range syscalls.
30366 * tests/nsyscalls.c: New file.
30367 * tests/nsyscalls.test: New test.
30368 * tests/.gitignore: Add nsyscalls.
30369 * tests/Makefile.am (check_PROGRAMS): Likewise.
30372 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30378 * tests/getdents.c (main): Check it.
30379 * tests/getdents64.c (main): Likewise.
30384 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30391 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30400 tests: check decoding of renameat2 syscall.
30401 * tests/renameat2.c: New file.
30402 * tests/renameat2.test: New test.
30403 * tests/.gitignore: Add renameat2.
30404 * tests/Makefile.am (check_PROGRAMS): Likewise.
30410 tests: check decoding of utimes syscall.
30411 * tests/utimes.c: New file.
30412 * tests/utimes.test: New test.
30413 * tests/.gitignore: Add utimes.
30414 * tests/Makefile.am (check_PROGRAMS): Likewise.
30417 tests: check decoding of futimesat syscall.
30418 * tests/futimesat.c: New file.
30419 * tests/futimesat.test: New test.
30420 * tests/.gitignore: Add futimesat.
30421 * tests/Makefile.am (check_PROGRAMS): Likewise.
30424 tests: extend test coverage of mknod syscall.
30428 2016-04-26 Fei Jie <feij.fnst@cn.fujitsu.com>
30430 tests: add sched_yield.test.
30431 * tests/sched_yield.c: New file.
30432 * tests/sched_yield.test: New test.
30433 * tests/.gitignore: Add sched_yield.
30434 * tests/Makefile.am (check_PROGRAMS): Likewise.
30437 tests: add sync.test.
30438 * tests/sync.c: New file.
30439 * tests/sync.test: New test.
30440 * tests/.gitignore: Add sync.
30441 * tests/Makefile.am (check_PROGRAMS): Likewise.
30444 tests: add mknodat.test.
30445 * tests/mknodat.c: New file.
30446 * tests/mknodat.test: New test.
30447 * tests/.gitignore: Add mknodat.
30448 * tests/Makefile.am (check_PROGRAMS): Likewise.
30451 tests: add unlink.test.
30452 * tests/unlink.c: New file.
30453 * tests/unlink.test: New test.
30454 * tests/.gitignore: Add unlink.
30455 * tests/Makefile.am (check_PROGRAMS): Likewise.
30458 tests: add reboot.test.
30459 * tests/reboot.c: New file.
30460 * tests/reboot.test: New test.
30461 * tests/.gitignore: Add reboot.
30462 * tests/Makefile.am (check_PROGRAMS): Likewise.
30465 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30488 * tests/fstatfs.c: New file.
30489 * tests/fstatfs64.c: Likewise.
30490 * tests/statfs64.c: Likewise.
30491 * tests/xstatfs.c: Likewise.
30492 * tests/xstatfs64.c: Likewise.
30493 * tests/xstatfsx.c: Likewise.
30494 * tests/fstatfs.test: New test.
30495 * tests/fstatfs64.test: Likewise.
30496 * tests/statfs64.test: Likewise.
30497 * tests/statfs.c: Rewrite using xstatfs.c.
30498 * tests/statfs.test: Update.
30499 * tests/.gitignore: Add fstatfs, fstatfs64, and statfs64.
30500 * tests/Makefile.am (check_PROGRAMS): Likewise.
30504 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30506 tests: add printflags function to libtests.
30507 * tests/printflags.c: New file.
30508 * tests/tests.h (printflags): New prototype.
30509 * tests/Makefile.am (libtests_a_SOURCES): Add it.
30511 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30515 tests without inclusion of defs.h header file.
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>
30544 * tests/statfs.expected: Update.
30546 2016-04-25 Fei Jie <feij.fnst@cn.fujitsu.com>
30548 tests: add symlink.test.
30549 * tests/symlink.c: New file.
30550 * tests/symlink.test: New test.
30551 * tests/.gitignore: Add symlink.
30552 * tests/Makefile.am (check_PROGRAMS): Likewise.
30555 tests: add rmdir.test.
30556 * tests/rmdir.c: New file.
30557 * tests/rmdir.test: New test.
30558 * tests/.gitignore: Add rmdir.
30559 * tests/Makefile.am (check_PROGRAMS): Likewise.
30562 tests: add setdomainname.test.
30563 * tests/setdomainname.c: New file.
30564 * tests/setdomainname.test: New test.
30565 * tests/.gitignore: Add setdomainname.
30566 * tests/Makefile.am (check_PROGRAMS): Likewise.
30569 tests: add sched_rr_get_interval.test.
30570 * tests/sched_rr_get_interval.c: New file.
30571 * tests/sched_rr_get_interval.test: New test.
30572 * tests/.gitignore: Add sched_rr_get_interval.
30573 * tests/Makefile.am (check_PROGRAMS): Likewise.
30576 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30584 * tests/statfs.expected: Update.
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>
30594 tests/shmxt.c: robustify against arch specific issues.
30599 * tests/shmxt.c (main): Use SHM_RND in the second shmat call,
30602 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30610 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30616 * tests/old_mmap.c (main): Check it.
30618 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30622 as 32-bit integers.
30628 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30630 tests: extend test coverage of mmap syscall.
30634 * tests/old_mmap.c: New file.
30635 * tests/old_mmap.test: New test.
30636 * tests/.gitignore: Add old_mmap.
30637 * tests/Makefile.am (check_PROGRAMS): Likewise.
30640 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30642 tests: extend test coverage of mincore syscall.
30643 * tests/mincore.c (print_mincore): New function.
30648 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30662 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30664 tests: check decoding of clock_adjtime syscall.
30665 * tests/clock_adjtime.c: New file.
30666 * tests/clock_adjtime.test: New test.
30667 * tests/.gitignore: Add clock_adjtime.
30668 * tests/Makefile.am (check_PROGRAMS): Likewise.
30671 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30673 tests: do not include <assert.h> unnecessarily.
30674 Automatically change tests/*.c files using the following script:
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>
30683 tests: do not include <errno.h> unnecessarily.
30684 Automatically change tests/*.c files using the following script:
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>
30694 tests/xetpriority.c: print syscall() result using %ld format.
30696 tests/xetpgid.c: print syscall() result using %ld format.
30698 tests/xchownx.c: use errno2name.
30700 tests/userfaultfd.c: stop using assert.
30702 tests/unlinkat.c: print syscall() result using %ld format.
30704 tests/umount.c: use errno2name.
30706 tests/truncate64.c: cleanup.
30707 * tests/truncate64.c (main): Use errno2name, stop using assert.
30709 tests/truncate.c: cleanup.
30710 * tests/truncate.c (main): Use errno2name, stop using assert.
30712 tests/tee.c: stop using assert.
30714 tests/syslog.c: use errno2name.
30716 tests/sync_file_range2.c: stop using assert.
30718 tests/sync_file_range.c: stop using assert.
30720 tests/symlinkat.c: cleanup.
30722 tests/swap.c: cleanup.
30723 * tests/swap.c (error_msg): Remove.
30726 tests/splice.c: stop using assert.
30728 tests/setugid.c: cleanup.
30730 tests/sethostname.c: use errno2name.
30732 tests/setgroups.c: use errno2name.
30733 * tests/setgroups.c (errno2str): Remove.
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.
30742 tests/sched_xetscheduler.c: print syscall() result using %ld format.
30744 tests/sched_xetparam.c: print syscall() result using %ld format.
30746 tests/renameat.c: print syscall() result using %ld format.
30748 tests/rename.c: print syscall() result using %ld format.
30750 tests/readv.c: cleanup.
30752 tests/pwritev.c: use errno2name.
30754 tests/preadv-pwritev.c: cleanup.
30756 tests/prctl-seccomp-strict.c: cleanup.
30757 * tests/prctl-seccomp-strict.c (main): Use errno2name,
30760 tests/openat.c: use errno2name.
30762 tests/open.c: use errno2name.
30764 tests/mlockall.c: cleanup.
30766 tests/mlock2.c: stop using assert.
30768 tests/mknod.c: print syscall() result using %ld format.
30770 tests/mkdirat.c: print syscall() result using %ld format.
30772 tests/lseek.c: cleanup.
30773 * tests/lseek.c (main): Use errno2name, stop using assert.
30775 tests/llseek.c: cleanup.
30776 * tests/llseek.c (main): Use errno2name, stop using assert.
30778 tests/linkat.c: print syscall() result using %ld format.
30780 tests/iopl.c: use errno2name.
30782 tests/ioperm.c: use errno2name.
30784 tests/getgroups.c: use errno2name.
30785 * tests/getgroups.c (errno2str): Remove.
30788 tests/ftruncate64.c: cleanup.
30789 * tests/ftruncate64.c (main): Use errno2name, stop using assert.
30791 tests/ftruncate.c: cleanup.
30792 * tests/ftruncate.c (main): Use errno2name, stop using assert.
30794 tests/fsync.c: print syscall() result using %ld format.
30796 tests/flock.c: print syscall() result using %ld format.
30798 tests/file_handle.c: use errno2name.
30800 tests/fdatasync.c: print syscall() result using %ld format.
30802 tests/fchownat.c: use errno2name.
30804 tests/fchmodat.c: use errno2name.
30806 tests/fchmod.c: use errno2name.
30808 tests/faccessat.c: print syscall() result using %ld format.
30810 tests/epoll_wait.c: print syscall() result using %ld format.
30812 tests/epoll_ctl.c: print syscall() result using %ld format.
30814 tests/epoll_create1.c: cleanup.
30815 * tests/epoll_create1.c (main): Use errno2name, stop using assert.
30817 tests/epoll_create.c: print syscall() result using %ld format.
30819 tests/dup3.c: print syscall() result using %ld format.
30821 tests/dup2.c: print syscall() result using %ld format.
30823 tests/dup.c: cleanup.
30825 tests/creat.c: stop using sys/stat.h.
30827 tests/copy_file_range.c: stop using assert.
30829 tests/chroot.c: use errno2name.
30831 tests/aio.c: use errno2name.
30833 tests: cleanup acct.test.
30834 * tests/acct.c (main): Use errno2name, stop using assert,
30836 * tests/acct.test: Update.
30838 tests: use errno2name()
30839 Automatically change tests/*.c files using the following sed regexp:
30840 sed -i 's/errno == E[[:alnum:]]\+ ? "E[[:alnum:]]\+" : "E[[:alnum:]]\+"/errno2name()/g'
30842 tests/dup.c: include "tests.h"
30845 2016-04-21 Fei Jie <feij.fnst@cn.fujitsu.com>
30847 tests: add getpgrp.test.
30848 * tests/getpgrp.c: New file.
30849 * tests/getpgrp.test: New test.
30850 * tests/.gitignore: Add getpgrp.
30851 * tests/Makefile.am (check_PROGRAMS): Likewise.
30854 tests: add access.test.
30855 * tests/access.c: New file.
30856 * tests/access.test: New test.
30857 * tests/.gitignore: Add access.
30858 * tests/Makefile.am (check_PROGRAMS): Likewise.
30861 tests: add fchdir.test.
30862 * tests/fchdir.c: New file.
30863 * tests/fchdir.test: New test.
30864 * tests/.gitignore: Add fchdir.
30865 * tests/Makefile.am (check_PROGRAMS): Likewise.
30868 tests: add mkdir.test.
30869 * tests/mkdir.c: New file.
30870 * tests/mkdir.test: New test.
30871 * tests/.gitignore: Add mkdir.
30872 * tests/Makefile.am (check_PROGRAMS): Likewise.
30875 tests: add getsid.test.
30876 * tests/getsid.c: New file.
30877 * tests/getsid.test: New test.
30878 * tests/.gitignore: Add getsid.
30879 * tests/Makefile.am (check_PROGRAMS): Likewise.
30882 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30884 tests: add errno2name function to libtests.
30889 * tests.h (errno2name): New prototype.
30893 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
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
30918 x32 and mips. Skip affected tests if this is the case.
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>
30930 tests/shmxt.c: do not use SHM_RND, it is unreliable.
30931 * tests/shmxt.c (main): Do not set SHM_RND flag.
30933 tests/rt_sigpending.c: fix for systems where _NSIG > 16 * sizeof(long)
30934 * tests/rt_sigsuspend.c (iterate): Do not assume that size will be less
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>
30942 tests: adjust rt_sigpending to older kernels.
30943 With linux kernels older than v3.9-rc1, compat rt_sigpending syscall
30947 * tests/rt_sigpending.c (iterate): Stop iterations if rt_sigpending
30950 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30952 tests: adjust readv/writev and preadv/pwritev tests to older kernels.
30953 With linux kernels older than v3.16-rc1, iovec based compat syscalls may
30955 Adjust tests to handle both cases properly.
30957 * tests/preadv-pwritev.c: Include <errno.h>.
30959 * tests/pwritev.c: Likewise.
30960 * tests/readv.c: Likewise.
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
30966 made old uid tests obsolete.
30968 * tests/uid.awk: Remove.
30969 * tests/uid.c: Remove.
30970 * tests/uid.test: Remove.
30971 * tests/uid16.c: Remove.
30972 * tests/uid16.test: Remove.
30973 * tests/uid32.c: Remove.
30974 * tests/uid32.test: Remove.
30975 * tests/.gitignore: Remove uid, uid16, and uid32.
30976 * tests/Makefile.am (check_PROGRAMS): Likewise.
30980 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30982 tests: extend test coverage of getuid/getgid family syscalls.
30983 Add strict tests for getuid, getuid32, getgid, getgid32, geteuid,
30986 * tests/getegid.c: New file.
30987 * tests/getegid.test: New test.
30988 * tests/getegid32.c: New file.
30989 * tests/getegid32.test: New test.
30990 * tests/geteuid.c: New file.
30991 * tests/geteuid.test: New test.
30992 * tests/geteuid32.c: New file.
30993 * tests/geteuid32.test: New test.
30994 * tests/getgid.c: New file.
30995 * tests/getgid.test: New test.
30996 * tests/getgid32.c: New file.
30997 * tests/getgid32.test: New test.
30998 * tests/getuid.c: New file.
30999 * tests/getuid.test: New test.
31000 * tests/getuid32.c: New file.
31001 * tests/getuid32.test: New test.
31002 * tests/.gitignore: Add getuid, getuid32, getgid, getgid32, geteuid,
31004 * tests/Makefile.am (check_PROGRAMS): Likewise.
31009 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31011 tests: extend test coverage of getresgid32 syscall.
31012 * tests/getresgid32.c: New file.
31013 * tests/getresgid32.test: New test.
31014 * tests/.gitignore: Add getresgid32.
31015 * tests/Makefile.am (check_PROGRAMS): Likewise.
31018 tests: extend test coverage of getresgid syscall.
31019 * tests/getresgid.c: New file.
31020 * tests/getresgid.test: New test.
31021 * tests/.gitignore: Add getresgid.
31022 * tests/Makefile.am (check_PROGRAMS): Likewise.
31025 tests: extend test coverage of getresuid32 syscall.
31026 * tests/getresuid32.c: New file.
31027 * tests/getresuid32.test: New test.
31028 * tests/.gitignore: Add getresuid32.
31029 * tests/Makefile.am (check_PROGRAMS): Likewise.
31032 tests: extend test coverage of getresuid syscall.
31033 * tests/getresugid.c: New file.
31034 * tests/getresuid.c: New file.
31035 * tests/getresuid.test: New test.
31036 * tests/.gitignore: Add getresuid.
31037 * tests/Makefile.am (check_PROGRAMS): Likewise.
31041 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31043 tests: add symlinkat.test.
31044 * tests/symlinkat.c: New file.
31045 * tests/symlinkat.test: New test.
31046 * tests/.gitignore: Add symlinkat.
31047 * tests/Makefile.am (check_PROGRAMS): Likewise.
31050 tests: add iopl.test.
31051 * tests/iopl.c: New file.
31052 * tests/iopl.test: New test.
31053 * tests/.gitignore: Add iopl.
31054 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
31066 tests: add ioperm.test.
31067 * tests/ioperm.c: New file.
31068 * tests/ioperm.test: New test.
31069 * tests/.gitignore: Add ioperm.
31070 * tests/Makefile.am (check_PROGRAMS): Likewise.
31073 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31079 * tests/getgroups.c: New file.
31080 * tests/getgroups.test: New test.
31081 * tests/getgroups32.c: New file.
31082 * tests/getgroups32.test: New test.
31083 * tests/setgroups.c: New file.
31084 * tests/setgroups.test: New test.
31085 * tests/setgroups32.c: New file.
31086 * tests/setgroups32.test: New test.
31087 * tests/.gitignore: Add getgroups, getgroups32, setgroups,
31089 * tests/Makefile.am (check_PROGRAMS): Likewise.
31096 tests: check decoding of setfsgid32 syscall.
31097 * tests/setfsgid32.c: New file.
31098 * tests/setfsgid32.test: New test.
31099 * tests/.gitignore: Add setfsgid32.
31100 * tests/Makefile.am (check_PROGRAMS): Likewise.
31103 tests: check decoding of setfsgid syscall.
31104 * tests/setfsugid.c: New file.
31105 * tests/setfsgid.c: New file.
31106 * tests/setfsgid.test: New test.
31107 * tests/.gitignore: Add setfsgid.
31108 * tests/Makefile.am (check_PROGRAMS): Likewise.
31112 tests: check decoding of setfsuid32 syscall.
31113 * tests/setfsuid32.c: New file.
31114 * tests/setfsuid32.test: New test.
31115 * tests/.gitignore: Add setfsuid32.
31116 * tests/Makefile.am (check_PROGRAMS): Likewise.
31119 tests: check decoding of setfsuid syscall.
31120 * tests/setfsugid.c: New file.
31121 * tests/setfsuid.c: New file.
31122 * tests/setfsuid.test: New test.
31123 * tests/.gitignore: Add setfsuid.
31124 * tests/Makefile.am (check_PROGRAMS): Likewise.
31128 tests: extend test coverage of setresgid32 syscall.
31129 * tests/setresgid32.c: New file.
31130 * tests/setresgid32.test: New test.
31131 * tests/.gitignore: Add setresgid32.
31132 * tests/Makefile.am (check_PROGRAMS): Likewise.
31135 tests: extend test coverage of setresgid syscall.
31136 * tests/setresgid.c: New file.
31137 * tests/setresgid.test: New test.
31138 * tests/.gitignore: Add setresgid.
31139 * tests/Makefile.am (check_PROGRAMS): Likewise.
31142 tests: extend test coverage of setresuid32 syscall.
31143 * tests/setresuid32.c: New file.
31144 * tests/setresuid32.test: New test.
31145 * tests/.gitignore: Add setresuid32.
31146 * tests/Makefile.am (check_PROGRAMS): Likewise.
31149 tests: extend test coverage of setresuid syscall.
31150 * tests/setresugid.c: New file.
31151 * tests/setresuid.c: New file.
31152 * tests/setresuid.test: New test.
31153 * tests/.gitignore: Add setresuid.
31154 * tests/Makefile.am (check_PROGRAMS): Likewise.
31158 tests: extend test coverage of setregid32 syscall.
31159 * tests/setregid32.c: New file.
31160 * tests/setregid32.test: New test.
31161 * tests/.gitignore: Add setregid32.
31162 * tests/Makefile.am (check_PROGRAMS): Likewise.
31165 tests: extend test coverage of setregid syscall.
31166 * tests/setregid.c: New file.
31167 * tests/setregid.test: New test.
31168 * tests/.gitignore: Add setregid.
31169 * tests/Makefile.am (check_PROGRAMS): Likewise.
31172 tests: extend test coverage of setreuid32 syscall.
31173 * tests/setreuid32.c: New file.
31174 * tests/setreuid32.test: New test.
31175 * tests/.gitignore: Add setreuid32.
31176 * tests/Makefile.am (check_PROGRAMS): Likewise.
31179 tests: extend test coverage of setreuid syscall.
31180 * tests/setreugid.c: New file.
31181 * tests/setreuid.c: New file.
31182 * tests/setreuid.test: New test.
31183 * tests/.gitignore: Add setreuid.
31184 * tests/Makefile.am (check_PROGRAMS): Likewise.
31188 tests: extend test coverage of setgid32 syscall.
31189 * tests/setgid32.c: New file.
31190 * tests/setgid32.test: New test.
31191 * tests/.gitignore: Add setgid32.
31192 * tests/Makefile.am (check_PROGRAMS): Likewise.
31195 tests: extend test coverage of setgid syscall.
31196 * tests/setgid.c: New file.
31197 * tests/setgid.test: New test.
31198 * tests/.gitignore: Add setgid.
31199 * tests/Makefile.am (check_PROGRAMS): Likewise.
31202 tests: extend test coverage of setuid32 syscall.
31203 * tests/setuid32.c: New file.
31204 * tests/setuid32.test: New test.
31205 * tests/.gitignore: Add setuid32.
31206 * tests/Makefile.am (check_PROGRAMS): Likewise.
31209 tests: extend test coverage of setuid syscall.
31210 * tests/setugid.c: New file.
31211 * tests/setuid.c: New file.
31212 * tests/setuid.test: New test.
31213 * tests/.gitignore: Add setuid.
31214 * tests/Makefile.am (check_PROGRAMS): Likewise.
31218 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31220 tests: add shmxt.test.
31221 * tests/shmxt.c: New file.
31222 * tests/shmxt.test: New test.
31223 * tests/.gitignore: Add shmxt.
31224 * tests/Makefile.am (check_PROGRAMS): Likewise.
31227 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31234 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31236 tests: add semop.test.
31237 * tests/semop.c: New file.
31238 * tests/semop.test: New test.
31239 * tests/.gitignore: Add semop.
31240 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
31252 tests/pselect6.c: fix potential output mismatch.
31253 * tests/pselect6.c (main): In the last case of printing pselect6
31256 Reported-by: Steve McIntyre <steve@einval.com>
31258 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31260 tests: check decoding of fchown32 syscall.
31261 * tests/fchown32.c: New file.
31262 * tests/fchown32.test: New test.
31263 * tests/.gitignore: Add fchown32.
31264 * tests/Makefile.am (check_PROGRAMS): Likewise.
31267 tests: check decoding of fchown syscall.
31268 * tests/fchown.c: New file.
31269 * tests/fchown.test: New test.
31270 * tests/.gitignore: Add fchown.
31271 * tests/Makefile.am (check_PROGRAMS): Likewise.
31274 tests: check decoding of lchown32 syscall.
31275 * tests/lchown32.c: New file.
31276 * tests/lchown32.test: New test.
31277 * tests/.gitignore: Add lchown32.
31278 * tests/Makefile.am (check_PROGRAMS): Likewise.
31281 tests: check decoding of lchown syscall.
31282 * tests/lchown.c: New file.
31283 * tests/lchown.test: New test.
31284 * tests/.gitignore: Add lchown.
31285 * tests/Makefile.am (check_PROGRAMS): Likewise.
31288 tests: check decoding of chown32 syscall.
31289 * tests/chown32.c: New file.
31290 * tests/chown32.test: New test.
31291 * tests/.gitignore: Add chown32.
31292 * tests/Makefile.am (check_PROGRAMS): Likewise.
31295 tests: check decoding of chown syscall.
31296 * tests/chown.c: New file.
31297 * tests/chown.test: New test.
31298 * tests/xchownx.c: New file.
31299 * tests/.gitignore: Add chown.
31300 * tests/Makefile.am (check_PROGRAMS): Likewise.
31304 Fix decoding of 16-bit uid_t/git_t.
31307 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31309 tests: move kernel uid overflow check to libtests.
31312 * tests/overflowuid.c: New file.
31313 * tests/Makefile.am (libtests_a_SOURCES): Add it.
31314 * tests/tests.h (check_overflowuid, check_overflowgid): New prototypes.
31315 * tests/uid.c (main): Use check_overflowuid.
31316 * tests/uid16.c (main): Likewise.
31318 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31320 tests: skip seccomp-strict.test and prctl-seccomp-strict.test on x32.
31322 SECCOMP_MODE_STRICT, skip affected tests 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.
31334 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
31351 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
31362 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
31371 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
31378 * tests/Makefile.am (check_PROGRAMS): Likewise.
31379 (DECODER_TESTS): Add prctl-seccomp-strict.test.
31381 tests: bring lists back to the sorted order.
31383 2016-04-10 Dmitry V. Levin <ldv@altlinux.org>
31385 tests/epoll_create1.c: extend for the case of ENOSYS.
31389 tests/epoll_ctl.c: extend epoll_ctl coverage.
31390 * tests/epoll_ctl.c (main): Check EPOLL_CTL_DEL decoding. Check
31393 2016-04-09 Dmitry V. Levin <ldv@altlinux.org>
31395 tests: add mlockall.test.
31396 * tests/mlockall.c: New file.
31397 * tests/mlockall.test: New test.
31398 * tests/.gitignore: Add mlockall.
31399 * tests/Makefile.am (check_PROGRAMS): Likewise.
31402 2016-04-08 Fei Jie <feij.fnst@cn.fujitsu.com>
31404 tests: add epoll_wait.test.
31405 * tests/epoll_wait.c: New file.
31406 * tests/epoll_wait.test: New test.
31407 * tests/.gitignore: Add epoll_wait.
31408 * tests/Makefile.am (check_PROGRAMS): Likewise.
31411 tests: add epoll_ctl.test.
31412 * tests/epoll_ctl.c: New file.
31413 * tests/epoll_ctl.test: New test.
31414 * tests/.gitignore: Add epoll_ctl.
31415 * tests/Makefile.am (check_PROGRAMS): Likewise.
31418 tests: add epoll_create.test.
31419 * tests/epoll_create.c: New file.
31420 * tests/epoll_create.test: New test.
31421 * tests/.gitignore: Add epoll_create.
31422 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
31435 * tests/swap.c (error_msg): Handle EINVAL.
31438 tests/unlinkat.c: check AT_* decoding.
31439 * tests/unlinkat.c (main): Check decoding of AT_* constants.
31441 tests/linkat.c: check AT_* decoding.
31442 * tests/linkat.c (main): Check decoding of AT_* constants.
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>
31463 tests: add mkdirat.test.
31464 * tests/mkdirat.c: New file.
31465 * tests/mkdirat.test: New test.
31466 * tests/.gitignore: Add mkdirat.
31467 * tests/Makefile.am (check_PROGRAMS): Likewise.
31470 tests: add swap.test.
31471 * tests/swap.c: New file.
31472 * tests/swap.test: New test.
31473 * tests/.gitignore: Add swap.
31474 * tests/Makefile.am (check_PROGRAMS): Likewise.
31477 tests: add unlinkat.test.
31478 * tests/unlinkat.c: New file.
31479 * tests/unlinkat.test: New test.
31480 * tests/.gitignore: Add unlinkat.
31481 * tests/Makefile.am (check_PROGRAMS): Likewise.
31484 tests: add linkat.test.
31485 * tests/linkat.c: New file.
31486 * tests/linkat.test: New test.
31487 * tests/.gitignore: Add linkat.
31488 * tests/Makefile.am (check_PROGRAMS): Likewise.
31491 2016-04-06 Dmitry V. Levin <ldv@altlinux.org>
31493 tests: add sync_file_range.test and sync_file_range2.test.
31495 * tests/sync_file_range.c: New file.
31496 * tests/sync_file_range2.c: Likewise.
31497 * tests/sync_file_range.test: New test.
31498 * tests/sync_file_range2.test: Likewise.
31499 * tests/.gitignore: Add sync_file_range and sync_file_range2.
31500 * tests/Makefile.am (check_PROGRAMS): Likewise.
31503 2016-04-05 Dmitry V. Levin <ldv@altlinux.org>
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.
31536 * tests/netlink_inet_diag.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.
31540 * tests/netlink_unix_diag.c: Likewise.
31541 * tests/net.expected: Replace PF_ with AF_.
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.
31549 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
31560 tests: add hexdump_memdup function to libtests.
31561 * tests/hexdump_strdup.c (hexdump_memdup): New function.
31563 * tests/tests.h (hexdump_memdup): New prototype.
31565 tests: add fchownat.test.
31566 * tests/fchownat.c: New file.
31567 * tests/fchownat.test: New test.
31568 * tests/.gitignore: Add fchownat.
31569 * tests/Makefile.am (check_PROGRAMS): Likewise.
31572 tests: add fchmodat.test.
31573 * tests/fchmodat.c: New file.
31574 * tests/fchmodat.test: New test.
31575 * tests/.gitignore: Add fchmodat.
31576 * tests/Makefile.am (check_PROGRAMS): Likewise.
31582 * tests/pread64-pwrite64.c: New file.
31583 * tests/pread64-pwrite64.test: New test.
31584 * tests/.gitignore: Add pread64-pwrite64.
31585 * tests/Makefile.am (check_PROGRAMS): Likewise.
31587 (DECODER_TESTS): Add pread64-pwrite64.
31589 tests/hexdump_strdup.c: add support for longer strings.
31590 * tests/hexdump_strdup.c (hexdump_strdup): Output extra space character
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>
31598 tests: add chroot.test.
31599 * tests/chroot.c: New file.
31600 * tests/chroot.test: New test.
31601 * tests/.gitignore: Add chroot.
31602 * tests/Makefile.am (check_PROGRAMS): Likewise.
31605 tests: add fdatasync.test.
31606 * tests/fdatasync.c: New file.
31607 * tests/fdatasync.test: New test.
31608 * tests/.gitignore: Add fdatasync.
31609 * tests/Makefile.am (check_PROGRAMS): Likewise.
31612 tests: add fsync.test.
31613 * tests/fsync.c: New file.
31614 * tests/fsync.test: New test.
31615 * tests/.gitignore: Add fsync.
31616 * tests/Makefile.am (check_PROGRAMS): Likewise.
31619 tests: add sethostname.test.
31620 * tests/sethostname.c: New file.
31621 * tests/sethostname.test: New test.
31622 * tests/.gitignore: Add sethostname.
31623 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
31660 2016-03-31 Jeff Mahoney <jeffm@suse.com>
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.
31676 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
31692 * tests/preadv.c: New file.
31693 * tests/preadv.test: New test.
31694 * tests/pwritev.c: New file.
31695 * tests/pwritev.test: New test.
31696 * tests/.gitignore: Add preadv and pwritev.
31697 * tests/Makefile.am (check_PROGRAMS): Likewise.
31704 * tests/readv.c (main): Check it.
31706 tests: factor out a part common to many simply organized test scripts.
31707 * tests/init.sh (run_strace_match_diff): New function.
31708 * tests/acct.test: Rewrite using run_strace_match_diff.
31709 * tests/aio.test: Likewise.
31710 * tests/alarm.test: Likewise.
31711 * tests/chmod.test: Likewise.
31712 * tests/clock_nanosleep.test: Likewise.
31713 * tests/clock_xettime.test: Likewise.
31714 * tests/copy_file_range.test: Likewise.
31715 * tests/creat.test: Likewise.
31716 * tests/dup.test: Likewise.
31717 * tests/dup2.test: Likewise.
31718 * tests/dup3.test: Likewise.
31719 * tests/epoll_create1.test: Likewise.
31720 * tests/execveat-v.test: Likewise.
31721 * tests/execveat.test: Likewise.
31722 * tests/fchmod.test: Likewise.
31723 * tests/fcntl.test: Likewise.
31724 * tests/file_handle.test: Likewise.
31725 * tests/flock.test: Likewise.
31726 * tests/fork-f.test: Likewise.
31727 * tests/ftruncate.test: Likewise.
31728 * tests/ftruncate64.test: Likewise.
31729 * tests/getcwd.test: Likewise.
31730 * tests/getdents.test: Likewise.
31731 * tests/getdents64.test: Likewise.
31732 * tests/getrandom.test: Likewise.
31733 * tests/getrusage.test: Likewise.
31734 * tests/getxxid.test: Likewise.
31735 * tests/inet-cmsg.test: Likewise.
31736 * tests/init.sh: Likewise.
31737 * tests/membarrier.test: Likewise.
31738 * tests/mincore.test: Likewise.
31739 * tests/mknod.test: Likewise.
31740 * tests/mlock2.test: Likewise.
31741 * tests/mmsg.test: Likewise.
31742 * tests/nanosleep.test: Likewise.
31743 * tests/open.test: Likewise.
31744 * tests/openat.test: Likewise.
31745 * tests/pselect6.test: Likewise.
31746 * tests/readdir.test: Likewise.
31747 * tests/readlink.test: Likewise.
31748 * tests/readv.test: Likewise.
31749 * tests/recvmsg.test: Likewise.
31750 * tests/rename.test: Likewise.
31751 * tests/renameat.test: Likewise.
31752 * tests/rt_sigpending.test: Likewise.
31753 * tests/rt_sigprocmask.test: Likewise.
31754 * tests/rt_sigqueueinfo.test: Likewise.
31755 * tests/rt_sigsuspend.test: Likewise.
31756 * tests/rt_sigtimedwait.test: Likewise.
31757 * tests/rt_tgsigqueueinfo.test: Likewise.
31758 * tests/sched_get_priority_mxx.test: Likewise.
31759 * tests/sched_xetaffinity.test: Likewise.
31760 * tests/sched_xetparam.test: Likewise.
31761 * tests/sched_xetscheduler.test: Likewise.
31762 * tests/seccomp.test: Likewise.
31763 * tests/select.test: Likewise.
31764 * tests/sendfile.test: Likewise.
31765 * tests/sendfile64.test: Likewise.
31766 * tests/splice.test: Likewise.
31767 * tests/statx.sh: Likewise.
31768 * tests/sysinfo.test: Likewise.
31769 * tests/syslog.test: Likewise.
31770 * tests/tee.test: Likewise.
31771 * tests/time.test: Likewise.
31772 * tests/timer_create.test: Likewise.
31773 * tests/timer_xettime.test: Likewise.
31774 * tests/timerfd_xettime.test: Likewise.
31775 * tests/times-fail.test: Likewise.
31776 * tests/times.test: Likewise.
31777 * tests/truncate.test: Likewise.
31778 * tests/truncate64.test: Likewise.
31779 * tests/umask.test: Likewise.
31780 * tests/umount.test: Likewise.
31781 * tests/umount2.test: Likewise.
31782 * tests/userfaultfd.test: Likewise.
31783 * tests/vmsplice.test: Likewise.
31784 * tests/xet_robust_list.test: Likewise.
31785 * tests/xetitimer.test: Likewise.
31786 * tests/xetpgid.test: Likewise.
31787 * tests/xetpriority.test: Likewise.
31788 * tests/xettimeofday.test: Likewise.
31790 tests: introduce $NAME.
31791 * tests/init.sh (NAME): New variable, defined to ${ME_%.test}.
31794 * tests/fcntl.test: Likewise.
31795 * tests/fstat.test: Likewise.
31796 * tests/mmap.test: Likewise.
31797 * tests/net-y-unix.test: Likewise.
31798 * tests/net-yy-inet.test: Likewise.
31799 * tests/net-yy-unix.test: Likewise.
31800 * tests/open.test: Likewise.
31801 * tests/openat.test: Likewise.
31802 * tests/poll.test: Likewise.
31803 * tests/ppoll.test: Likewise.
31804 * tests/readlink.test: Likewise.
31805 * tests/select.test: Likewise.
31806 * tests/statx.sh: Likewise.
31807 * tests/uname.test: Likewise.
31809 2016-03-30 Dmitry V. Levin <ldv@altlinux.org>
31811 tests: move definitions of $OUT and $ERR to init.sh.
31814 of these variables from individual tests to init.sh.
31816 * tests/init.sh (OUT, ERR): New variables.
31817 * tests/ipc.sh: Remove initialization of OUT variable.
31818 * tests/statx.sh: Likewise.
31819 * tests/*.test: Remove initialization of OUT and ERR variables.
31821 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31823 tests: simplify sendfile.test and sendfile64.test.
31826 * tests/sendfile.c (main): Use av[0] instead of av[1] for input.
31827 * tests/sendfile64.c (main): Likewise.
31828 * tests/sendfile.test: Invoke run_prog without arguments.
31829 * tests/sendfile64.test: Likewise.
31831 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31834 While -P option needs /proc to match descriptors, it does not use
31835 /proc to match pathnames. As these tests do not need descriptor
31838 * tests/open.test: Lift /proc/self/fd/ requirement.
31839 * tests/openat.test: Likewise.
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>
31875 tests/uname.test: check abbreviated output, use print_quoted_string.
31876 * tests/uname.c (main): Use print_quoted_string to print
31878 * tests/uname.test: Add abbrev check.
31880 2016-03-28 Dmitry V. Levin <ldv@altlinux.org>
31883 * tests/faccessat.c (TMP_FILE): Rename to sample, change its value
31885 * tests/faccessat.test: Rewrite using openat.test.
31888 * tests/openat.c (main): Rename fname to sample, change its value
31890 * tests/openat.test: Use -P option to filter out openat syscalls
31893 tests: add open.test.
31894 * tests/open.c: New file.
31895 * tests/open.test: New test.
31896 * tests/.gitignore: Add open.
31897 * tests/Makefile.am (check_PROGRAMS): Likewise.
31900 2016-03-27 Dmitry V. Levin <ldv@altlinux.org>
31908 2016-03-26 Dmitry V. Levin <ldv@altlinux.org>
31913 Update path of saa6588.h and exynos-fimc.h files.
31915 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
31919 * tests/mknod.c: Include <sys/sysmacros.h> or <sys/mkdev.h>
31923 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
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>
31935 tests: add openat.test.
31936 * tests/openat.c: New file.
31937 * tests/openat.test: New test.
31938 * tests/.gitignore: Add openat.
31939 * tests/Makefile.am (check_PROGRAMS): Likewise.
31942 2016-03-25 Fei Jie <feij.fnst@cn.fujitsu.com>
31944 tests: add renameat.test.
31945 * tests/renameat.c: New file.
31946 * tests/renameat.test: New test.
31947 * tests/.gitignore: Add renameat.
31948 * tests/Makefile.am (check_PROGRAMS): Likewise.
31951 tests: add faccessat.test.
31952 * tests/faccessat.c: New file.
31953 * tests/faccessat.test: New test.
31954 * tests/.gitignore: Add faccessat.
31955 * tests/Makefile.am (check_PROGRAMS): Likewise.
31958 tests: add creat.test.
31959 * tests/creat.c: New file.
31960 * tests/creat.test: New test.
31961 * tests/.gitignore: Add creat.
31962 * tests/Makefile.am (check_PROGRAMS): Likewise.
31965 tests: add mknod.test.
31966 * tests/mknod.c: New file.
31967 * tests/mknod.test: New test.
31968 * tests/.gitignore: Add mknod.
31969 * tests/Makefile.am (check_PROGRAMS): Likewise.
31972 tests: add syslog.test.
31973 * tests/syslog.c: New file.
31974 * tests/syslog.test: New test.
31975 * tests/.gitignore: Add syslog.
31976 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
31992 * tests/Makefile.am (MISC_TESTS): Add it.
31993 (EXTRA_DIST): Add strace-r.expected.
31995 tests: add strace-ttt.test.
31996 * tests/strace-ttt.test: New test.
31997 * tests/Makefile.am (MISC_TESTS): Add it.
31999 tests: add strace-tt.test.
32000 * tests/strace-tt.test: New test.
32001 * tests/Makefile.am (MISC_TESTS): Add it.
32003 tests: add strace-t.test.
32004 * tests/strace-t.test: New test.
32005 * tests/Makefile.am (MISC_TESTS): Add it.
32007 tests: add strace-T.test.
32008 * tests/strace-T.expected: New file.
32009 * tests/strace-T.test: New test.
32010 * tests/Makefile.am (MISC_TESTS): Add it.
32011 (EXTRA_DIST): Add strace-T.expected.
32013 2016-03-23 Dmitry V. Levin <ldv@altlinux.org>
32015 tests: split out tests of specific decoders.
32016 Split TESTS into three groups: tests of specific decoders, libunwind
32017 tests, and all other tests.
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.
32025 Move remaining tests except $(LIBUNWIND_TESTS) to DECODER_TESTS.
32028 2016-03-23 JayRJoshi <jay.r.joshi100@gmail.com>
32030 tests: add getcwd.test.
32031 * tests/getcwd.c: New file.
32032 * tests/getcwd.test: New test.
32033 * tests/.gitignore: Add getcwd.
32034 * tests/Makefile.am (check_PROGRAMS): Likewise.
32035 (TESTS): Add getcwd.test.
32037 tests: add print_quoted_string function to libtests.
32038 * tests/tests.h (print_quoted_string): New prototype.
32039 * tests/print_quoted_string.c: New file.
32040 * tests/Makefile.am (libtests_a_SOURCES): Add it.
32042 2016-03-17 Fei Jie <feij.fnst@cn.fujitsu.com>
32044 tests: add xetpriority.test.
32047 * tests/xetpriority.c: New file.
32048 * tests/xetpriority.test: New test.
32049 * tests/.gitignore: Add xetpriority.
32050 * tests/Makefile.am (check_PROGRAMS): Likewise.
32051 (TESTS): Add xetpriority.test.
32053 2016-03-15 Fei Jie <feij.fnst@cn.fujitsu.com>
32055 tests: add flock.test.
32056 * tests/flock.c: New file.
32057 * tests/flock.test: New test.
32058 * tests/.gitignore: Add flock.
32059 * tests/Makefile.am (check_PROGRAMS): Likewise.
32060 (TESTS): Add flock.test.
32062 tests: add sched_xetscheduler.test.
32063 * tests/sched_xetscheduler.c: New file.
32064 * tests/sched_xetscheduler.test: New test.
32065 * tests/.gitignore: Add sched_xetscheduler.
32066 * tests/Makefile.am (check_PROGRAMS): Likewise.
32067 (TESTS): Add sched_xetscheduler.test.
32069 2016-03-15 Dmitry V. Levin <ldv@altlinux.org>
32071 alpha: fix SOCK_DIAG_BY_FAMILY tests.
32072 This complements commit v4.9-368-g301c65c.
32074 * tests/netlink_inet_diag.c (check_responses): Align "buf"
32076 * tests/netlink_unix_diag.c (check_responses): Likewise.
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.
32090 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
32102 tests: filter strace output in uname test.
32103 * tests/uname.test: Use uniq to filter strace output.
32105 2016-03-10 Fei Jie <feij.fnst@cn.fujitsu.com>
32107 tests: add sched_xetparam.test.
32108 * tests/sched_xetparam.c: New file.
32109 * tests/sched_xetparam.test: New test.
32110 * tests/.gitignore: Add sched_xetparam.
32111 * tests/Makefile.am (check_PROGRAMS): Likewise.
32112 (TESTS): Add sched_xetparam.test.
32114 tests: add sched_get_priority_mxx.test.
32115 * tests/sched_get_priority_mxx.c: New file.
32116 * tests/sched_get_priority_mxx.test: New test.
32117 * tests/.gitignore: Add sched_get_priority_mxx.
32118 * tests/Makefile.am (check_PROGRAMS): Likewise.
32119 (TESTS): Add sched_get_priority_mxx.test.
32121 tests: add dup.test, dup2.test, and dup3.test.
32122 * tests/dup.c: New file.
32123 * tests/dup.test: New test.
32124 * tests/dup2.c: New file.
32125 * tests/dup2.test: New test.
32126 * tests/dup3.c: New file.
32127 * tests/dup3.test: New test.
32128 * tests/.gitignore: Add dup, dup2, and dup3.
32129 * tests/Makefile.am (check_PROGRAMS): Likewise.
32130 (TESTS): Add dup.test, dup2.test, and dup3.test.
32132 2016-03-10 Fabien Siron <fabien.siron@epita.fr>
32134 tests: add fchmod.test.
32135 * tests/fchmod.c: New file.
32136 * tests/fchmod.test: New test.
32137 * tests/.gitignore: Add fchmod.
32138 * tests/Makefile.am (check_PROGRAMS): Likewise.
32139 (TESTS): Add fchmod.test.
32141 2016-03-09 Fei Jie <feij.fnst@cn.fujitsu.com>
32143 tests: add acct.test.
32144 * tests/acct.c: New file.
32145 * tests/acct.test: New test.
32146 * tests/.gitignore: Add acct.
32147 * tests/Makefile.am (check_PROGRAMS): Likewise.
32148 (TESTS): Add acct.test.
32150 2016-03-07 Anchit Jain <anchitjain1234@gmail.com>
32152 tests: add chmod.test.
32153 * tests/chmod.c: New file.
32154 * tests/chmod.test: New test.
32155 * tests/.gitignore: Add chmod.
32156 * tests/Makefile.am (check_PROGRAMS): Likewise.
32157 (TESTS): Add chmod.test.
32159 2016-03-05 Nahim El Atmani <naam@lse.epita.fr>
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>
32170 tests: add umask.test.
32171 * tests/umask.c: New file.
32172 * tests/umask.test: New test.
32173 * tests/.gitignore: Add umask.
32174 * tests/Makefile.am (check_PROGRAMS): Likewise.
32175 (TESTS): Add umask.test.
32177 tests: add rename.test.
32178 * tests/rename.c: New file.
32179 * tests/rename.test: New test.
32180 * tests/.gitignore: Add rename.
32181 * tests/Makefile.am (check_PROGRAMS): Likewise.
32182 (TESTS): Add rename.test.
32184 tests: add uname.test.
32185 * tests/uname.c: New file.
32186 * tests/uname.test: New test.
32187 * tests/.gitignore: Add uname.
32188 * tests/Makefile.am (check_PROGRAMS): Likewise.
32189 (TESTS): Add uname.test.
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>
32200 tests: add rt_sigsuspend.test.
32201 * tests/rt_sigsuspend.c: New file.
32202 * tests/rt_sigsuspend.test: New test.
32203 * tests/.gitignore: Add rt_sigsuspend.
32204 * tests/Makefile.am (check_PROGRAMS): Likewise.
32205 (TESTS): Add rt_sigsuspend.test.
32212 * tests/rt_tgsigqueueinfo.c: New file.
32213 * tests/rt_tgsigqueueinfo.test: New test.
32214 * tests/.gitignore: Add rt_tgsigqueueinfo.
32215 * tests/Makefile.am (check_PROGRAMS): Likewise.
32216 (TESTS): Add rt_tgsigqueueinfo.test.
32219 * tests/getrusage.c: Include <stdint.h>
32222 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32228 * tests/getrusage.c (main): Use tail_alloc.
32230 2016-02-19 Fei Jie <feij.fnst@cn.fujitsu.com>
32232 tests: add getrusage.test.
32233 * tests/getrusage.c: New file.
32234 * tests/getrusage.test: New test.
32235 * tests/.gitignore: Add getrusage.
32236 * tests/Makefile.am (check_PROGRAMS): Likewise.
32237 (TESTS): Add getrusage.test.
32239 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32243 * tests/rt_sigtimedwait.c: New file.
32244 * tests/rt_sigtimedwait.test: New test.
32245 * tests/.gitignore: Add rt_sigtimedwait.
32246 * tests/Makefile.am (check_PROGRAMS): Likewise.
32247 (TESTS): Add rt_sigtimedwait.test.
32249 tests: add rt_sigprocmask.test.
32250 * tests/rt_sigprocmask.c: New file.
32251 * tests/rt_sigprocmask.test: New test.
32252 * tests/.gitignore: Add rt_sigprocmask.
32253 * tests/Makefile.am (check_PROGRAMS): Likewise.
32254 (TESTS): Add rt_sigprocmask.test.
32258 print_sigset_addr_len with added minimal length argument.
32259 Treat length less than minimal length or greater than NSIG/8 as invalid.
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
32265 as a minimal length argument.
32267 instead of print_sigset_addr_len with 1 as a minimal length argument.
32268 * tests/rt_sigpending.c: New file.
32269 * tests/rt_sigpending.test: New test.
32270 * tests/.gitignore: Add rt_sigpending.
32271 * tests/Makefile.am (check_PROGRAMS): Likewise.
32272 (TESTS): Add rt_sigpending.test.
32274 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32277 Unfortunately, 64-bit linux kernel has a bug in matching inode numbers
32284 * tests/netlink_unix_diag.c (send_query): Remove "inode" argument,
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>
32300 tests: add poll.test.
32301 * tests/poll.c: New file.
32302 * tests/poll.test: New test.
32303 * tests/.gitignore: Add poll.
32304 * tests/Makefile.am (check_PROGRAMS): Likewise.
32305 (TESTS): Add poll.test.
32310 * tests/ppoll-v.expected: Update.
32311 * tests/ppoll.expected: Update.
32312 * tests/ppoll.test: Update.
32323 * tests/llseek.c (main): Check that negative offset is printed properly.
32324 * tests/lseek.c (main): Likewise.
32326 2016-02-14 Dmitry V. Levin <ldv@altlinux.org>
32328 tests: add xetpgid.test.
32329 * tests/xetpgid.c: New file.
32330 * tests/xetpgid.test: New test.
32331 * tests/.gitignore: Add xetpgid.
32332 * tests/Makefile.am (check_PROGRAMS): Likewise.
32333 (TESTS): Add xetpgid.test.
32335 tests: add alarm.test.
32336 * tests/alarm.c: New file.
32337 * tests/alarm.test: New test.
32338 * tests/.gitignore: Add alarm.
32339 * tests/Makefile.am (check_PROGRAMS): Likewise.
32340 (TESTS): Add alarm.test.
32356 * tests/redirect.test: Disable tracing of syscalls, signals,
32359 tests: extend coverage of struct iovec arrays.
32360 * tests/readv.c (main): Check decoding of empty, inaccessible,
32362 * tests/readv.test: Update.
32367 * tests/vmsplice.c: New file.
32368 * tests/vmsplice.test: New test.
32369 * tests/.gitignore: Add vmsplice.
32370 * tests/Makefile.am (check_PROGRAMS): Likewise.
32371 (TESTS): Add vmsplice.test.
32373 tests: add tee.test.
32374 * tests/tee.c: New file.
32375 * tests/tee.test: New test.
32376 * tests/.gitignore: Add tee.
32377 * tests/Makefile.am (check_PROGRAMS): Likewise.
32378 (TESTS): Add tee.test.
32383 * tests/splice.c: New file.
32384 * tests/splice.test: New test.
32385 * tests/.gitignore: Add splice.
32386 * tests/Makefile.am (check_PROGRAMS): Likewise.
32387 (TESTS): Add splice.test.
32408 * tests/copy_file_range.c: New file.
32409 * tests/copy_file_range.test: New test.
32410 * tests/.gitignore: Add copy_file_range.
32411 * tests/Makefile.am (check_PROGRAMS): Likewise.
32412 (TESTS): Add copy_file_range.test.
32427 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32429 tests: robustify execve and execveat tests.
32430 * tests/execve.c (main): Use one page gap between two mapped regions
32432 * tests/execveat.c (main): Likewise.
32434 tests: simplify execve test.
32435 * tests/execve.c (main): Simplify the test assuming that execve syscall
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>
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>
32528 2016-02-12 Dmitry V. Levin <ldv@altlinux.org>
32530 tests: check decoding of madvise, mlockall, mremap, and msync syscalls.
32531 * tests/mmap.c (main): Change output format from regexp to verbatim.
32532 Add tests for madvise, mlockall, mremap, and msync syscalls.
32533 * tests/mmap.test: Convert from match_grep to match_diff.
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.
32579 * tests/Makefile.am (check_PROGRAMS): Likewise.
32581 (TESTS): Add attach-f-p.test.
32583 2016-02-09 Dmitry V. Levin <ldv@altlinux.org>
32597 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32599 travis-ci: pass more gcov arguments to codecov.
32601 tests: extend coverage of struct itimerspec.
32602 * tests/timer_xettime.c (main): Check decoding of NULL struct itimerspec
32605 tests: extend coverage of utimensat syscall.
32606 * tests/utimensat.c (main): Check decoding of NULL struct timespec
32609 tests: extend coverage of time syscall.
32610 * tests/time.c (main): Check decoding of NULL time_t pointer.
32612 tests: extend coverage of struct sigevent.
32613 * tests/timer_create.c (main): Check decoding of NULL struct sigevent
32616 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32618 tests: extend coverage of execve and execveat syscalls.
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.
32625 * tests/execve.c: Rewrite.
32626 * tests/execveat.c: Likewise.
32627 * tests/execve.test: Likewise.
32628 * tests/execveat.test: Likewise.
32629 * tests/execve.expected: Remove.
32630 * tests/execve-v.expected: Likewise.
32631 * tests/execveat.expected: Likewise.
32632 * tests/execveat-v.expected: Likewise.
32633 * tests/.gitignore: Add execve-v and execveat-v.
32634 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
32647 tests: extend coverage of capget syscall.
32648 * tests/caps.c (main): Check decoding of inaccessible cap_user_header_t
32650 * tests/caps.awk: Update match patterns.
32651 * tests/caps.test: Update.
32653 tests: extend coverage of sched_getaffinity syscall.
32654 * tests/sched_xetaffinity.c (main): Check decoding of pointer
32657 tests: extend coverage of utime syscall.
32658 * tests/utime.c (main): Check decoding of NULL struct utimbuf pointer.
32660 * tests/utime.test: Update.
32662 tests: extend coverage of sysinfo syscall.
32663 * tests/sysinfo.c (main): Check decoding of NULL struct sysinfo pointer.
32665 * tests/sysinfo.test: Update.
32667 tests: extend coverage of adjtimex syscall.
32668 * tests/adjtimex.c (main): Check decoding of NULL struct timex pointer.
32670 * tests/adjtimex.test: Update.
32672 tests: check that strace does not retain stdin and stdout descriptors.
32673 * tests/redirect.test: New test.
32674 * tests/Makefile.am (TESTS): Add it.
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>
32707 tests: add opipe.test.
32708 Check that -o |pipe_command works. In particular, check that
32711 * tests/opipe.test: New test.
32712 * tests/Makefile.am (TESTS): Add it.
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
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.
32743 tests: extend readlink and readlinkat coverage.
32744 * tests/readlink.c (PREFIX, TARGET, LINKPATH): New macros.
32749 * tests/readlinkat.c: Likewise.
32750 * tests/readlink.test: Remove creation and cleanup of test symlinks.
32752 tests: add hexquote_strndup function to libtests.
32753 * tests/tests.h (hexquote_strndup): New prototype.
32754 * tests/hexquote_strndup.c: New file.
32755 * tests/Makefile.am (libtests_a_SOURCES): Add it.
32758 * tests/readlink.test (syscall): Initialize from $0.
32759 * tests/readlinkat.test: Source readlink.test.
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.
32797 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
32831 * tests/netlink_unix_diag.c (send_query): Remove "family" and "proto"
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.
32843 * tests/netlink_inet_diag.c (check_responses): Stop on short messages,
32846 * tests/netlink_unix_diag.c (check_responses): Likewise.
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.
32870 * tests/Makefile.am (check_PROGRAMS): Likewise.
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.
32886 * tests/Makefile.am (check_PROGRAMS): Likewise.
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>
32892 tests: add inode_of_sockfd function to libtests.
32893 * tests/tests.h (inode_of_sockfd): New prototype.
32894 * tests/inode_of_sockfd.c: New file.
32895 * tests/Makefile.am (libtests_a_SOURCES): Add it.
32901 2016-01-29 Dmitry V. Levin <ldv@altlinux.org>
32907 * tests/mincore.c: New file.
32908 * tests/mincore.test: New test.
32909 * tests/Makefile.am (check_PROGRAMS): Add mincore.
32910 (TESTS): Add mincore.test.
32911 * tests/.gitignore: Add mincore.
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
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.
32939 * tests/Makefile.am (check_PROGRAMS): Likewise.
32940 (TESTS): Add attach-p-cmd.test.
32942 This fixes Debian bug #549942.
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>
32951 tests: use local nanosleep based sleep utility replacement.
32952 * tests/sleep.c: New file.
32953 * tests/.gitignore: Add sleep.
32954 * tests/Makefile.am (check_PROGRAMS): Likewise.
32955 * tests/count.test: Use it instead of system sleep utility.
32957 tests: add error_msg_and_fail function to libtests.
32958 * tests/tests.h (error_msg_and_fail): New prototype.
32959 * tests/error_msg.c (error_msg_and_fail): New function.
32961 2016-01-20 Dmitry V. Levin <ldv@altlinux.org>
32967 * tests/mmsg.c (main): Update.
32975 * tests/recvmsg.c: New file.
32976 * tests/recvmsg.test: New test.
32977 * tests/Makefile.am (check_PROGRAMS): Add recvmsg.
32978 (TESTS): Add recvmsg.test.
32979 * tests/.gitignore: Add recvmsg.
32991 * tests/readv.c: New file.
32992 * tests/readv.test: New test.
32993 * tests/Makefile.am (check_PROGRAMS): Add readv.
32994 (TESTS): Add readv.test.
32995 * tests/.gitignore: Add readv.
32997 tests/tests.h: add ARRAY_SIZE and LENGTH_OF macros.
32998 * tests/tests.h (ARRAY_SIZE, LENGTH_OF): New macros.
32999 * tests/aio.c (ARRAY_SIZE): Remove.
33000 * tests/mmsg.c (LENGTH_OF): Remove.
33002 tests: add hexdump_strdup function to libtests.
33003 * tests/tests.h (hexdump_strdup): New prototype.
33004 * tests/hexdump_strdup.c: New file.
33005 * tests/Makefile.am (libtests_a_SOURCES): Add it.
33007 tests: add tprintf function to libtests.
33008 * tests/tests.h (tprintf): New prototype.
33009 * tests/tprintf.c: New file.
33010 * tests/Makefile.am (libtests_a_SOURCES): Add it.
33011 * tests/mmsg.c: Use tprintf.
33013 2016-01-19 Dmitry V. Levin <ldv@altlinux.org>
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.
33089 * tests/mmsg.c (LENGTH_OF): New macro.
33093 * tests/mmsg.test: Update.
33094 * tests/mmsg.expected: Remove.
33095 * tests/Makefile.am (EXTRA_DIST): Remove mmsg.expected.
33097 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33100 * tests/aio.c (main): Place all objects passed to io_* syscalls
33103 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33121 This fixes Debian bug #485979 and Fedora bug #1298294.
33123 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
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>
33152 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33159 scm_rights-fd.test: rewrite without fork.
33160 * tests/scm_rights.c (main): Rewrite without fork.
33163 * tests/scm_rights-fd.test: Update.
33165 tests: fix clang "duplicate 'const' declaration specifier" warnings.
33166 * tests/ksysent.c (pstr_t): Remove second const specifier.
33167 * tests/mmsg.c (main): Remove second const specifier from one[], two[],
33170 tests/times.c: fix clang compilation warning.
33171 * tests/times.c (main): Initialize dummy variable.
33173 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33175 tests/mmsg.c: fix build on rhel6/ppc.
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>
33211 * tests/timer_create.c: Include "sigevent.h".
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.
33244 * tests/_newselect.c (TEST_SYSCALL_NAME): Remove.
33246 * tests/fcntl.c: Likewise.
33247 * tests/fcntl64.c: Likewise.
33248 * tests/fstat.c: Likewise.
33249 * tests/fstatat64.c: Likewise.
33250 * tests/lstat.c: Likewise.
33251 * tests/newfstatat.c: Likewise.
33252 * tests/select.c: Likewise.
33253 * tests/stat.c: Likewise.
33254 * tests/fstat64.c (TEST_SYSCALL_NAME): Remove.
33256 * tests/lstat64.c: Likewise.
33257 * tests/stat64.c: Likewise.
33258 * tests/fstatx.c (TEST_SYSCALL_NR, nrify, nrify_): Remove.
33259 * tests/lstatx.c: Likewise.
33260 * tests/struct_flock.c (TEST_SYSCALL_NR, TEST_SYSCALL_STR, nrify,
33262 * tests/xselect.c: Likewise.
33263 * tests/xstatx.c: Check TEST_SYSCALL_STR instead of TEST_SYSCALL_NAME.
33267 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33269 tests/struct_flock.c: fix musl libc compilation warnings.
33275 * tests/struct_flock.c (TYPEOF_FLOCK_OFF_T): New macro.
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>
33293 * tests/aio.c: Include <fcntl.h> instead of <sys/fcntl.h>.
33296 * tests/tests.h (tail_memdup): New prototype.
33297 * tests/tail_alloc.c (tail_memdup): New function.
33298 * tests/mmsg.c (main): Place all objects passed to sendmmsg and recvmmsg
33302 * tests/mmsg.c (main): Pass MSG_DONTROUTE|MSG_NOSIGNAL to sendmmsg.
33304 * tests/mmsg.expected: Update.
33306 2016-01-11 Dmitry V. Levin <ldv@altlinux.org>
33309 * tests/mmsg.c: Include <sys/syscall.h>.
33315 Reported-by: Szabolcs Nagy <nsz@port70.net>
33317 2016-01-10 Dmitry V. Levin <ldv@altlinux.org>
33322 * tests/sigreturn.c (main): Replace RT_2 with RT_5.
33323 * tests/sigreturn.test: Likewise.
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>
33354 tests: do not use settimeofday wrapper provided by libc.
33357 * tests/xettimeofday.c (main): Call settimeofday using syscall().
33359 Reported-by: Szabolcs Nagy <nsz@port70.net>
33361 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33364 * tests/ioctl.test: Filter out from the log ioctl calls with standard
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.
33382 * tests/uid.test: Cleanup.
33383 * tests/getxxid.c: New file.
33384 * tests/getxxid.test: New test.
33385 * tests/Makefile.am (check_PROGRAMS): Add getxxid.
33386 (TESTS): Add getxxid.test.
33387 * tests/.gitignore: Add getxxid.
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>
33444 * tests/sched_xetaffinity.c: New file.
33445 * tests/sched_xetaffinity.test: New test.
33446 * tests/Makefile.am (check_PROGRAMS): Add sched_xetaffinity.
33447 (TESTS): Add sched_xetaffinity.test.
33448 * tests/.gitignore: Add sched_xetaffinity.
33450 Reported-by: Joe Korty <joe.korty@ccur.com>
33452 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33454 tests: convert epoll_create1.test from match_grep to match_diff.
33455 * tests/epoll_create1.c (main): Print expected output.
33456 * tests/epoll_create1.test: Use match_diff instead of match_grep.
33457 * tests/epoll_create1.expected: Remove.
33458 * tests/Makefile.am (EXTRA_DIST): Remove epoll_create1.expected.
33460 tests/struct_flock.c: use libtests.
33461 * tests/struct_flock.c (create_sample): Return void,
33463 * tests/fcntl.c: Use SKIP_MAIN_UNDEFINED.
33464 * tests/fcntl64.c: Likewise.
33466 tests/file_handle.c: use libtests.
33467 * tests/file_handle.c: Use SKIP_MAIN_UNDEFINED.
33470 tests/uid32.c: use libtests.
33471 * tests/uid32.c: Use SKIP_MAIN_UNDEFINED.
33473 tests/uid16.c: use libtests.
33474 * tests/uid16.c: Use SKIP_MAIN_UNDEFINED.
33477 tests/uid.c: use libtests.
33478 * tests/uid.c: Use SKIP_MAIN_UNDEFINED.
33481 tests/netlink_unix_diag.c: use libtests.
33482 * tests/netlink_unix_diag.c (send_query, check_responses, main):
33485 tests/netlink_inet_diag.c: use libtests.
33486 * tests/netlink_inet_diag.c (send_query, check_responses, main):
33489 tests/readdir.c: use libtests.
33490 * tests/readdir.c: Use SKIP_MAIN_UNDEFINED.
33493 tests/getdents64.c: use libtests.
33494 * tests/getdents64.c: Use SKIP_MAIN_UNDEFINED.
33497 tests/getdents.c: use libtests.
33498 * tests/getdents.c: Use SKIP_MAIN_UNDEFINED.
33501 tests/ipc_shm.c: use libtests.
33502 * tests/ipc_shm.c (cleanup): New function.
33505 tests/ipc_sem.c: use libtests.
33506 * tests/ipc_sem.c (cleanup): New function.
33509 tests/ipc_msg.c: use libtests.
33510 * tests/ipc_msg.c (cleanup): New function.
33513 tests/ipc_msgbuf.c: use libtests.
33514 * tests/ipc_msgbuf.c (cleanup): New function.
33517 tests/mq.c: use libtests.
33518 * tests/mq.c: Use SKIP_MAIN_UNDEFINED.
33521 tests/utimensat.c: use libtests.
33522 * tests/utimensat.c: Use SKIP_MAIN_UNDEFINED.
33525 tests/ppoll.c: use libtests.
33526 * tests/ppoll.c (main): Use assert, perror_msg_and_skip,
33529 tests/mmsg.c: use libtests.
33530 * tests/mmsg.c: Use SKIP_MAIN_UNDEFINED.
33533 tests/ip_mreq.c: use libtests.
33534 * tests/ip_mreq.c: Use SKIP_MAIN_UNDEFINED.
33537 tests/ioctl.c: use libtests.
33538 * tests/ioctl.c: Use SKIP_MAIN_UNDEFINED.
33541 tests/pipe.c: use libtests.
33542 * tests/pipe.c: Use SKIP_MAIN_UNDEFINED.
33545 tests/getrandom.c: use libtests.
33546 * tests/getrandom.c: Use SKIP_MAIN_UNDEFINED.
33549 tests/signalfd.c: use libtests.
33550 * tests/signalfd.c: Use SKIP_MAIN_UNDEFINED.
33553 tests/pc.c: use libtests.
33554 * tests/pc.c (main): Use assert, get_page_size, perror_msg_and_fail,
33557 tests/uio.c: use libtests.
33558 * tests/uio.c: Use SKIP_MAIN_UNDEFINED.
33560 tests/bpf.c: use libtests.
33561 * tests/bpf.c: Use SKIP_MAIN_UNDEFINED.
33564 tests/aio.c: use libtests.
33565 * tests/aio.c: Use SKIP_MAIN_UNDEFINED.
33568 tests/sched_xetattr.c: use libtests.
33569 * tests/sched_xetattr.c: Use SKIP_MAIN_UNDEFINED.
33572 tests/wait.c: use libtests.
33573 * tests/wait.c (main): Use perror_msg_and_fail.
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.
33581 tests/userfaultfd.c: use libtests.
33582 * tests/userfaultfd.c: Use SKIP_MAIN_UNDEFINED.
33585 tests/mlock2.c: use libtests.
33586 * tests/mlock2.c: Use SKIP_MAIN_UNDEFINED.
33589 tests/membarrier.c: use libtests.
33590 * tests/membarrier.c: Use SKIP_MAIN_UNDEFINED.
33593 tests/nanosleep.c: use libtests.
33594 * tests/nanosleep.c (main): Use assert, perror_msg_and_fail,
33597 tests/timerfd_xettime.c: use libtests.
33598 * tests/timerfd_xettime.c: Use SKIP_MAIN_UNDEFINED.
33601 tests/timer_xettime.c: use libtests.
33602 * tests/timer_xettime.c: Use SKIP_MAIN_UNDEFINED.
33605 tests/timer_create.c: use libtests.
33606 * tests/timer_create.c: Use SKIP_MAIN_UNDEFINED.
33609 tests/clock_xettime.c: use libtests.
33610 * tests/clock_xettime.c: Use SKIP_MAIN_UNDEFINED.
33613 tests/clock_nanosleep.c: use libtests.
33614 * tests/clock_nanosleep.c (main): Use assert and perror_msg_and_skip.
33616 tests/truncate64.c: use libtests.
33617 * tests/truncate64.c: Use SKIP_MAIN_UNDEFINED.
33620 tests/truncate.c: use libtests.
33621 * tests/truncate.c: Use SKIP_MAIN_UNDEFINED.
33624 tests/ftruncate64.c: use libtests.
33625 * tests/ftruncate64.c: Use SKIP_MAIN_UNDEFINED.
33628 tests/ftruncate.c: use libtests.
33629 * tests/ftruncate.c: Use SKIP_MAIN_UNDEFINED.
33632 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33634 tests/llseek.c: use libtests.
33635 * tests/llseek.c: Use SKIP_MAIN_UNDEFINED.
33638 tests/lseek.c: use libtests.
33639 * tests/lseek.c: Use SKIP_MAIN_UNDEFINED.
33642 tests/readlinkat.c: use libtests.
33643 * tests/readlinkat.c: Use SKIP_MAIN_UNDEFINED.
33646 tests/readlink.c: use libtests.
33647 * tests/readlink.c: Use SKIP_MAIN_UNDEFINED.
33650 tests/xattr.c: use libtests.
33651 * tests/xattr.c: Use SKIP_MAIN_UNDEFINED.
33654 tests/seccomp.c: use libtests.
33655 * tests/seccomp.c: Use SKIP_MAIN_UNDEFINED.
33658 tests/restart_syscall.c: use libtests.
33659 * tests/restart_syscall.c (main): Use assert, perror_msg_and_fail,
33662 tests/inet-cmsg.c: use libtests.
33663 * tests/inet-cmsg.c (main): Use perror_msg_and_skip.
33665 tests/eventfd.c: use libtests.
33666 * tests/eventfd.c: Use SKIP_MAIN_UNDEFINED.
33669 tests/epoll_create1.c: use libtests.
33670 * tests/epoll_create1.c: Use SKIP_MAIN_UNDEFINED.
33673 tests/mmap.c: use libtests.
33674 * tests/mmap.c (main): Use get_page_size and perror_msg_and_fail.
33676 tests/fanotify_mark.c: use libtests.
33677 * tests/fanotify_mark.c: Use SKIP_MAIN_UNDEFINED.
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>
33693 tests/xselect.c: use libtests.
33694 * tests/xselect.c (main): Use assert, perror_msg_and_fail,
33697 tests/pselect6.c: use libtests.
33698 * tests/pselect6.c: Use SKIP_MAIN_UNDEFINED.
33701 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33703 tests/oldselect.c: use libtests.
33704 * tests/oldselect.c: Use SKIP_MAIN_UNDEFINED.
33707 tests/select.c: use libtests.
33708 * tests/select.c: Use SKIP_MAIN_UNDEFINED.
33710 tests/_newselect.c: use libtests.
33711 * tests/_newselect.c: Use SKIP_MAIN_UNDEFINED.
33713 tests/fstatat.c: use libtests.
33714 * tests/fstatat.c: Use SKIP_MAIN_UNDEFINED.
33716 tests/newfstatat.c: use libtests.
33717 * tests/newfstatat.c: Use SKIP_MAIN_UNDEFINED.
33719 tests/fstatat64.c: use libtests.
33720 * tests/fstatat64.c: Use SKIP_MAIN_UNDEFINED.
33722 tests/xstatx.c: use libtests.
33723 * tests/xstatx.c: Use SKIP_MAIN_UNDEFINED.
33725 tests/stat64.c: use libtests.
33726 * tests/stat64.c: Use SKIP_MAIN_UNDEFINED.
33728 tests/stat.c: use libtests.
33729 * tests/stat.c: Use SKIP_MAIN_UNDEFINED.
33731 tests/lstat64.c: use libtests.
33732 * tests/lstat64.c: Use SKIP_MAIN_UNDEFINED.
33734 tests/lstat.c: use libtests.
33735 * tests/lstat.c: Use SKIP_MAIN_UNDEFINED.
33737 tests/fstat64.c: use libtests.
33738 * tests/fstat64.c: Use SKIP_MAIN_UNDEFINED.
33740 tests/fstat.c: use libtests.
33741 * tests/fstat.c: Use SKIP_MAIN_UNDEFINED.
33743 tests/statfs.c: use libtests.
33744 * tests/statfs.c (main): Use perror_msg_and_fail.
33746 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33748 tests/xettimeofday.c: use libtests.
33749 * tests/xettimeofday.c (main): Use assert and perror_msg_and_skip.
33751 tests/utime.c: use libtests.
33752 * tests/utime.c (main): Use assert and perror_msg_and_skip.
33754 tests/filter-unavailable.c: use libtests.
33755 * tests/filter-unavailable.c (main): Use perror_msg_and_fail.
33757 tests/scm_rights.c: use libtests.
33758 * tests/scm_rights.c (main): Use perror_msg_and_fail and perror_msg_and_skip.
33760 tests/caps.c: use libtests.
33761 * tests/caps.c (main): Use perror_msg_and_skip.
33763 tests/rt_sigqueueinfo.c: use libtests.
33764 * tests/rt_sigqueueinfo.c (main): Use assert and perror_msg_and_skip.
33766 tests/umount.c: use libtests.
33767 * tests/umount.c: Use SKIP_MAIN_UNDEFINED.
33770 tests/umount2.c: use libtests.
33771 * tests/umount2.c (main): Use perror_msg_and_fail.
33773 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33775 tests/times.c: use libtests.
33776 * tests/times.c (main): Use perror_msg_and_fail and perror_msg_and_skip.
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.
33783 tests/memfd_create.c: use libtests.
33784 * tests/memfd_create.c: Use SKIP_MAIN_UNDEFINED.
33786 tests/execveat.c: use libtests.
33787 * tests/execveat.c: Use SKIP_MAIN_UNDEFINED.
33789 tests/xetitimer.c: use libtests.
33790 * tests/xetitimer.c (main): Use perror_msg_and_skip.
33792 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33794 tests/sysinfo.c: use libtests.
33795 * tests/sysinfo.c (main): Use perror_msg_and_skip.
33797 tests/sigaltstack.c: use libtests.
33798 * tests/sigaltstack.c (main): Use perror_msg_and_skip.
33800 tests/adjtimex.c: use libtests.
33801 * tests/adjtimex.c (main): Use perror_msg_and_skip.
33803 tests/xet_robust_list.c: use libtests.
33804 * tests/xet_robust_list.c: Use SKIP_MAIN_UNDEFINED.
33807 tests/umovestr2.c: use libtests.
33808 * tests/umovestr2.c (main): Use get_page_size and tail_alloc.
33810 tests/umovestr.c: use libtests.
33811 * tests/umovestr.c (main): Use perror_msg_and_skip and tail_alloc.
33813 tests/time.c: use libtests.
33814 * tests/time.c: Use SKIP_MAIN_UNDEFINED.
33817 tests/sendfile64.c: use libtests.
33818 * tests/sendfile64.c: Use SKIP_MAIN_UNDEFINED.
33822 tests/sendfile.c: use libtests.
33823 * tests/sendfile.c: Use SKIP_MAIN_UNDEFINED.
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/' \
33834 tests/*.c
33836 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33838 tests: introduce libtests.
33839 Introduce tests/libtests.a with common functions for use in tests.
33841 * tests/tests.h: New file.
33842 * tests/error_msg.c: Likewise.
33843 * tests/tail_alloc.c: Likewise.
33844 * tests/get_page_size.c: Likewise.
33845 * tests/Makefile.am (libtests_a_SOURCES, libtests_a_CPPFLAGS,
33849 * tests/.gitignore: Add libtests.a.
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.
33857 * tests/Makefile.am (MPERS_NAME, LIBUNWIND_TESTS, XFAIL_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>
33908 2015-12-29 Dmitry V. Levin <ldv@altlinux.org>
33916 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33935 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
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>
33966 * tests/personality.c (main): Add more test cases.
33967 * tests/personality.test: Update.
33969 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33977 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33985 * tests/personality.c (main): Test it.
33987 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33989 tests: add personality.test.
33990 * tests/personality.c: New file.
33991 * tests/personality.test: New test.
33992 * tests/Makefile.am (check_PROGRAMS): Add personality.
33993 (TESTS): Add personality.test.
33994 * tests/.gitignore: Add personality.
34002 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
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
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.
34056 2015-12-21 Dmitry V. Levin <ldv@altlinux.org>
34060 * debian/changelog: 4.11-1.
34061 * strace.spec: 4.11-1.
34063 2015-12-20 Dmitry V. Levin <ldv@altlinux.org>
34065 Sync strace.spec and debian/ with packages.
34066 * debian/changelog: Sync with 4.10-3.
34067 * debian/control: Likewise.
34068 * debian/rules: Likewise.
34069 * strace.spec: Sync with 4.10-3.
34075 2015-12-19 Dmitry V. Levin <ldv@altlinux.org>
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>
34097 tests/aio.c: include <time.h>
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>
34105 * mpers.sh (CFLAGS): Replace -gdwarf-4 with -gdwarf-2.
34110 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34120 * tests/ftruncate.c (main): Replace %Lu with %llu.
34121 * tests/ftruncate64.c (main): Likewise.
34122 * tests/getdents.c (print_dirent): Likewise.
34123 * tests/llseek.c (main): Likewise.
34124 * tests/lseek.c (main): Likewise.
34125 * tests/truncate.c (main): Likewise.
34126 * tests/truncate64.c (main): Likewise.
34127 * tests/xstatx.c (main): Likewise.
34128 * tests/pselect6.c (main): Replace %Ld with %lld.
34129 * tests/xselect.c(main): Likewise.
34131 Reported-by: Szabolcs Nagy <nsz@port70.net>
34133 2015-12-16 Szabolcs Nagy <nsz@port70.net>
34153 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34155 tests/times.test: workaround libc bug on x32.
34159 * tests/times.c (main) [__NR_times && __x86_64__ && __ILP32__]:
34162 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34170 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
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
34213 * tests/restart_syscall.c (main) [__arm__]: Add 0xfffffffc as a valid
34216 2015-12-12 Dmitry V. Levin <ldv@altlinux.org>
34218 tests/.gitignore: add ksysent.h.
34219 tests/ksysent.h is a generated file listed in CLEANFILES.
34220 This change complements commit v4.10-566-gbab4ef4.
34222 * tests/.gitignore: Add ksysent.h.
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>
34239 tests: add ksysent.test.
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
34272 * tests/ksysent.c: New file.
34273 * tests/ksysent.sed: Likewise.
34274 * tests/ksysent.test: New test.
34275 * tests/Makefile.am (AM_CPPFLAGS): Add -I$(builddir).
34277 (TESTS): Add ksysent.test.
34281 * tests/.gitignore: Add ksysent.
34283 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34289 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34300 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
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
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>
34396 * tests/mmap.c (main): Remove old_mmap from expected output.
34397 * tests/mmap.test: Remove old_mmap from the list of mmap syscalls.
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.
34421 * tests/oldselect.test: Rename oldselect to select. Convert
34423 * tests/oldselect.expected: Likewise.
34425 * tests/_newselect.c: New file.
34426 * tests/select.c: Replace with a wrapper around xselect.c.
34427 * tests/select.test: Parametrize.
34428 * tests/_newselect.test: New test.
34429 * tests/Makefile.am (check_PROGRAMS): Add _newselect.
34430 (TESTS): Add _newselect.test.
34432 * tests/.gitignore: Add _newselect.
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>
34467 tests: sort the list of tests.
34468 * tests/Makefile.am (TESTS): Sort the list of regular tests.
34469 * tests/.gitignore: Sort.
34478 build: add -D_FILE_OFFSET_BITS=64 to _CPPFLAGS instead of _CFLAGS.
34479 * tests/Makefile.am (fstat64_CFLAGS): Rename to fstat64_CPPFLAGS,
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
34514 * tests/Makefile.am (ARCH_MFLAGS, AM_LDFLAGS): New variables.
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>
34529 tests: add umount.test and umount2.test.
34530 * tests/umount.c: New file.
34531 * tests/umount2.c: Likewise.
34532 * tests/umount.test: New test.
34533 * tests/umount2.test: Likewise.
34534 * tests/Makefile.am (check_PROGRAMS): Add umount and umount2.
34535 (TESTS): Add umount.test and umount2.test.
34536 * tests/.gitignore: Add umount and umount2.
34545 2015-12-07 Dmitry V. Levin <ldv@altlinux.org>
34550 This fixes Debian bug #785050.
34552 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34568 * tests/times.c: Include <sys/syscall.h>.
34574 * tests/times.c (main): Reduce cpu time consumption fourfold,
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>
34610 * tests/fcntl.c: New file, based on struct_flock.c.
34611 * tests/fcntl64.c: Likewise.
34612 * tests/struct_flock.c (test_flock_einval, create_sample): New functions.
34615 * tests/fcntl.test: New test.
34616 * tests/fcntl64.test: Likewise.
34617 * tests/struct_flock.test: Remove.
34618 * tests/Makefile.am (check_PROGRAMS): Add fcntl and fcntl64,
34620 (TESTS): Add fcntl.test and fcntl64.test, remove struct_flock.test.
34622 * tests/.gitignore: Add fcntl and fcntl64, remove struct_flock.
34624 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34629 2015-12-04 Elvira Khabirova <lineprinter0@gmail.com>
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.
34655 tests: replace old stat tests with stat.test and stat64.test.
34656 * tests/stat.c: Replace with a wrapper around lstatx.c
34657 * tests/stat.test: Replace with a wrapper around statx.sh.
34658 * tests/stat32-v.test: Remove.
34659 * tests/stat32.c: Remove.
34660 * tests/stat64-v.test: Remove.
34661 * tests/stat64.c: New file.
34662 * tests/stat64.test: New test.
34663 * tests/Makefile.am (check_PROGRAMS): Replace stat32 with stat64.
34665 (TESTS): Replace stat32-v.test and stat64-v.test with stat64.test.
34666 * tests/.gitignore: Replace stat32 with stat64.
34668 tests: add lstat.test and lstat64.test.
34669 * tests/lstat.c: New file.
34670 * tests/lstat64.c: Likewise.
34671 * tests/lstatx.c: Likewise.
34672 * tests/lstat.test: New test.
34673 * tests/lstat64.test: Likewise.
34674 * tests/Makefile.am (check_PROGRAMS): Add lstat and lstat64.
34676 (TESTS): Add lstat.test and lstat64.test.
34678 * tests/.gitignore: Add lstat and lstat64.
34680 tests: add fstat.test and fstat64.test.
34681 * tests/fstat.c: New file.
34682 * tests/fstat64.c: Likewise.
34683 * tests/fstatx.c: Likewise.
34684 * tests/fstat.test: New test.
34685 * tests/fstat64.test: Likewise.
34686 * tests/Makefile.am (check_PROGRAMS): Add fstat and fstat64.
34688 (TESTS): Add fstat.test and fstat64.test.
34690 * tests/.gitignore: Add fstat and fstat64.
34692 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34694 tests: prepare for detailed testing of stat family syscalls.
34698 * tests/statx.sh: New file, based on fstatat64.test.
34699 * tests/fstatat64.test: Use it.
34700 * tests/newfstatat.test: Likewise.
34701 * tests/xstatx.c: New file, based on fstatat.c.
34702 * tests/fstatat.c: Use it.
34703 * tests/Makefile.am (EXTRA_DIST): Add statx.sh and xstatx.c.
34704 * tests/fstatat64.c (FSTATAT_NAME): Change to TEST_SYSCALL_NAME.
34705 * tests/newfstatat.c: Likewise.
34707 2015-12-04 Gabriel Laskar <gabriel@lse.epita.fr>
34722 Suggested-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
34724 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34726 tests: skip restart_syscall.test on x32.
34733 * tests/restart_syscall.c (main) [__x86_64__ && __ILP32__]: Return 77.
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>
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
34771 * tests/fstatat64.test: Lift /proc/self/fd/ requirement.
34773 2015-12-02 Dmitry V. Levin <ldv@altlinux.org>
34775 tests: add fstatat64.test and newfstatat.test.
34777 * tests/fstatat.c: New file.
34778 * tests/fstatat64.c: Likewise.
34779 * tests/newfstatat.c: Likewise.
34780 * tests/fstatat64.test: New test.
34781 * tests/newfstatat.test: Likewise.
34782 * tests/Makefile.am (check_PROGRAMS): Add fstatat64 and newfstatat.
34784 (TESTS): Add fstatat64.test and newfstatat.test.
34786 * tests/.gitignore: Add fstatat64 and newfstatat.
34788 2015-12-01 Dmitry V. Levin <ldv@altlinux.org>
34800 tests: add lseek.test and llseek.test.
34801 * tests/llseek.c: New file.
34802 * tests/lseek.c: Likewise.
34803 * tests/llseek.test: New test.
34804 * tests/lseek.test: Likewise.
34805 * tests/Makefile.am (check_PROGRAMS): Add llseek and lseek.
34806 (TESTS): Add llseek.test and lseek.test.
34807 * tests/.gitignore: Add llseek and lseek.
34809 tests: add ftruncate64.test and truncate64.test.
34810 * tests/ftruncate64.c: New file.
34811 * tests/truncate64.c: Likewise.
34812 * tests/ftruncate64.test: New test.
34813 * tests/truncate64.test: Likewise.
34814 * tests/Makefile.am (check_PROGRAMS): Add ftruncate64 and truncate64.
34816 (TESTS): Add ftruncate64.test and truncate64.test.
34817 * tests/.gitignore: Add ftruncate64 and truncate64.
34819 tests: add ftruncate.test and truncate.test.
34820 * tests/ftruncate.c: New file.
34821 * tests/truncate.c: Likewise.
34822 * tests/ftruncate.test: New test.
34823 * tests/truncate.test: Likewise.
34824 * tests/Makefile.am (check_PROGRAMS): Add ftruncate and truncate.
34825 (TESTS): Add ftruncate.test and truncate.test.
34826 * tests/.gitignore: Add ftruncate and truncate.
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
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
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
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
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
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>
35077 tests: remove temporary files left after two tests.
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
35087 * tests/stat.c (main) [__x86_64__ && __ILP32__]: Skip.
35089 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35091 tests: fix ipc_msgbuf.test on x32.
35092 * tests/ipc_msgbuf.c: Include "config.h" and "kernel_types.h".
35118 * tests/getdents.c (kernel_dirent): Remove.
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>
35142 tests: fix match_diff usage.
35147 * tests/aio.test: Swap match_diff arguments.
35148 * tests/clock_nanosleep.test: Likewise.
35149 * tests/clock_xettime.test: Likewise.
35150 * tests/file_handle.test: Likewise.
35151 * tests/getdents.test: Likewise.
35152 * tests/getdents64.test: Likewise.
35153 * tests/getrandom.test: Likewise.
35154 * tests/inet-cmsg.test: Likewise.
35155 * tests/ioctl.test: Likewise.
35156 * tests/membarrier.test: Likewise.
35157 * tests/mlock2.test: Likewise.
35158 * tests/nanosleep.test: Likewise.
35159 * tests/pselect6.test: Likewise.
35160 * tests/readdir.test: Likewise.
35161 * tests/readlink.test: Likewise.
35162 * tests/readlinkat.test: Likewise.
35163 * tests/rt_sigqueueinfo.test: Likewise.
35164 * tests/seccomp.test: Likewise.
35165 * tests/select.test: Likewise.
35166 * tests/sendfile.test: Likewise.
35167 * tests/sendfile64.test: Likewise.
35168 * tests/struct_flock.test: Likewise.
35169 * tests/sysinfo.test: Likewise.
35170 * tests/time.test: Likewise.
35171 * tests/timer_create.test: Likewise.
35172 * tests/timer_xettime.test: Likewise.
35173 * tests/timerfd_xettime.test: Likewise.
35174 * tests/times-fail.test: Likewise.
35175 * tests/times.test: Likewise.
35176 * tests/umovestr2.test: Likewise.
35177 * tests/userfaultfd.test: Likewise.
35178 * tests/utime.test: Likewise.
35179 * tests/utimensat.test: Likewise.
35180 * tests/xet_robust_list.test: Likewise.
35181 * tests/xetitimer.test: Likewise.
35182 * tests/xettimeofday.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>
35203 tests/file_handle: fix expected output.
35204 * tests/file_handle.c (main): Parametrize handle_type
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>
35222 tests: add struct_flock.test.
35223 * tests/struct_flock.c: New file.
35224 * tests/struct_flock.test: New test.
35225 * tests/Makefile.am (check_PROGRAMS): Add struct_flock.
35226 (TESTS): Add struct_flock.test.
35227 * tests/.gitignore: Add struct_flock.
35268 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35283 2015-11-26 Elvira Khabirova <lineprinter0@gmail.com>
35290 2015-11-26 Mike Frysinger <vapier@gentoo.org>
35294 means no C library headers for strace to include. Add configure tests
35318 2015-11-25 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
35409 * tests/file_handle.c: New file.
35410 * tests/file_handle.test: New test.
35411 * tests/Makefile.am (check_PROGRAMS): Add file_handle.
35412 (TESTS): Add file_handle.test.
35413 * tests/.gitignore: Add file_handle.
35449 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
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,
35505 - otherwise, a local definition is provided in regular mode,
35527 2015-11-20 Dmitry V. Levin <ldv@altlinux.org>
35529 tests: rewrite getdents test in C for better coverage.
35530 * tests/getdents.awk: Remove.
35531 * tests/getdents.out: Remove.
35532 * tests/getdents.c: New file.
35533 * tests/getdents.test: Rewrite.
35534 * tests/getdents64.c: New file.
35535 * tests/getdents64.test: New test.
35536 * tests/Makefile.am (check_PROGRAMS): Add getdents and getdents64.
35537 (TESTS): Add getdents64.test.
35539 * tests/.gitignore: Add getdents and getdents64.
35541 2015-11-19 Dmitry V. Levin <ldv@altlinux.org>
35543 tests: add readdir.test.
35544 * tests/readdir.c: New file.
35545 * tests/readdir.test: New test.
35546 * tests/Makefile.am (check_PROGRAMS): Add readdir.
35547 (TESTS): Add readdir.test.
35548 * tests/.gitignore: Add readdir.
35563 2015-11-19 Gabriel Laskar <gabriel@lse.epita.fr>
35571 * tests/getdents.awk: Update regexps to match fixed output.
35572 * tests/getdents.out: Update output.
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
35595 2015-11-18 Dmitry V. Levin <ldv@altlinux.org>
35601 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35609 * tests/mlock2.c: New file.
35610 * tests/mlock2.test: New test.
35611 * tests/Makefile.am (check_PROGRAMS): Add mlock2.
35612 (TESTS): Add mlock2.test.
35613 * tests/.gitignore Add mlock2.
35620 * tests/membarrier.c: New file.
35621 * tests/membarrier.test: New test.
35622 * tests/Makefile.am (check_PROGRAMS): Add membarrier.
35623 (TESTS): Add membarrier.test.
35624 * tests/.gitignore: Add membarrier.
35631 * tests/userfaultfd.c: New file.
35632 * tests/userfaultfd.test: New test.
35633 * tests/Makefile.am (check_PROGRAMS): Add userfaultfd.
35634 (TESTS): Add userfaultfd.test.
35635 * tests/.gitignore: Add userfaultfd.
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>
35691 * util.c (printflags): Check xlat->str is not NULL.
35693 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35699 * Makefile.am (mpers-m%.stamp): Add the whole $(mpers_sh_opts) set of
35702 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35704 tests/ioctl: workaround glibc ioctl wrapper on powerpc.
35705 * tests/ioctl.c (main) [POWERPC] Disable TCGETS test.
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>
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>
35788 tests: fix false uio.test failures.
35789 * tests/uio.c (main): Use descriptor number 0 in pread/pwrite
35791 * tests/uio.expected: Update regexps.
35793 Reported-by: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
35795 2015-10-01 Gabriel Laskar <gabriel@lse.epita.fr>
35797 Fix make -j builds.
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>
35831 * tests/ioctl.c (main): Add a case for command number conflicts.
35833 2015-09-23 Dmitry V. Levin <ldv@altlinux.org>
35835 tests: convert ioctl.test from match_grep to match_diff.
35836 * tests/ioctl.c (main): Print expected output.
35837 * tests/ioctl.test: Use match_diff instead of match_grep.
35838 * tests/ioctl.expected: Remove.
35839 * tests/Makefile.am (EXTRA_DIST): Remove ioctl.expected.
35841 2015-09-20 Dmitry V. Levin <ldv@altlinux.org>
35850 2015-09-19 Dmitry V. Levin <ldv@altlinux.org>
35852 tests/init.sh: enhance match_grep error diagnostics.
35853 * tests/init.sh (match_grep): Check patterns one by one,
35856 tests/init.sh: fix comment.
35857 * tests/init.sh (match_awk): Fix usage description.
35859 tests: add one more case to select.test.
35860 * tests/select.c (main): Check how timeout is printed
35863 tests: uncouple pselect6 from select.test.
35864 * tests/select.c Do not include <string.h>.
35868 * tests/select.test: Remove all pselect6 checks, test just
35871 tests: robustify select test.
35872 * tests/select.c: Do not include <assert.h>.
35876 tests: add one more case to pselect6.test.
35877 * tests/pselect6.c (main): Check how timeout is printed
35880 tests: robustify pselect6 test.
35881 * tests/pselect6.c: Do not include <assert.h> and <string.h>.
35910 tests: add another case to pselect6 test.
35911 * tests/pselect6.c: Include <sys/time.h>.
35922 * tests/xettimeofday.c: New file.
35923 * tests/xettimeofday.test: New test.
35924 * tests/Makefile.am (check_PROGRAMS): Add xettimeofday.
35925 (TESTS): Add xettimeofday.
35926 * tests/.gitignore: Add xettimeofday.
35955 * tests/clock_nanosleep.c: New file.
35956 * tests/clock_nanosleep.test: New test.
35957 * tests/Makefile.am (check_PROGRAMS): Add clock_nanosleep.
35958 (TESTS): Add clock_nanosleep.test.
35959 * tests/.gitignore: Add clock_nanosleep.
35977 tests: add nanosleep.test.
35978 * tests/nanosleep.c: New file.
35979 * tests/nanosleep.test: New test.
35980 * tests/Makefile.am (check_PROGRAMS): Add nanosleep.
35981 (TESTS): Add nanosleep.test.
35982 * tests/.gitignore: Add nanosleep.
35984 tests: rewrite restart_syscall in C.
35985 * tests/restart_syscall.c: New file.
35986 * tests/restart_syscall.expected: Remove.
35987 * tests/restart_syscall_unknown.expected: Remove.
35988 * tests/restart_syscall.test: Update to use restart_syscall.
35989 * tests/Makefile.am (check_PROGRAMS): Add restart_syscall.
35992 * tests/.gitignore: Add restart_syscall.
35999 tests: add clock_xettime.test.
36000 * tests/clock_xettime.c: New file.
36001 * tests/clock_xettime.test: New test.
36002 * tests/Makefile.am (check_PROGRAMS): Add clock_xettime.
36003 (TESTS): Add clock_xettime.test.
36004 * tests/.gitignore: Add clock_xettime.
36017 tests: add xetitimer.test.
36018 * tests/xetitimer.c: New file.
36019 * tests/xetitimer.test: New test.
36020 * tests/Makefile.am (check_PROGRAMS): Add xetitimer.
36021 (TESTS): Add xetitimer.test.
36022 * tests/.gitignore: Add xetitimer.
36029 2015-09-17 Dmitry V. Levin <ldv@altlinux.org>
36037 tests: add timerfd_xettime.test.
36038 * tests/timerfd_xettime.c: New file.
36039 * tests/timerfd_xettime.test: New test.
36040 * tests/Makefile.am (check_PROGRAMS): Add timerfd_xettime.
36041 (TESTS): Add timerfd_xettime.test.
36042 * tests/.gitignore: Add timerfd_xettime.
36044 tests: add timer_xettime.test.
36045 * tests/timer_xettime.c: New file.
36046 * tests/timer_xettime.test: New test.
36047 * tests/Makefile.am (check_PROGRAMS): Add timer_xettime.
36048 (TESTS): Add timer_xettime.test.
36049 * tests/.gitignore: Add timer_xettime.
36064 * tests/adjtimex.c (main) [HAVE_STRUCT_TIMEX_TAI]: Likewise.
36075 * tests/adjtimex.c: New file.
36076 * tests/adjtimex.test: New test.
36077 * tests/Makefile.am (check_PROGRAMS): Add adjtimex.
36078 (TESTS): Add adjtimex.test.
36079 * tests/.gitignore: Add adjtimex.
36091 * tests/timer_create.c: New file.
36092 * tests/timer_create.test: New test.
36093 * tests/Makefile.am (check_PROGRAMS): Add timer_create.
36094 (TESTS): Add timer_create.test.
36095 * tests/.gitignore: Add timer_create.
36097 2015-09-16 Dmitry V. Levin <ldv@altlinux.org>
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
36147 * io.c (tprint_iov_upto): Use it instead of open-coding
36149 * kexec.c (print_kexec_segments): Use it instead of open-coding
36153 tests: add pselect6.test.
36154 * tests/pselect6.c: New file.
36155 * tests/pselect6.test: New test.
36156 * tests/Makefile.am (check_PROGRAMS): Add pselect6.
36157 (TESTS): Add pselect6.test.
36158 * tests/.gitignore: Add pselect6.
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
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>
36276 tests: add times.test.
36277 * tests/times.c: New file.
36278 * tests/times.test: New test.
36279 * tests/Makefile.am (check_PROGRAMS): Add times.
36280 (TESTS): Add times.test.
36282 * tests/.gitignore: Add times.
36284 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36293 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36295 tests: add sysinfo.test.
36296 * tests/sysinfo.c: New file.
36297 * tests/sysinfo.test: New test.
36298 * tests/Makefile.am (check_PROGRAMS): Add sysinfo.
36299 (TESTS): Add sysinfo.test.
36300 * tests/.gitignore: Add sysinfo.
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>
36333 tests: add ipc_msgbuf.test.
36334 * tests/ipc_msgbuf.c: New file.
36335 * tests/ipc_msgbuf.expected: Likewise.
36336 * tests/ipc_msgbuf.test: New test.
36337 * tests/Makefile.am (check_PROGRAMS): Add ipc_msgbuf.
36338 (TESTS): Add ipc_msgbuf.test.
36340 * tests/.gitignore: Add ipc_msgbuf.
36342 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36354 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36356 tests: add mq.test.
36357 * tests/mq.c: New file.
36358 * tests/mq.expected: Likewise.
36359 * tests/mq.test: New test.
36360 * tests/Makefile.am (check_PROGRAMS): Add mq.
36361 (TESTS): Add mq.test.
36363 (mq_LDADD): Add -lrt.
36364 * tests/.gitignore: Add mq.
36366 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36377 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36379 tests: add wait.test.
36380 * tests/wait.c: New file.
36381 * tests/wait.expected: Likewise.
36382 * tests/wait.test: New test.
36383 * tests/Makefile.am (check_PROGRAMS): Add wait.
36384 (TESTS): Add wait.test.
36386 * tests/.gitignore: Add wait.
36388 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36402 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36404 tests: add rt_sigqueueinfo.test.
36405 * tests/rt_sigqueueinfo.c: New file.
36406 * tests/rt_sigqueueinfo.test: New test.
36407 * tests/Makefile.am (check_PROGRAMS): Add rt_sigqueueinfo.
36408 (TESTS): Add rt_sigqueueinfo.test.
36409 * tests/.gitignore: Add rt_sigqueueinfo.
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>
36446 tests: add utimensat.test.
36447 * tests/utimensat.c: New file.
36448 * tests/utimensat.test: New test.
36449 * tests/Makefile.am (check_PROGRAMS): Add utimensat.
36450 (TESTS): Add utimensat.test.
36452 * tests/.gitignore: Add utimensat.
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
36489 is being compiled for this personality (using -m32 or -mx32 compiler
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,
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>
36571 tests: convert readlink.test and readlinkat.test from match_awk to match_diff
36572 * tests/readlink.c (main): Print expected output.
36573 * tests/readlinkat.c (main): Likewise.
36574 * tests/readlink.test: Use match_diff instead of match_awk.
36575 * tests/readlinkat.test: Likewise.
36576 * tests/readlink.awk: Remove.
36577 * tests/readlinkat.awk: Likewise.
36578 * tests/Makefile.am (EXTRA_DIST): Remove readlink.awk and readlinkat.awk.
36580 tests: convert getrandom.test from match_awk to match_diff.
36581 * tests/getrandom.c (main): Print expected output.
36582 * tests/getrandom.test: Use match_diff instead of match_awk.
36583 * tests/getrandom.awk: Remove.
36584 * tests/Makefile.am (EXTRA_DIST): Remove getrandom.awk.
36586 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36588 tests: convert select.test from match_awk to match_diff.
36589 * tests/select.c (main): Print expected output.
36590 * tests/select.test: Use match_diff instead of match_awk.
36591 * tests/select.awk: Remove.
36592 * tests/Makefile.am (EXTRA_DIST): Remove select.awk.
36594 tests: convert several tests from match_grep to match_diff.
36595 * tests/sendfile.test: Use match_diff instead of match_grep.
36596 * tests/sendfile64.test: Likewise.
36597 * tests/time.test: Likewise.
36598 * tests/utime.test: Likewise.
36599 * tests/xet_robust_list.test: Likewise.
36600 * tests/sendfile.c (main): Update match patterns for match_diff.
36601 * tests/sendfile64.c (main): Likewise.
36602 * tests/time.c (main): Likewise.
36603 * tests/utime.c (main): Likewise.
36604 * tests/xet_robust_list.c (main): Likewise.
36606 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36608 tests: fix match_diff usage.
36610 output, the second argument - the file with actual output.
36612 * tests/aio.test: Swap match_diff arguments.
36613 * tests/restart_syscall.test: Likewise.
36614 * tests/seccomp.test: Likewise.
36615 * tests/umovestr2.test: Likewise.
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).
36622 * tests/Makefile.am (AM_CPPFLAGS): Likewise.
36624 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36639 * strace.spec (BuildRequires): Remove libaio-devel.
36640 * tests/aio.c (main): Test IOCB_CMD_PREADV, io_cancel,
36642 * tests/aio.test (syscalls): Add io_cancel.
36644 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36653 * tests/aio.c: New file.
36654 * tests/aio.test: New test.
36655 * tests/Makefile.am (check_PROGRAMS): Add aio.
36656 (TESTS): Add aio.test.
36657 * tests/.gitignore: Add aio.
36659 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36661 tests: fix build on systems that lack O_CLOEXEC definition.
36662 * tests/epoll_create1.c (main): Check that O_CLOEXEC is defined.
36663 * tests/eventfd.c (main): Likewise.
36664 * tests/signalfd.c (main): Likewise.
36666 tests: fix build on systems that lack AT_FDCWD definition.
36667 * tests/readlinkat.c: Stop including <fcntl.h>.
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
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>
36803 tests: add sendfile.test and sendfile64.test.
36804 * tests/sendfile.c: New file.
36805 * tests/sendfile64.c: New file.
36806 * tests/sendfile.test: New test.
36807 * tests/sendfile64.test: New test.
36808 * tests/Makefile.am (check_PROGRAMS): Add sendfile and sendfile64.
36809 (TESTS): Add sendfile.test and sendfile64.test.
36810 * tests/.gitignore: Add sendfile and sendfile64.
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>
36851 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36853 tests: add a test for get_robust_list and set_robust_list decoding.
36854 * tests/xet_robust_list.c: New file.
36855 * tests/xet_robust_list.test: New test.
36856 * tests/Makefile.am (check_PROGRAMS): Add xet_robust_list.
36857 (TESTS): Add xet_robust_list.test.
36858 * tests/.gitignore: Add xet_robust_list.
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>
36903 * tests/time.c: New file.
36904 * tests/time.test: New test.
36905 * tests/Makefile.am (check_PROGRAMS): Add time.
36906 (TESTS): Add time.test.
36907 * tests/.gitignore: Add time.
36909 2015-08-18 Mike Frysinger <vapier@gentoo.org>
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>
36957 tests: add readlink.test and readlinkat.test.
36958 * tests/readlink.c: New file.
36959 * tests/readlink.awk: Likewise.
36960 * tests/readlinkat.c: Likewise.
36961 * tests/readlinkat.awk: Likewise.
36962 * tests/readlink.test: New test.
36963 * tests/readlinkat.test: Likewise.
36964 * tests/Makefile.am (check_PROGRAMS): Add readlink and readlinkat.
36965 (TESTS): Add readlink.test and readlinkat.test.
36967 * tests/.gitignore: Add readlink and readlinkat.
36969 2015-08-09 Dmitry V. Levin <ldv@altlinux.org>
36980 * tests/stat.c [_FILE_OFFSET_BITS == 64]: Use st_atime_nsec,
36987 2015-08-03 Dmitry V. Levin <ldv@altlinux.org>
36997 * tests/signalfd.c: Likewise.
36998 * tests/signalfd.expected: Likewise.
36999 * tests/signalfd.test: New test.
37000 * tests/Makefile.am (check_PROGRAMS): Add signalfd.
37001 (TESTS): Add signalfd.test.
37003 * tests/.gitignore: Add signalfd.
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>
37052 * tests/epoll_create1.c: New file.
37053 * tests/epoll_create1.expected: Likewise.
37054 * tests/epoll_create1.test: New test.
37055 * tests/Makefile.am (check_PROGRAMS): Add epoll_create1.
37056 (TESTS): Add epoll_create1.test.
37058 * tests/.gitignore: Add epoll_create1.
37060 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37076 * tests/eventfd.c: New file.
37077 * tests/eventfd.expected: Likewise.
37078 * tests/eventfd.test: New test.
37079 * tests/Makefile.am (check_PROGRAMS): Add eventfd.
37080 (TESTS): Add eventfd.test.
37082 * tests/.gitignore: Add eventfd.
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>
37120 tests/ppoll: replace SIGABRT with SIGHUP.
37124 * tests/ppoll.c (test2): Replace SIGABRT with SIGHUP.
37125 * tests/ppoll.expected: Update regexp.
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>
37139 * tests/ppoll.c: New file.
37140 * tests/ppoll.expected: Likewise.
37141 * tests/ppoll-v.expected: Likewise.
37142 * tests/ppoll.test: New test.
37143 * tests/Makefile.am (check_PROGRAMS): Add ppoll.
37144 (TESTS): Add ppoll.test.
37145 (EXTRA_DIST): Add ppoll.expected and ppoll-v.expected.
37146 * tests/.gitignore: Add ppoll.
37163 tests: add oldselect.test.
37164 * tests/oldselect.c: New file.
37165 * tests/oldselect.expected: Likewise.
37166 * tests/oldselect.test: New test.
37167 * tests/Makefile.am (check_PROGRAMS): Add oldselect.
37168 (TESTS): Add oldselect.test.
37170 * tests/.gitignore: Add oldselect.
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>
37227 tests/bpf: fix build with incompatibly old linux/bpf.h and/or gcc.
37229 * tests/bpf.c: Check for HAVE_UNION_BPF_ATTR_LOG_BUF.
37236 * tests/sched_xetattr.c: New file.
37237 * tests/sched_xetattr.test: New test.
37238 * tests/Makefile.am (check_PROGRAMS): Add sched_xetattr.
37239 (TESTS): Add sched_xetattr.test.
37240 * tests/.gitignore: Add sched_xetattr.
37248 * tests/memfd_create.c: New file.
37249 * tests/memfd_create.expected: Likewise.
37250 * tests/memfd_create.test: New test.
37251 * tests/Makefile.am: (check_PROGRAMS): Add memfd_create.
37252 (TESTS): Add memfd_create.test.
37254 * tests/.gitignore: Add memfd_create.
37256 2015-07-28 Elliott Hughes <enh@google.com>
37263 2015-07-27 Dmitry V. Levin <ldv@altlinux.org>
37265 tests/restart_syscall: skip if nanosleep looks uninterrupted.
37266 * tests/restart_syscall.test: Skip if restart_syscall is not detected
37274 * tests/execveat.c: New file.
37275 * tests/execveat.expected: Likewise.
37276 * tests/execveat-v.expected: Likewise.
37277 * tests/execveat.test: New test.
37278 * tests/Makefile.am (check_PROGRAMS): Add execveat.
37279 (TESTS): Add execveat.test.
37280 (EXTRA_DIST): Add execveat.expected and execveat-v.expected.
37281 * tests/.gitignore: Add execveat.
37286 * tests/execve.c: New file.
37287 * tests/execve.expected: Likewise.
37288 * tests/execve-v.expected: Likewise.
37289 * tests/execve.test: New test.
37290 * tests/Makefile.am (check_PROGRAMS): Add execve.
37291 (TESTS): Add execve.test.
37292 (EXTRA_DIST): Add execve.expected and execve-v.expected.
37293 * tests/.gitignore: Add execve.
37305 * tests/bpf.c: New file.
37306 * tests/bpf.test: New test.
37307 * tests/Makefile.am (check_PROGRAMS): Add bpf.
37308 (TESTS): Add bpf.test.
37309 * tests/.gitignore: Add bpf.
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.
37329 2015-07-22 Dmitry V. Levin <ldv@altlinux.org>
37331 tests/uid: import uid overflow check from tests/uid16.
37332 * tests/uid.c (main): Skip if the uid returned by getuid matches
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.
37372 tests/ip_mreq: skip if basic setsockopt operations fail.
37373 * tests/ip_mreq.c (main): Return 77 if basic
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.
37381 * tests/Makefile.am (filter_unavailable_LDFLAGS): Rename to
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>
37589 * tests/ipc_msg.c (main): Update msgctl IPC_RMID regexp.
37590 * tests/ipc_shm.c (main): Update shmctl IPC_RMID regexp.
37681 2015-07-18 Elvira Khabirova <lineprinter0@gmail.com>
37683 tests: add sigaltstack.test.
37684 * tests/sigaltstack.c: New file.
37685 * tests/sigaltstack.expected: Likewise.
37686 * tests/sigaltstack.test: New test.
37687 * tests/Makefile.am (check_PROGRAMS): Add sigaltstack.
37688 (TESTS): Add sigaltstack.test.
37690 * tests/.gitignore: Add sigaltstack.
37693 * bootstrap: Delete tests-m32 and tests-mx32 directories
37696 2015-07-18 Dmitry V. Levin <ldv@altlinux.org>
37783 2015-07-17 Dmitry V. Levin <ldv@altlinux.org>
37809 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37888 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37890 tests/uid.test: adopt for alpha.
37893 * tests/uid.awk (BEGIN): Update getuid regexp to match both getuid
37895 * tests/uid.c (main): Allow __NR_getxuid as an alternative
37897 * tests/uid.test: If getuid syscall is not available, probe for
37900 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37923 tests: add utime.test.
37924 * tests/utime.c: New file.
37925 * tests/utime.test: New test.
37926 * tests/Makefile.am (check_PROGRAMS): Add utime.
37927 (TESTS): Add utime.test.
37928 * tests/.gitignore: Add utime.
37936 2015-07-15 Dmitry V. Levin <ldv@altlinux.org>
37948 tests: add xattr.test.
37949 * tests/xattr.c: New file.
37950 * tests/xattr.expected: Likewise.
37951 * tests/xattr.test: New test.
37952 * tests/Makefile.am (check_PROGRAMS): Add xattr.
37953 (TESTS): Add xattr.test.
37955 * tests/.gitignore: Add xattr.
37957 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37986 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37994 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
38006 2015-07-13 Dmitry V. Levin <ldv@altlinux.org>
38015 2015-07-12 Elvira Khabirova <lineprinter0@gmail.com>
38042 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38053 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38060 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38071 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38082 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
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>
38111 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38125 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
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>
38174 with RVAL_DECODED bit set, record this value in tcp->sys_func_rval
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>
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>
38273 tests: skip stat32 test if struct stat is defined incorrectly.
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.
38279 * tests/stat.c (main) [NR_stat]: Return 77 if st_mode is 0.
38281 2015-06-17 Dmitry V. Levin <ldv@altlinux.org>
38319 2015-06-16 Dmitry V. Levin <ldv@altlinux.org>
38334 2015-06-08 Dmitry V. Levin <ldv@altlinux.org>
38342 * tests/ip_mreq.c: New file.
38343 * tests/ip_mreq.expected: Likewise.
38344 * tests/ip_mreq.test: New test.
38345 * tests/Makefile.am (check_PROGRAMS): Add ip_mreq.
38346 (TESTS): Add ip_mreq.test.
38348 * tests/.gitignore: Add ip_mreq.
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>
38379 * tests/bexecve.test: Update patterns.
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.
38435 * tests/ioctl.expected: Check VIDIOC_ENUMINPUT decoding.
38437 Reported-by: Philippe De Muyter <phdm@macqel.be>
38439 2015-05-21 Dmitry V. Levin <ldv@altlinux.org>
38445 2015-05-21 Philippe De Muyter <phdm@macqel.be>
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>
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>.
38500 This fixes Debian bug #780992.
38502 2015-04-14 Dmitry V. Levin <ldv@altlinux.org>
38504 tests: fix bexecve.test for the case of mixed personalities.
38508 * tests/bexecve.test: Use "set_ptracer_any" instead of "sh".
38511 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38513 tests: add a test for "resuming interrupted nanosleep"
38514 * tests/restart_syscall.test: New test.
38515 * tests/restart_syscall.expected: New file.
38516 * tests/restart_syscall_unknown.expected: Likewise.
38517 * tests/Makefile.am (TESTS): Add restart_syscall.test.
38523 tests: strip executable bit from *.expected files.
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>
38554 tests: workaround old gawk versions that do not provide @include support
38555 Some of our tests use GNU awk @include extension, but not all currently
38556 used versions of GNU awk support it. Skip these tests if gawk does not
38559 * tests/init.sh (check_gawk): New function.
38562 2015-04-06 Dmitry V. Levin <ldv@altlinux.org>
38564 tests: rewrite umovestr2.test without using grep.
38569 * tests/umovestr2.test: Use match_diff instead of match_grep.
38570 * tests/umovestr2.c (main): Convert output from regexp to plain text.
38572 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38586 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38590 * tests/umovestr.c: New file.
38591 * tests/umovestr2.c: Likewise.
38592 * tests/umovestr.expected: Likewise.
38593 * tests/umovestr.test: New test.
38594 * tests/umovestr2.test: Likewise.
38595 * tests/Makefile.am (check_PROGRAMS): Add umovestr and umovestr2.
38596 (TESTS): Add umovestr.test and umovestr2.test.
38598 * tests/.gitignore: Add umovestr and umovestr2.
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>
38625 * linux/ubi-user.h: Likewise.
38627 2015-03-30 Dmitry V. Levin <ldv@altlinux.org>
38637 2015-03-28 Felix Janda <felix.janda@posteo.de>
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>
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>
38710 This change deletes personality 1. Now sparc is an one-personality
38711 arch, and sparc64 is a two-personality one.
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>
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>
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>
38842 * tests/pipe.c: New file.
38843 * tests/pipe.expected: New file.
38844 * tests/pipe.test: New test.
38845 * tests/Makefile.am (check_PROGRAMS): Add pipe.
38846 (TESTS): Add pipe.test.
38848 * tests/.gitignore: Add pipe.
38850 2015-03-22 Dmitry V. Levin <ldv@altlinux.org>
38856 2015-03-21 Denys Vlasenko <dvlasenk@redhat.com>
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.
38912 * tests/mmap.c: New file.
38913 * tests/mmap64.c: New file.
38914 * tests/mmap.test: New test.
38915 * tests/mmap64.test: New test.
38916 * tests/Makefile.am (check_PROGRAMS): Add mmap and mmap64.
38918 (TESTS): Add mmap.test and mmap64.test.
38919 * tests/.gitignore: Add mmap and mmap64.
38927 2015-03-19 Dmitry V. Levin <ldv@altlinux.org>
38929 tests: add a test for SECCOMP_MODE_FILTER decoding.
38930 * tests/seccomp.c: New file.
38931 * tests/seccomp.test: New test.
38932 * tests/Makefile.am (check_PROGRAMS): Add seccomp.
38933 (TESTS): Add seccomp.test.
38934 * tests/.gitignore: Add seccomp.
38936 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38938 tests: factor out common awk code.
38939 Factor out awk code used in several tests to match.awk.
38941 * tests/match.awk: New file.
38942 * tests/Makefile.am (EXTRA_DIST): Add it.
38943 * tests/caps.awk: Use it.
38944 * tests/getdents.awk: Likewise.
38945 * tests/getrandom.awk: Likewise.
38946 * tests/select.awk: Likewise.
38947 * tests/sigaction.awk: Likewise.
38948 * tests/init.sh (match_awk): Use gawk not awk. Define AWKPATH.
38949 * tests/getdents.test: Likewise.
38951 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38953 tests: skip netlink based tests when resources are not available.
38954 * tests/netlink_inet_diag.c (main): Return 77 if socket, bind,
38956 * tests/netlink_unix_diag.c (main): Likewise.
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>
38975 tests: factor out common shell code to functions.
38976 Factor out shell code used in several tests to common functions.
38978 * tests/fanotify_mark.expected: New file.
38979 * tests/ioctl.expected: New file.
38980 * tests/net-fd.expected: New file.
38981 * tests/net.expected: New file.
38982 * tests/statfs.expected: New file.
38983 * tests/sun_path.expected: New file.
38984 * tests/uio.expected: New file.
38985 * tests/ipc.sh: New file.
38986 * tests/Makefile.am (EXTRA_DIST): Add them.
38987 * tests/init.sh (dump_log_and_fail_with, run_prog,
38990 * tests/*.test: Use them.
38992 2015-03-18 Elliott Hughes <enh@google.com>
39000 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39002 tests/uid*: use fchown* instead of chown*
39006 * tests/uid.test: Use fchown instead of chown.
39007 * tests/uid.c: Test __NR_fchown instead of __NR_chown.
39009 * tests/uid32.c: Test __NR_fchown32 instead of __NR_chown32.
39011 * tests/uid16.c: Test __NR_fchown and __NR_fchown32 instead
39014 * tests/uid.awk: Update regexp.
39016 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39018 stat64-v.test: add newfstatat syscall support.
39022 * tests/stat.c (STAT_FNAME): Rename to STAT_PREFIX. Update callers.
39026 Reported-by: Andreas Schwab <schwab@suse.de>
39028 2015-03-16 Andreas Schwab <schwab@suse.de>
39033 tests: verify that all patterns match.
39034 * tests/ipc_msg.test: Count matches to verify that all patterns match.
39035 * tests/ipc_sem.test: Likewise.
39036 * tests/ipc_shm.test: Likewise.
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.
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>
39059 * tests/ipc_sem.c (main): Optionally match indirection
39062 Reported-by: Andreas Schwab <schwab@suse.de>
39064 2015-03-16 Andreas Schwab <schwab@suse.de>
39066 tests/ipc_*: match IPC_64 flag.
39067 * tests/ipc_msg.c (main): Optionally match "IPC_64|" in the third
39069 * tests/ipc_sem.c (main): Likewise.
39070 * tests/ipc_shm.c (main): Likewise.
39072 2015-03-16 Andreas Schwab <schwab@suse.de>
39077 * tests/ipc_sem.c (main): Properly use union semun as argument of
39079 * tests/ipc_sem.test: Revert last change.
39081 2015-03-16 Andreas Schwab <schwab@suse.de>
39093 2015-03-12 Andreas Schwab <schwab@suse.de>
39095 tests/select.test: handle architectures using pselect6 syscall.
39096 * tests/select.awk (BEGIN): Update regexps to match both select
39098 * tests/select.test: Probe for both select and pselect6 syscall.
39107 2015-03-12 Andreas Schwab <schwab@suse.de>
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.
39125 2015-03-06 Dmitry V. Levin <ldv@altlinux.org>
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>
39190 * tests/sigreturn.c: Use ASM_SIGRTMIN instead of hardcoded value.
39191 Use lower RT_* numbers to support pre-3.18 hppa kernels.
39192 * tests/sigreturn.test: Update regexp.
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.
39232 * tests/sigreturn.c: ... new file.
39233 * tests/sigreturn.test: New test.
39234 * tests/Makefile.am (check_PROGRAMS): Add sigreturn.
39235 (TESTS): Add sigreturn.test.
39236 * tests/.gitignore: Add sigreturn.
39238 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39253 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39285 for non-i386 personalities.
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>
39333 debian: update control file.
39334 * debian/control (strace, strace-udeb): Add mips64 and mips64el
39338 This fixes Debian bug #773375.
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.
39344 * debian/control: Likewise.
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.
39353 This fixes Debian bug #734554.
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>
39370 tests: skip ipc_sem.test on broken kernels.
39374 * tests/ipc_sem.c (main): Change 99 to 77.
39376 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39378 tests: skip pc.test on s390.
39383 * tests/pc.c (main): Return 77 on s390 systems.
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>
39431 tests/uid16: skip if real uid is larger than 16bit.
39432 * tests/uid16.c (main): Skip if the uid returned by getuid matches
39435 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39437 tests: fix uid tests on big endian architectures.
39438 * tests/uid.c (main): Ignore uids returned by getresuid to avoid
39441 * tests/uid16.c (main): Likewise.
39442 * tests/uid32.c (main): Change real UID instead of effective UID
39444 * tests/uid.awk: Update setresuid regexp.
39446 Reported-by: Mike Frysinger <vapier@gentoo.org>
39448 2015-03-01 Mike Frysinger <vapier@gentoo.org>
39450 tests/getdents: handle older getdents calls.
39455 * tests/getdents.awk (d_type_dir, d_type_reg): Accept DT_UNKNOWN.
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>
39516 tests/ipc_sem: detect broken kernels.
39517 When running 32bit ipc tests on ppc/sparc with a 64bit kernel, the ipc
39520 * tests/ipc_sem.c: Return 99 when errno is EFAULT.
39521 * tests/ipc_sem.test: Save output to $OUT and show it when failing.
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>
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>
39563 tests: robustify pc.test.
39564 * configure.ac: Check for dladdr in -ldl.
39565 * tests/Makefile.am (pc_LDADD): Adde $(dl_LIBS).
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.
39574 * tests/select.awk: Drop _newselect support.
39575 * tests/select.test: Skip if select syscall is not supported.
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>
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>
39680 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39689 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39696 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39700 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39707 This change removes all code that implemented post-execve SIGTRAP
39708 handling and fork/vfork/clone->CLONE_PTRACE substitution.
39732 * tests/ptrace_setoptions.test: Remove.
39733 * tests/Makefile.am (TESTS): Remove it.
39735 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39737 tests: robustify pc.test.
39738 * tests/pc.c (main): Unmap larger memory region.
39740 * tests/pc.test: Update regexps to take CLD_DUMPED child process
39743 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39745 tests: fix "make dist" regression.
39746 * tests/Makefile.am (EXTRA_DIST): Add getrandom.awk.
39748 tests: workaround broken awk.
39749 * tests/getdents.out: New file.
39750 * tests/Makefile.am (EXTRA_DIST): Add it.
39751 * tests/getdents.test: Check whether awk is capable of matching long
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>
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>
39884 2015-02-22 Dmitry V. Levin <ldv@altlinux.org>
39894 * tests/Makefile.am (AM_CPPFLAGS): Define.
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
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
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>
40030 * tests/pc.c: New file.
40031 * tests/pc.test: New test.
40032 * tests/Makefile.am (check_PROGRAMS): Add pc.
40033 (TESTS): Add pc.test.
40034 * tests/.gitignore: Add pc.
40045 (get_syscall_args) [MIPS]: Use mips_REG_A[0-5].
40054 tests: support alternative names of select syscall.
40055 * tests/select.awk: Recognize "_newselect" as another name of "select".
40056 * tests/select.test: Try alternative names of select syscall.
40058 2015-02-15 Dmitry V. Levin <ldv@altlinux.org>
40068 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40076 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40088 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
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>
40238 2015-02-08 Bart Van Assche <bart.vanassche@sandisk.com>
40247 2015-02-08 Dmitry V. Levin <ldv@altlinux.org>
40249 tests: extend getdents to support all filesystems regardless of file order
40250 * tests/getdents.awk: Include all 6 possible permutations of 3
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.
40290 * tests/bexecve.test: New test.
40291 * tests/Makefile.am (TESTS): Add it.
40293 -b execve: do not use struct tcb after detach.
40296 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40308 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40317 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40323 * test/README: Mention ../tests/.
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>
40405 * tests/getrandom.c: New file.
40406 * tests/getrandom.awk: New file.
40407 * tests/getrandom.test: New test.
40408 * tests/Makefile.am (check_PROGRAMS): Add getrandom.
40409 (TESTS): Add getrandom.test.
40411 * tests/.gitignore: Add getrandom.
40413 2015-02-04 Dmitry V. Levin <ldv@altlinux.org>
40415 tests: add a test for select syscall decoding.
40421 * tests/select.c: ... new file.
40422 * tests/select.awk: New file.
40423 * tests/select.test: New test.
40424 * tests/Makefile.am (check_PROGRAMS): Add select.
40425 (TESTS): Add select.test.
40427 * tests/.gitignore: Add select.
40429 2015-02-01 Dmitry V. Levin <ldv@altlinux.org>
40431 tests: add a test for the latest dumpio fix.
40432 * tests/dumpio.expected: New file.
40433 * tests/unix-pair-send-recv.c: New file.
40434 * tests/dumpio.test: New test.
40435 * tests/Makefile.am (check_PROGRAMS): Add unix-pair-send-recv.
40436 (TESTS): Add dumpio.test.
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.
40469 * tests/sun_path.test: New test.
40470 * tests/Makefile.am (TESTS): Add it.
40473 * net.c (printsock): If sockaddr_un.sun_path is not NUL-terminated,
40480 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
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>
40560 * tests/getdents.test: Test it.
40561 * tests/getdents.awk: Update.
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.
40571 * tests/scm_rights.c: Update.
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>
40610 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40623 * tests/scm_rights.c (main): Pass one more descriptor to the receiver.
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.
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
40669 …AMS or MMTIMER_GETRES or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0x7fffd47f7338) = -1 ENOTTY (Inappropria…
40674 As some architectures override defaults that come from asm-generic/ and
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
40806 * Makefile.am: Remove all ioctlent-related definitions.
40815 * HACKING-scripts: Update for ioctlent.sh -> ioctls_gen.sh migration.
40818 and linux/mmtimer.h for tests.
40819 * tests/ioctl.c: New file.
40820 * tests/ioctl.test: New test.
40821 * tests/Makefile.am (check_PROGRAMS): Add ioctl.
40822 (TESTS): Add ioctl.test.
40823 * tests/.gitignore: Add ioctl.
40825 2015-01-21 Gabriel Laskar <gabriel@lse.epita.fr>
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>
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>
40930 tests: add IPC_STAT to ipc tests, workaround limitiations of old kernels
40931 * tests/ipc_msg.c: Include <errno.h>.
40933 * tests/ipc_sem.c: Include <errno.h>.
40935 * tests/ipc_shm.c: Include <errno.h>.
40943 tests: skip sendmmsg/recvmmsg test if these syscalls are not implemented in kernel
40944 * tests/mmsg.c: #include <errno.h>
40947 tests: skip ip network tests when the network is not functional.
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
40953 tests: handle the case when all 64 process capability bits are set.
40954 * tests/caps.awk: Handle the case when all bits of 64-bit capability
40957 tests: explicitly request gawk when using gawk features.
40958 * tests/uid.test: Check for gawk availability and invoke gawk instead of
40961 tests: skip detach tests if kill does not work.
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).
41015 tests: portability fixes.
41016 * tests/stat.test: dd obs= is not portable, use bs= instead.
41017 * tests/stat32-v.test: Likewise.
41018 * tests/stat64-v.test: Likewise.
41019 * tests/net.test: Use $* instead of $@ in the quoted string.
41020 * tests/net-fd.test: Likewise.
41021 * tests/statfs.test: Quote { and } in regexps.
41022 * tests/caps.awk: Likewise.
41023 * tests/getdents.awk: Likewise.
41024 * tests/net-yy-accept.awk: Likewise.
41025 * tests/net-yy-connect.awk: Likewise.
41026 * tests/sigaction.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
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>
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.
41300 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41309 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41316 tests: add tests for ipc syscalls decoding.
41317 * tests/ipc_msg.c: New file.
41318 * tests/ipc_sem.c: Likewise.
41319 * tests/ipc_shm.c: Likewise.
41320 * tests/ipc_msg.test: New test.
41321 * tests/ipc_sem.test: Likewise.
41322 * tests/ipc_shm.test: Likewise.
41323 * tests/Makefile.am (check_PROGRAMS): Add ipc_msg, ipc_sem, and ipc_shm.
41324 (TESTS): Add ipc_msg.test, ipc_sem.test, and ipc_shm.test.
41325 * tests/.gitignore: Add ipc_msg, ipc_sem, and ipc_shm.
41327 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41338 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
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.
41374 * tests/fanotify_mark.c: New file.
41375 * tests/fanotify_mark.test: New test.
41376 * tests/Makefile.am (check_PROGRAMS): Add fanotify_mark.
41377 (TESTS): Add fanotify_mark.test.
41378 * tests/.gitignore: Add fanotify_mark.
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>
41410 * tests/netlink_unix_diag.c: Likewise.
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>
41423 tests: fix build with fresh glibc.
41424 * tests/netlink_unix_diag.c: Include <stdint.h>.
41426 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41436 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41438 tests: fix distcheck.
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
41458 file.c: fix 32-bit stat decoding on 64-bit architectures.
41520 * file.c (realprintstat): Adjust format strings so that all 64-bit
41525 tests: cleanup stat.test.
41526 * tests/stat.test: Rewrite in a more readable way.
41528 tests: check verbose decoding of 32-bit and 64-bit struct stat.
41529 * tests/stat.c: New file.
41530 * tests/stat32.c: Likewise.
41531 * tests/stat32-v.test: New file.
41532 * tests/stat64-v.test: Likewise.
41533 * tests/Makefile.am (check_PROGRAMS): Add stat and stat32.
41535 (TESTS): Add stat32-v.test and stat64-v.test.
41536 * tests/.gitignore: Add stat and stat32.
41538 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
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
41563 socket addresses, so that these tests could be safely run in parallel.
41565 * tests/net-accept-connect.c: Parametrize unix domain socket address.
41566 * tests/net-fd.test: Pass socket address to net-accept-connect.
41567 * tests/net.test: Likewise.
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>
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
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
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>
41642 tests: robustify unix domain socket decoding test.
41650 2014-12-25 Dmitry V. Levin <ldv@altlinux.org>
41652 tests: fix unix domain socket decoding availability test.
41656 * tests/netlink_unix_diag.c: New file.
41657 * tests/unix-yy.test: Use it.
41658 * tests/Makefile.am (check_PROGRAMS): Add it.
41659 * tests/.gitignore: Likewise.
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.
41667 * tests/Makefile.am (TESTS): Add it.
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:
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
41712 2014-12-16 Masatake YAMATO <yamato@redhat.com>
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.
41756 * tests/uid16.c: Likewise.
41757 * tests/uid32.c: Test for getgroups32.
41758 * tests/uid.awk: Test for getgroups/getgroups32 decoding.
41759 * tests/uid.test: Trace getgroups/getgroups32 syscalls.
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.
41798 * tests/uid16.c: New file.
41799 * tests/uid16.test: New test.
41800 * tests/Makefile.am (CHECK_PROGRAMS): Add uid16.
41801 (TESTS): Add uid16.test.
41802 * tests/.gitignore: Add uid16.
41804 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
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>
41840 tests/uid.awk: rewrite in a more maintainable style.
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".
41852 * tests/uid.awk: New file.
41853 * tests/uid.c: New file.
41854 * tests/uid32.c: Likewise.
41855 * tests/uid.test: New test.
41856 * tests/uid32.test: Likewise.
41857 * tests/Makefile.am (CHECK_PROGRAMS): Add uid and uid32.
41858 (TESTS): Add uid.test and uid32.test.
41860 * tests/.gitignore: Add uid and uid32.
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
42172 * tests/caps.c: New file.
42173 * tests/caps.awk: New file.
42174 * tests/caps.test: New test.
42175 * tests/Makefile.am (CHECK_PROGRAMS): Add caps.
42176 (TESTS): Add caps.test.
42179 2014-12-06 Dmitry V. Levin <ldv@altlinux.org>
42181 Make parsers of capget and capset syscalls self-contained.
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>
42262 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42272 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42282 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
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>
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.
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>
42393 * tests/netlink_inet_diag.c (send_query, check_responses): Likewise.
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.
42461 * tests/mmsg.c: New file.
42462 * tests/mmsg.expected: New file.
42463 * tests/mmsg.test: New test.
42464 * tests/.gitignore: Add mmsg.
42465 * tests/Makefile.am (CHECK_PROGRAMS): Add mmsg.
42466 (TESTS): Add mmsg.test.
42469 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42484 2014-11-11 Masatake YAMATO <yamato@redhat.com>
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.
42516 2014-11-11 Dmitry V. Levin <ldv@altlinux.org>
42528 2014-11-11 Lubomir Rintel <lkundrak@v3.sk>
42531 While most of ioctl-related kernel headers are now exported by kernel's
42538 2014-11-04 Lubomir Rintel <lkundrak@v3.sk>
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>
42577 2014-11-04 Dmitry V. Levin <ldv@altlinux.org>
42586 2014-11-04 Dmitry V. Levin <ldv@altlinux.org>
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>
42610 $ ./strace -e write=all ip link change dev enp0s25 mtu 1501 > /dev/null
42618 $ ./strace -e read=all ip link show > /dev/null
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>
42690 2014-09-29 Dmitry V. Levin <ldv@altlinux.org>
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.
42704 * tests/net.test: Likewise.
42705 * tests/scm_rights-fd.test: Likewise.
42706 * tests/stat.test: Likewise.
42707 * tests/uio.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.
42712 * tests/netlink_inet_diag.c: Likewise.
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>
42737 * xlat/fsmagic.in: Sort by value and mark as not NULL-terminated.
42738 * tests/statfs.c: New file.
42739 * tests/statfs.test: New test.
42740 * tests/Makefile.am (check_PROGRAMS): Add statfs.
42742 (TESTS): Add statfs.test.
42743 * tests/.gitignore: Add statfs.
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
42765 * strace.1: Document -yy option.
42769 2014-09-17 Vicente Olivert Riera <vincent@gentoo.org>
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.
42870 * tests/getdents.awk: New file.
42871 * tests/getdents.test: New test.
42872 * tests/Makefile.am (TESTS): Add it.
42875 2014-09-10 Dmitry V. Levin <ldv@altlinux.org>
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>
42906 2014-08-19 Dmitry V. Levin <ldv@altlinux.org>
42908 maint: post-release administrivia.
42911 2014-08-15 Dmitry V. Levin <ldv@altlinux.org>
42915 * debian/changelog: 4.9-1.
42916 * strace.spec: 4.9-1.
42918 Sync strace.spec and debian/ with packages.
42919 * debian/changelog: Sync with 4.8-1.1.
42920 * debian/control: Likewise.
42921 * debian/rules: Likewise.
42922 * strace.spec: Sync with 4.8-5.
42926 2014-08-15 Mike Frysinger <vapier@gentoo.org>
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>
43005 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43007 tests: fix uio building w/out preadv/pwritev.
43010 tests and update uio.test to handle this.
43013 * tests/uio.c: Include config.h.
43015 * tests/uio.test: Check exit status of uio helper.
43017 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43019 tests: ignore *.tmp files.
43020 The tests like to generate random .tmp files, so ignore them.
43022 * tests/.gitignore: Add *.tmp.
43024 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43026 tests: fix shell errors in detach tests.
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>
43057 * tests/set_ptracer_any.c (main): Note prctl failures are ok.
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>
43073 where it inserts a restorer and a size. The current tests don't
43076 * tests/sigaction.awk: Support no SA_RESTORER and swapped args.
43078 2014-08-09 Mike Frysinger <vapier@gentoo.org>
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>
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>
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.
43263 * tests/count.test: Allow nanosleep to spend a bit less time than 1 second.
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>
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.
43292 This fixes Debian bug #443895.
43294 debian: enable security hardening features.
43295 * debian/rules: Follow the advice in https://wiki.debian.org/Hardening
43299 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43301 debian: update control file.
43302 * debian/control (strace64): Fix a typo in package description.
43304 (strace, strace-udeb): Add x32 to architecture list.
43306 (strace, strace-udeb): Add or1k to architecture list.
43307 Patch by Christian Svensson <debian@cmd.nu>.
43308 (strace, strace-udeb): Add arm64 to architecture list,
43310 Patch by Wookey <wookey@debian.org>.
43312 This fixes Debian bugs: #697625, #727018, #742235, #749956.
43314 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43317 $ groff -ww -mandoc -z strace.1
43321 Change remaining '-' as minus to '\-'.
43325 This fixes Debian bug #725987.
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>
43356 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43377 2014-05-30 Masatake YAMATO <yamato@redhat.com>
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>
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>
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>
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.
43672 * tests/scm_rights.c (main): Send zero integer to avoid issues with
43674 * tests/scm_rights-fd.test: Update grep patterns.
43679 * tests/scm_rights.c: New file.
43680 * tests/scm_rights-fd.test: New test.
43681 * tests/Makefile.am (check_PROGRAMS): Add scm_rights.
43682 (TESTS): Add scm_rights-fd.test.
43683 * tests/.gitignore: Add scm_rights and uio.
43685 tests: add a test for -c and -w options.
43686 * tests/count.test: New test.
43687 * tests/Makefile.am (TESTS): Add it.
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>
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
43739 2014-05-13 Masatake YAMATO <yamato@redhat.com>
43747 2014-05-12 Dmitry V. Levin <ldv@altlinux.org>
43765 2014-04-17 Dmitry V. Levin <ldv@altlinux.org>
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.
43804 * tests/uio.c: New file.
43805 * tests/uio.test: New test.
43806 * tests/Makefile.am (check_PROGRAMS): Add uio.
43808 (TESTS): Add uio.test.
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
43831 2014-04-09 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
43899 2014-03-11 Masatake YAMATO <yamato@redhat.com>
43907 Acked-by: Mike Frysinger <vapier@gentoo.org>
43909 2014-03-11 Dmitry V. Levin <ldv@altlinux.org>
43918 2014-03-11 Dmitry V. Levin <ldv@altlinux.org>
43933 2014-03-10 Elliott Hughes <enh@google.com>
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>
43993 To correctly decode a 32-bit process' s struct stat64 we need
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>
44049 * tests/sigaction.c (main): Add a test with almost filled signal mask.
44050 * tests/sigaction.awk: Update.
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>
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>
44098 tests: tighten sigaction check.
44099 * tests/sigaction.awk: Check that input conatins all expected lines.
44101 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44103 Fix sigaction reporting on non-x86 architectures.
44111 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
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
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>
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>
44302 tests: rename all tests so that their names end in .test suffix.
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.
44309 * tests/net: Rename to net.test.
44310 * tests/ptrace_setoptions: Rename to ptrace_setoptions.test.
44311 * tests/qual_syscall: Rename to qual_syscall.test.
44312 * tests/sigaction.sh: Rename to sigaction.test.
44313 * tests/stat: Rename to stat.test.
44314 * tests/strace-f: Rename to strace-f.test.
44315 * tests/Makefile.am (TESTS): Update.
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>
44339 big endian and x86-64.
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.
44362 * tests/sigaction.c: New file.
44363 * tests/sigaction.awk: Likewise.
44364 * tests/sigaction.sh: New test.
44365 * tests/Makefile.am (check_PROGRAMS): Add sigaction.
44366 (TESTS): Add sigaction.sh.
44368 * tests/.gitignore: Add sigaction.
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>
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>
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>
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>
44509 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44515 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44524 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
44590 2013-11-05 Dmitry V. Levin <ldv@altlinux.org>
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
44642 2013-09-11 Vineet Gupta <Vineet.Gupta1@synopsys.com>
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>
44676 * linux/mips/syscallent-o32.h: Set the number of sync_file_range
44679 2013-09-11 Mike Frysinger <vapier@gentoo.org>
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>
44740 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44750 sys_sigprocmask: print_sigset -> print_sigset_addr_len(current_wordsize),
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>
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>
44821 2013-07-16 Denys Vlasenko <dvlasenk@redhat.com>
44824 This includes decoding of 32-bit sigreturn by 64-bit strace,
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>
44924 2013-07-01 Denys Vlasenko <dvlasenk@redhat.com>
44930 Remove ia64-specific printing of current address on signal delivery.
44931 The address is printed anyway by printleader() if -i is active.
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>
44951 POWERPC: read ppc_regs.nip if -i.
44960 2013-06-26 Anton Blanchard <anton@samba.org>
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>
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>
45052 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45057 Verified that all tests/detach* tests work in both SEIZE and !SEIZE
45066 2013-06-19 Dmitry V. Levin <ldv@altlinux.org>
45068 tests: disable /proc based checks when /proc is not mounted.
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>
45082 tests: ensure that strace can detach from running processes.
45083 * tests/detach-running: New test.
45084 * tests/Makefile.am (TESTS): Add it.
45086 tests: ensure that strace does not leave sleeping processes stopped.
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.
45095 tests: parametrize "sleep 1"
45096 * tests/init.sh (SLEEP_A_BIT): New variable.
45097 * tests/detach-sleeping: Use it.
45098 * tests/detach-stopped: Likewise.
45100 tests: ensure that strace can detach from sleeping and stopped processes
45101 * tests/set_ptracer_any.c: New file.
45102 * tests/detach-sleeping: New test.
45103 * tests/detach-stopped: Likewise.
45104 * tests/Makefile.am (check_PROGRAMS): Add set_ptracer_any.
45105 (TESTS): Add detach-sleeping and detach-stopped.
45106 * tests/.gitignore: Add set_ptracer_any.
45108 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45110 tests: enhance timeout checks.
45113 * tests/run.sh: New file.
45114 * tests/Makefile.am (EXTRA_DIST, LOG_COMPILER): Add it.
45115 * tests/init.sh (check_strace, check_timeout): Remove.
45116 * tests/detach-stopped: Update callers.
45117 * tests/net: Likewise.
45118 * tests/ptrace_setoptions: Likewise.
45119 * tests/qual_syscall: Likewise.
45120 * tests/stat: Likewise.
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.
45129 * tests/Makefile.am (CLEANFILES): Calculate dynamically from TESTS.
45130 * tests/init.sh (LOG): New variable.
45131 * tests/detach-stopped: Use it.
45132 * tests/net: Likewise.
45133 * tests/qual_syscall: Likewise.
45134 * tests/stat: Likewise.
45135 * tests/strace-f: Likewise.
45137 2013-06-18 Denys Vlasenko <dvlasenk@redhat.com>
45144 2013-06-05 Dmitry V. Levin <ldv@altlinux.org>
45146 maint: post-release administrivia.
45149 2013-06-03 Dmitry V. Levin <ldv@altlinux.org>
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>
45206 2013-05-17 Mike Frysinger <vapier@gentoo.org>
45218 2013-05-17 Dmitry V. Levin <ldv@altlinux.org>
45220 Sync strace.spec and debian/ with packages.
45221 * debian/changelog: Sync with 4.7-1.
45222 * debian/strace.docs: Likewise.
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.
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,
45293 2013-05-10 Dmitry V. Levin <ldv@altlinux.org>
45296 * linux/mips/syscallent-n64.h: Add entries for get_mempolicy,
45302 * linux/mips/syscallent-n32.h: Add entries for mbind, get_mempolicy,
45308 2013-05-08 Dmitry V. Levin <ldv@altlinux.org>
45318 * linux/mips/syscallent-o32.h: Likewise.
45347 * linux/mips/syscallent-n32.h: Likewise.
45348 * linux/mips/syscallent-n64.h: Likewise.
45349 * linux/mips/syscallent-o32.h: Likewise.
45363 tests/net: fix portability issues.
45364 * tests/net-accept-connect.c: Fix address length passed to bind()
45366 * tests/net: Update regexps.
45368 tests: add a test for basic network syscalls.
45369 * tests/.gitignore: Add net-accept-connect, *.o and *.log.*.
45370 * tests/Makefile.am (AM_CFLAGS): New variable.
45371 (check_PROGRAMS): Add net-accept-connect.
45372 (TESTS): Add net.
45373 * tests/net-accept-connect.c: New file.
45374 * tests/net: New file.
45376 tests: do not skip tests when timeout utility is not available.
45377 * tests/init.sh (check_timeout): New function.
45378 * tests/ptrace_setoptions: Use it.
45379 * tests/qual_syscall: Likewise.
45380 * tests/stat: Likewise.
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>
45430 2013-05-07 James Hogan <james.hogan@imgtec.com>
45439 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45449 * linux/mips/syscallent-n32.h: Likewise.
45450 * linux/mips/syscallent-n64.h: Likewise.
45459 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45470 * linux/mips/syscallent-n32.h: Likewise.
45471 * linux/mips/syscallent-n64.h: Likewise.
45482 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45498 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45508 * linux/mips/syscallent-n32.h: Likewise.
45509 * linux/mips/syscallent-n64.h: Likewise.
45517 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
45651 tests/stat: enhance regexps.
45652 * tests/stat: Enhance regexps that check tracing of stat/stat64 and
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
45663 all stat tests, since the number of \(foo\)\? expressions was becoming
45666 * tests/stat: Update stat/stat64 check regexp to handle architectures
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>
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>
45700 2013-05-06 Mike Frysinger <vapier@gentoo.org>
45709 2013-05-05 Mike Frysinger <vapier@gentoo.org>
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>
45739 2013-05-03 Dmitry V. Levin <ldv@altlinux.org>
45744 arm, aarch64, ppc: fix printllval-based decoders.
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>
45775 * test/Makefile: Declare all tests in a PROGS var.
45782 2013-05-02 Mike Frysinger <vapier@gentoo.org>
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>
45806 tests: stat: fix clean up of sample file.
45807 * tests/stat: Also rm the sample file at the end of the test.
45811 * tests/.gitignore: Ignore test logs.
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.
45822 * tests/stat: New test.
45823 * tests/Makefile.am (TESTS): Add stat.
45825 2013-05-01 Dmitry V. Levin <ldv@altlinux.org>
45827 x32: fix build regressions introduced by commit v4.7-96-g8435d67.
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>
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>
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
45981 64-bit types.
45989 2013-03-20 Dmitry V. Levin <ldv@altlinux.org>
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>
46017 2013-03-18 Dmitry V. Levin <ldv@altlinux.org>
46030 2013-03-18 Maxin B. John <maxin.john@enea.com>
46032 tests: relax check_prog to allow timeout command provided by busybox.
46033 Busybox version of timeout doesn't have --version option.
46036 * tests/init.sh (check_prog): Use type builtin to check program
46039 2013-03-18 Dmitry V. Levin <ldv@altlinux.org>
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()
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)
46123 By open-coding ctype checks (we have only 4 of them)
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>
46147 2013-03-05 Dmitry V. Levin <ldv@altlinux.org>
46158 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
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>
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>
46206 nfsservctl appears to be set to sys_ni_syscall in asm-generic/unistd.h
46223 2013-03-01 Denys Vlasenko <vda.linux@googlemail.com>
46227 2013-03-01 Dmitry V. Levin <ldv@altlinux.org>
46229 Fix trace=set regression introduced by commit v4.7-111-g9cbc15b.
46232 * tests/qual_syscall: New test.
46233 * tests/Makefile.am (TESTS): Add qual_syscall.
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.
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")
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>
46344 When dumpstr was changed to use on-stack buffer, the bug reared its ugly head.
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
46370 names in one-personality arches to their corresponding <foo>0 arrays,
46377 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
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>
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.
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>
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>
46535 And while using it, I discovered that -D doesn't work too well
46538 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46586 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46594 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46633 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46636 * mem.c (sys_mmap): Ensure unsigned expansion of tcp->u_arg[5].
46638 Use tcp->ext_arg[5] as offset for X32.
46649 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46660 (printllval): Add compile-time error check for using wrong
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
46687 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46696 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46708 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
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.
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>
46796 2013-02-14 Christian Svensson <blue@cmd.nu>
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>
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>
46879 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46883 I can't run-test it, but from code inspection it seems to be correct.
46887 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46895 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
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.
46914 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46917 X32's return value is 64-bit. We were truncating it to 32-bit long
46918 before checking for -errno.
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>
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)
46980 …_sysctl({{CTL_NET, NET_IPV4, NET_IPV4_LOCAL_PORT_RANGE, 38}, 3, NULL, 0, 0x7fff8c0c91b0, 8) = -1 E…
46987 2013-02-08 Denys Vlasenko <vda.linux@googlemail.com>
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.
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>
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.
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>
47128 2013-02-05 Chris Metcalf <cmetcalf@tilera.com>
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>.
47163 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
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
47199 if available on the arch, instead of re-fetching it.
47205 2012-12-15 Stanislav Brabec <sbrabec@suse.cz>
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>
47331 asm-generic/unistd.h.
47333 2012-10-26 Steve McIntyre <steve.mcintyre@linaro.org>
47341 2012-10-26 Namhyung Kim <namhyung.kim@lge.com>
47343 Add -e trace=memory option.
47374 2012-09-28 Mike Frysinger <vapier@gentoo.org>
47383 2012-09-28 Dmitry V. Levin <ldv@altlinux.org>
47390 $ strace -o'|:' pwd
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>
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>
47452 2012-07-10 Denys Vlasenko <vda.linux@googlemail.com>
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>
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.
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>
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.
47577 * debian/changelog: 4.7-1.
47578 * strace.spec: 4.7-1.
47587 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47595 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47597 tests: raise strace check timeout to 60 seconds.
47598 * tests/init.sh (check_timeout): New variable.
47599 * tests/ptrace_setoptions: Use it.
47600 * tests/strace-f: Likewise.
47602 Reported-by: Mike Frysinger <vapier@gentoo.org>
47604 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47621 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
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>
47700 Sync strace.spec and debian/ with packages.
47701 * debian/changelog: Sync with 4.5.20-2.3.
47702 * debian/control: Likewise.
47703 * strace.spec: Sync with 4.6-2.
47705 2012-04-18 Mike Frysinger <vapier@gentoo.org>
47719 2012-04-18 H.J. Lu <hongjiu.lu@intel.com>
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>
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
47798 (sys_lseek): Use 64-bit version for X32.
47802 * mem.c (sys_mmap64): Also use tcp->u_arg for X32. Print NULL
47843 2012-04-16 H.J. Lu <hongjiu.lu@intel.com>
47845 Restore tcb::u_lrval; fix lseek on MIPS-n32.
47855 * syscall.c (get_error): Set u_lrval for MIPS-n32.
47858 2012-04-06 Mike Frysinger <vapier@gentoo.org>
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.
47877 expects the parent to continue on to do tests. Unfortunately, this
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
47887 2012-03-29 Denys Vlasenko <vda.linux@googlemail.com>
47891 2012-03-27 Anton Blanchard <anton@samba.org>
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>
47940 strace-log-merge: enhance usage error diagnostics.
47941 * strace-log-merge: Add --help option. Check number of arguments.
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
47974 2012-03-23 Denys Vlasenko <vda.linux@googlemail.com>
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>
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>
48043 Well, almost. That pesky pid-changing execve needs special treatment.
48046 While at it, fix a case of mishandled -C.
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.
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.
48106 2012-03-20 Dmitry V. Levin <ldv@altlinux.org>
48111 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48116 * ioctl.c (compare): Partially revert last change - the new
48119 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48130 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48134 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
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>
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>
48258 To simplify it more, drop define and just rename sys_lseek64 ->
48268 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48274 non-underscored ones. This is not consistent.
48287 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
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>
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>
48404 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48406 tests: robustify again buggy shells.
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>
48422 2012-03-15 Mike Frysinger <vapier@gentoo.org>
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.
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
48481 - not true anymore.
48484 - not true anymore.
48501 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48505 finer-grained checks such as "kernel >= 3.2.1".
48513 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
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.
48542 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
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>
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.
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.
48675 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48684 * strace.c (init): New function. Most of pre-existing code of
48688 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48696 2012-03-11 Dmitry V. Levin <ldv@altlinux.org>
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
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
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.
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.
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>
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
48971 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
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.
49001 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
49005 for non-Linux architectures.
49010 * strace.1: Modified: bugs should be reported to mailing list, not Debian.
49013 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
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.
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>
49102 This fixes Debian bug #653309.
49106 This fixes Debian bug #554946.
49111 This fixes Debian bug #656398.
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.
49151 2012-02-20 Dmitry V. Levin <ldv@altlinux.org>
49168 2012-02-14 Mike Frysinger <vapier@gentoo.org>
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>
49197 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49202 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
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>
49239 2012-02-04 Dmitry V. Levin <ldv@altlinux.org>
49252 2012-02-03 Denys Vlasenko <vda.linux@googlemail.com>
49256 make -V and -h sit on separate lines (hard to see them otherwise).
49258 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
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.
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.
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>
49361 Result of "time strace -oLOG ls -l /usr/lib >/dev/null":
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>
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>
49494 (and robust - we don't depend on "no overwrote past NUL" behavior anymore)
49497 Allocate 1 byte more to outstr[] array - for NUL.
49505 2012-01-20 Denys Vlasenko <vda.linux@googlemail.com>
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>
49553 2012-01-18 Denys Vlasenko <dvlasenk@redhat.com>
49565 not (SIGTRAP | 0x80) - I wondered maybe that's when
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>
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.
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>
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>
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>
49798 2011-11-27 Dmitry V. Levin <ldv@altlinux.org>
49803 2011-11-26 Dmitry V. Levin <ldv@altlinux.org>
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>
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.
50206 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50208 Make out-of-memory handling more uniform.
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>
50247 Replace strintf() with open-coded binary to hex/oct conversions -
50259 2011-08-30 Denys Vlasenko <dvlasenk@redhat.com>
50262 * syscall.c (syscall_enter): Optimize tcp->u_arg[i] setting
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>
50314 2011-08-25 Denys Vlasenko <dvlasenk@redhat.com>
50331 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50335 On glibc, tprintf("%*s", col - curcol, "") is noticeably slow
50348 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
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.
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>
50434 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
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
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>
50488 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50492 It checks for post-execve SIGTRAP. It checks for changes
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
50525 [IA64, AVR32] Rewrite tcp->u_arg[] initialization using a loop.
50527 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
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
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>
50592 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50594 Fix -z display.
50596 open("qwerty", O_RDONLY) = -1 ENOENT
50598 was shown totally wrongly with -z:
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
50618 for TCB_INSYSCALL. Fix comments about post-execve SIGTRAP.
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>
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>
50742 I noticed that tcp->u_args[MAX_ARGS] array is way larger than
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,
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,
50786 avoid copying of tcp->u_arg.
50787 (sys_mmap): Add FIXME comment - SH64 and i386 seem to be handled
50791 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
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>
50827 2011-08-23 Dmitry V. Levin <ldv@altlinux.org>
50829 Fix PTRACE_SETOPTIONS tests.
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:
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*
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>
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>
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,
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.
50983 2011-07-19 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
51038 [SH]: Make register no array "const", pre-multiply it by 4.
51040 [X86_64]: Make register no array "const", pre-multiply it by 8.
51042 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51051 "tcp->u_nargs*sizeof..." -> "tcp->u_nargs * sizeof...".
51056 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51066 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51074 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
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>
51100 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51115 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51126 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51143 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51150 the behavior doesn't seem to be right: it means with -ff
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
51177 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51181 unti it returns. Moreover, out-of-memory error was exiting
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.
51227 2011-06-21 Denys Vlasenko <dvlasenk@redhat.com>
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>
51244 tests: finish ptrace_setoptions_* merge.
51245 * tests/Makefile.am (TESTS): Merge ptrace_setoptions_*.
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.
51258 Fix tests/ptrace_setoptions_* to match last fix in ptrace options code.
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>
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>
51348 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51351 * tests/ptrace_setoptions_for_all: New file.
51352 * tests/Makefile.am (TESTS): Add ptrace_setoptions_for_all.
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.
51364 * tests/Makefile.am (TESTS): Rename ptrace_setoptions to
51367 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51371 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51377 Reported-by: Denys Vlasenko <dvlasenk@redhat.com>
51379 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
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 -
51396 in this branch; load tcp->u_arg[1] into sigmask for display
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>
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.
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>
51604 2011-03-15 Dmitry V. Levin <ldv@altlinux.org>
51613 2011-03-14 Dmitry V. Levin <ldv@altlinux.org>
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>
51695 Enhance decoding of kernel-generated signals.
51697 zero-initialized fields.
51699 Fix decoding of user-generated signals.
51708 2011-03-05 Sebastian Pipping <sebastian@pipping.org>
51713 2011-03-04 Dmitry V. Levin <ldv@altlinux.org>
51741 2011-03-03 Sebastian Pipping <sebastian@pipping.org>
51751 2011-03-03 Dmitry V. Levin <ldv@altlinux.org>
51757 NULL-terminated.
51759 tests: avoid SIGPIPE.
51760 * tests/ptrace_setoptions: Replace "grep -q" with "grep > /dev/null".
51765 2011-03-01 Mike Frysinger <vapier@gentoo.org>
51767 tests: do not make missing /usr/bin/time a failure.
51768 * tests/init.sh (framework_skip_): New function.
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.
51778 * debian/watch: Update regexp.
51779 * .gitignore: Add strace-*.tar.xz.
51781 Use "make check" in debian/rules and strace.spec.
51782 * debian/control: Update Build-Depends.
51783 * debian/rules: Run "make check".
51786 Implement two basic "strace -f" tests.
51787 * Makefile.am (SUBDIRS): Add tests.
51788 * configure.ac (AC_CONFIG_FILES): Add tests/Makefile.
51789 * tests/.gitignore: New file.
51790 * tests/Makefile.am: Likewise.
51791 * tests/init.sh: Likewise.
51792 * tests/ptrace_setoptions: Likewise.
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>
51839 * Makefile.am (EXTRA_DIST): Add debian/source/format, debian/watch,
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>
51865 Sync debian/changelog and strace.spec with packages.
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>
51947 2011-02-18 Dmitry V. Levin <ldv@altlinux.org>
51955 2011-02-09 Dmitry V. Levin <ldv@altlinux.org>
51958 * syscall.c (dumpio): Switch on tcp->sys_func instead of tcp->scno
51964 2011-02-05 Dmitry V. Levin <ldv@altlinux.org>
51968 2011-01-19 Dmitry V. Levin <ldv@altlinux.org>
51983 2011-01-18 Mike Frysinger <vapier@gentoo.org>
51988 2011-01-17 Dmitry V. Levin <ldv@altlinux.org>
51992 This fixes Debian bug #599028.
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.
52047 This fixes Debian bug #589323.
52055 This fixes Debian bug #450953.
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>
52121 2010-12-03 Carmelo AMOROSO <carmelo.amoroso@st.com>
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>
52156 2010-11-30 Wang Chao <wang.chao@cn.fujitsu.com>
52167 * strace.c [LINUX] (test_ptrace_setoptions): New function, tests
52172 2010-09-17 Dmitry V. Levin <ldv@altlinux.org>
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>
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,
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>
52260 2010-09-09 Dmitry V. Levin <ldv@altlinux.org>
52263 * configure.ac: Enable gcc -Wwrite-strings.
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>
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>
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>
52410 32-bit personality.
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>
52461 2010-04-13 Dmitry V. Levin <ldv@altlinux.org>
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.
52473 * debian/rules: allow parallel building.
52474 * debian/rules: comment out verbose build, only needed for debugging.
52475 * debian/rules: clean up clean: target, dh_clean does most of the work
52477 * debian/rules: use *-stamp instead of stamp-*, so dh_clean can tidy
52480 2010-04-13 Heiko Carstens <heiko.carstens@de.ibm.com>
52487 2010-04-07 Dmitry V. Levin <ldv@altlinux.org>
52490 * linux/ioctlent.sh: Search in asm-generic directory as well.
52522 2010-04-07 Andreas Schwab <schwab@linux-m68k.org>
52544 2010-04-07 Dmitry V. Levin <ldv@altlinux.org>
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>
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>
52619 2010-02-04 Dmitry V. Levin <ldv@altlinux.org>
52643 2010-02-04 Frederik Schüler <fs@debian.org>
52645 Update debian/* files.
52646 * debian/control: add sparc64 to the architectures list.
52647 This closes Debian bug #560062
52649 This closes Debian bug #560516
52650 * debian/control: Update standards-version to 3.8.3.
52651 * debian/control: Lower package priority to optional, matching
52653 * debian/control: add ${misc:Depends} to Depends: lines where
52655 * debian/watch: new file, allows automatic tracking of new
52657 * debian/source/format: new file, adapt to debian source format "quilt"
52658 * debian/rules: indentation cleanups; use dh_testroot and dh_prep
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>
52719 2009-11-06 Dmitry V. Levin <ldv@altlinux.org>
52737 Fix check for linux/netlink.h on Linux 2.6.32-rc5+
52741 2009-11-04 Andreas Schwab <schwab@redhat.com>
52763 2009-11-03 Andreas Schwab <schwab@redhat.com>
52773 2009-10-27 Andreas Schwab <schwab@redhat.com>
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
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>
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>
52895 2009-10-07 Andreas Schwab <schwab@redhat.com>
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>
52915 2009-10-05 Frederik Schüler <fs@debian.org>
52917 Prepare debian/* files for release.
52918 * debian/rules: Do not ship ChangeLog anymore.
52919 * debian/control: Update to Debian standards version 3.8.1, and remove
52920 Roland from the Maintainers list. This closes Debian bug #521458.
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>
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>
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.
52965 * debian/compat: Set compatibility level to 7.
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>
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>
52998 sub-call. Besides the need to renumber all system calls, this poses
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.
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>
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.