• Home
  • Raw
  • Download

Lines Matching +full:ipv4 +full:- +full:config +full:- +full:causing +full:- +full:fallback +full:- +full:to +full:- +full:tcp

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>
28 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
30 2018-10-25 Dmitry V. Levin <ldv@altlinux.org>
33 Linux commit v4.19-rc2-5-g2ecefa0a15fd0ef88b9cd5d15ceb813008136431
40 2018-10-24 Dmitry V. Levin <ldv@altlinux.org>
44 introduced by Linux commit v4.19-rc7~24^2~1.
45 (ARM_FIRST_SHUFFLED_SYSCALL, SYS_socket_subcall): Raise from 400 to 500,
46 to make room for new syscalls.
51 2018-10-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
54 * linux/32/ioctls_inc_align16.h: Update from linux v4.19-rc8
64 maint: update for linux 4.19-rc8.
67 2018-10-24 Dmitry V. Levin <ldv@altlinux.org>
73 Linux kernel commit v4.19-rc1~137^2~248 introduced more of such
91 2018-09-27 Dmitry V. Levin <ldv@altlinux.org>
94 * linux/xtensa/syscallent.h (pkey_alloc): Change from 249 to 349.
96 2018-09-23 Dmitry V. Levin <ldv@altlinux.org>
98 xlat: print _IOC_NONE in symbolic form even if it is equal to 0.
99 On some architectures _IOC_NONE equals to 1, on others it is 0.
101 _IOC_NONE is printed in symbolic form even if it is equal to 0.
103 * xlat/ioctl_dirs.in (_IOC_NONE): Move to the head of the list.
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
123 that system macro contains signedness bugs that are not going to be fixed.
134 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
138 warning reported by clang -Wtautological-constant-out-of-range-compare.
140 build: enable gcc -Woverride-init and clang -Winitializer-overrides.
141 * m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Winitializer-overrides
142 and -Woverride-init.
144 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
151 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
155 ignore potential warnings reported by gcc -Woverride-init
156 and clang -Winitializer-overrides.
160 macros non-trivially defined for gcc >= 4.2 and clang >= 2.8.
161 * sock.c (print_ifreq): Use them to ignore warnings about overridden
166 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
168 tests: workaround clang -Wunneeded-internal-declaration bug.
170 to workaround clang -Wunneeded-internal-declaration bug.
173 to workaround clang -Wunneeded-internal-declaration bug.
177 2018-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
183 time: add xlat styles support to printclockname.
191 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
194 * tests/stack-fcall-3.c: Include <signal.h>.
196 * tests/stack-fcall.c (main): Remove arguments, call f0(0) and f0(1).
197 * tests/strace-k-demangle.expected: Update expected output.
198 * tests/strace-k.expected: Likewise.
199 * tests/strace-k.test: Rewrite pattern matching code.
201 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
203 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
211 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
213 xlat: provide fallback definitions for open_access_modes constants.
214 * xlat/open_access_modes.in: Add fallback values.
217 * xlat/resources.in: Declare as #value indexed, provide fallback values.
221 * nlattr.c (decode_nlattr_with_data): Apply NLA_TYPE_MASK to nla_type
224 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
230 currently it should be set to 0.
235 (decode_packet_diag_msg): Decode pdiag_num as an low-level protocol.
243 * tests/net-sockaddr.c (check_x25): New function.
244 (main): Use it to check X.25 socket address decoding.
262 * tests/net-sockaddr.c (AX25_ADDR): New macro.
264 (main): Use it to check AX.25 socket address decoding.
269 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
278 Closes: Linux commit v4.16-rc1~166^2^2~2
280 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
282 ioprio: move constant definitions to xlat.
283 * xlat/ioprio_class.in: Add fallback values.
291 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
294 In order to be able to obtain sanitised device name internally.
300 to get_ifname's output.
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>
331 (protocols): Add family and proto fields to the structure, call inet_get
333 (get_sockaddr_by_inode_uncached): Update protocols->get calls.
335 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
342 * tests/utimensat-Xabbrev.c: New file.
343 * tests/utimensat-Xraw.c: Likewise.
344 * tests/utimensat-Xverbose.c: Likewise.
346 * tests/pure_executables.list: Add utimensat-Xabbrev, utimensat-Xraw,
347 and utimensat-Xverbose.
349 * tests/gen_tests.in (utimensat-Xabbrev, utimensat-Xraw, utimensat-Xverbose): New
356 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
359 Commit v4.23~343 introduced xlat style argument to printflags_ex, but
361 which led to missing out fixing the sole external user of this
369 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
373 in order to respect xlat style setting.
375 xlat: provide fallback definitions for epollevents.
376 * xlat/epollevents.in: Provide fallback definitions, add EPOLLNVAL
377 constant (introduced by Linux commit v4.16-rc1~3^2~3).
379 xlat: provide fallback definitions to pollflags.
380 * xlat/pollflags.in: Add fallback definitions for POLLWRNORM,
383 xlat: provide fallback values for socktypes.
384 * xlat/socktypes.in: Provide fallback values.
386 xlat: provide fallback values to route_nexthop_flags.
387 * xlat/route_nexthop_flags.in: Add fallback values.
389 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
391 block: move fallback definitions for ioctl commands to xlat.
397 fallback definitions as those are porvided by block_ioctl_cmds xlat now.
399 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
407 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
409 xlat: add ability to specify a default string to print_xlat_ex.
410 In order to avoid dealing with xlat verbosity styles outside xlat code
420 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
423 Rename decode_ifla_inet6_token to decode_nla_in6_addr,
431 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
439 xlat: add SOL_XDP to socketlayers.in.
441 commit v4.18-rc1~114^2~304^2~4^2~14.
443 xlat: add AF_XDP to addrfams.in.
445 v4.18-rc1~114^2~304^2~4^2~14.
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
473 xlookup to auxstr if syserror(tcp) is false.
475 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
477 xlat: add BPF_PROG_TYPE_SK_REUSEPORT to bpf_prog_types.in.
479 introduced by Linux commit v4.19-rc1~140^2~24^2~2^2~5.
482 xlat: add IPSTATS_MIB_REASM_OVERLAPS to snmp_ip_stats_mib.in.
484 introduced by Linux commit v4.19-rc1~140^2~128^2~2.
488 introduced by Linux commit v4.19-rc1~140^2~108^2~3^2~12.
490 commit v4.19-rc1~140^2~24^2~2^2~6.
493 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
496 Introduced by Linux commit v4.19-rc1~140^2~205^2~1.
502 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
504 xlat: add IPV4_DEVCONF_BC_FORWARDING-1 to inet_devconf_indices.in.
505 * xlat/inet_devconf_indices.in (IPV4_DEVCONF_BC_FORWARDING-1): New
506 constant, introduced by Linux commit v4.19-rc1~140^2~208^2~1.
508 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
511 Introduced by Linux commit v4.19-rc1~140^2~208^2~1.
517 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
520 Introduced by Linux commit v4.19-rc1~140^2~253^2~1.
533 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
535 defs.h: add style argument to printxval_search_ex macro.
536 It is identical to printxval_search otherwise.
540 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
544 Linux commit v4.19-rc1~137^2~221.
547 v4.19-rc1~137^2~97.
549 v4.19-rc1~137^2~95.
551 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
554 Introduced by Linux commit v4.19-rc1~140^2~285^2~4.
563 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
566 Introduced by Linux commit v4.19-rc1~140^2~288^2.
573 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
577 introduced by Linux commit v4.18-rc1~114^2~252^2~2.
579 v4.19-rc1~42^2~63.
581 v4.19-rc1~42^2~62.
583 xlat: add AUDIT_INTEGRITY_POLICY_RULE to nl_audit_types.in.
585 introduced by Linux commit v4.19-rc1~124^2~5.
595 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
598 Introduced by Linux commit v4.19-rc1~140^2~364^2~6^2~6.
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.
615 xlat: add SO_TXTIME to sock_options.in.
617 commit v4.19-rc1~140^2~465^2~12.
619 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
622 The message has been added by Linux commit v4.19-rc1~140^2~507^2~1.
633 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
635 xlat: add SCTP_REUSE_PORT to sock_sctp_options.in.
637 by Linux commit v4.19-rc1~140^2~518.
639 xlat: add IN_MASK_CREATE to inotify_flags.in.
641 Linux commit v4.19-rc1~115^2.
644 2018-08-22 Dmitry V. Levin <ldv@altlinux.org>
646 tests: workaround systemd-nspawn habit of disabling unimplemented syscalls
650 tests: workaround systemd-nspawn habit of disabling mlockall syscall.
654 tests: workaround systemd-nspawn habit of disabling munlockall syscall.
658 2018-08-21 Eugene Syromyatnikov <evgsyr@gmail.com>
661 As smc_diag.h is bundled, there is little sense to build AF_SMC support
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>
675 Introduce a new structure to pass information between next_event(),
678 This is going to be used by a subsequent change of next_event().
682 to const struct tcb_wait_data. Return NULL instead of TE_BREAK.
684 to const struct tcb_wait_data, obtain the trace event, siginfo,
687 with te field set to TE_RESTART, pass it to dispatch_event().
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
709 dependencies to avoid a needless attempt to install $common_packages.
712 * ci/run-build-and-tests.sh: Honor $CPPFLAGS when printing
715 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
721 * tests/ioctl_evdev-success.c: New file.
722 * tests/ioctl_evdev-success-v.c: Likewise.
723 * tests/ioctl_evdev-success.test: New test.
724 * tests/ioctl_evdev-success-v.test: Likewise.
725 * tests/.gitignore: Add ioctl_evdev-success and ioctl_evdev-success-v.
729 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
748 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
751 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
754 According to drivers/input/evdev.c:bits_to_user(),
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'
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
796 with 4.13 and up to 4.18, as well as their LTS derivatives.
799 it looks like the best way to handle this situation is to pretend that
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>
859 and it is now guaranteed to have a fallback definition.
864 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
870 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
872 xlat: add fallback definitions to open_mode_flags.
874 to provide fallback definitions. Implement a workaround for O_NDELAY.
876 Co-Authored-by: Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
878 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
880 xlat: remove non-Linux flags from open_mode_flags.
885 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
887 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
889 xlat: add fallback definitions to madvise_cmds.
891 to provide fallback definitions.
893 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
895 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
897 xlat: add fallback definitions to mmap_flags.
899 to provide fallback definitions. Implement a workaround for MAP_RENAME.
901 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
903 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
906 This script is going to be used to generate xlat fallback values.
910 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
912 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
915 * strace.spec.in: Set CFLAGS_FOR_BUILD to "$RPM_OPT_FLAGS" so that
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.
946 Lower expectations of particular error code numbers when trying to set
947 time. This helps to workaround issues with unexpected return codes
949 (e.g. mock that uses systemd-nspawn).
956 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
958 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
962 are provided by kernel. Before Linux commit v3.10-rc1~201^2~11,
970 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
972 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
975 * strace.spec.in: Add descriptive comments to build requirements.
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>
983 strace64 subpackage used to be installed into ppc32 and sparc32
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>
1032 xlat: save the script used to generate xlat/sock_options.in.
1035 2018-08-01 Zhibin Li <08826794brmt@gmail.com>
1038 * tests/net-tpacket_stats.c: New file.
1039 * tests/net-tpacket_stats-success.c: Likewise.
1040 * tests/gen_tests.in (net-tpacket_stats): New test.
1041 * tests/net-tpacket_stats-success.test: Likewise.
1042 * tests/.gitignore: Add net-tpacket_stats and net-tpacket_stats-success.
1043 * tests/Makefile.am (check_PROGRAMS): Add net-tpacket_stats-success.
1044 (DECODER_TESTS): Add net-tpacket_stats-success.test.
1045 * tests/pure_executables.list: Add net-tpacket_stats.
1048 * tests/net-tpacket_req.c: New file.
1049 * tests/.gitignore: Add net-tpacket_req.
1051 * tests/gen_tests.in (net-tpacket_req): New test.
1054 * tests/net-packet_mreq.c: New file.
1055 * tests/.gitignore: Add net-packet_mreq.
1057 * tests/gen_tests.in (net-packet_mreq): New test.
1059 2018-07-20 Dmitry V. Levin <ldv@altlinux.org>
1061 tests: bring lists back to the sorted order.
1067 2018-07-20 Zhibin Li <08826794brmt@gmail.com>
1070 * tests/quotactl-success.c: New file.
1071 * tests/quotactl-success-v.c: Likewise.
1072 * tests/quotactl-xfs-success.c: Likewise.
1073 * tests/quotactl-xfs-success-v.c: Likewise.
1074 * tests/quotactl-success.test: New test.
1075 * tests/quotactl-success-v.test: Likewise.
1076 * tests/quotactl-xfs-success.test: Likewise.
1077 * tests/quotactl-xfs-success-v.test: Likewise.
1078 * tests/.gitignore: Add quotactl-success, quotactl-success-v,
1079 quotactl-xfs-success and quotactl-xfs-success-v.
1083 sprintrc; check that returned value is equivalent to the injected one;
1084 append "(INJECTED)" string to errstr.
1085 * tests/quotactl.c: Changed condition rc != 0 to rc < 0 in callback
1086 functions and value of opaque pointer addr_cb_arg in order to check
1088 * tests/quotactl-xfs.c: Likewise.
1090 2018-07-18 Dmitry V. Levin <ldv@altlinux.org>
1093 * net.c (print_tpacket_stats): Change decoder to match the kernel
1094 behaviour: getsockopt syscall accepts any non-negative *optlen and
1104 * net.c (print_ucred): Rename to print_get_ucred, change decoder
1105 to match the kernel behaviour: getsockopt syscall accepts any
1106 non-negative *optlen and writes MIN(sizeof(struct ucred), *optlen)
1113 * net.c (print_get_linger): Change decoder to match the kernel
1114 behaviour: getsockopt syscall accepts any non-negative *optlen
1126 2018-07-15 Dmitry V. Levin <ldv@altlinux.org>
1130 <asm/stat.h> introduced by glibc-2.27.9000-566-gfd70af4.
1133 of <sys/stat.h> to avoid conflicts between definitions provided by the
1136 2018-07-15 Eugene Syromyatnikov <evgsyr@gmail.com>
1142 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1144 tests/quotactl-xfs.c: fix indentation.
1146 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1159 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1163 (main): Use print_dqfmt to print flags of quota format, improve existing
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.
1176 (struct fs_qfilestat, struct xfs_dqstats): Moved to xfs_quota_stat.h.
1183 2018-07-12 Zhibin Li <08826794brmt@gmail.com>
1186 * tests/fcntl-common.c: Include <assert.h>.
1193 2018-07-11 Dmitry V. Levin <ldv@altlinux.org>
1195 Implement -e kvm= option on all architectures.
1196 Make -e kvm= interface available on all architectures by adding a stub
1201 * strace.c (usage): Mention kvm argument of -e option unconditionally.
1203 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1205 xlat: update bpf(2)-related constants.
1208 v4.18-rc1~114^2~9^2~20^2~4.
1210 v4.18-rc1~114^2~9^2~15^2~1.
1212 commit v4.18-rc1~114^2~417^2~1^2~5.
1214 v4.18-rc1~114^2~223^2~21^2~4.
1216 v4.18-rc1~114^2~148^2~1^2~5.
1218 by Linux commit v4.18-rc1~114^2~304^2~4^2~8.
1220 v4.18-rc1~114^2~223^2~5^2~2.
1222 introduced by Linux commit v4.18-rc1~114^2~148^2~2^2~1.
1224 v4.18-rc1~114^2~9^2~15^2~1.
1227 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1231 introduced by Linux commit v4.18-rc3~7^2~2.
1233 and rseq syscalls introduced by Linux commit v4.18-rc3~33^2~2.
1234 * linux/mips/syscallent-n32.h ([6331], [6332]): Wire up rseq and
1235 io_pgetevents syscalls introduced by Linux commits v4.18-rc2~11^2~2
1236 and v4.18-rc2~11^2, respectively.
1237 * linux/mips/syscallent-n64.h ([5327], [5328]): Likewise.
1238 * linux/mips/syscallent-o32.h ([4367], [4368]): Likewise.
1240 introduced by Linux commit v4.18-rc3~14^2~2.
1243 and rseq syscalls introduced by Linux commits v4.18-rc4~18^2~1
1244 and v4.18-rc4~18^2, respectively.
1247 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1249 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1252 * maint/gen-tag-message.sh: Align the wording of the changes section
1253 header with the one used in NEWS, add a reference to CREDITS in
1256 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1258 2018-07-10 Dmitry V. Levin <ldv@altlinux.org>
1260 Upgrade invalid -e kvm= argument to a fatal error.
1262 error_msg in case of invalid -e kvm= argument.
1263 * tests/options-syntax.test: Check it.
1265 Mention -e inject option in "strace -h" output.
1266 * strace.c (usage): Mention inject argument of -e option.
1268 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1284 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1286 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1288 strace.1.in: document -e kvm=vcpu option.
1289 * strace.1.in (-e kvm=vcpu): Document new option.
1290 * NEWS: Mention -e kvm=vcpu option.
1292 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1294 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1296 kvm: attach the exit reason of vcpu as auxstr to KVM_RUN output.
1298 via ioctl. KVM_RUN is an ioctl command to enter vcpu. The command
1303 We, strace users, want to know the reason to understand kvm. This
1304 change prints the reason as auxstr if "-e kvm=vcpu" option is given,
1306 e46b469278a59781f9b25ff608af84892963821b, "kvm: embed vcpu id to dentry
1309 The way to get the reason is a bit complicated because the ioctl does
1310 not return it to the userspace directly. Instead, the vmi and kvm
1312 vcpu is mmap'ed. strace must peek the area to know the reason.
1315 when the target calls VCPU_CREATE to vcpu_info_list per tcb data field,
1320 does not have a chance to do (1) if -p option is used.
1329 * strace.c (usage): Add "kvm" as a new expression for -e option.
1332 kvm_run_structure_decoder_init to enable for attaching the exit
1333 reason to auxstr.
1339 (vcpu_info): New struct definition representing the 3-tuple: vcpu file
1342 kvm_vcpu_info_free): New functions to access tcb's vcpu_info_list
1346 decoding vcpu exit reason and attaching the decoded data to auxstr
1348 (kvm_ioctl_create_vcpu): Call vcpu_register to make an entry mapping
1352 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1354 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1361 2018-07-07 Pierre Marsais <pierre.marsais@lse.epita.fr>
1364 * tests/ioctl_kvm_run-v.c: New file.
1369 * tests/gen_tests.in (ioctl_kvm_run-v): New entry.
1370 * tests/pure_executables.list: Add ioctl_kvm_run-v.
1373 tests: check decoding of kvm ioctls related to struct kvm_cpuid2.
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>
1400 invocation to avoid races with the kernel.
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>
1423 relies on the UAPI headers (such as <linux/signal.h>) to define various
1427 * linux/linux/signal.h: Rename to linux/signal.h.in.
1435 Reported-by: Elliott Hughes <enh@google.com>
1438 2018-06-18 Eugene Syromyatnikov <evgsyr@gmail.com>
1440 xlat: add AUDIT_INTEGRITY_EVM_XATTR to nl_audit_types.
1442 introduced by Linux commit v4.18-rc1~100^2~9.
1444 xlat: add UDP_SEGMENT to sock_udp_options.
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>
1456 x32: move rseq syscall entry to a suitable place.
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>
1472 * aio.c (tprint_lio_opcode): Change array of structs "cmds" to array of
1477 * xlat/sock_tcp_options.in: Add #value_indexed, provide fallback
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>
1508 * tests/prctl-spec-inject.test: Add copyright header.
1512 * maint/README-release: New file.
1513 * maint/gen-release-notes.sh: Likewise.
1514 * maint/gen-release-github.sh: Likewise.
1515 * maint/gen-release-gitlab.sh: Likewise.
1518 * maint/gen-tag-message.sh: Prepend every line of
1519 gen-contributors-list.sh output with an asterisk.
1521 2018-06-14 Eugene Syromyatnikov <evgsyr@gmail.com>
1525 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1528 This new syscall was introduced by Linux commit v4.17-1308-gd7822b1.
1538 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
1558 has_usig flag, print user sigset on exiting if has_usig is set to true.
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>
1592 * tests/options-syntax.test: Add personality specification syntax
1609 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1613 to a temporary buffer, append the personality designation to it,
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>
1644 * tests/qual_fault-syscall.test: New test.
1645 * tests/qual_inject-error-signal-syscall.test: Likewise.
1646 * tests/qual_inject-retval-syscall.test: Likewise.
1647 * tests/qual_inject-signal-syscall.test: Likewise.
1649 * tests/qual_fault-syntax.test: Add checks for inject=SET:syscall=
1651 * tests/qual_inject-syntax.test: Likewise.
1652 * tests/qual_fault.test: Append $suffix to -e fault arguments, override
1654 * tests/qual_inject-error-signal.test: Append $suffix to -e inject
1656 * tests/qual_inject-retval.test: Likewise.
1657 * tests/qual_inject-signal.test: Likewise.
1659 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1661 Implement injection of syscalls with no side effects as an alternative to -1
1667 (parse_inject_expression): Add "pdata" argument, forward it to
1669 (qualify_inject_common) <pdata>: New variable array, pass it to
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>
1695 * alpha/set_error.c (arch_set_error): Set alpha_r3 to 1, update tracee's
1702 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1712 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1714 tests: add print_quoted_stringn to print string with a size limit.
1715 This is similar to print_quoted_cstring, but not quite the same.
1720 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1722 tests: add fallback_func argument to TEST_NESTED_NLATTR_OBJECT_EX_
1730 tests/test_nlattr.h: add ability to provide additional nlattr payload.
1732 opening square bracket if add_data is set to true.
1738 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1748 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1751 Otherwise it tries to decode payload of size 1, which makes little
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>
1774 rtnl_ifla_info_data_bridge_attrs to ifla_info_data_bridge_nla_decoders
1777 to ifla_info_data_tun_nla_decoders in ARRAY_SIZE call.
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>
1784 mips: add missing pure flag to syscall entries.
1785 * linux/mips/syscallent-n32.h ([6038], [6100], [6102], [6105], [6106],
1786 [6108], [6109], [6178]): Add pure flag to getpid, getuid, getgid, geteuid,
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>
1797 mips: add missing "never fails" flag to getpgrp syscall entries.
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.
1802 Complements: v4.21~46 "Add SYSCALL_NEVER_FAILS flag to getpgrp"
1804 2018-06-07 Eugene Syromyatnikov <evgsyr@gmail.com>
1807 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1810 * xlat/inet_devconf_indices.in: Add a comment about fallback definitions.
1812 2018-06-07 Dmitry V. Levin <ldv@altlinux.org>
1816 <linux/pkt_sched.h> to check for struct tc_sizespec on linux kernel
1817 headers without v2.6.29-rc4~77^2~26 fix.
1819 2018-06-06 Dmitry V. Levin <ldv@altlinux.org>
1824 * ci/install-dependencies.sh (clone_repo): Add optional "branch"
1825 argument, pass it to "git clone".
1830 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1841 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1843 tests: add TEST_NESTED_NLATTR_ARRAY_EX to test_nlattr.h.
1844 An ability to specify custom depth is going to be needed later to check
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.
1863 to the print_elem_ callback.
1874 (IFLA_ATTR): Define to IFLA_PROTINFO.
1879 (IFLA_ATTR): Define to IFLA_PORT_SELF.
1885 (IFLA_ATTR): Define to IFLA_XDP.
1908 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1918 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1928 (decode_ifla_linkinfo): Add struct ifla_linkinfo_ctx context, pass it to
1931 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1954 (ifinfomsg_nla_decoders) <[IFLA_AF_SPEC]>: Change value from NULL to
1957 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1959 nlattr: add size check to decode_nla_xval and decode_nla_flags.
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>
1995 host order and has to be converted to the network order before printing
1996 as an xval constant. This change also adds ability to provide
1997 prefix/suffix in order to enclose the printed value in something that
2005 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2008 Similar to decode_nla_xval.
2013 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2015 nlattr: add ability to pass nla_type to decoder in decode_nlattr.
2016 As of now, it's impossible to introduce a dispatching nlattr decoder
2018 a combination of zero decoder list size and non-zero decoder pointer
2021 This is going to be used later in IFLA_AF_SPEC decoding.
2023 * nlattr.c (decode_nlattr_with_data): Handle zero size and non-NULL
2026 argument when zero size and non-NULL decoders are provided.
2029 2018-06-06 Dmitry V. Levin <ldv@altlinux.org>
2040 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2046 2018-06-05 Dmitry V. Levin <ldv@altlinux.org>
2049 Extend xlat generator to support such input lines as
2050 IPV4_DEVCONF_FORWARDING-1 0
2052 This is going to be used later in IFLA_AF_SPEC decoding.
2057 2018-06-05 Eugene Syromyatnikov <evgsyr@gmail.com>
2060 This is going to be used later in IFLA_AF_SPEC decoding.
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>
2074 * xlat.c (printxvals_ex): Change "str" variable visibility to the whole
2075 function, jump to va_end instead of duplicating call and return, return
2082 * nlattr.c (decode_nla_ip_proto): Specify xlat_size, set xt to XT_SORTED.
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>
2107 There is no need to invoke grep using run_prog.
2111 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2114 * tests/bpf-obj_get_info_by_fd-prog-v.c: New file.
2115 * tests/bpf-obj_get_info_by_fd-prog.c: Likewise.
2116 * tests/bpf-obj_get_info_by_fd-v.c: Likewise.
2117 * tests/bpf-obj_get_info_by_fd.c: Likewise.
2120 * tests/pure_executables.list: Add bpf-obj_get_info_by_fd,
2121 bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog, and
2122 bpf-obj_get_info_by_fd-prog-v.
2124 * tests/gen_tests.in (bpf-obj_get_info_by_fd,
2125 bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog,
2126 bpf-obj_get_info_by_fd-prog-v): New tests.
2128 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2130 2018-06-04 Dmitry V. Levin <ldv@altlinux.org>
2136 to be decoded. Likewise, use the minimum of nr_map_ids values on entering
2137 and exiting syscall as the size of map_ids array to be decoded.
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>
2151 bpf: move handling of the saved state to BPF_OBJ_GET_INFO_BY_FD decoder.
2154 * bpf.c (print_bpf_obj_info_fn): Change return type to void, add "saved"
2157 (print_bpf_map_info, print_bpf_prog_info): Change return type to void,
2160 (print_bpf_obj_info_addr): Change return type to void, add tcb argument,
2162 (print_bpf_obj_info): Change return type to void, add "saved" argument.
2166 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2168 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2175 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2177 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2180 If xlated_prog_len is zero on entering syscall and non-zero on exiting,
2186 to print_ebpf_prog.
2188 to print_ebpf_prog.
2190 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2192 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2196 of "addr" argument from kernel_ulong_t to uint64_t, print it using
2201 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2203 2018-06-02 Dmitry V. Levin <ldv@altlinux.org>
2205 bpf_attr.h: add ATTRIBUTE_ALIGNED(8) to all fields of type uint64_t.
2213 v4.16-rc1~123^2~109^2~5^2~4.
2216 ATTRIBUTE_ALIGNED(8) to "flags" field.
2217 (struct bpf_prog_info_struct): Add ATTRIBUTE_ALIGNED(8) to "load_time"
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.
2227 * tests/net-sockaddr.c (main): Cast printf argument for %hu format
2228 to short.
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>
2254 Historically, type definitions and declarations related to netlink route
2260 in checks for interface netlink attributes-related declarations
2263 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2266 As it turns out, old versions of gawk do not support -e option.
2271 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2277 2018-06-01 Zhibin Li <08826794brmt@gmail.com>
2280 * tests/fcntl-common.c (test_flock_einval): Check short read
2284 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2287 * tests/fcntl-common.c (test_flock_einval, test_flock): Create
2293 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2296 Check that non-faulty F_OFD_* fcntl operations are decoded properly.
2298 * tests/fcntl-common.c: Include <string.h>.
2302 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2304 tests/fcntl-common.c: define and initialize errstr.
2306 won't have to go into trouble of caring about clobbering errno.
2308 * tests/fcntl-common.c (errstr): New variable.
2315 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2317 tests/fcntl-common.c: add fd argument to invoke_test_syscall.
2321 * tests/fcntl-common.c (invoke_test_syscall): Add fd argument, pass it
2322 to TEST_SYSCALL_NR syscall. All users updated.
2324 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2326 tests: move F_OFD_SETLK* checks from fcntl64.c to fcntl-common.c.
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.
2337 (test_flock64): Rename to test_flock64_lk64, replace TEST_FLOCK64_EINVAL
2340 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2342 tests: move F_OWNER_* tests to fcntl-common.c.
2347 * tests/fcntl-common.c: ... here.
2351 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2353 tests: rename struct_flock.c to fcntl-common.c.
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.
2359 to fcntl-common.c.
2363 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
2406 Move definitions of xlat_type and xlat_style from defs.h to xlat.h.
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>
2423 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2426 Print interface indices according to the preferred xlat style settings.
2433 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2441 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2450 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2453 A shorthand similar to ARG_STR in its purpose: it provides and ability
2454 to pass an array an its size without variable name duplication.
2458 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2469 (print_array): Rename to print_array_ex, add flags, index_xlat,
2471 according to the style settings specified by flags if PAF_PRINT_INDICES
2474 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2493 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2496 When umoven_func invocation fails to fetch data, it prints the faulty
2497 address. If this happens to a subsequent umoven_func invocation,
2503 address from umoven_func to print_array itself. This change renames
2504 umoven_func to tfetch_mem_func and changes its semantics, so that
2505 - tfetch_mem_func never prints anything;
2506 - tfetch_mem_func returns true if the fetch succeeded,
2550 to fetch_struct_mmsghdr_for_print, do not print address, return bool.
2555 * tests/ioctl_perf-success.c (main): Likewise.
2561 * tests/preadv-pwritev.c (main): Likewise.
2562 * tests/preadv2-pwritev2.c (dumpio): Likewise.
2566 * tests/seccomp-filter-v.c
2572 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
2574 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2577 These new functions are going to be used instead of umove_or_printaddr*
2590 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2600 2018-05-29 Eugene Syromyatnikov <evgsyr@gmail.com>
2607 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2618 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
2655 As various bpf commands need different data to save between entering
2661 and get_tcb_priv_ulong to keep bpf_attr.query.prog_cnt field.
2663 and do not pass it to bpf_cmd_decoders.
2665 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2668 * tests/bpf-success-v.c: New file.
2669 * tests/bpf-success.c: Likewise.
2670 * tests/bpf-success-v.test: New test.
2671 * tests/bpf-success.test: Likewise.
2672 * tests/.gitignore: Add bpf-success and bpf-success-v.
2674 (DECODER_TESTS): Add bpf-success.test and bpf-success-v.test.
2676 is equivalent to the injected one; append "(INJECTED)" string to errstr.
2686 uint64_t to uint32_t), as they are 32-bit; use common trick with
2698 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2703 * tests/ioctl_perf-success.c: New file.
2704 * tests/ioctl_perf-success.test: New test.
2706 (check_PROGRAMS): Add ioctl_perf-success.
2710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2712 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2731 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2733 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2736 * tests/ipc_msgbuf.test: Fix -a argument.
2738 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2744 v2.6.19-rc1~33^2.
2746 v2.6.35-rc1~473^2~594.
2748 v2.6.19-rc1~1272^2~157.
2749 Add default values to constants, sort the file.
2751 xlat: add fallback definitions to RTPROT_* constants.
2752 * xlat/routing_protocols.in: Add default values to constants.
2756 constant, introduced by Linux commit v4.17-rc3-24-g00a02d0.
2757 * tests/seccomp-filter.c: Update expected output.
2758 * tests/seccomp-filter-v.c: Likewise.
2766 v4.17-rc3-15-gb617cfc.
2769 * tests/Makefile.am (check_PROGRAMS): Add prctl-spec-inject.
2770 (DECODER_TESTS): Add prctl-spec-inject.test.
2771 * tests/prctl-spec-inject.c: New file.
2772 * tests/prctl-spec-inject.test: New test.
2773 * tests/.gitignore: Add prctl-spec-inject.
2776 * tests/keyctl-Xabbrev.c: New file.
2777 * tests/keyctl-Xraw.c: Likewise.
2778 * tests/keyctl-Xverbose.c: Likewise.
2782 * tests/pure_executables.list: Add keyctl-Xabbrev, keyctl-Xraw,
2783 and keyctl-Xverbose.
2785 * tests/gen_tests.in (keyctl-Xabbrev, keyctl-Xraw, keyctl-Xverbose): New
2798 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2801 There's little reason not to decode error code for syscalls printed in
2804 Another issue was with error numbers unknown to strace: previously, they
2805 were printed as "... = -1 1234 (Unknown error 1234)" which looked kinda
2809 (syscall_exiting_trace): Remove u_error variable, use tcp->u_error
2811 (syscall_exiting_trace) <if (raw(tcp))>: Call print_err_ret if u_error
2812 is non-zero.
2813 (syscall_exiting_trace) <if (!(sys_res & RVAL_NONE) && tcp->u_error)>:
2820 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
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
2845 2018-05-24 Dmitry V. Levin <ldv@altlinux.org>
2856 2018-05-23 Dmitry V. Levin <ldv@altlinux.org>
2859 Introduce BIG_ADDR_IS_64BIT and BIG_ADDR_IS_32BIT to reduce redundancy.
2865 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2873 introduced by Linux commit v4.17-rc1~148^2~19^2~4^2~3.
2889 (BPF_PROG_LOAD_struct_size): Update to offsetofend of
2891 (expected_BPF_PROG_LOAD_struct_size): Update to 72.
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
2908 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2911 Analogous to print_int32_array_member, this helper is going to be used
2918 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2921 Analogous to print_uint64_array_member, this helper is going to be used
2927 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2932 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
2951 l2_bdaddr_type)>: Add to sizeof(struct sockaddr_l2) case. Print
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.
2992 * defs.h (errnoent0): Rename to errnoent.
2994 (nerrnos, nsignals): Change to const variables unconditionally.
2995 * syscall.c (errnoent0): Rename to errnoent.
2997 (nerrnos, nsignals): Change to const variables unconditionally.
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>
3029 strace.1.in: format a reference to "open" syscall using bold font.
3030 * strace.1.in (.SH DESCRIPTION): Format a reference to "open" syscall
3033 tests/qual_fault.test: add -efu arguments to the interpreter.
3034 * tests/qual_fault.test (#!/bin/sh): Add -efu arguments.
3036 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3045 2018-05-21 Dmitry V. Levin <ldv@altlinux.org>
3053 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3060 * xlat.c (printxval_dispatch): Rename to printxval_dispatch_ex, add
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>
3085 This macro is going to be used in inline checks.
3089 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3097 (sizeof_iov): Change type from size_t to unsigned int.
3098 (dumpiov_upto): Rewrite size initialisation similarly to the way it's
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
3117 syntax, but also makes it impossible to specify such syscalls at all
3119 number specification). So, let's change prefix to suffix and use
3125 297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
3130 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3134 introduced by Linux commit v4.17-rc1~148^2~156^2~1^2~13.
3139 introduced by Linux commit v4.17-rc1~148^2~156^2~1^2~13.
3141 introduced by Linux commit v4.17-rc1~148^2~19^2^2~6.
3143 introduced by Linux commit v4.17-rc1~148^2~19^2^2~3.
3145 introduced by Linux commit v4.17-rc1~148^2~19^2^2~1.
3148 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3151 Define SO_TIMESTAMP twice, for PA-RISC and all the other architectures.
3153 * xlat/sock_rds_options.in [!__hppa__] (SO_TIMESTAMP): Define to 29.
3154 [__hppa__] (SO_TIMESTAMP): Define to 0x4012.
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>
3206 values to constants.
3209 2018-05-15 Andre McCurdy <armccurdy@gmail.com>
3214 need to be assigned to r7 (e.g. the syscall NR when making a raw
3219 strace-4.22/tests/inject-nf.c:86:1: error: r7 cannot be used in asm here
3222 generating broken code which crashes at run time due to frame pointer
3228 disabled automatically due to optimisation level. However to handle
3230 to support a debug build, etc) provide a version of raw_syscall_0
3232 to a temporary register before setting up the syscall NR in r7
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>
3278 (print_sockaddr_data_bt): Use it to decode struct sockaddr_l2.l2_cid
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>
3290 (print_sockaddr_data_bt): Use it to decode struct sockaddr_l2.l2_psm
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>
3322 * netlink.c (decode_netlink) <print_array>: Rename to is_array, all
3326 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3328 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3338 to all constants.
3341 to the kernel.
3346 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3348 2018-05-14 Dmitry V. Levin <ldv@altlinux.org>
3351 * socketutils.c (unix_send_query): Do not add NLM_F_DUMP to nlmsg_flags
3355 Complements: v4.12~536 ("Change unix_diag requests back to use full dump instead of exact match")
3357 2018-05-14 Eugene Syromyatnikov <evgsyr@gmail.com>
3361 ability to find the socket under high load.
3367 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3369 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
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>
3428 xlat: add fallback definitions to {msg,sem,shm}ctl command constants.
3429 * xlat/msgctl_flags.in: Add default values to all constants, reorder
3430 to make them sorted by value.
3434 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3436 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3440 by Linux commit v4.17-rc1~52^2~21.
3443 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3445 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3449 by Linux commit v4.17-rc1~52^2~22.
3452 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3454 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3458 by Linux commit v4.17-rc1~52^2~23.
3461 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3463 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3473 * xlat/sockoptions.in (SO_ATTACH_FILTER): Move to
3479 * tests/sock_filter-v.c: Update expected output.
3481 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3483 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3485 tests: add sock_filtrer-v variants with different xlat verbosity levels.
3486 * tests/sock_filter-v-Xabbrev.c: New file.
3487 * tests/sock_filter-v-Xraw.c: Likewise.
3488 * tests/sock_filter-v-Xverbose.c: Likewise.
3489 * tests/sock_filter-v.c (PRINT_STMT_SYM, PRINT_STMT_SYM_,
3496 * tests/pure_executables.list: Add sock_filter-v-Xabbrev,
3497 sock_filter-v-Xraw, and sock_filter-v-Xverbose.
3499 * tests/gen_tests.in (sock_filter-v-Xabbrev, sock_filter-v-Xraw,
3500 sock_filter-v-Xverbose): New tests.
3502 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3504 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3513 2018-05-08 Dmitry V. Levin <ldv@altlinux.org>
3518 * xlat/getsockipoptions.in: Rename to xlat/getsock_ip_options.in.
3519 * xlat/getsockipv6options.in: Rename to xlat/getsock_ipv6_options.in.
3520 * xlat/setsockipoptions.in: Rename to xlat/setsock_ip_options.in.
3521 * xlat/setsockipv6options.in: Rename to xlat/setsock_ipv6_options.in.
3522 * xlat/sockalgoptions.in: Rename to xlat/sock_alg_options.in.
3523 * xlat/sockbluetoothoptions.in: Rename to xlat/sock_bluetooth_options.in.
3524 * xlat/sockcaifoptions.in: Rename to xlat/sock_caif_options.in.
3525 * xlat/sockdccpoptions.in: Rename to xlat/sock_dccp_options.in.
3526 * xlat/sockipoptions.in: Rename to xlat/sock_ip_options.in.
3527 * xlat/sockipv6options.in: Rename to xlat/sock_ipv6_options.in.
3528 * xlat/sockipxoptions.in: Rename to xlat/sock_ipx_options.in.
3529 * xlat/sockirdaoptions.in: Rename to xlat/sock_irda_options.in.
3530 * xlat/sockiucvoptions.in: Rename to xlat/sock_iucv_options.in.
3531 * xlat/sockkcmoptions.in: Rename to xlat/sock_kcm_options.in.
3532 * xlat/sockllcoptions.in: Rename to xlat/sock_llc_options.in.
3533 * xlat/socknetlinkoptions.in: Rename to xlat/sock_netlink_options.in.
3534 * xlat/socknfcllcpoptions.in: Rename to xlat/sock_nfcllcp_options.in.
3535 * xlat/sockoptions.in: Rename to xlat/sock_options.in.
3536 * xlat/sockpacketoptions.in: Rename to xlat/sock_packet_options.in.
3537 * xlat/sockpnpoptions.in: Rename to xlat/sock_pnp_options.in.
3538 * xlat/sockpppol2tpoptions.in: Rename to xlat/sock_pppol2tp_options.in.
3539 * xlat/sockrawoptions.in: Rename to xlat/sock_raw_options.in.
3540 * xlat/sockrdsoptions.in: Rename to xlat/sock_rds_options.in.
3541 * xlat/sockrxrpcoptions.in: Rename to xlat/sock_rxrpc_options.in.
3542 * xlat/socksctpoptions.in: Rename to xlat/sock_sctp_options.in.
3543 * xlat/socktcpoptions.in: Rename to xlat/sock_tcp_options.in.
3544 * xlat/socktipcoptions.in: Rename to xlat/sock_tipc_options.in.
3545 * xlat/socktlsoptions.in: Rename to xlat/sock_tls_options.in.
3546 * xlat/sockudpoptions.in: Rename to xlat/sock_udp_options.in.
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>
3604 Remove some duplicate fallback definitions.
3605 There is no need to provide duplicate fallback definitions anymore,
3610 Remove, a fallback definition is already provided by included
3618 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3620 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3623 Sometimes we need just fallback definitions and nothing else.
3630 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3632 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3638 the value from decode_nla_s32 to decode_nla_ifindex.
3640 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3642 ci: install libbluetooth-dev.
3643 * ci/install-dependencies.sh (common_packages): Add libbluetooth-dev.
3645 xlat: provide fallback definitions for HCI_CHANNEL_* constants.
3646 * xlat/hci_channels.in: Provide fallback definitions.
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
3655 * s390.c (SYS_FUNC(s390_runtime_instr)): Use printxval_d to print
3659 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3663 to run_prog_match_diff.
3665 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3668 * tests/so_peercred-Xabbrev.c: New file.
3669 * tests/so_peercred-Xraw.c: Likewise.
3670 * tests/so_peercred-Xverbose.c: Likewise.
3671 * tests/pure_executables.list: Add so_peercred-Xabbrev,
3672 so_peercred-Xraw, and so_peercred-Xverbose.
3675 * tests/gen_tests.in (so_peercred-Xabbrev, so_peercred-Xraw,
3676 so_peercred-Xverbose): New tests.
3678 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3680 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3683 * tests/personality-Xabbrev.c: New file.
3684 * tests/personality-Xraw.c: Likewise.
3685 * tests/personality-Xverbose.c: Likewise.
3686 * tests/pure_executables.list: Add personality-Xabbrev,
3687 personality-Xraw, and personality-Xverbose.
3691 * tests/gen_tests.in (personality-Xabbrev, personality-Xraw,
3692 personality-Xverbose): New tests.
3695 * tests/fanotify_mark-Xabbrev.c: New file.
3696 * tests/fanotify_mark-Xraw.c: Likewise.
3697 * tests/fanotify_mark-Xverbose.c: Likewise.
3698 * tests/pure_executables.list: Add fanotify_mark-Xabbev,
3699 fanotify_mark-Xraw, and fanotify_mark-Xverbose.
3703 * tests/gen_tests.in (fanotify_mark-Xabbev, fanotify_mark-Xraw,
3704 fanotify_mark-Xverbose): New tests.
3706 2018-05-07 Eugene Syromyatnikov <evgsyr@gmail.com>
3708 xlat: provide fallback definitions for IFF_* constants.
3709 * xlat/iffflags.in: Provide fallback definitions. Mention that
3716 v2.6.17-rc1~1175^2~206.
3718 v2.6.25-rc1~1162^2~1415.
3720 xlat: provide fallback definitions for ARPHRD_* constants.
3721 * xlat/arp_hardware_types.in: Provide fallback definitions, sort.
3727 * tests/.gitignore: Add ipc_msg-Xabbrev, ipc_msg-Xraw, ipc_msg-Xverbose,
3728 ipc_msgbuf-Xabbrev, ipc_msgbuf-Xraw, ipc_msgbuf-Xverbose,
3729 ipc_sem-Xabbrev, ipc_sem-Xraw, ipc_sem-Xverbose, ipc_shm-Xabbrev,
3730 ipc_shm-Xraw, and ipc_shm-Xverbose.
3732 * tests/gen_tests.in (ipc_msg-Xabbrev, ipc_msg-Xraw, ipc_msg-Xverbose,
3733 ipc_msgbuf-Xabbrev, ipc_msgbuf-Xraw, ipc_msgbuf-Xverbose,
3734 ipc_sem-Xabbrev, ipc_sem-Xraw, ipc_sem-Xverbose, ipc_shm-Xabbrev,
3735 ipc_shm-Xraw, ipc_shm-Xverbose): New tests.
3736 * tests/ipc_msg-Xabbrev.c: New file.
3737 * tests/ipc_msg-Xraw.c: Likewise.
3738 * tests/ipc_msg-Xverbose.c: Likewise.
3739 * tests/ipc_msgbuf-Xabbrev.c: Likewise.
3740 * tests/ipc_msgbuf-Xraw.c: Likewise.
3741 * tests/ipc_msgbuf-Xverbose.c: Likewise.
3742 * tests/ipc_sem-Xabbrev.c: Likewise.
3743 * tests/ipc_sem-Xraw.c: Likewise.
3744 * tests/ipc_sem-Xverbose.c: Likewise.
3745 * tests/ipc_shm-Xabbrev.c: Likewise.
3746 * tests/ipc_shm-Xraw.c: Likewise.
3747 * tests/ipc_shm-Xverbose.c: Likewise.
3756 * tests/gen_tests.in (ipc_msg, ipc_sem, ipc_shm): Add -a option.
3767 (msgrcv): Use it instead of msgrcv. Add bits to mtype,
3768 check for -mtype in msgrcv.
3774 * tests/ipc_msgbuf.test: Add -a31. Redirect output to $EXP. Call
3777 2018-05-07 Dmitry V. Levin <ldv@altlinux.org>
3779 xlat: provide fallback definitions for SKF_*_OFF constants.
3783 xlat: provide fallback definitions for BPF_* constants.
3793 2018-05-06 Dmitry V. Levin <ldv@altlinux.org>
3795 xlat: fix F_* fallback definitions on mips64.
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>
3803 xlat: add fallback definitions to SO_* constants.
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:]]+)' \
3815 /path/to/linux/arch/*/include/uapi/asm/socket.h |
3816 …sed -rn 's|^[^#]*/arch/([^/]+)/include/uapi/asm/socket\.h:#define[[:space:]]+'"$name"'[[:space:]]+…
3818 awk -vname="$name" -vdef="$def" '
3843 * xlat/sockoptions.in: Add fallback definitions.
3845 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3847 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3851 to SO_ATTACH_FILTER.
3852 (SO_DETACH_BPF): Remove as it is defined to SO_DETACH_FILTER.
3864 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3868 to rely on bluetooth.h header anymore.
3870 * net.c (AF_BLUETOOTH): Provide a fallback definition.
3877 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3879 xlat/gen.sh: invoke the shell interpreter with -e -u options.
3880 * xlat/gen.sh: Change interpreter from "/bin/sh" to "/bin/sh -eu".
3884 commit v4.17-rc1~107^2~2.
3886 v4.17-rc1~31^2~3.
3890 by Linux commit v4.17-rc1~52^2~14.
3892 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3894 xlat: provide fallback definitions for BTPROTO_* constants.
3895 As they are architecture-independent.
3897 * xlat/bt_protocols.in: Add values to constants.
3899 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3903 by Linux commit v4.11-rc1~94^2~43^2.
3905 xlat: provide fallback definitions for V4L2_CID_* constants.
3906 * xlat/v4l2_control_id_bases.in: New file with fallback definitions.
3907 * xlat/v4l2_control_ids.in: Add fallback definitions.
3911 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3915 include/uapi/linux/v4l2-controls.h. A few notes:
3916 - V4L2_CID_CHROMA_GAIN and V4L2_CID_COLORFX_CBCR moved in accordance
3918 - V4L2_CID_WHITENESS is removed as it has the same value as
3920 - V4L2_CID_PRIVATE_BASE is removed.
3921 - V4L2_CID_HCENTER and V4L2_CID_VCENTER that were removed by Linux
3922 commit v3.9-rc1~93^2~237, are retained for historical reasons.
3926 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3928 xlat: provide fallback definitions for V4L2_CTRL_CLASS_* constants.
3929 As those are architecture-independant. Also note that the xlat
3934 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3938 introduced by Linux commit v3.7-rc1~101^2^2~322.
3940 v3.15-rc1~85^2~192.
3942 v3.17-rc1~112^2~340.
3944 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
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,
3984 but in practice it appeared to be less portable than good old
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>
3994 ci: add more variants of unwinder to test matrices.
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):
4010 * .travis.yml: Add STACKTRACE=libunwind to all x86_64 test matrix
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.
4021 xlat: add values to adjtimex_state, adjtimex_status, advise xlats.
4027 * xlat/adjtimex_modes.in: Add values to constants.
4029 (ADJ_OFFSET_SS_READ): Move to the first place.
4030 (ADJ_OFFSET_SINGLESHOT): Move to the second place.
4032 2018-05-04 Dmitry V. Levin <ldv@altlinux.org>
4040 to libstrace_a_SOURCES.
4044 to struct mmap_cache_entry_t, create a new struct mmap_cache_t,
4047 * mmap_cache.c (mmap_cache_delete): Rename to delete_mmap_cache,
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".
4104 (struct ctx): Add last_proc_updating field to record the generation
4114 (tcb_flush_cache): Rename to flush_cache_maybe. Rebuild the cache data
4118 * unwind-libunwind.c (init): Enable the mmap_cache subsystem.
4121 (tcb_walk): Rename to walk.
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>
4140 * sysent.h (STACKTRACE_INVALIDATE_CACHE): Rename to
4145 (mmap_cache_enable): Call mmap_notify_register_client to use
4147 to handle the change of memory mapping.
4154 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4157 This subsystem is a spin-off of the mmap_cache subsystem.
4162 mmap_notify is a subsystem specialized to provide feature (2).
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>
4195 util.c: add len sanity checks to dumpstr.
4200 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4202 mmap_cache: fool-proofing build_mmap_cache.
4203 Let's try to handle better the situation when build_mmap_cache is called
4204 without mmap_cache/mmap_cache_size being reset prior to the call.
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>
4234 Since we don't have to workaround old F_[GS]ETOWN_EX == F_[SG]ETLK64
4244 2018-05-03 Zhibin Li <08826794brmt@gmail.com>
4253 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4255 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4259 we have to support both variants.
4266 2018-05-02 Masatake YAMATO <yamato@redhat.com>
4269 Since Linux 4.16, kernel appends the cpuid as suffix to the entry
4272 anon_inode:kvm-vcpu:0
4276 anon_inode:kvm-vcpu
4279 Update the test to deal with the new name as well as the old one.
4284 (main): Trim vcpu_dev to remove the cpuid suffix if needed.
4287 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4289 xlat: check that system definitions match fallback definitions.
4290 For each constant that is accompanied by a fallback definition,
4292 matches the fallback definition.
4301 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
4303 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4306 Linux kernel commit v2.6.32-rc7~23 has changed values of F_SETOWN_EX
4307 and F_GETOWN_EX constants introduced by commit v2.6.32-rc1~96 to fix
4310 Looks like the best way to handle this situation is to pretend that
4315 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4317 xlat: fix F_* fallback definitions on alpha, hppa, mips, and sparc.
4323 xlat: fix SI_* fallback definitions on mips.
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.
4340 Downstream vendors are *not* allowed to do this.
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
4352 Looks like the best way to handle this situation is to pretend that
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
4370 Looks like the best way to handle this situation is to pretend that
4375 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
4377 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4379 xlat: fix MCL_* fallback definitions on alpha, ppc, ppc64, and sparc.
4383 || __sparc__] (MCL_CURRENT, MCL_FUTURE, MCL_ONFAULT): Define to 0x2000,
4386 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4388 xlat: fix SOL_SOCKET fallback definition on alpha, hppa, mips, and sparc
4392 (SOL_SOCKET): Define to 0xffff.
4394 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4396 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4399 * tests/gen_tests.in (mount, mount-Xabbrev, mount-Xraw, mount-Xverbose):
4400 Add -a33 option.
4403 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4405 2018-04-28 Dmitry V. Levin <ldv@altlinux.org>
4410 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4413 * tests/mount-Xabbrev.c: New file.
4414 * tests/mount-Xraw.c: Likewise.
4415 * tests/mount-Xverbose.c: Likewise.
4417 * tests/pure_executables.list: Add mount-Xabbrev, mount-Xraw,
4418 and mount-Xverbose.
4420 * tests/gen_tests.in (mount-Xabbrev, mount-Xraw, mount-Xverbose): New
4424 * tests/old_mmap-Xabbrev.c: New file.
4425 * tests/old_mmap-Xraw.c: Likewise.
4426 * tests/old_mmap-Xverbose.c: Likewise.
4429 * tests/pure_executables.list: Add old_mmap-Xabbrev, old_mmap-Xraw,
4430 and old_mmap-Xverbose.
4432 * tests/gen_tests.in (old_mmap-Xabbrev, old_mmap-Xraw,
4433 old_mmap-Xverbose): New tests.
4435 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4440 * tests/mmap-Xabbrev.c: New file.
4441 * tests/mmap-Xraw.c: Likewise.
4442 * tests/mmap-Xverbose.c: Likewise.
4443 * tests/mmap64-Xabbrev.c: Likewise.
4444 * tests/mmap64-Xraw.c: Likewise.
4445 * tests/mmap64-Xverbose.c: Likewise.
4450 mmap64_Xverbose_CPPFLAGS): New variables, analogous to mmap64_CPPFLAGS.
4451 * tests/pure_executables.list: Add mmap-Xabbrev, mmap-Xraw,
4452 mmap-Xverbose, mmap64-Xabbrev, mmap64-Xraw, and mmap64-Xverbose.
4454 * tests/gen_tests.in (mmap-Xabbrev, mmap-Xraw, mmap-Xverbose,
4455 mmap64-Xabbrev, mmap64-Xraw, mmap64-Xverbose): New tests.
4457 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4459 2018-04-27 Dmitry V. Levin <ldv@altlinux.org>
4461 Fix fallback definition of MSG_ZEROCOPY.
4462 * xlat/msg_flags.in (MSG_ZEROCOPY): Set fallback definition to 0x4000000.
4466 2018-04-27 Dmitry V. Levin <ldv@altlinux.org>
4468 build: try to use _Static_assert if static_assert is not available.
4472 (static_assert): Define to _Static_assert.
4474 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4476 printmode: add xlat style support to print_symbolic_mode_t.
4477 * printmode.c (print_symbolic_mode_t): Set ifmt to an empty string,
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>
4522 Move xlat/evdev_abs.h inclusion from ioctl.c to evdev.c.
4530 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4532 Add support for value-indexed xlats.
4534 we can push the search time for them down to O(1).
4547 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4555 in order to respect current xlat style setting.
4561 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4564 In order to respect current xlat style setting.
4569 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4572 In order to respect xlat style setting.
4577 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4580 In order to respect current xlat style setting.
4585 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4588 In order to respect current xlat style setting.
4593 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4604 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4607 In order to respect current xlat style.
4613 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4616 It allows to use the following code pattern:
4622 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4624 2018-04-26 Eugene Syromyatnikov <evgsyr@gmail.com>
4626 strace.1.in: fix typo (Ronald -> Roland)
4629 NEWS: mention that -X option addresses Debian bug #692915.
4631 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4635 there's no need to include the header.
4639 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
4673 * xlat/evdev_switch.in (SW_RADIO): Remove, as it was renamed to
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>
4681 any normal operation, it makes sense to report the caller name.
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>
4709 Move xlat_verbose and xlat_format from xlat.c to defs.h.
4715 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4753 the value in order to avoid confusion.
4765 of non-abbreviated output.
4768 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
4797 As it looks like there's no reason to skip their printing.
4800 for holding non-zero value.
4803 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4812 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4818 args.meta.vend to the same values as args.data.pend and args.data.vend,
4821 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4827 BTRFS_IOC_SUBVOL_CREATE_V2 ioctl call that is supposed to be successful.
4829 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4831 tests/btrfs.c: add pid suffix to the created directory, remove it on exit
4841 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
4873 btrfs: convert btrfs_print_{objectid,key_type} to PRINT_FIELD_XVAL_U.
4877 MPERS_PRINTER_DECL(btrfs_ioctl)): Update calls to btrfs_print_key_type
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.
4907 to prxval_btrfs.
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>
4945 2018-04-20 Dmitry V. Levin <ldv@altlinux.org>
4951 * copyright-year-gen: Likewise. When $SOURCE_DATE_EPOCH is non-empty,
4952 use it as fallback date before the current system date.
4956 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4958 unwind: move unwind_tcb_init invocation to after_successful_attach.
4959 There is no need to call unwind_tcb_init before the tracee is attached.
4965 * unwind.c (unwind_tcb_fin): Skip if tcp->unwind_queue is NULL.
4967 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4969 strace: move setting of post-attach flags inside after_successful_attach
4971 Set TCB_ATTACHED, TCB_STARTUP, and "flags" in tcp->flags.
4974 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4976 strace: rename newoutf to after_successful_attach.
4977 This function is going to be used for other things that have to be done
4980 * strace.c (newoutf): Rename to after_successful_attach,
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>
5020 The rest of the decoder uses offsetof to check the length.
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.
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>
5080 We can't simply use print_xlat here due to the way those SKF_*_OFF
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>
5116 * defs.h (XLAT_STYLE_FORMAT_MASK): Update the value in order to
5123 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5129 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5145 raw constant number with respect to printing format style.
5151 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5157 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5159 prctl: use print_xlat_ex to print PR_SET_PTRACER_ANY.
5166 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5182 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5186 to account for xlat style setting.
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>
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
5267 Looks like the kernel side is not eager to fix the breakage,
5274 (main): Rewrite. Use variables saved by handler to print expected
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>
5289 The stack tracing feature used to be enabled in packages on x86_64 only.
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>
5343 a tail-allocated udev_monitor_netlink_header object and pass it
5344 to sys_send.
5348 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5356 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5365 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5367 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5375 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5377 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5380 BPF_PROG_QUERY was introduced in Linux commit v4.15-rc1~84^2~558^2~6.
5389 retrieve private data on exiting, pass it to decoder as well, explicitly
5396 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5399 And rename it to print_uint64_array_member to make the name sensible
5406 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5414 change addr argument type to uint64_t, call printaddr64 instead of
5417 umoven_or_printaddr_ignore_syserror, change addr argument type to
5420 change addr argument type to uint64_t.
5422 umoven_or_printaddr_ignore_syserror, change addr argument type to
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
5449 available to control whether libunwind can be used as an unwinder.
5459 * strace.1.in: Replace libunwind with an unwinder-agnostic wording.
5462 (print_version): Print stack-trace instead of stack-unwind.
5466 * tests/strace-V.test: Update expected output.
5468 2018-04-08 Eugene Syromyatnikov <evgsyr@gmail.com>
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).
5476 [BPF_OBJ_NAME_LEN]: Check that BPF_OBJ_NAME_LEN is equal to 16.
5480 to init_BPF_PROG_LOAD_attr3.
5481 (print_BPF_PROG_LOAD_attr): Rename to print_BPF_PROG_LOAD_attr3.
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.
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>
5508 msgtyp has to be treated as a signed type all the way from fetching
5509 to printing.
5513 2018-04-05 Dmitry V. Levin <ldv@altlinux.org>
5516 * strace.spec.in (Source): Change to https://strace.io/files/.
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.
5551 This change renames functions exported to strace core part from unwind
5555 functions. One is for manipulating back-end itself, "unwind_" prefix
5556 is used for this type. Another is for manipulating back-end private data
5557 structure (unwind_ctx) attached to tcb, "unwind_tcb_" is used for this
5560 This naming should help people to understand unwind subsystem
5561 and the relation between unwind subsystem and back-ends.
5563 * defs.h (unwind_print_stacktrace): Rename to unwind_tcb_print.
5564 (unwind_capture_stacktrace): Rename to unwind_tcb_capture.
5569 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5571 unwind: add unwind_ prefix to struct tcb.queue field and its type.
5572 The names given to struct tcb.queue field and its type are too common,
5574 to struct tcb.
5576 * defs.h (struct tcb): Rename queue field to unwind_queue,
5577 rename its type queue_t to unwind_queue_t.
5578 * unwind.c (struct unwind_queue_t): Rename to unwind_queue_t.
5581 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5584 Narrowing the area where the code refers to names associated with
5585 libunwind is needed to utilize libdw of elfutils as an alternative
5588 * defs.h (struct tcb): Rename libunwind_ui field to unwind_ctx, change
5589 its type to "void *".
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.
5604 (strace_fopen): Open file in "a" mode if open_append is set to true.
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>
5629 It makes sense to try to dump the argument of write syscalls as they can
5633 read_set to the end of the function.
5634 * tests/read-write.c: Add a check for this behaviour.
5635 * tests/pread64-pwrite64.c: Update expected output.
5638 Suggested-by: J. Bruce Fields <bfields@fieldses.org>
5639 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=436284
5641 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5652 * ci/install-dependencies.sh (common_packages): Add faketime.
5654 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5657 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5660 There is no reason to check for auxstr being non-NULL
5663 * sched.c (SYS_FUNC(sched_getscheduler)): Do not check tcp->auxstr,
5667 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5672 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5674 strace.1.in: fix formatting of -e trace class descriptions.
5675 Use .TP instead .PP as it is ought to be.
5677 * strace.1.in (.SS Filtering): Use .TP instead .PP as it is ought to be.
5679 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5685 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5687 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5692 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5697 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5700 Since pointers stored in the bpf_attr union are 64-bit regardless
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.
5735 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5737 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5740 The aim of this change is to introduce an ability to perform multiple
5741 checks for a specific bpf command. In order to achieve so, all the
5743 it. There are also some provisions made in regard to future changes
5748 (test_bpf_): Rename to...
5751 attribute initialisation routine: provide a pointer to locally defined
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>
5780 A variant of PRINT_FIELD_CSTRING with an ability to pass string size
5785 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5788 * print_fields.h (PRINT_FIELD_CSTRING): Add MUST_BE_ARRAY to the size
5789 value in order to check whether (where_).field_ is an array in compile
5794 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5808 union bpf_attr, this allows more checks to be implemented in the future.
5833 (sample_BPF_PROG_TEST_RUN_attr): Change type from union bpf_attr to
5836 to struct BPF_OBJ_GET_INFO_BY_FD_struct, all users updated.
5849 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5861 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5863 bpf: move definitions of bpf_attr structures to separate header file.
5865 to new macros.
5870 (DEF_BPF_CMD_DECODER): Rename to BEGIN_BPF_CMD_DECODER, add code common
5871 to all decoders. All users updated.
5872 (END_BPF_CMD_DECODER): New macro, add its invocation to all users
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,
5883 (CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL): New definition, default to 0.
5885 Define to 1.
5902 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5904 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5907 In order to check an address against maximum addr/kaddr value
5912 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5915 We are going to use static_assert provided by <assert.h> or,
5924 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5926 tests: forward SIZEOF_KERNEL_LONG_T and SIZEOF_LONG to C preprocessor.
5930 Redefine to TESTS_SIZEOF_KERNEL_LONG_T.
5931 [TESTS_SIZEOF_LONG] (SIZEOF_LONG): Redefine to TESTS_SIZEOF_LONG.
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>
5944 2018-04-03 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
5947 * maint/ioctls_sym.sh: Add aarch64 and mips architectures to the list
5948 of kvm-capable architectures.
5952 Fixes: v4.15~92 ("Move KVM_* ioctl entries from ioctls_inc*.h to ioctls_arch*.h")
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>
5984 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5990 to be printed.
5993 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5997 lead to lots of code duplication.
6001 non-zeroeness flags check.
6004 2018-04-01 Dmitry V. Levin <ldv@altlinux.org>
6008 the world and translate something to the language of their choice.
6011 to errno codes, making it consistent with error diagnostics of other
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)
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.
6038 (RVAL_DECIMAL): Rename to RVAL_UDECIMAL.
6045 * tests/inject-nf.c (main): Update expected output.
6047 2018-03-29 Dmitry V. Levin <ldv@altlinux.org>
6050 * tests/qual_inject-syntax.test: Check for negative delay injection
6053 2018-03-29 Eugene Syromyatnikov <evgsyr@gmail.com>
6056 Extend the range of injected return value to the maximum, print warnings
6062 variable back to int, check INJECT_F_ERROR along with INJECT_F_RETVAL,
6063 use strtoull to parse retval argument, print warnings in case of retval
6067 to determine whether a fault injection or retval injection has to be
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>
6082 Move delay interface from defs.h to delay.h.
6085 * delay.h: ... to new file.
6091 2018-03-28 Dmitry V. Levin <ldv@altlinux.org>
6094 Add one level of indirection to decrease the size of struct inject_data
6106 (tamper_with_syscall_exiting): Obtain the value that has to be injected
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.
6129 (MAP_HASSEMAPHORE): Rename to...
6131 Alpha-specific constant (from arch/alpha/include/uapi/asm/mman.h).
6134 an architecture-specific constant (from
6136 (_MAP_UNALIGNED): Add a comment that this is an Alpha-specific constant
6139 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6143 * tests/kern_features-fault.test: New test.
6145 * tests/Makefile.am (DECODER_TESTS): Add kern_features-fault.test.
6149 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6151 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6162 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6164 2018-03-27 Dmitry V. Levin <ldv@altlinux.org>
6166 evdev: move mpers-specific parsers to a separate file.
6168 and prepares evdev parsers to use printxval_bsearch.
6171 * evdev.c (evdev_ioctl): Un-mpersify.
6173 to evdev_write_ioctl_mpers.
6174 (decode_envelope, ff_effect_ioctl): Move to...
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
6182 of ci we have to be more conservative and use the name portable across
6185 * ci/install-dependencies.sh (common_packages): Add libunwind8-dev.
6187 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6189 2018-03-23 Eugene Syromyatnikov <evgsyr@gmail.com>
6192 * tests/inject-nf.c: New file.
6193 * tests/inject-nf.test: New test.
6194 * tests/.gitignore: Add inject-nf.
6196 (MISC_TESTS): Add inject-nf.test.
6198 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6200 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6237 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6242 $ sh -uc '. tests/init.sh; kernel_version_code 4.5'
6247 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6259 is_delay_timer_created to check whether the delay signal handler
6260 has to be unblocked.
6263 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6276 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6280 is already created and its signal handler is going to be unblocked.
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.
6290 As it looks like there's no compelling reason to keep it as a macro and
6292 them error-prone.
6294 * tests/bpf.c (TEST_BPF_): Convert it to...
6295 (test_bpf): ...this. Rename cmd_ to cmd, cmd_str_ to cmd_str,
6296 init_first_ to init_first, print_first_ to print_first, init_attr_
6297 to init_attr, print_attr_ to print_attr.
6300 2018-03-22 Eugene Syromyatnikov <evgsyr@gmail.com>
6305 2018-03-22 Elvira Khabirova <lineprinter@altlinux.org>
6315 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6317 2018-03-22 Elvira Khabirova <lineprinter@altlinux.org>
6320 Add -e inject=SET:delay_enter= and -e inject=SET:delay_exit= options.
6322 * configure.ac (AC_SEARCH_LIBS): Check for timer_create -lrt.
6353 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6355 2018-03-22 Dmitry V. Levin <ldv@altlinux.org>
6365 2018-03-21 Eugene Syromyatnikov <evgsyr@gmail.com>
6373 commit v3.18-rc1~52^2~1^2~7) version. Print fields of union bpf_attr
6375 (new fields were introduced in Linux commits v3.18-rc1~52^2~1^2~4,
6376 v4.1-rc1~84^2~50, and v4.12-rc2~34^2~29^2~2).
6379 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6381 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6383 btrfs: print struct btrfs_ioctl_logical_ino_args.reserved if non-zero.
6388 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6390 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6392 Move is_filled and IS_ZERO to macros.h, rename IS_ZERO to IS_ARRAY_ZERO.
6396 (is_filled): Add inline qualifier, add const qualifier to ptr.
6397 (IS_ZERO): Rename to IS_ARRAY_ZERO, cast arr_ to "const char *".
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.
6406 * m4/mpers.m4 (st_MPERS): Add $IFLAG to CPPFLAGS for mpers_test.sh
6409 Complements: v4.11~223 ("mpers.m4: workaround missing gnu/stubs-*.h files")
6411 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6413 README.md: add references to binary strace packages.
6414 * README.md: Add references to binary strace packages in OBS,
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>
6429 * bootstrap: Install README before invoking autoreconf to get README
6432 Fixes: v4.21-93-g4bb8454 ("Move README to dist subdirectory")
6434 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6437 This is required to implement more precise time measurements.
6441 from struct timeval to struct timespec, all users updated.
6443 the type of "struct timeval *" argument to "struct timespec *", all
6445 (tv_nz, tv_cmp, tv_float, tv_add, tv_sub, tv_div, tv_mul): Rename to
6447 the type of all "struct timeval *" arguments to "struct timespec *",
6450 Rename to ts_nz, ts_cmp, ts_float, ts_add, ts_sub, ts_div, and ts_mul.
6451 Change the type of all "struct timeval *" arguments to "struct timespec *".
6453 from struct timeval to struct timespec, all users updated.
6454 (overhead): Change type from struct timeval to struct timespec, all
6456 (count_syscall): Change the type of "struct timeval *" argument to
6459 to struct timespec, call clock_gettime instead of gettimeofday.
6461 to struct timespec.
6465 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6467 Fix -O option handling.
6469 nowadays, making -O option almost useless.
6475 2018-03-16 Dmitry V. Levin <ldv@altlinux.org>
6479 (overhead): Initialize to zero.
6486 to their first use.
6488 2018-03-16 Dmitry V. Levin <ldv@altlinux.org>
6490 Move install.texi to maint subdirectory.
6491 This file comes from GNU Autoconf and is used to generate INSTALL file.
6496 2018-03-16 Eugene Syromyatnikov <evgsyr@gmail.com>
6499 * README-hacking (Requirements): Enhance phrasing.
6500 (Commit log requirements): Rename to "Commit requirements",
6502 to the Linux kernel coding style and scripts/checkpatch.pl script.
6504 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6506 2018-03-16 Eugene Syromyatnikov <evgsyr@gmail.com>
6508 Move README to dist subdirectory.
6510 Nowadays it appears to be confusing for those who build strace
6515 * bootstrap: Copy README from dist subdirectory to the toplevel
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
6626 to config.log when ./configure fails.
6628 ci: rename travis-build.sh and travis-install.sh scripts.
6629 * travis-build.sh: Rename to ci/run-build-and-tests.sh, all callers
6631 * travis-install.sh: Rename to ci/install-dependencies.sh, all callers
6634 tests: extend ioctl.test libc protection to -y output.
6636 descriptor arguments to -y output.
6638 2018-03-12 Harsha Sharma <harshasharmaiitr@gmail.com>
6645 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6655 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6657 Move nl_netfilter_msg_types definition from netlink.c to netlink_netfilter.c
6661 netlink_netfilter.c is going to need them soon.
6667 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6684 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6692 2018-03-10 Dmitry V. Levin <ldv@altlinux.org>
6696 uint16_t to uint8_t to make room for more injection features.
6698 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6704 2018-03-09 Dmitry V. Levin <ldv@altlinux.org>
6706 xlat: add comments to all sorted xlat files.
6707 Add a short comment describing the method used to sort entries.
6720 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6723 get_pagesize() has a static cache anyway, no need to duplicate it.
6728 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6733 2018-03-08 Dmitry V. Levin <ldv@altlinux.org>
6735 xlat: provide fallback definitions for arch-independent mmap flags.
6741 Fixes: v4.21-67-g8c209d1 ("tests: fix remap_file_pages.test breakage on hppa")
6743 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6750 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6754 defined to 0x3 instead of 0xf, and the tests hit that corner case.
6762 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6767 printxval_searchnn to print Ethernet protocols.
6771 printxval to print Ethernet protocols.
6775 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6777 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6779 Change sorted arrays to be terminated with XLAT_END like unsorted arrays
6780 It is quite unwieldy to have this distinction between sorted and
6794 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6796 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6802 Reported-by: Mike Parker
6805 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6807 strace.1.in: mention that -c suppresses regular output.
6808 As the note that -C makes strace "also print regular output" can be
6811 * strace.1.in (.SS Statistics) <.TP .B \-c>: Mention that -c supresses
6814 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6818 Linux commit v4.7-rc1~40^2~6.
6826 by Linux commit v4.15-rc1~84^2~558^2~7.
6830 by Linux commit v4.15-rc1~84^2~427^2~4.
6834 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6837 When built with --enable-gcc-Werror, s390_sthyi test build fails
6840 s390_sthyi.c:63:1: error: ‘print_u8’ defined but not used [-Werror=unused-function]
6846 used in non-verbose mode. Let's avoid this in the future by inlining
6854 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6857 The field has been introduced in Linux commit v4.15-rc1~135^2~17.
6866 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6876 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6879 Sometimes, 64-bit value is expected to be interpreted as an address
6884 to uint64_t.
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>
6918 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6920 2018-03-06 Dmitry V. Levin <ldv@altlinux.org>
6922 build: prepare for -Wimplicit-fallthrough=5.
6938 * m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Wimplicit-fallthrough=5.
6942 2018-03-05 Eugene Syromyatnikov <evgsyr@gmail.com>
6944 xlat: add eBPF-based device controller constants.
6947 v4.15-rc1~84^2~120^2~2.
6953 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
6955 xlat: provide fallback definitions for input event constants.
6959 while read r; do [ -n "$r" ] &&
6960 sed -rn 's/^#define[[:space:]]+('$r'[[:space:]]+[^[:space:]]+).*/\1/p' \
6961 ~/dev/linux/include/uapi/linux/input-event-codes.h || echo;
6963 $ sort -s -n -k1,1 \
6966 | sed 's/^[0-9]* //' > xlat/evdev_keycode.in
6968 It also verifies that the values are sorted and bsearch-ready.
6972 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
6999 xlat: provide fallback definitions for SCTP socket option constants.
7002 from Linux commit v2.6.33-rc1~388^2~167^2~7.
7006 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7009 * xlat/socksctpoptions.in (SCTP_DELAYED_ACK): Rename to...
7010 (SCTP_DELAYED_SACK): ...this, per Linux commit v2.6.38-rc2~33^2.
7012 v4.13-rc1~157^2~39.
7014 v4.15-rc1~84^2~567^2~3.
7016 v4.15-rc1~84^2~567^2~2.
7018 v4.16-rc1~123^2~384^2~11.
7021 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7023 xlat: provide fallback definitions for Ethernet protocol constants.
7024 As those are not architecture-specific.
7026 * xlat/ethernet_protocols.in: Add values to constants.
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.
7043 to print_pixelformat.
7047 case V4L2_BUF_TYPE_VBI_OUTPUT>: Pass v4l2_pix_fmts to print_pixelformat.
7049 V4L2_BUF_TYPE_SDR_CAPTURE>: Pass v4l2_sdr_fmts to print_pixelformat.
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),
7061 * v4l2.c (print_pixelformat): Change initialisation to a simple
7066 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7067 Fixes: v4.10~371 "Implement Video4Linux video-input ioctls decoder"
7069 2018-03-01 Dmitry V. Levin <ldv@altlinux.org>
7072 Starting with commit v4.21-37-g4f63bc70ca95012d72e288fc3c1eeb3ba26068a4,
7074 "tests.h" do not need to include <stdbool.h>.
7090 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7092 tests: check printing of block/char device numbers in -yy mode.
7093 * tests/dev-yy.c: New file.
7094 * tests/pure_executables.list: Add dev-yy.
7096 * tests/gen_tests.in (dev-yy): New test.
7098 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7100 printfd: print character/block device number in -yy mode.
7104 (printfd): Move socket matching/printing logic to printsocket. Check
7105 also for printdev. Escape opening angle bracket in addition to closing angle
7107 * tests/fsync-y.c: Update expected output.
7111 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7113 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7118 * tests/fsync-y.c (main): Update expected output.
7121 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7124 Quotes are not always used to denote string limits; printfd uses angle
7126 set of additional characters in order to avoid ambiguities regarding
7133 escape_chars parameter, pass it to string_quote call.
7145 * tests/fsync-y.c: Pass NULL as escape_chars argument of
7148 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7150 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7152 tests: check file name printing in strace -y mode.
7153 * tests/fsync-y.c: New file.
7154 * tests/.gitignore: Add fsync-y.
7156 * tests/gen_tests.in (fsync-y): New test.
7158 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7160 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7178 in unabbreviated octal printing from '9' to '7'.
7183 character after octal-escaped one instead of the first one in the
7186 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7188 util.c: reduce indentation in non-hexadecimal case in string_quote.
7194 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7200 2018-02-27 Dmitry V. Levin <ldv@altlinux.org>
7208 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7212 enumeration items introduced by linux kernel commit v4.16-rc1~123^2~259.
7219 constants introduced by linux kernel commits v4.13-rc1~205^2~27 and
7220 v4.16-rc1~164^2~8, respectively.
7225 xlat: provide fallback definitions for arch-independent poll event flags
7229 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7232 POLL_BUSY_LOOP was introduced by linux kernel commit v3.11-rc1~64^2~129
7233 as POLL_LL and then renamed in v3.11-rc1~64^2~9. POLLRDHUP was
7234 introduced by linux kernel commit v2.6.17-rc1~796. POLLMSG and
7236 kernel commit v3.3-rc5~8 for internal use only.
7242 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7244 xlat: add arch-specific si_codes constants.
7245 Based on Linux commits v4.16-rc1~159^2~17, v4.16-rc1~159^2~16,
7246 v4.16-rc1~159^2~15, and v4.16-rc1~159^2~14.
7259 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7264 v4.15-rc4~13^2~5^2~2 and v4.16-rc1~123^2~139^2~5.
7271 constants introduced by linux kernel commits v4.15-rc1~84^2~557,
7272 v4.15-rc1~84^2~133^2, v4.16-rc1~123^2~91, and v4.16-rc1~123^2~24^2.
7285 kernel commit v4.16-rc1~145^2~7.
7289 * tests/net-yy-inet.c: Generalise test.
7290 * tests/net-yy-inet6.c: New file.
7291 * tests/pure_executables.list: Add net-yy-inet6.
7293 * tests/gen_tests.in (net-yy-inet6): New entry.
7295 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7298 Follow a common practice for printing address:port pair to distinguish
7302 initialise them to open/closing brackets or empty strings based
7307 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7309 strace.spec.in: add gcc to build requirements.
7310 There are rumors in circulation that some rpm-based distributions
7311 are going to exclude gcc from their default build environments.
7312 Workaround this policy silliness by adding gcc to build requirements.
7316 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7318 Move definitions of fopen_for_input to largefile_wrappers.h.
7324 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7334 * mmap_cache.h: ... to this new file.
7341 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7347 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7349 mmap_cache: add function to enable mmap_cache.
7351 can be used by other part of strace, a way to enable mmap_cache directly
7362 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7365 mmap_cache_delete function used to be called by destructor of unwind
7372 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7375 To make mmap_cache reusable, records protection bits of mmap entries.
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>
7407 to mmap_cache.c, a new file.
7410 * mmap_cache.c: ... to this new file.
7421 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7430 to upper level code.
7439 2018-02-25 Dmitry V. Levin <ldv@altlinux.org>
7441 debian: sync with 4.21-1 package.
7446 * debian/control (Build-Depends): Add dependency on libbluetooth-dev.
7447 (Standards-Version): Update to 4.1.3.
7448 (Vcs-Git, Vcs-Browser): Move from alioth to salsa.d.o.
7449 (strace, strace-udeb) <Architecture>: Change to linux-any.
7450 (strace64, strace-udeb) <Priority>: Change to optional.
7454 (build/Makefile, build-udeb/Makefile, build64/Makefile): Depend on it.
7455 (binary-arch): Use build64/strace.1 for strace64 subpackage.
7459 2018-02-24 Eugene Syromyatnikov <evgsyr@gmail.com>
7461 m4/mpers.m4: fix mpers name in comments added to config.h.
7467 2018-02-24 Dmitry V. Levin <ldv@altlinux.org>
7470 As <inttypes.h> is included in files generated by mpers.awk to obtain
7477 2018-02-23 Dmitry V. Levin <ldv@altlinux.org>
7479 Wipe out references to defunct sourceforge.
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.
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>
7542 2018-02-15 Dmitry V. Levin <ldv@altlinux.org>
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>
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.
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
7603 results in writing %rbp to the stack, causing premature KVM_EXIT_MMIO.
7604 It could be possible to avoid such problems by "naked" attribute but,
7607 to the global scope.
7616 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7618 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7626 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7630 accept call on sparc. Unfortunately, it's impossible to simply fall
7632 v4.4-rc8~4^2~1.
7636 * tests/net-y-unix.c: Include accept_compat.h, use do_accept()
7638 * tests/net-yy-inet.c: Likewise.
7639 * tests/net-yy-unix.c: Likewise.
7642 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7644 debian: build strace-udeb separately.
7645 * debian/rules (extra_build_targets): Add build-udeb-stamp.
7646 (build-udeb/Makefile): New rule.
7647 (clean): Remove build-udeb.
7648 * debian/strace-udeb.install: Update.
7650 Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826223
7652 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7654 Enable symbol demangling in deb- and rpm-driven builds.
7655 * debian/control (Build-Depends) [amd64]: Add libiberty-dev.
7656 * strace.spec.in (buildrequires_libunwind_devel): Add binutils-devel.
7658 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7660 debian: re-enable -k option on x86_64.
7663 * debian/control (Build-Depends) [amd64]: Add libunwind-dev.
7665 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7667 Add "strace -V" output to build log.
7668 * strace.spec.in (%check): Print "strace -V" output before
7670 * debian/rules (%-stamp): Likewise.
7672 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7676 by linux kernel commit v4.16-rc1~93^2~72.
7680 by linux kernel commit v4.16-rc1~93^2~85.
7687 commits v4.16-rc1~93^2~70 and v4.16-rc1~93^2~69, respectively.
7693 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7695 linux/ia64: remove IA-32 mode support.
7697 within reach that would allow to test it.
7706 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7709 In order to have the same view as tracee has, with regards to
7713 return value tampering to re-initialise u_rval and u_error fields
7716 2018-02-11 Eugene Syromyatnikov <evgsyr@gmail.com>
7720 define to 1.
7724 2018-02-11 Dmitry V. Levin <ldv@altlinux.org>
7741 2018-02-11 Dmitry V. Levin <ldv@altlinux.org>
7754 * tests/printpath-umovestr.c: Likewise.
7758 * tests/net-y-unix.c: Do not include <sys/param.h>.
7759 * tests/net-yy-unix.c: Likewise.
7761 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7770 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7774 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7781 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7783 Change type of injected rval to kernel_long_t.
7784 * defs.h (struct inject_data): Change type of rval field to
7792 define to 1.
7799 (HAVE_ARCH_DEDICATED_ERR_REG): New macro, define to 0.
7803 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7808 * string_to_uint.c (string_to_uint_ex): Change to work with long long.
7815 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7817 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7825 [178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
7828 [178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
7830 * linux/aarch64/syscallent.h ([1060]): Add PU flag to getpgrp syscalls.
7832 [378]): Add PU flag to getxpid, getxuid, getxgid, getpgrp, getpagesize,
7834 * linux/arc/syscallent.h ([246]): Add PU flag to arc_gettls syscalls.
7837 Add PU flag to getpid, getuid, getgid, geteuid, getegid, getppid,
7841 [176]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
7844 [199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
7848 [206]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
7851 [199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
7855 [1063], [1105], [1171]): Add PU flag to getpid, getppid, getuid,
7859 to getpid, getuid, getgid, geteuid, getegid, getppid, getpgrp,
7862 * linux/metag/syscallent.h ([248]): Add PU flag to metag_get_tls
7865 [65], [199], [200], [201], [202], [224]): Add PU flag to getpid,
7869 [65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
7872 [65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
7875 [199], [200], [201], [202], [236]): Add PU flag to getpid, getuid,
7879 [202], [236]): Add PU flag to getpid, getppid, getpgrp, getuid,
7882 [199], [200], [201], [202], [252]): Add PU flag to getpid, getuid,
7886 [199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
7890 [143], [197], [340]): Add PU flag to getpid, getuid, getgid, geteuid,
7893 [64], [69], [70], [81], [143], [197], [340]): Add PU flag to getpid,
7897 [111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
7900 [111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
7903 [150], [151]): Add PU flag to getpid, gettid, getuid, getgid, geteuid,
7912 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7914 tests/nsyscall-d.test: swap exp and log in diff calls.
7917 * tests/nsyscalls-d.test: swap arguments of match_diff calls.
7919 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7925 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7934 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7936 Handle very special __ARM_NR_-prefixed syscalls.
7953 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7966 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7978 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7980 Move shuffle_scno() invocation to get_scno.
7985 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7987 Move shuffle_scno to arch-specific file.
7989 to compat personality only.
7992 (shuffle_scno): Move it to a...
7996 * linux/shuffle_scno.c: New file, fallback trivial shuffle_scno
8000 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
8038 Add SYSCALL_NEVER_FAILS flag to getpgrp.
8062 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8064 linux/x86_64/get_error.c: do not sign-extend if no error happened.
8066 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8074 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8078 MEMBARRIER_CMD_SHARED to MEMBARRIER_CMD_GLOBAL.
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
8104 the sentence's voice to passive, some other rephrasing. Mention
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
8120 workaround this gcc+glibc bug by changing the code to use this
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>
8130 to use kernel's fcntl.h header.
8133 O_LARGEFILE fallback definitions assuming that the kernel headers
8141 (main): Use it to check decoding of all access modes and file flags.
8142 * tests/gen_tests.in (openat): Add -a option.
8144 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
8146 2018-02-06 Dmitry V. Levin <ldv@altlinux.org>
8151 v4.15-rc1~84^2~387 and v4.15-rc1~84^2~339, respectively.
8156 commit v4.15-rc1~84^2~601.
8161 by linux kernel commits v4.15-rc1~71^2^2~23 and v4.15-rc1~71^2^2~12,
8165 2018-02-06 Eugene Syromyatnikov <evgsyr@gmail.com>
8167 tests: avoid triggering -Wstringop-truncation in ioctl_dm.c.
8173 Move large file-related wrappers to a separate header.
8174 * strace.c [_LARGEFILE64_SOURCE]: Move the definitions under it to a...
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>
8202 * linux/s390/syscallent.h ([352]): Change decoder to s390_pci_mmio_write.
8203 ([353]): Change decoder to s390_pci_mmio_read.
8215 * linux/s390/syscallent.h ([342]): Change decoder to s390_runtime_instr.
8222 * tests/s390_guarded_storage-v.c: New file.
8224 * tests/.gitignore: Add s390_guarded_storage, s390_guarded_storage-v.
8226 * tests/gen_tests.in (s390_guarded_storage, s390_guarded_storage-v):
8230 * linux/s390/syscallent.h ([378]): Change decoder to s390_guarded_storage.
8243 * tests/s390_sthyi-v.c: New file.
8245 * tests/.gitignore: Add s390_sthyi, s390_sthyi-v.
8252 * linux/s390/syscallent.h ([380]): Change decoder to s390_sthyi.
8256 print_fields.h: add macro to print hexadecimal array field.
8260 2018-01-29 Eugene Syromyatnikov <evgsyr@gmail.com>
8262 Add print_quoted_string flag to generate comment.
8271 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8274 As the remaining non-generated ioctl tests differ from ioctl.test only
8275 in strace options, and since gen_tests.sh can pass arguments to sourced
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.
8291 * tests/ioctl_loop-nv.test: Likewise.
8294 * tests/ioctl-v.sh: Likewise.
8297 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8299 tests/gen_tests.sh: enable passing arguments to sourced tests.
8302 (case "$arg0" in) <+*)>: Set command line to $args and source $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.
8336 (CHECK_FUTEX_GENERIC): Pass __func__ and __LINE__ to futex_error.
8338 Add syscall entry for ARM-specific get_tls syscall.
8340 (ARM_LAST_SPECIAL_SYSCALL): Update to 6.
8343 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8345 Fix syscall descriptions for ARM-specific system calls.
8354 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8369 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8372 We (apparently) had a long-standing test failure inside strace-ff.test
8376 Let's try to patch it up by calling trace_syscall when we receive
8388 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8390 2018-01-24 Dmitry V. Levin <ldv@altlinux.org>
8393 * tests/set_ptracer_any.c (main) [HAVE_PRCTL]: Provide fallback
8395 set all unused prctl arguments to 0.
8397 2018-01-24 Dmitry V. Levin <ldv@altlinux.org>
8402 process dumpable flag is cleared, on ia64 this results to all syscall
8408 This condition used to be triggered by prctl-dumpable test that caused
8409 strace to hang indefinitely.
8413 * tests/prctl-dumpable.c [__ia64__]: Skip the test.
8415 2018-01-24 Eugene Syromyatnikov <evgsyr@gmail.com>
8418 print_event_exit should have printing_tcp setup analogous to printleader and
8422 * strace.c (print_event_exit): Set printing_tcp to tcp before printing
8425 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8429 * tests/oldselect-P.c: New file.
8430 * tests/oldselect-efault-P.c: Likewise.
8431 * tests/oldselect-efault.c: Likewise.
8433 * tests/pure_executables.list: Add oldselect-efault.
8434 * tests/gen_tests.in (oldselect, oldselect-P, oldselect-efault,
8435 oldselect-efault-P): New entries.
8438 * tests/Makefile.am (check_PROGRAMS): Add oldselect-P
8439 and oldselect-efault-P.
8442 * tests/.gitignore: Add oldselect-P, oldselect-efault,
8443 and oldselect-efault-P.
8450 * tests/_newselect-P.c: New file.
8451 * tests/select-P.c: Likewise.
8452 * tests/Makefile.am (check_PROGRAMS): Add _newselect-P and select-P.
8454 * tests/gen_tests.in (_newselect-P, select-P): New entries.
8459 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8461 tests: redirect stdin to /dev/null.
8463 by reopening it to input from /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.
8474 macros defined to themselves.
8496 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8512 2018-01-23 Eugene Syromyatnikov <evgsyr@gmail.com>
8519 decode_inet_diag_req_v2, decode_inet_diag_msg): Cast to char *
8537 2018-01-23 Eugene Syromyatnikov <evgsyr@gmail.com>
8544 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8546 Move decoder of getpagesize syscall to libstrace.
8548 to libstrace allows to get rid of getpagesize related ifdefs and check
8552 * getpagesize.c: ... to this new file.
8555 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8558 Some old systems that still make some sense to be supported have only
8561 In order to achieve that, multiple changes have been implemented:
8562 - Multidimensional arrays are replaced with single-dimensional ones.
8563 In most places it's a "][" -> ", " replacement, as awk allows some
8566 to iterate over them later, so we store that information in
8567 additional arrays in order to get the keys.
8568 - "switch" statements are replaced with sets of "if ... else if ...
8570 a temporary variable in what_is order to store expression value, for
8572 - No support for array iteration ordering. This one is most ugly of
8573 them all. Luckily, not that ugly, we've just had to process index a
8574 bit in order to make it lexicographically sortable and add two
8575 temporary arrays containing sorted indices in order to sort over them
8576 instead of those two arrays that we've added in order to work around
8582 access with comma-concatenated index.
8585 comma-concatenated index. Use comma-concatenated pair of (array_idx,
8586 "seq") in order to check presence of the item in an array.
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
8605 over array_special to go over all the items that have "special" field.
8606 Iterate over array_names to go over all items that have "name" field.
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>
8638 Move definition of personality macros to arch_defs_.h.
8655 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8657 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8660 In order to simplify HAVE_SA_RESTORER logic a bit.
8668 * signal.c [HAVE_ARCH_SA_RESTORER]: Define HAVE_SA_RESTORER to it.
8669 [!HAVE_ARCH_SA_RESTORER && SA_RESTORER]: Define HAVE_SA_RESTORER to 1.
8670 [!HAVE_ARCH_SA_RESTORER && !SA_RESTORER]: Define HAVE_SA_RESTORER to 0.
8672 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8720 * defs.h: Use #if instead of #ifdef to check HAVE_ARCH_OLD_MMAP.
8721 * mem.c: Use #if instead of #ifdef to check HAVE_ARCH_OLD_MMAP
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.
8731 * linux/arch_defs.h: Rename to linux/arch_defs_.h.
8732 * linux/aarch64/arch_defs.h: Rename to linux/aarch64/arch_defs_.h.
8733 * linux/arm/arch_defs.h: Rename to linux/arm/arch_defs_.h.
8734 * linux/i386/arch_defs.h: Rename to linux/i386/arch_defs_.h.
8735 * linux/m68k/arch_defs.h: Rename to linux/m68k/arch_defs_.h.
8736 * linux/s390/arch_defs.h: Rename to linux/s390/arch_defs_.h.
8737 * linux/s390x/arch_defs.h: Rename to linux/s390x/arch_defs_.h.
8738 * linux/x32/arch_defs.h: Rename to linux/x32/arch_defs_.h.
8739 * linux/x86_64/arch_defs.h: Rename to linux/x86_64/arch_defs_.h.
8742 (EXTRA_DIST): Rename linux/*/arch_defs.h to linux/*/arch_defs_.h.
8744 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8752 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8758 void to int.
8759 (printstrn, printstr): Change return type from void to int, return
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>
8769 We return the size that includes \0 in order to preserve existing
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’
8786 * mpers.awk (END): Add #ifndef guard to mpers_ptr_t typedef.
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>
8805 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8811 * v4l2.c: Wrap references to struct v4l2_create with
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.
8839 * configure.ac (case "$host_cpu" in) <s390x>: Set arch_m32 to s390, set
8840 cc_flags_m32 to -m31.
8844 macro, define to s390_frame_ptr.
8845 [!SIGNAL_FRAMESIZE] (SIGNAL_FRAMESIZE): New macro, define to
8847 [!PTR_TYPE] (PTR_TYPE): New macro, define to unsigned long.
8849 instead of s390_frame_ptr, __SIGNAL_FRAMESIZE, and pointer-sized type,
8852 * to s390_regset.
8866 * linux/s390x/arch_rt_sigframe.c: Conditionalize on tcp->currpers.
8878 * Makefile.am (EXTRA_DIST): Add new files added to linux/s390x.
8880 to 2.
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>
8899 * tests/ppoll-P.c: New file.
8900 * tests/pure_executables.list: Add ppoll-P.
8902 * tests/gen_tests.in (ppoll-P): New entry.
8909 * tests/poll-P.c: New file.
8910 * tests/pure_executables.list: Add poll-P.
8912 * tests/poll-P.test: New test.
8913 * tests/Makefile.am (DECODER_TESTS): Add poll-P.test.
8915 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8917 tests: enable old_mmap-P.test on s390x.
8918 As s390x is the only 64-bit architecture that has old_mmap,
8922 (main): Change int types to long, extend numerals to 64 bit, change
8923 printing format qualifiers to corresponding long types.
8925 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8927 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8934 * tests/old_mmap-P.c: New file.
8935 * tests/pure_executables.list: Add old_mmap-P.
8937 * tests/gen_tests.in: Add old_mmap-P test.
8939 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8942 As these system calls have only one argument that points to the
8944 implementation is incorrect. In order to fix this, let's use recently
8945 introduced fetch_old_mmap_args in order to get actual arguments suitable
8953 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8955 Test non-verbose old_mmap output.
8956 * tests/old_mmap-v-none.c: New file. Include old_mmap.c.
8957 * tests/pure_executables.list: Add old_mmap-v-none.
8959 * tests/gen_tests.in (old_mmap-v-none): New entry.
8961 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8971 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8977 As it is, it also fixes the case of non-verbose printing of old_mmap
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>
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>
9030 syscall.c: add ability to set personality based on GETREGSET iov size.
9032 and use its size to detect current personality. Let's generalise this
9033 approach and also avoid subtle errors when we get register but forget to
9036 Note that in order to employ this behaviour, architecture has to use
9045 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9050 * defs.h (set_personality): Change argument type to unsigned int.
9051 * syscall.c (set_personality): Change argument type to unsigned int,
9054 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9056 syscall.c: move current_personality check to set_personality.
9057 As all the personality-dependent entries are initially in sync, we can
9061 * syscall.c (current_wordsize, current_klongsize): Initialise to 0'th
9062 personality value in order to make the statement about "all the
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.
9072 to a process that previously had different personality but returning
9073 from execve to that same personality into) it is possible that
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>
9098 Pass MPERS_CFLAGS as the second argument to mpers_test.sh
9100 is moved to the third one). Do not expect leading dash in ARCH_FLAG
9102 * mpers_test.sh (mpers_cc_flags): New variable, initialise to the second
9104 Pass $mpers_name without leading dash to mpers.sh.
9105 Pass $mpers_cc_flags as the second argument to mpers.sh ($sample is
9107 * Makefile.am (mpers-m%.stamp:): Pass $(mpers_CC_FLAGS) as the second
9108 argument to mpers.sh ($$f is now the third argument).
9114 * bootstrap: Append @cc_flags_$1@ to MPERS_CC_FLAGS. Append
9115 $(MPERS_CC_FLAGS) to ARCH_MFLAGS.
9117 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9121 * tests/filtering_syscall-syntax.test: New file.
9122 * tests/options-syntax.test: Move syscall set syntax testing
9123 to filtering_syscall-syntax.test.
9124 * tests/qual_fault-syntax.test: Likewise.
9125 * tests/qual_inject-syntax.test: Likewise.
9126 * tests/Makefile.am (MISC_TESTS): Add filtering_syscall-syntax.test.
9128 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9133 * filter_qualify.c (parse_inject_expression): Add const qualifier to
9135 (qualify_inject_common): Add const qualifier to "name". Move
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>
9152 configure: try to set the C compiler mode to accept ISO Standard C.
9156 2018-01-15 Dmitry V. Levin <ldv@altlinux.org>
9162 basic_filters: move legacy tracing class names to the end of table.
9164 start with % to the end of table.
9167 * mq.c (SYS_FUNC(mq_open)): Add RVAL_FD to return value.
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.
9223 (qualify_inject_common): Rename "buf" to "copy", initialize it to a copy
9224 of "str", pass "copy" to parse_inject_expression instead of "str" and
9227 2018-01-14 Eugene Syromyatnikov <evgsyr@gmail.com>
9237 NT_PPC_VSX, NT_386_TLS, NT_386_IOPERM, NT_X86_XSTATE): Add fallback
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.
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>
9301 * tests/gen_tests.in (reboot): Provide -s 256 option.
9305 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9308 * test/reboot.c (main): Use sprintrc instead of old-style manual
9311 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9313 reboot.c: limit printing of the fourth argument to 255 bytes.
9319 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9326 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9328 Search for <libiberty/demangle.h> in addition to <demangle.h>
9329 This is the location where this header is installed on Debian-based
9332 * configure.ac: Check for libiberty/demangle.h in addition to
9338 2018-01-11 Dmitry V. Levin <ldv@altlinux.org>
9343 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9348 Add indication of mpers support to strace -V output.
9351 * tests/strace-V.test: Update expected output.
9353 Provide strace's native arch to the test framework.
9354 * configure.ac (arch_native): New variable, set to arch.
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"
9361 to the features string.
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>
9388 to a character array.
9393 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9395 Update perf-related flags.
9396 - PERF_SAMPLE_BRANCH_TYPE_SAVE, added in v4.14-rc1~173^2~33^2~6
9397 - PERF_SAMPLE_PHYS_ADDR, added in v4.14-rc1~173^2~2
9404 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9407 This field was introduced by linux kernel commit v4.12-rc1~152^2~42^2~10.
9416 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9425 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9427 tests: check decoding of modify_ldt with for 4-byte-available user_desc.
9432 * tests/modify_ldt.c (main): Add 4-byte-sized tail_alloc'ed variable.
9433 Try to provide it as an argument to modify_ldt.
9435 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9447 entry_number field in order to print the updated value in the impossible
9455 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9461 * tests/print_user_desc.c: ... to new file.
9464 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9473 * ldt.c (modify_ldt): Move parsing under entering(tcp). Check whether
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).
9484 Add a flag to print decoded error code along with syscall return value.
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 ":"
9508 to "=", change print format qualifier from %d to %u.
9510 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9513 Add a macro for printing fields explicitly casted to specific type.
9519 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9521 print_fields.h: rename PRINT_FIELD_UID to PRINT_FIELD_ID.
9522 As uid is not the only thing that has a special treatment of the -1
9524 PRINT_FIELD_UID to PRINT_FIELD_ID and make PRINT_FIELD_UID its alias.
9527 (PRINT_FIELD_UID): Define to PRINT_FIELD_ID.
9529 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9533 tcp argument.
9535 Fixes: v4.20-134-gc46fefc ("Add tcp arguments to netlink calls")
9537 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9543 to "unsigned int *". Replace sizeof(int) with sizeof(sorted_count[0]).
9544 Change the type of idx to unsigned int.
9546 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9549 In an attempt to make it more readable.
9554 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9556 Add tcp arguments to netlink calls.
9557 Since they call tracee-specific socket/sendmsg/recvmsg, we'd like to
9558 pass tcp there.
9560 * defs.h (genl_families_xlat): Add tcp argument.
9563 (decode_nlmsg_type): Add tcp argument. Pass tcp to decoder call.
9564 (print_nlmsghdr): Pass tcp to the decode_nlmsg_type call.
9565 * socketutils.c (send_query, receive_responses): Add tcp argument.
9566 (inet_send_query, unix_send_query, netlink_send_query, ): Add tcp argument.
9567 Pass tcp to the send_query call.
9568 (unix_get): Add tcp argument. Pass tcp to the unix_send_query and
9570 (inet_get): Add tcp argument. Pass tcp to the inet_send_query and
9572 (tcp_v4_get, udp_v4_get, tcp_v6_get, udp_v6_get): Add tcp argument. Pass
9573 tcp to the inet_get call.
9574 (netlink_get): Add tcp argument. Pass tcp to the netlink_send_query and
9576 (protocols): Add tcp argument to the get field.
9577 (get_sockaddr_by_inode_uncached): Add tcp argument. Pass tcp to
9579 (print_sockaddr_by_inode_uncached): Add tcp argument. Pass tcp to
9581 (get_sockaddr_by_inode): Pass tcp to the get_sockaddr_by_inode_uncached
9583 (print_sockaddr_by_inode): Pass tcp to the
9585 (genl_send_dump_families): Add tcp argument. Pass tcp to the send_query
9587 (genl_families_xlat): Add tcp argument. Pass tcp to the
9590 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9592 Add tcp argument to clear_regs.
9593 * defs.h (clear_regs): Add argument struct tcb *tcp.
9595 * strace.c (next_event): Pass tcp to clear_regs() call.
9597 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9599 Pass tcp argument to get_optmem_max/read_int_from_file.
9600 In preparation to passing tcp to all tracee-related syscalls.
9604 * msghdr.c (get_optmem_max): Add "struct tcb *tcp" as the first
9605 argument, pass it to read_int_from_file call.
9606 (decode_msg_control): Pass tcp to get_optmem_max.
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>
9624 Move syscall_tampered to defs.h.
9628 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9630 strace.c: rename set_sigaction to set_sighandler.
9632 rename set_sigaction() to set_sighandler() for future definition of
9635 * strace.c (set_sigaction): Rename to set_sighandler.
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>
9658 xlat.c: add sprintxval for printing xval to string.
9662 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9730 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9736 2018-01-05 Dmitry V. Levin <ldv@altlinux.org>
9743 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9749 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9752 Let's try to future/fool-proof code a bit by introducing variants
9754 They are deemed to be the default choice for printing to some local
9760 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9763 Instead of printing to a temporary string. This also fixes a subtle bug
9768 to unsigned int since they are used and printed as unsigned anyway.
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>
9781 Move personality names to a global variable.
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
9807 * strace.c (newoutf): Raise buffer size to PATH_MAX.
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>
9820 Change the first argument of upeek from pid to tcp.
9823 for i in `git grep -l 'upeek(tcp->pid'`; do \
9824 sed -i 's/upeek(tcp->pid/upeek(tcp/g' "$i"; \
9827 * upeek.c (upeek): Change the first argument from pid_t pid to struct
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>
9871 Change argument of getregs_old from pid to tcp.
9873 from pid_t pid to struct tcb *tcp. Replace all instances of pid with
9874 tcp->pid.
9877 * syscall.c (get_regs) [HAVE_GETREGS_OLD]: Pass tcp to the getregs_old
9878 call instead of tcp->pid.
9880 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9882 Change the first argument of upoke from pid to tcp.
9885 for i in `git grep -l 'upoke(tcp->pid'`; do \
9886 sed -i 's/upoke(tcp->pid/upoke(tcp/g' "$i"; \
9889 * upoke.c (upoke): Change the first argument from pid_t pid to struct
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>
9932 Otherwise it makes little sense on most arches to try to get syscall
9940 Reported-by: Dmitry V. Levin <ldv@altlinux.org>
9943 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9946 There's no reason to have them out of order. This also (almost) matches
9948 v4.20-64-g61c03be.
9952 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9958 * strace.c (init): Check for non-zero argc before/instead of argv[0].
9960 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9962 strace.1: advertise strace-log-merge.
9963 In order to raise awareness about strace-log-merge, mention it in
9964 SEE ALSO section and -ff option description.
9966 * strace.1.in (.SS Filtering) <.TP .B \-ff>: Mention strace-log-merge.
9969 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
9973 * tests/strace-k.test (result): Update regexp.
9974 * tests/strace-k-demangle.test (expected): Update expected output.
9976 tests: check strace -k symbol names demangling.
9977 * tests/strace-k-demangle.test: New test.
9978 * tests/stack-fcall-mangled.c: New file.
9979 * tests/stack-fcall-mangled-0.c: Likewise.
9980 * tests/stack-fcall-mangled-1.c: Likewise.
9981 * tests/stack-fcall-mangled-2.c: Likewise.
9982 * tests/stack-fcall-mangled-3.c: Likewise.
9983 * tests/stack-fcall.h [MANGLE] (f0, f1, f2, f3): New macros.
9984 * tests/.gitignore: Add stack-fcall-mangled.
9987 (EXTRA_DIST): Add strace-k-demangle.test.
9990 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
9992 tests: parametrize strace-k.test.
9993 Prepare for the check of strace -k symbol names demangling.
9995 * tests/strace-k.test: Parametrize $test_prog and $expected.
9996 * tests/stack-fcall.h: New file.
9997 * tests/stack-fcall.c: Include "stack-fcall.h"
9998 * tests/stack-fcall-0.c: Likewise.
9999 * tests/stack-fcall-1.c: Likewise.
10000 * tests/stack-fcall-2.c: Likewise.
10001 * tests/stack-fcall-3.c: Likewise.
10002 * tests/Makefile.am (EXTRA_DIST): Add stack-fcall.h.
10004 2017-12-26 Masatake YAMATO <yamato@redhat.com>
10013 > /usr/lib64/libc-2.25.so(__fxstat64+0x12) [0xffd62]
10014 > /usr/lib64/libc-2.25.so(_IO_file_doallocate+0x5f) [0x717ff]
10015 > /usr/lib64/libc-2.25.so(_IO_doallocbuf+0x79) [0x81699]
10016 > /usr/lib64/libc-2.25.so(_IO_file_overflow+0x198) [0x807b8]
10017 > /usr/lib64/libc-2.25.so(_IO_file_xsputn+0xbd) [0x7ed5d]
10018 > /usr/lib64/libc-2.25.so(fwrite_unlocked+0x60) [0x7d800]
10026 > /usr/lib64/libc-2.25.so(__libc_start_main+0xea) [0x2088a]
10032 * configure.ac: Add --with-libiberty option. Check cplus_demangle
10037 2017-12-26 Masatake YAMATO <yamato@redhat.com>
10040 I'm planning to link strace with libiberty for mangling C++
10041 symbol names in stack trace enabled with -k option.
10046 to strace_xmalloc and strace_xcalloc, respectively,
10047 to avoid this conflict.
10051 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10053 syscall: move a sparc specific include to an arch specific file.
10058 syscall: move all ia64 specific includes to an arch specific file.
10064 Define to get_regs.
10067 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10070 This opens the way for future changes related to get_regs.
10073 to "struct tcb *", all callers changed.
10075 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10077 syscall: move get_regs call from syscall_exiting_decode to get_syscall_result
10079 related to get_regs.
10084 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10087 Move syscall subcall handling to the same switch statement that
10090 * linux/mips/syscallent-o32.h [LINUX_MIPSO32] (SYS_syscall_subcall):
10092 * syscall.c (decode_mips_subcall): Rename to decode_syscall_subcall,
10098 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10102 instead of ARM || AARCH64. This does not result to any code change
10105 syscall: change get_regs to return an error code.
10110 callers changed to test get_regs return code instead of get_regs_error
10117 2017-12-24 Harsha Sharma <harshasharmaiitr@gmail.com>
10123 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10125 tests: skip nsyscalls-d.test on mips o32.
10127 so nsyscalls-d cannot work there.
10129 * tests/nsyscalls-d.test: Skip on mips o32.
10131 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10135 commit v3.8-rc1~139^2~514, there is no need for a local copy.
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>.
10175 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10182 * xlat/personality_flags.in: Provide fallback definitions.
10185 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10187 travis: switch from clang-3.8 to clang.
10189 it makes sense to use default clang in clang-based test builds.
10191 * .travis.yml (matrix): Change clang-3.8 to clang.
10193 2017-12-21 Eugene Syromyatnikov <evgsyr@gmail.com>
10196 * strace.1.in (.SH SEE ALSO): Add references to perf-trace(1) and
10197 trace-cmd(1).
10199 strace.1.in: clarify -F option behaviour.
10200 * strace.1.in <.TP \-F>: Extend deprecation warning. Describe behaviour
10201 of multiple instances of -F and interoperability of -F and -f.
10203 2017-12-20 Dmitry V. Levin <ldv@altlinux.org>
10207 * tests/options-syntax.test: Replace "$strace_exp" with "$STRACE_EXE".
10210 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10213 strace.c: inform the user about -F option obsolescence.
10216 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10222 continuation in order to separate it from the following switch clause.
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>
10243 * tests/nsyscalls-d.c: New file.
10245 * tests/nsyscalls-d.test: New test, variant of nsyscalls.test with debug
10247 * tests/nsyscalls-nd.test: Likewise.
10249 * tests/Makefile.am (check_PROGRAMS): Add nsyscalls-d.
10250 (DECODER_TESTS): Add nsyscalls-d.test and nsyscalls-nd.test.
10252 2017-12-20 Eugene Syromiatnikov <esyr@redhat.com>
10255 * defs.h <struct path_set>: Change type of num_selected field to size_t.
10257 * pathtrace.c (storepath): Rewrite to utilise xgrowarray.
10259 2017-12-14 Dmitry V. Levin <ldv@altlinux.org>
10269 2017-12-14 Eugene Syromiatnikov <esyr@redhat.com>
10272 * strace.c (tcbtabsize): Change type to size_t.
10273 (expand_tcbtab): Rewrite in order to utilise xgrowarray
10280 2017-12-14 Eugene Syromiatnikov <esyr@redhat.com>
10283 In order to simplify dynamic array management code.
10288 2017-12-14 Dmitry V. Levin <ldv@altlinux.org>
10291 * tests/options-syntax.test: Check error diagnostics when
10292 exec file name length equals to PATH_MAX.
10294 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10299 to the else if branch.
10301 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10304 In order to provide some additional bits of information in weird error
10313 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10316 * unwind.c (build_mmap_cache): Change error_msg() to debug_msg(), add
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>
10336 debug_func_* macros are deemed to be a suitable replacement.
10343 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10352 occurrences with debug_func_msg() in attempt to provide additional
10355 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10358 In order to reduce boilerplate for the cases when __func__ is desired
10359 to be printed.
10365 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10373 2017-12-04 Masatake YAMATO <yamato@redhat.com>
10383 2017-12-04 Masatake YAMATO <yamato@redhat.com>
10415 2017-12-03 Eugene Syromyatnikov <evgsyr@gmail.com>
10420 Co-Authored-by: Vitaly Chaykovsky <mgspeker@gmail.com>
10422 2017-12-03 Dmitry V. Levin <ldv@altlinux.org>
10424 tests: robustify attach-p-cmd.test against buggy kernels.
10425 From time to time various kernels, old and new, just go nuts
10426 and fail attach-p-cmd.test with the following diagnostics:
10428 12345 --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
10429 -12345 chdir("attach-p-cmd.test -p") = -1 ENOENT (No such file or directory)
10430 …+12345 syscall_4294967295(0xffe60934, 0x1c0, 0xffe60934, 0x1, 0xffe609b4, 0xffe60a58) = -1 (errno …
10431 +12345 chdir("attach-p-cmd.test -p") = -1 ENOSYS (Function not implemented)
10436 * tests/attach-p-cmd.h: New file.
10437 * tests/Makefile.am (EXTRA_DIST): Add attach-p-cmd.h.
10438 * tests/attach-p-cmd-cmd.c: Include "attach-p-cmd.h".
10441 * tests/attach-p-cmd-p.c: Include <time.h> and "attach-p-cmd.h".
10446 2017-12-03 Dmitry V. Levin <ldv@altlinux.org>
10449 glibc between commits glibc-2.25~130 and glibc-2.26~740 had broken
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.
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.
10537 In cross builds, a target version of readelf has to be used
10542 (mpers-m%.stamp): Pass it to $(srcdir)/mpers.sh.
10544 to $srcdir/mpers_test.sh.
10550 Reported-by: Rolf Eike Beer <eb@emlix.com>
10552 2017-11-22 Dmitry V. Levin <ldv@altlinux.org>
10557 INSTALL-git.md: fix typo.
10567 2017-11-21 Dmitry V. Levin <ldv@altlinux.org>
10584 for union bpf_attr field checks as the former seems to be enough
10608 2017-11-20 Dmitry V. Levin <ldv@altlinux.org>
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.
10632 (decode_BPF_MAP_CREATE): Add numa_node field to the structure, print it.
10639 2017-11-20 Eugene Syromiatnikov <esyr@redhat.com>
10648 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10652 v3.8-rc1~175^2~36.
10659 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10663 v4.14-rc1~126^2~17.
10672 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10676 argument is NAME_MAX - strlen("memfd:").
10682 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10686 v3.8-rc1~175^2~36.
10694 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10698 as long ago as in v2.4.0, it's safe to assume that MAP_TYPE is defined.
10702 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10704 mem: move printing of mmap_flags to a separate function.
10708 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10710 Provide fallback definitions for SHM_EXEC constant.
10712 v2.6.9-rc2~23^2~93^2~78, the glibc version of <sys/shm.h> did not
10713 provide SHM_EXEC until commit glibc-2.10~238.
10715 * xlat/shm_flags.in (SHM_EXEC): Add fallback definition.
10718 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10722 v2.6.9-rc2~23^2~93^2~78.
10724 commit v2.6.15-rc1~622.
10729 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10731 Remove fallback definitions for SHM_STAT and SHM_INFO constants.
10735 * xlat/shmctl_flags.in: Remove fallback definitions.
10737 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10745 (print_getsockopt): Add ulen argument, rename len argument to rlen,
10748 (SYS_FUNC(getsockopt)): Pass ulen to print_getsockopt.
10749 * tests/sockopt-sol_netlink.c (main): Check NETLINK_LIST_MEMBERSHIPS
10752 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10755 * tests/sockopt-sol_netlink.c: New file.
10756 * tests/gen_tests.in (sockopt-sol_netlink): New entry.
10757 * tests/pure_executables.list: Add sockopt-sol_netlink.
10760 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10763 Tweak the parser to follow the kernel behaviour.
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>
10795 Analogous to the way it is done in xlat/gen.sh.
10798 it to double the CPU count.
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.
10834 Implement various features in order to make it suitable for the
10836 - add an option for including contributor e-mail;
10837 - add an option to read additional list of contributors from stdin;
10838 - add shorthand for referring to the initial commit of the branch;
10839 - document all of the above in a help message.
10841 * maint/gen-contributors-list.sh (print_help): New function.
10842 (script): Rename to SCRIPT.
10847 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
10849 .mailmap: add more entries to avoid duplication in CREDITS.
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
10894 2017-11-11 Dmitry V. Levin <ldv@altlinux.org>
10898 here-document expansion.
10900 2017-11-10 Eugene Syromiatnikov <esyr@redhat.com>
10902 Move MIN, MAX, and CLAMP to macros.h.
10903 We shouldn't have to include the whole defs.h to get them.
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
10932 at once, the generator tries to keep about the same number of 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.
10942 run job to it; increase the limit of jobs to ncpus * 2; when the limit
10944 to zero and waiting for all the run jobs; put gen_git and gen_make
10947 2017-11-05 Dmitry V. Levin <ldv@altlinux.org>
10952 2017-11-04 Dmitry V. Levin <ldv@altlinux.org>
10955 Starting with commit v4.17-5-gf83b49b strace is expected
10956 to forward the signal mask to tracees unchanged.
10965 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
10968 Starting with commit v4.17-8-ge97a66f strace is expected
10969 to forward the signal disposition to tracees unchanged.
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
10989 Add EINVAL as a possible errno to the checks that contain invalid
10996 2017-11-03 Eugene Syromyatnikov <evgsyr@gmail.com>
11002 2017-11-02 Dmitry V. Levin <ldv@altlinux.org>
11014 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11022 by linux kernel commit v4.14-rc2~15^2~3.
11024 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11026 Rename SECCOMP_RET_KILL to SECCOMP_RET_KILL_THREAD.
11027 Follow linux kernel commit v4.14-rc2~15^2~4 and rename SECCOMP_RET_KILL
11028 to SECCOMP_RET_KILL_THREAD.
11031 to SECCOMP_RET_KILL_THREAD.
11032 * tests/prctl-seccomp-filter-v.c (main): Update expected output.
11033 * tests/seccomp-filter-v.c (main): Likewise.
11035 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11039 by kernel commit v4.14-rc2~15^2~6.
11041 by kernel commit v4.14-rc2~15^2~9.
11043 by kernel commit v4.14-rc2~15^2~5.
11045 * tests/seccomp-filter.c (main): Update expected output.
11046 * tests/seccomp-filter-v.c (main): Likewise.
11048 Provide fallback definitions for SECCOMP_RET_* constants.
11049 * xlat/seccomp_ret_action.in: Add fallback definitions.
11051 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11053 tests: robustify options-syntax.test against inquisitive musl.
11054 Workaround musl >= 1.1.17 ability to use AT_EXECFN during
11057 * tests/options-syntax.test: Check for two valid variants
11060 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11064 introduced by kernel commit v4.14-rc6~26.
11067 2017-10-31 JingPiao Chen <chenjingpiao@gmail.com>
11097 2017-10-26 JingPiao Chen <chenjingpiao@gmail.com>
11114 2017-10-26 JingPiao Chen <chenjingpiao@gmail.com>
11117 Refactor decode_nlmsg_flags to make it family-specific, just like
11126 2017-10-14 JingPiao Chen <chenjingpiao@gmail.com>
11129 When using linux kernel headers without commit v4.5-rc1~128^2~115^2~22
11131 and <linux/tcp.h> have to be included before <linux/netfilter/xt_osf.h>.
11134 and <linux/tcp.h> when checking for linux/netfilter/xt_osf.h header.
11135 * tests/nfnetlink_osf.c: Include <linux/ip.h> and <linux/tcp.h>
11138 2017-09-24 JingPiao Chen <chenjingpiao@gmail.com>
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>
11266 Update ioctl entries from linux v4.14-rc1.
11267 * linux/32/ioctls_inc_align16.h: Update from linux v4.14-rc1
11274 by kernel commit v4.13-rc7-176-g89e4fde.
11278 2017-09-19 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
11281 ioctls_sym.sh used to generate and invoke target architecture
11283 After this change, the generated code is just compiled to the target
11286 This approach allows to generate ioctl entries for any target
11290 * maint/ioctls_sym.sh (LC_ALL): Define to C and export.
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.
11334 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
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
11353 * tests/pure_executables.list: Add kcmp-y.
11356 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11359 This is a preparation for the future introduction of cross-NS PID
11360 derivation, which would enable us to print fd information for fds
11361 related to all processes, not just traced ones.
11364 unsigned to int, it follows printfd output format.
11371 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11377 * tests/gen_tests.in (kcmp): Decrease -a argument's value from 27 to 22.
11381 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11384 I see it as a good idea to stick to system headers whenever possible
11385 in order to also check for possible discrepancies between strace's
11392 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11406 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11409 Extend TEST_NESTED_NLATTR_OBJECT macro for multi-nested netlink
11425 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11451 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11455 v4.14-rc1~130^2~207.
11461 * xlat/inet_diag_extended_flags.in: Add 1<<(INET_DIAG_CLASS_ID-1).
11465 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11469 introduced by kernel commit v4.14-rc1~174^2^2^4.
11475 by kernel commit v4.11-rc2~15^2~18.
11477 commits v4.14-rc1~126^2~28 and v4.14-rc1~126^2~23, repsectively.
11482 by kernel commit v4.14-rc1~126^2~17.
11488 and ETH_P_MAP introduced by kernel commits v4.14-rc1~130^2~164,
11489 v4.14-rc1~130^2~89^2~3, v4.14-rc1~130^2~90^2~2, and
11490 v4.14-rc1~130^2~78^2~2, respectively.
11495 by kernel commit v4.14-rc1~130^2~78^2~1.
11501 v4.14-rc1~130^2~123^2~8.
11503 introduced by kernel commits v4.10-rc1~202^2~271^2~2
11504 and v4.14-rc1~130^2~196^2~1, respectively.
11507 v4.14-rc1~130^2~497^2~4 and v4.14-rc1~130^2~234^2~4,
11510 introduced by kernel commit v4.14-rc1~130^2~309^2~8.
11512 by kernel commit v4.14-rc1~130^2~234^2~6.
11517 v4.14-rc1~130^2~376^2~5.
11522 introduced by kernel commit v4.14-rc1~126^2.
11525 2017-09-08 Baruch Siach <baruch@tkos.co.il>
11528 uClibc-ng declares program_invocation_name as const.
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>
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>
11608 to avoid duplications in CREDITS file.
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>
11625 update_copyright_years.sh: add ability to automatically commit results.
11628 <-c>: New option, implies -a, calls git commit with GIT_COMMIT_TEMPLATE string
11631 2017-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
11634 In order to provide better diagnostics.
11637 1.13 due to usage of AM_EXTRA_RECURSIVE_TARGETS macro.
11641 2017-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
11645 2017-09-03 JingPiao Chen <chenjingpiao@gmail.com>
11685 2017-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
11696 (SYS_FUNC(keyctl)) <case KEYCTL_DH_COMPUTE>: Pass arg5 to
11708 and keyctl test is so complex, let's try to improve readability a bit
11711 continuations of arguments related to the same keyctl argument should
11714 to two type casts that are missing them.
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>
11743 struct ndt_stats than the definition used to build strace.
11749 2017-09-01 JingPiao Chen <chenjingpiao@gmail.com>
11789 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11794 2017-08-31 JingPiao Chen <chenjingpiao@gmail.com>
11799 2017-08-31 Dmitry V. Levin <ldv@altlinux.org>
11806 2017-08-30 Dmitry V. Levin <ldv@altlinux.org>
11812 2017-08-29 Dmitry V. Levin <ldv@altlinux.org>
11815 The attribute of FRA_TABLE is not just a 32-bit integer, some constants
11816 have well-known symbolic names like RT_TABLE_DEFAULT.
11823 2017-08-29 Dmitry V. Levin <ldv@altlinux.org>
11826 The attribute of RTA_TABLE is not just a 32-bit integer, some constants
11827 have well-known symbolic names like RT_TABLE_DEFAULT.
11834 2017-08-29 JingPiao Chen <chenjingpiao@gmail.com>
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>
11895 Add "flags" field to struct inject_data.
11896 Introduce "flags" field to struct inject_data and use it instead
11898 Due to layout of struct inject_data, this new field does not change
11910 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11913 Move inject data of struct inject_opts to inject_data substructure.
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>
11957 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11961 Also, rename RVAL_IOCTL_PARSED to RVAL_IOCTL_DECODED as the latter
11964 * defs.h (RVAL_IOCTL_PARSED): Rename to RVAL_IOCTL_DECODED.
11967 add convertation of RVAL_IOCTL_DECODED to RVAL_DECODED.
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
11998 * to signalise that they have successfully printed argument.
12000 un-set it before returning the value.
12023 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12026 Move exiting path out of if (entering(tcp)) { ... return 0; } else,
12032 par of the entering(tcp) condition.
12037 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12039 v4l2: reorder field printing in order to avoid auxstr usage.
12040 Also rework flow a little in order to reduce amount of indentation.
12046 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12053 move exiting paths out of else branch of entering(tcp) condition.
12055 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12064 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12067 Return RVAL_DECODED if we can't decode command in order to avoid being
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.
12107 Apply the same treatment to this script as the one in
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>
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
12141 * syscall.c (update_personality) [defined TILE]: Change dashes to spaces
12144 2017-08-26 JingPiao Chen <chenjingpiao@gmail.com>
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>
12201 Accept NULL argument in xstrdup and xtrndup functions to allow use
12208 2017-08-23 Dmitry V. Levin <ldv@altlinux.org>
12215 that the kernel is mips n64, even if "uname -m" claims it's mips.
12217 2017-08-22 Dmitry V. Levin <ldv@altlinux.org>
12220 * number_set.h (number_slot_t, struct number_set): Move to number_set.c.
12223 to pointers.
12225 from objects to pointers.
12227 definitions from arrays to pointers.
12258 Move number_set interface to separate files.
12263 (number_slot_t, struct number_set): Move to number_set.h.
12265 add_number_to_set, is_number_in_set): Move to number_set.c.
12267 (read_set, write_set, signal_set, is_number_in_set): Move to number_set.h.
12268 * filter.h (add_number_to_set): Move to number_set.h.
12274 2017-08-22 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
12276 Move SUPPORTED_PERSONALITIES to a separate file.
12280 to a separate file.
12284 * supported_personalities.h: ... to the new file.
12287 2017-08-22 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
12289 Move string_to_uint* functions to a separate file.
12290 Make string_to_uint* functions available to other binaries
12296 to string_to_uint.h.
12298 * string_to_uint.c: ... to the new file.
12301 2017-08-22 JingPiao Chen <chenjingpiao@gmail.com>
12316 2017-08-22 Dmitry V. Levin <ldv@altlinux.org>
12324 * netlink_inet_diag.c (decode_inet_addr): Change return type to bool,
12327 to decode_inet_addr.
12329 2017-08-20 Dmitry V. Levin <ldv@altlinux.org>
12337 2017-08-19 Dmitry V. Levin <ldv@altlinux.org>
12341 to print_quoted_string.
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;
12390 change explicit cast from (long) to (suseconds_t).
12396 Reported-by: Anatoly Pugachev <matorola@gmail.com>
12398 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12402 semantics, compared to other architectures. While sigaction.test
12403 was aware about this arch-specific detail from the beginning, in one
12404 of many sigaction syscall invocations a non-negative signal number
12407 * tests/sigaction.c (ADDR_INT, SIGNO_INT): New arch-specific macros.
12410 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12413 Do not print more than "nlattr.nla_len - NLA_HDRLEN" bytes
12416 * nlattr.c (decode_nlattr_with_data): Specify "nla_len - NLA_HDRLEN"
12417 instead of "len - NLA_HDRLEN" as the size of unrecognized attribute
12421 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12429 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12437 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12445 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12454 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12462 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12471 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12479 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12488 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12496 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12505 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12513 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12521 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12529 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12537 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12545 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12553 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12561 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12569 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12577 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12585 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12593 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12601 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12609 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12617 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12625 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12633 2017-08-15 Dmitry V. Levin <ldv@altlinux.org>
12670 tests/net-sockaddr: use ifindex_lo and IFINDEX_LO_STR.
12671 * tests/net-sockaddr.c (if_nametoindex): Remove declaration.
12680 tests/inet-cmsg: use IFINDEX_LO_STR.
12681 * tests/inet-cmsg.c (print_pktinfo): Use IFINDEX_LO_STR instead
12694 tests: add ifindex_lo function and IFINDEX_LO_STR macro to libtests.
12700 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12707 2017-08-14 Eugene Syromyatnikov <evgsyr@gmail.com>
12711 pathtrace: limit amount of checked poll fds similarly to select limit.
12713 checked for fd match in poll family syscalls to 1024 * 1024.
12719 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12723 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12884 2017-08-13 JingPiao Chen <chenjingpiao@gmail.com>
12897 2017-08-13 Eugene Syromyatnikov <evgsyr@gmail.com>
12901 other than Linux. Well, it's time to make it more contemporary.
12907 2017-08-11 JingPiao Chen <chenjingpiao@gmail.com>
12913 2017-08-11 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
12915 Add TF flag to inotify_add_watch syscall entries.
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>
12953 strace.1: add indentation to examples.
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.
12997 In order to eliminate unneeded space between them.
13002 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
13005 <sys/socket.h> has to be included before <linux/netlink.h> because
13006 the latter used to be incomplete in older kernel headers.
13009 to workaround this and related portability issues, include it before
13016 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13036 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13038 Move nl_route_types definition from netlink.c to netlink_route.c.
13042 netlink_route.c is going to need them soon.
13048 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13063 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13072 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13078 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13085 (get_fd_nl_family): Replace NL_FAMILY_ERROR with -1.
13093 2017-08-07 Dmitry V. Levin <ldv@altlinux.org>
13101 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
13103 Move sysent shorthand notations to separate files.
13106 and undefs of these shorthand notations to separate files.
13113 2017-08-07 JingPiao Chen <chenjingpiao@gmail.com>
13118 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
13120 Move err/mem subroutines to separate files.
13121 In order to allow usage of utility functions by other binaries
13123 these functions should be moved to separate files.
13129 perror_msg_and_die): Move to error_prints.h.
13130 (xcalloc, xmalloc, xreallocarray, xstrdup, xstrndup): Move to xmalloc.h.
13131 * strace.c (die): Remove static quialifier to make visible
13135 * error_prints.c: ... to the new file.
13136 * xmalloc.c: Include "config.h", <stdlib.h>, <string.h>,
13142 2017-08-07 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13144 tests: move check_* functions from options-syntax.test to separate file.
13145 * tests/options-syntax.test: Move check_* functions to ...
13149 2017-08-07 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13161 2017-08-06 Dmitry V. Levin <ldv@altlinux.org>
13165 Remove the dance around possible re-injection of WSTOPSIG(status)
13166 as the only observable stop here is the initial ptrace-stop.
13171 syscall_trap_sig but SIGSTOP. An idea of using PTRACE_GETSIGINFO to
13172 distinguish signal stops that should be re-injected from other kinds
13173 of stops didn't work out due to kernel implementation peculiarities
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.
13206 tests: export a path to the trace executable to check_PROGRAMS.
13209 2017-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
13220 2017-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
13225 - detach it instead of PTRACE_CONT'ing;
13226 - send it the signal with which it has been stopped.
13227 This should hopefully help to deal with processes that have been created
13231 Calculate the signal similarly to the way next_event does,
13232 forward it to the unexpected tracee, and detach the tracee.
13234 2017-08-04 Dmitry V. Levin <ldv@altlinux.org>
13238 to initialize potentially unaligned struct nlattr.
13242 to initialize potentially unaligned struct packet_diag_msg.
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>
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.
13271 tests: add test_printstrn function to libtests.
13276 2017-08-01 Dmitry V. Levin <ldv@altlinux.org>
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.
13291 tests: add test_printpath function to libtests.
13296 tests: add test_process_vm_readv and test_ptrace_peekdata to libtests.
13301 2017-08-01 Dmitry V. Levin <ldv@altlinux.org>
13305 pathnames, treating non-NUL-terminated pathnames as ENAMETOOLONG.
13307 * util.c (printpathn): Decrease buffer size to PATH_MAX.
13308 (printpath): Specify PATH_MAX - 1 as the maximum pathname length
13309 to match the kernel behaviour. The underlying umovestr call will fetch
13310 up to PATH_MAX bytes from tracee's memory, but no more than first
13311 PATH_MAX - 1 bytes will be printed.
13313 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13319 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13321 ucopy: move legacy fallbacks of umoven and umovestr to separate functions
13322 Move legacy PTRACE_PEEKDATA-based support to separate functions.
13327 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13329 ucopy: move process_vm_readv ENOSYS check to vm_read_mem.
13334 2017-07-31 Eugene Syromyatnikov <evgsyr@gmail.com>
13337 In order to provide information to user what optionally built features
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>
13362 to match PTRACE_PEEKDATA case.
13364 2017-07-29 Dmitry V. Levin <ldv@altlinux.org>
13370 2017-07-28 Dmitry V. Levin <ldv@altlinux.org>
13372 util: move umoven and umovestr to a separate file.
13373 These functions are more kernel-specific compared to all other functions
13378 * util.c (umoven, umovestr): Move to ucopy.c.
13380 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13385 on entering syscall. These fields are addresses specified to the
13387 to these addresses is specified at the map creation time
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.
13413 to the structure, print them.
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.
13430 (decode_BPF_PROG_LOAD): Add prog_flags field to the structure, print it.
13436 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13441 * tests/bpf-v.c: New file.
13442 * tests/gen_tests.in (bpf-v): New entry.
13443 * tests/pure_executables.list: Add bpf-v.
13450 Move offsetofend from defs.h to macros.h.
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
13466 decode_BPF_PROG_DETACH): Use it to print extra data passed
13472 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13474 bpf: change handling of big and unaccessible data to match the kernel.
13481 to size argument, add data argument.
13487 to command-specific parsers.
13489 2017-07-25 Dmitry V. Levin <ldv@altlinux.org>
13513 2017-07-25 Eugene Syromyatnikov <evgsyr@gmail.com>
13516 In an attempt to improve readability.
13523 2017-07-24 Dmitry V. Levin <ldv@altlinux.org>
13526 In many places where kernel expects a NUL-terminated string of length
13527 up to a known fixed limit, e.g. when a NUL-terminated string is
13528 a fixed-size field of a structure, strace does not print the last byte
13531 Change output format for such strings to distinguish NUL-terminated
13532 strings from non-NUL-terminated ones: append ellipsis to the output
13533 when the string is not NUL-terminated.
13553 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13585 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13590 to test this case.
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
13621 * pathtrace.c (pathtrace_match_set): Use getllval to properly decode
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>
13635 NLMSG_ALIGN to align the length of netlink messages. Fortunately,
13636 both macros round the given length to the closest multiple of 4,
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>
13662 remove it in order to preserve compatibility with older GNU Make
13670 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13674 (SYS_FUNC(keyctl)): Use it to implement KEYCTL_RESTRICT_KEYRING support.
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
13683 Adjust expected output to handle this rare but possible case.
13685 * tests/strace-t.test: Allow any time stamp between start and finish
13688 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13692 * xlat/archvals.in: Add fallback definitions for constants.
13697 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13699 tests: tweak strace-ff.test for slow startup case.
13701 Increase the tracee's sleep delay to let strace more time to attach.
13703 * tests/strace-ff.test: Increase sleep delay.
13705 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13711 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13714 There is no need to copy the optarg string since it is a pointer
13719 (init): Do not xstrdup optarg to initialize outfname and username.
13721 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13723 travis: add build environment information to the travis log.
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>
13751 Add ksysent.h and scno.h to BUILT_SOURCES.
13754 and 'make check-valgrind' before other targets are processed.
13759 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13765 Fixes: v4.16-74-g16036030 ("tests: run every test except ksysent.test in its own subdirectory")
13767 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13770 * m4/ax_valgrind_check.m4: Update to serial 15. In particular,
13771 this version does not eat check-valgrind errors.
13774 * m4/ax_code_coverage.m4: Update to serial 24. In particular,
13777 to CODE_COVERAGE_LIBS.
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
13803 header includes to separate files.
13809 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13813 on struct nlmsghdr.nlmsg_len from kernel_ulong_t to unsigned int.
13816 from kernel_ulong_t to unsigned int.
13839 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
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.
13864 (decode_nlmsgerr): Adjust the length pass to
13867 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
13877 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13880 * tests/init.sh (dump_log_and_fail_with): Dump $LOG to stderr instead
13881 of stdout as the latter is more likely to be redirected to a temporary
13898 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13901 As struct uffdio_api.features has read-write semantics,
13903 from the value passed to the kernel.
13910 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13921 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13926 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13931 * aio.c (tprint_lio_opcode): Change opcode output format to match
13935 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13946 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13951 2017-07-16 Dmitry V. Levin <ldv@altlinux.org>
13957 v4.12-rc1~64^3~287^2~5, v4.13-rc1~157^2~271^2~5,
13958 v4.13-rc1~157^2~271^2~4, v4.13-rc1~157^2~271^2~3, and
13959 v4.13-rc1~157^2~271^2~1, respectively.
13961 by linux kernel commit v4.13-rc1~157^2~37^2~15.
13967 commit v4.13-rc1~157^2~124.
13971 by linux kernel commit v4.13-rc1~157^2~405^2~3.
13973 2017-07-16 JingPiao Chen <chenjingpiao@gmail.com>
13989 2017-07-15 Dmitry V. Levin <ldv@altlinux.org>
14000 2017-07-15 Dmitry V. Levin <ldv@altlinux.org>
14002 Provide mpers_ptr_t definition for non-mpers case.
14008 2017-07-14 Lazar Trsic <Lazar.Trsic@imgtec.com>
14010 Move is_negated_errno() to new header negated_errno.h.
14011 Move is_negated_errno() to a separate new header file negated_errno.h
14015 that have a dedicated register to signal a syscall error.
14019 defined in C files and will issue a -Wunused-function warrning
14022 * syscall.c (is_negated_errno): Move to ...
14046 2017-07-14 Dmitry V. Levin <ldv@altlinux.org>
14059 2017-07-13 Dmitry V. Levin <ldv@altlinux.org>
14061 Move macros related to kernel types to kernel_types.h.
14062 Some macros related to kernel types are defined both in defs.h and
14064 to kernel_types.h.
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.
14079 from "l" to "ll".
14081 2017-07-13 Dmitry V. Levin <ldv@altlinux.org>
14090 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14097 limit to nmemb, specify element count to print_array instead.
14102 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14105 Add one more NETLINK_SOCK_DIAG check to ressurrect full coverage
14107 v4.18-58-g37ef2d0d.
14112 2017-07-12 JingPiao Chen <chenjingpiao@gmail.com>
14148 2017-07-11 JingPiao Chen <chenjingpiao@gmail.com>
14174 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
14191 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
14193 Rename PRINT_FIELD_QUOTED_STRING to PRINT_FIELD_STRING.
14198 to PRINT_FIELD_STRING. All callers updated.
14200 2017-07-10 Dmitry V. Levin <ldv@altlinux.org>
14204 commit v4.12-rc5-150-gb745fafa.
14213 print_inet_addr: use inet_addr-based output format for IPv4.
14215 <AF_INET>: Use inet_addr-based output format.
14222 2017-07-10 JingPiao Chen <chenjingpiao@gmail.com>
14239 2017-07-10 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
14241 pathtrace.c: introduce user-provided sets of paths.
14244 (tracing_paths): Change macro body to use global_path_set variable.
14246 (pathtrace_match_set): Likewise. Change return type to bool.
14252 Change return type to bool.
14254 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14262 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14266 has to be mpersified.
14270 * net.c (print_group_req): Move to print_group_req.c, wrap into
14273 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14277 sizeof(struct group_req) to match the kernel behaviour.
14281 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14284 As multicast socket options are shared between IPv4 and IPv6,
14290 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14292 xlat: add MCAST_* to sockipv6options.
14293 Multicast socket options are shared between IPv4 and IPv6.
14299 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14303 as invalid to match the kernel behaviour. When the option length
14310 to match the kernel behaviour.
14326 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14335 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14385 net: move print_ifindex to a separate file.
14388 * net.c (print_ifindex): Move to print_ifindex.c.
14390 net: move parsers of bind, listen, and shutdown to separate files.
14395 * net.c (SYS_FUNC(bind)): Move to bind.c.
14396 (SYS_FUNC(listen)): Move to listen.c.
14397 (SYS_FUNC(shutdown)): Move to shutdown.c.
14399 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14403 * tests/netlink_sock_diag-v.sh: New file.
14423 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14426 commit v4.17-161-gdbd0605 that adjusted TEST_NLATTR_OBJECT and
14429 resulting to output mismatch.
14437 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14441 to TEST_NLATTR_ macro available to its varadic arguments.
14443 * tests/test_nlattr.h (TEST_NLATTR_): Rename nla to TEST_NLATTR_nla.
14445 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14455 * net.c (print_ucred): Rewrite to match the kernel behaviour.
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.
14470 * net.c (print_getsockopt): Use decode_sock_fprog to print
14473 to print socket filter programs for SO_ATTACH_FILTER
14485 of first argument from "const char *" to "const void *".
14487 (print_quoted_hex): Print bytes as unsigned char objects to avoid
14493 * net.c (print_linger): Rename to print_set_linger.
14496 to match the kernel behaviour.
14501 * net.c (print_linger): Allow len > sizeof(struct linger) to match
14508 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14511 As the last argument of getsockopt syscall has read-write semantics,
14515 the length specified to the kernel. On error, print the length saved
14519 * tests/net-icmp_filter.c (main): Update expected output.
14521 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14523 net: move printing of [gs]etsockopt's socklen argument to toplevel parsers
14529 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14536 Transform the parser of seccomp filters to a more generic parser
14554 * defs.h (print_seccomp_filter): Rename to decode_seccomp_fprog.
14559 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14567 * tests/prctl-seccomp-filter-v.c: Likewise.
14568 * tests/seccomp-filter-v.c: Likewise.
14569 * tests/seccomp-filter.c: Likewise.
14571 2017-07-07 Dmitry V. Levin <ldv@altlinux.org>
14573 xlat: add BPF_END to BPF_ALU opcode list.
14574 BPF_END is one of three eBPF-only opcodes for BPF_ALU class.
14579 2017-07-07 JingPiao Chen <chenjingpiao@gmail.com>
14616 to unsigned int.
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>
14656 to increase chances of winning the race.
14661 2017-07-04 Dmitry V. Levin <ldv@altlinux.org>
14665 2017-07-04 Romain Naour <romain.naour@smile.fr>
14667 nios2: fix wrong access to "SP" register in user_pt_regs.
14668 Starting with linux commit v4.0-rc4~21^2, "SP" register
14672 to "unsigned int *".
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.
14687 (expfd): Rename to exp_fd, remove const qualifier and initialization.
14688 (gotfd): Rename to got_fd, remove const qualifier and initialization.
14694 initialization. Add per-process loop, open expfd, gotfd, out_fd, pidfd
14695 in each one, print process's pid to pidfd, print exit message to out_fd.
14697 * tests/qual_fault.test (N): increase to 100 in order to check
14700 count, pass it to qual_fault, add filename variables for expected strace
14701 output and pid file, pass them to qual_fault.
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>
14714 from DEFAULT_STRLEN to 4096.
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.
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>
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>
14777 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14785 * macros.h: ... to new file.
14790 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14794 to uint8_t.
14797 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14807 PRINT_FIELD_XVAL): Move to print_fields.h file.
14809 (PRINT_FIELD_D): Move to print_fields.h file.
14815 * tests/quotactl-xfs.c: Update callers of PRINT_FIELD_* macros.
14823 * tests/tests.h [!STRACE_PRINTF] (STRACE_PRINTF): Define to printf.
14825 2017-07-01 Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
14827 arc: fix wrong access to "sp" member in user_regs_struct.
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>
14850 (init_unix_diag_msg): Add const qualifier to arguments and variables.
14854 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14862 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14866 Use PRINT_FIELD_U to print structure fields.
14868 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14871 Add const qualifiers to auto variables and function arguments.
14873 the purpose of these "const" qualifiers is to highlight the intent.
14876 decode_unix_diag_rqlen): Add const qualifier to tcp, addr, and len
14879 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14886 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14892 (init_netlink_diag_msg): Add const qualifier to arguments and variables.
14896 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14904 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14908 to print structure fields.
14910 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14913 Add const qualifiers to auto variables and function arguments.
14915 the purpose of these "const" qualifiers is to highlight the intent.
14919 qualifier to tcp, addr, and len arguments.
14921 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14933 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14943 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14948 uint8_t, and zero-terminated string attributes.
14950 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14960 to all remaining arguments.
14964 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
14972 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14977 decode_tcp_bbr_info): Use it and PRINT_FIELD_U to print structure
14980 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14983 Add const qualifiers to auto variables and function arguments.
14985 the purpose of these "const" qualifiers is to highlight the intent.
14989 decode_tcp_bbr_info): Add const qualifier to tcp, addr, and len
14992 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15005 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
15007 nlattr: add const qualifiers to auto variables and function arguments.
15009 the purpose of these "const" qualifiers is to highlight the intent.
15012 decode_nla_##name): Add const qualifier to tcp, addr, and len arguments.
15014 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15017 netlink: introduce nla_decoder_t to parse netlink attributes data.
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>
15069 decode_smc_diag_msg): Use them to print structure fields.
15071 2017-06-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
15073 Update ioctl entries from linux v4.12-rc7.
15074 * linux/32/ioctls_inc_align16.h: Update from linux v4.12-rc7
15082 2017-06-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
15086 it into several lists and then passes them to grep. If no headers from
15087 a list match the grep pattern, grep exits with a non-zero status that
15088 causes xargs to exit with a non-zero status, too.
15090 * maint/ioctls_sym.sh: Use "find -exec +" instead of xargs,
15093 2017-06-27 JingPiao Chen <chenjingpiao@gmail.com>
15099 2017-06-27 JingPiao Chen <chenjingpiao@gmail.com>
15101 netlink: pass NLMSG_DONE messages to family specific payload decoders.
15104 payloads of NLMSG_DONE messages to family specific netlink
15115 2017-06-26 Dmitry V. Levin <ldv@altlinux.org>
15127 2017-06-26 Dmitry V. Levin <ldv@altlinux.org>
15129 Check -s argument early.
15130 * util.c (printstr_ex): Move the check that -s argument
15131 does not exceed -1U / 4 ...
15133 * tests/options-syntax.test: Check it.
15135 2017-06-25 Dmitry V. Levin <ldv@altlinux.org>
15141 * tests/net-sockaddr.c: Likewise.
15149 * tests/net-yy-netlink.c: Include "netlink.h" instead
15150 of <linux/netlink.h>, remove fallback definition of NETLINK_SOCK_DIAG.
15157 2017-06-24 Dmitry V. Levin <ldv@altlinux.org>
15159 netlink: provide a fallback definition of NETLINK_SOCK_DIAG.
15160 Add a fallback definition of NETLINK_SOCK_DIAG to netlink.h
15161 instead of adding these fallback definitions to every file.
15163 * netlink.h: Provide a fallback definition of NETLINK_SOCK_DIAG.
15165 remove fallback definition of NETLINK_SOCK_DIAG.
15167 2017-06-23 Dmitry V. Levin <ldv@altlinux.org>
15171 introduced by linux kernel commit v4.12-rc1~153^2~2.
15173 2017-06-22 Dmitry V. Levin <ldv@altlinux.org>
15177 by linux kernel commit v4.12-rc1~85^2~71.
15182 introduced by linux kernel commits v3.17-rc1~112^2~363,
15183 v4.1-rc1~59^2~1^2~63, and v4.12-rc1~85^2~62, respectively.
15186 v3.17-rc1~112^2~343 and v3.17-rc1~112^2~112.
15192 by linux kernel commits v4.11-rc1~124^2~387^2~1, v4.11-rc1~124^2~387^2,
15193 v4.11-rc1~124^2~166^2~2, v4.11-rc1~124^2~166^2, v4.12-rc1~64^3~469^2,
15194 and v4.12-rc1~64^3~276, respectively.
15198 by linux kernel commit v4.12-rc1~64^3~312^2~6.
15202 by linux kernel commit v4.12-rc1~64^3~260.
15207 by linux kernel commit v4.12-rc1~123^2~7^2~2^2~3.
15211 by linux kernel commit v4.12-rc1~129^2~118^2~2.
15215 and SO_COOKIE introduced by linux kernel commits v4.12-rc1~64^3~389,
15216 v4.12-rc1~64^3~341^2, and v4.12-rc1~64^3~221^2~1, respectively.
15218 2017-06-21 Dmitry V. Levin <ldv@altlinux.org>
15224 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15232 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15244 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15252 (NLMSG_HDRLEN): Move to netlink.h.
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,
15263 2017-06-19 Dmitry V. Levin <ldv@altlinux.org>
15266 Despite our efforts made to avoid unaligned access, gcc appears to be
15268 structures to unaligned addresses.
15270 Fix this issue by replacing copying of structures to unaligned addresses
15278 test_smc_diag_req, test_smc_diag_msg): Use it to initialize potentially
15279 unaligned struct nlmsghdr. Do not access nlh->nlmsg_len.
15281 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15289 2017-06-19 Masatake YAMATO <yamato@redhat.com>
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>
15363 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15366 "struct tcb *" was used in most prototypes along with "struct tcb *tcp",
15367 this change converts the latter form to the former for consistency.
15372 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15380 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15389 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15394 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15397 Do not initialise statics and globals to 0, NULL, or false.
15401 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15405 of unspecified type to functions that take no arguments.
15409 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15417 2017-06-16 Dmitry V. Levin <ldv@altlinux.org>
15420 The string returned by inet_ntoa(3) has IPv4 dotted-decimal notation,
15421 no need to quote it.
15425 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15431 2017-06-15 Miroslav Lichvar <mlichvar@redhat.com>
15450 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15468 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15490 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15499 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15533 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15538 * tests/netlink_sock_diag.c: Include <netinet/tcp.h>
15564 (decode_payload): Use it to invoke netlink family specific decoders.
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>
15588 2017-06-13 Dmitry V. Levin <ldv@altlinux.org>
15599 2017-06-12 Dmitry V. Levin <ldv@altlinux.org>
15601 Move xlat related functions to a separate file.
15604 * xlat.c: ... to this new file.
15607 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15613 This change allows passing of opaque user data to the callback function.
15616 argument from "const char *" to "void *" to allow passing
15617 of arbitrary data to the callback function.
15618 Rename proto_name to opaque_data, make it the last argument.
15619 Pass it to the callback function as the last argument.
15621 Change the type of proto_name argument from "const char *" to "void *",
15622 rename it to opaque_data, make it the last argument.
15623 Introduce a local variable proto_name to convert the type
15624 of opaque_data argument from "void *" to "const char *".
15626 "const char *" to "void *" for passing to the callback function.
15628 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15630 socketeutils: extend receive_responses to handle other netlink types.
15641 expected_msg_type to handle types other than SOCK_DIAG_BY_FAMILY.
15643 2017-06-12 JingPiao Chen <chenjingpiao@gmail.com>
15648 2017-06-08 Dmitry V. Levin <ldv@altlinux.org>
15652 to printxvals, takes a NULL-terminated sequence of xlat pointers.
15663 2017-06-08 JingPiao Chen <chenjingpiao@gmail.com>
15676 2017-06-08 JingPiao Chen <chenjingpiao@gmail.com>
15688 2017-06-08 Dmitry V. Levin <ldv@altlinux.org>
15690 xlat: provide fallback definitions for XFRM_MSG_* constants.
15696 2017-06-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
15700 syscall.c trace functions is expected to check whether it is a syscall
15701 entry or exit (with entering(tcp)/exiting(tcp)) itself, and then make
15718 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15721 nfnetlink was introduced in linux by commit v2.6.14-rc1~1035^2~217,
15727 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15766 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15771 tests: change netlink_protocol.test to trace sendto syscalls only.
15776 * tests/tests.h (create_nl_socket): Rename to create_nl_socket_ext,
15780 to create_nl_socket_ext, add a string argument, include it
15787 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15789 tests: add create_nl_socket function to libtests.
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>
15840 netlink: add netlink family argument to printers and decoders.
15843 to int, return family.
15847 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15850 Add file descriptor argument to decode_netlink.
15852 * io.c (print_iovec): Specify file descriptor to decode_netlink.
15859 Introduce getfdinode to obtain inode from fd.
15863 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15867 Add a way to get socket information without printing it.
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>
15890 socketutils.c: move inet_print closer to its first use.
15893 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15897 cache_inode_details gives a way to obtain cache information without
15901 to cache_inode_details. Do not print cached information.
15907 2017-06-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
15909 strace.c: move termination code to a separate function.
15910 This will be needed for the pull-style API.
15915 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15922 to avoid hitting SO_SNDBUF limit.
15925 Reported-by: Andreas Schwab <schwab@linux-m68k.org>
15927 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15929 Move netlink_protocols definition from net.c to netlink.c.
15933 is going to need them soon.
15938 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15940 travis: switch from gcc-6 to gcc-7.
15941 * .travis.yml (matrix): Change gcc-6 to gcc-7.
15945 initializers. Check decoding of messages with non-integer payload.
15947 2017-06-04 JingPiao Chen <chenjingpiao@gmail.com>
15955 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15961 2017-06-03 Dmitry V. Levin <ldv@altlinux.org>
15964 Change print_sockaddr_by_inode to be the only function exposed,
15970 (print_sockaddr_by_inode): Rename to print_sockaddr_by_inode_uncached,
15973 * util.c (printfd): Update to use new print_sockaddr_by_inode.
15975 2017-06-03 Dmitry V. Levin <ldv@altlinux.org>
15988 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
15990 netlink: move NLMSG_ERROR payload length check to nlmsgerr decoder.
15991 Move decoder specific check to the decoder.
15996 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
16002 * strace.c (next_event): Move PTRACE_EVENT_EXEC handling to the main
16005 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
16008 As strace does not use WCONTINUED flag, there is no need to handle
16014 2017-06-02 Victor Krapivensky <krapivenskiy.va@phystech.edu>
16017 This change decouples waiting for next event from reacting to it. This
16018 makes the control flow easier to understand, and serves as a preparation
16019 for implementing a pull-style API for LuaJIT.
16026 2017-05-30 Dmitry V. Levin <ldv@altlinux.org>
16028 scno.am: include config.h before syscallent.h.
16030 on mips where syscallent.h checks macros defined in config.h.
16032 * scno.am (syscallent.i): Add $(top_builddir)/config.h
16033 to prerequisites, include it.
16036 Reported-by: David Robins <dbrobins@i4031.net>
16038 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
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.
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.
16082 syscall, struct old_sigaction has sa_restorer field that has to be
16086 to unsigned int, add ATTRIBUTE_PACKED.
16087 [MIPS]: Dhrink sa_mask array to 1 element.
16096 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16098 xlat: rename SA_STACK to SA_ONSTACK.
16102 * xlat/sigact_flags.in (SA_STACK): Rename to SA_ONSTACK.
16104 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16118 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16120 alpha: rename sys_sigprocmask to sys_osf_sigprocmask.
16122 anyway, so rename the function to match the syscall name.
16125 to SYS_FUNC(osf_sigprocmask).
16128 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16131 The data collected by -fprofile-arcs during program run is saved
16133 is not saved. However, libgcov provides an interface to dump
16136 * m4/ax_code_coverage.m4 (AX_CODE_COVERAGE): Add -DENABLE_COVERAGE_GCOV
16137 to CODE_COVERAGE_CPPFLAGS.
16142 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16152 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16156 that signal to ensure strace termination with the same signal.
16161 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16163 Do not reset SIGCHLD handler in tracees to SIG_DFL.
16164 While strace resets SIGCHLD handler to the default action so that
16169 (init): When setting SIGCHLD handler to SIG_DFL, save the old handler.
16174 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16176 Refactor setting of signal handlers to reduce redundancy.
16187 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16190 In interactive mode (-I2), those signals that were blocked at startup
16193 * strace.c (empty_set): Rename to start_set. All users changed.
16194 (init): Initialize start_set and blocked_set to the set of currently
16199 2017-05-26 Dmitry V. Levin <ldv@altlinux.org>
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>
16240 2017-05-22 Dmitry V. Levin <ldv@altlinux.org>
16247 and return value to unsigned int, print it using sprint_old_sigmask_val.
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>
16274 Rename sys_sig[gs]etmask to sys_s[gs]etmask to match syscall names.
16275 * signal.c (SYS_FUNC(sigsetmask)): Rename to SYS_FUNC(ssetmask).
16276 (SYS_FUNC(siggetmask)): Rename to SYS_FUNC(sgetmask).
16284 * linux/mips/syscallent-o32.h: Likewise.
16294 (main): Change signal masks to contain all signals except USR1 and USR2.
16296 2017-05-20 Dmitry V. Levin <ldv@altlinux.org>
16303 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
16305 Move errnoent.sh, signalent.sh, and syscallent.sh to maint subdirectory.
16307 intended for developers who are expected to use a git repository.
16309 * errnoent.sh: Move to maint subdirectory.
16312 * HACKING-scripts: Update.
16316 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
16319 These files are intended for developers who are expected to use
16325 2017-05-01 Eugene Syromyatnikov <evgsyr@gmail.com>
16329 linux/mtd-abi.h: remove non-ASCII character from file comment.
16331 2017-05-01 Dmitry V. Levin <ldv@altlinux.org>
16341 * linux/alpha/syscallent.h (sigsuspend): Set nargs to 1.
16343 * linux/mips/syscallent-o32.h: Likewise.
16356 2017-05-01 Dmitry V. Levin <ldv@altlinux.org>
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>
16390 2017-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
16392 tests: add -etrace=?... test.
16393 Check for some architecture-specific syscalls which are not present
16400 2017-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
16402 tests: add more information to generated header comments.
16410 2017-04-25 Dmitry V. Levin <ldv@altlinux.org>
16415 2017-04-25 Edgar Kaziahmedov <edos@linux.com>
16429 commit v2.6.11-rc4~55^2~20.
16431 v3.15-rc1~85^2~215.
16432 Add V4L2_TUNER_SDR introduced by linux kernel commit v4.4-rc1~118^2~17
16439 introduced by linux kernel commit v3.6-rc1~28^2~306.
16440 Add V4L2_TUNER_CAP_RDS introduced by linux commit v2.6.32-rc1~679^2~189.
16442 introduced by linux kernel commit v2.6.37-rc1~64^2~110.
16444 v3.6-rc1~28^2~46.
16446 v3.6-rc1~28^2~40.
16448 v3.15-rc1~85^2~214.
16454 v2.6.17-rc1~739^2~9.
16460 v2.6.32-rc1~679^2~189.
16462 2017-04-24 Dmitry V. Levin <ldv@altlinux.org>
16481 * tests/recvmmsg-timeout.c (main): Likewise.
16488 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16496 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16501 to format a string representation of time, use tprints_comment
16502 to print it as a comment.
16511 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16520 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16523 Print microseconds/nanoseconds as non-negative.
16526 it is even checked by conversion to unsigned long.
16528 * print_timespec.c (timespec_fmt): Change tv_sec format to %lld and
16529 tv_nsec format to %llu.
16530 (print_timespec_t): Cast tv_sec to long long and process tv_nsec with
16533 * print_timeval.c (timeval_fmt): Change tv_sec format to %lld and
16534 tv_usec format to %llu.
16535 (print_timeval_t): Cast tv_sec to long long and process tv_nsec with
16539 * tests/adjtimex.c (main): Change tv_sec printing format to %lld, cast
16540 it to long long; change tv_usec printing format to %llu, process it with
16542 * tests/clock_nanosleep.c (main): Change tv_sec printing format to %lld,
16543 cast it to long long; change tv_nsec printing format to %llu, process it
16568 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16577 * defs.h (sprinttime): Change argument type from time_t to long long.
16588 Print raw values of time fields, use sprinttime_nsec to format a string
16589 representation of time, use tprints_comment to print it as a comment.
16592 and struct utimbuf.modtime fields, use sprinttime to format a string
16593 representation of time, use tprints_comment to print it as a comment.
16604 2017-04-24 Dmitry V. Levin <ldv@altlinux.org>
16634 * tests/strace-r.expected: Likewise.
16635 * tests/strace-t.test: Likewise.
16636 * tests/strace-tt.test: Likewise.
16637 * tests/strace-ttt.test: Likewise.
16638 * tests/threads-execve.c: Likewise.
16639 * tests/threads-execve.test: Likewise.
16651 2017-04-23 Eugene Syromyatnikov <evgsyr@gmail.com>
16653 tests: add faulty pointer check to time test.
16656 2017-04-22 Dmitry V. Levin <ldv@altlinux.org>
16660 zero_extend_signed_to_ull before feeding it to print_time_t_nsec.
16662 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16668 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16670 util: return pointer to string literal directly in sprinttime.
16671 There is no sense to copy it to static buffer first.
16673 * util.c (sprinttime): Just return "0", do not copy it to internal
16676 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16684 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16692 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16694 Implement -e trace=%stat option.
16697 sed -i '/statx/! s/TF|TSTA,/TF|TST|TSTA,/' linux/*/syscallent*.h
16700 * syscall.c: Alias LST to TRACE_STAT around syscallent.h inclusion.
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,
16734 * tests/ksysent.c (TST): New macro, defined to 0.
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
16745 * syscall.c: Alias TLST to TRACE_LSTAT around syscallent.h inclusion.
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,
16779 * tests/ksysent.c (TLST): New macro, defined to 0.
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
16791 * syscall.c: Alias TFST to TRACE_FSTAT around syscallent.h inclusion.
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,
16828 * tests/ksysent.c (TFST): New macro, defined to 0.
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/' \
16840 * syscall.c: Alias TSTA to TRACE_STAT_LIKE around syscallent.h inclusion.
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,
16897 * tests/ksysent.c (TSTA): New macro, defined to 0.
16900 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16902 qualify: add syntax for optional non-matching syscall qualification.
16906 * qualify.c (qualify_syscall): Add ignore_fail flag, set it to true
16908 * strace.1 (.SS Filtering): Document ability to use question marks
16911 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16913 linux/alpha/syscallent.h: add TSFA flag to osf_getfsstat.
16921 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16923 linux/mips/syscallent-compat.h: add some TD/TF flags for *stat* variants
16924 *xstat syscalls are, according to [1], like their *stat counterparts,
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
16943 * syscall.c: Alias TSFA to TRACE_STATFS_LIKE around syscallent.h inclusion.
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.
16980 * tests/ksysent.c (TSFA): New macro, defined to 0.
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/' \
16992 * syscall.c: Alias TFSF to TRACE_FSTATFS around syscallent.h inclusion.
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.
17028 * tests/ksysent.c (TFSF): New macro, defined to 0.
17031 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17034 Add some tabulation and leading zeroes to the values.
17036 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17047 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17058 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17069 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17081 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17092 2017-04-20 Dmitry V. Levin <ldv@altlinux.org>
17097 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17100 As tests are executed in separate directories now, there is no need to
17105 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17111 * tests/fstat.test: Use it as an argument for -P option.
17115 2017-04-19 Eugene Syromyatnikov <evgsyr@gmail.com>
17118 This solves problems like the need to update test suite on every
17121 * Makefile.am (dist-hook): Generate .year.
17122 * copyright-year-gen: New file.
17124 of copyright-year-gen script.
17129 variable to .year file.
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.
17139 to xecutables.
17141 * tests/attach-f-p.test: Move /proc/self/task/ check ...
17142 * tests/attach-f-p-cmd.c (main): ... here.
17145 * tests/net-y-unix.test: Move /proc/self/fd/ check ...
17146 * tests/net-y-unix.c (main): ... here.
17147 * tests/net-yy-inet.test: Move /proc/self/fd/ check ...
17148 * tests/net-yy-inet.c (main): ... here.
17149 * tests/net-yy-netlink.test: Move /proc/self/fd/ check ...
17150 * tests/net-yy-netlink.c (main): ... here.
17151 * tests/net-yy-unix.test: Move /proc/self/fd/ check ...
17152 * tests/net-yy-unix.c (main): ... here.
17154 2017-04-19 Dmitry V. Levin <ldv@altlinux.org>
17156 tests: tabulate pread64-pwrite64.test.
17157 * tests/gen_tests.in (pread64-pwrite64): New entry.
17158 * tests/pread64-pwrite64.c: (main): Skip the test if /proc/self/fd/
17160 * tests/pread64-pwrite64.test: Remove.
17161 * tests/Makefile.am (DECODER_TESTS): Remove pread64-pwrite64.test.
17163 tests: tabulate read-write.test.
17164 * tests/gen_tests.in (read-write): New entry.
17165 * tests/read-write.c: (main): Skip the test if /proc/self/fd/
17167 * tests/read-write.test: Remove.
17168 * tests/Makefile.am (DECODER_TESTS): Remove read-write.test.
17170 tests: add skip_if_unavailable function to libtests.
17186 2017-04-18 Dmitry V. Levin <ldv@altlinux.org>
17191 tests: extend gen_tests.sh to support 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.
17198 2017-04-18 Eugene Syromyatnikov <evgsyr@gmail.com>
17202 2017-04-17 Dmitry V. Levin <ldv@altlinux.org>
17220 Fix the length argument passed from print_iovec to decode_netlink.
17221 * io.c (print_iovec): Pass the actual length to decode_netlink
17256 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17263 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17265 alpha: rename print_timeval32_pair to print_timeval32_utimes.
17266 This follows the rename of print_timeval_item to print_timeval_utimes.
17269 to print_timeval32_utimes.
17274 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17279 (main): Use them to do more rigorous testing of utimes syscall parser.
17280 * tests/gen_tests.in (utimes): Update -a option.
17285 (main): Use them to do more rigorous testing of futimesat syscall parser.
17287 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17295 (print_timeval_pair): Rename to print_timeval_utimes, all callers
17301 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17317 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17328 2017-04-15 Dmitry V. Levin <ldv@altlinux.org>
17333 Reported-by: Victor Krapivensky <krapivenskiy.va@phystech.edu>
17335 2017-04-15 Victor Krapivensky <krapivenskiy.va@phystech.edu>
17337 Update statx parser and syscall entries lists to the upstream.
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>
17370 * tests/gen_tests.in (mq): Update -a option.
17372 tests: make net-yy-netlink test executable reenterable.
17373 * tests/net-yy-netlink.c (main): Use getpid() instead of a fixed
17381 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17383 Revert "Implement -e trace=%sched option"
17384 -e trace=%sched became redundant as -e trace=/sched does the same.
17405 * linux/mips/syscallent-n32.h: Likewise.
17406 * linux/mips/syscallent-n64.h: Likewise.
17407 * linux/mips/syscallent-o32.h: Likewise.
17423 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17425 Revert "Implement -e trace=%clock option"
17426 -e trace=%clock became redundant as -e trace=/clock does the same.
17447 * linux/mips/syscallent-n32.h: Likewise.
17448 * linux/mips/syscallent-n64.h: Likewise.
17449 * linux/mips/syscallent-o32.h: Likewise.
17465 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17470 regular expressions but to fix build on platforms where
17473 2017-04-14 JingPiao Chen <chenjingpiao@gmail.com>
17475 Implement -e trace=/regex option.
17479 * strace.1: Document -e trace=/regex option.
17480 * NEWS: Mention -e trace=/regex option.
17483 * tests/options-syntax.test: Add checks for invaild regexp
17486 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17494 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17504 2017-04-13 Edgar Kaziahmedov <edos@linux.com>
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>
17559 2017-04-13 Dmitry V. Levin <ldv@altlinux.org>
17561 travis: copy coverage test suite log to the travis log.
17562 * travis-build.sh (coverage): Print tests*/test-suite.log
17565 2017-04-12 Dmitry V. Levin <ldv@altlinux.org>
17567 travis: add gcc-6.
17568 * .travis.yml (matrix): Add gcc-6 entries.
17569 * travis-build.sh: Handle gcc*.
17570 * travis-install.sh: Handle gcc-*.
17572 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17574 tests: robustify gen_tests.sh against in-tree builds.
17575 * tests/gen_tests.sh: Use abs_srcdir instead of srcdir to construct
17576 a path to gen_tests.sh in implicit make rules.
17578 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17581 This saves up to 25% of ptrace syscalls in case of trace filtering.
17589 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17592 strace used to call get_regs on every stop of a tracee, including cases
17593 when the result is going to be discarded. Prepare to change this lavish
17602 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17604 startup_tcb: move get_scno invocation to a more convenient place.
17606 (startup_tcb): ... here. This is a no-op change that slightly improves
17609 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17612 At this moment there is only one call to get_regs,
17613 but there is going to be more of them, so a guard is needed.
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>
17623 syscall: move definitions of automatic variables closer to their use.
17625 definitions of automatic variables closer to their first use. This
17634 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17642 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17645 * socketutils.c: Provide a fallback definition of NETLINK_SOCK_DIAG.
17649 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17657 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17665 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17669 v4.10-45-gdf4dd8b.
17672 * xlat/aclipc.in: Remove file unused since commit v4.9-46-g681452b.
17674 2017-04-07 Dmitry V. Levin <ldv@altlinux.org>
17677 statfs.expected is unused since commit v4.11-515-g67c2f67.
17682 2017-04-07 Sandhya Bankar <bankarsandhya512@gmail.com>
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/' \
17738 * syscall.c: Alias TSF to TRACE_STATFS around syscallent.h inclusion.
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.
17772 * tests/ksysent.c (TSF): New macro, defined to 0.
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
17784 * syscall.c: Alias TCL to TRACE_CLOCK around syscallent.h inclusion.
17800 * linux/mips/syscallent-n32.h: Likewise.
17801 * linux/mips/syscallent-n64.h: Likewise.
17802 * linux/mips/syscallent-o32.h: Likewise.
17816 * tests/ksysent.c (TCL): New macro, defined to 0.
17819 2017-04-06 Dmitry V. Levin <ldv@altlinux.org>
17826 2017-04-05 Dmitry V. Levin <ldv@altlinux.org>
17828 tests: generalize scripts that check non-abbreviated decoding of ioctls.
17829 * tests/ioctl-v.sh: New file.
17831 (DECODER_TESTS): Remove ioctl_evdev-v.test, ioctl_loop-v.test,
17832 and ioctl_rtc-v.test.
17833 * tests/gen_tests.in (ioctl_evdev-v, ioctl_loop-v, ioctl_rtc-v):
17835 * tests/ioctl_evdev-v.test: Remove.
17836 * tests/ioctl_loop-v.test: Ditto.
17837 * tests/ioctl_rtc-v.test: Ditto.
17839 2017-04-05 Dmitry V. Levin <ldv@altlinux.org>
17842 Convert test scripts that follow simple testing patterns to a table.
17849 grep -l ^run_strace_match_diff *.test |while read f; do
17852 grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' ||
17853 sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f"
17859 grep -l srcdir= *.test |while read f; do
17862 grep -Fvq srcdir= ||
17863 sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f"
17900 * tests/execveat-v.test: Ditto.
17920 * tests/fork-f.test: Ditto.
17955 * tests/inet-cmsg.test: Ditto.
18003 * tests/mmsg-silent.test: Ditto.
18005 * tests/mmsg_name-v.test: Ditto.
18010 * tests/mq_sendrecv-read.test: Ditto.
18011 * tests/mq_sendrecv-write.test: Ditto.
18013 * tests/msg_control-v.test: Ditto.
18018 * tests/net-icmp_filter.test: Ditto.
18019 * tests/net-sockaddr.test: Ditto.
18035 * tests/ppoll-v.test: Ditto.
18037 * tests/preadv-pwritev.test: Ditto.
18039 * tests/preadv2-pwritev2.test: Ditto.
18047 * tests/quotactl-v.test: Ditto.
18048 * tests/quotactl-xfs-v.test: Ditto.
18049 * tests/quotactl-xfs.test: Ditto.
18057 * tests/recvmmsg-timeout.test: Ditto.
18079 * tests/seccomp-filter-v.test: Ditto.
18080 * tests/seccomp-filter.test: Ditto.
18133 * tests/times-fail.test: Ditto.
18139 * tests/umoven-illptr.test: Ditto.
18140 * tests/umovestr-illptr.test: Ditto.
18149 * tests/vfork-f.test: Ditto.
18152 * tests/wait4-v.test: Ditto.
18154 * tests/waitid-v.test: Ditto.
18157 * tests/xattr-strings.test: Ditto.
18167 to int_0x80.gen.test.
18169 (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
18171 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18177 2017-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
18184 (what_is) <case "array_type">: Use "count" property in order to calculate
18188 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18195 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18199 to remove leftover files manually by each test.
18203 * tests/options-syntax.test: Likewise.
18204 * tests/qual_inject-retval.test (check_injection): Likewise.
18207 * tests/seccomp-strict.test: Likewise.
18208 * tests/strace-V.test: Likewise.
18209 * tests/strace-tt.test: Likewise.
18210 * tests/strace-ttt.test: Likewise.
18211 * tests/threads-execve.test: Likewise.
18212 * tests/attach-f-p.test: Use $EXP instead of $OUT, do not remove it.
18219 * tests/attach-p-cmd.test: Likewise. Do not remove
18220 attach-p-cmd.test-lock.
18221 * tests/detach-running.test: Do not remove $LOG.
18222 * tests/detach-sleeping.test: Likewise.
18223 * tests/detach-stopped.test: Likewise.
18225 * tests/strace-S.test: Likewise.
18229 * tests/btrfs-v.test: Do not remove $EXP and $OUT.
18230 * tests/btrfs-vw.test: Likewise.
18231 * tests/btrfs-w.test: Likewise.
18232 * tests/execve-v.test: Likewise.
18237 * tests/ioctl_dm-v.test: Likewise.
18239 * tests/ioctl_evdev-v.test: Likewise.
18240 * tests/ioctl_loop-nv.test: Likewise.
18241 * tests/ioctl_loop-v.test: Likewise.
18243 * tests/ioctl_rtc-v.test: Likewise.
18248 * tests/net-y-unix.test: Likewise.
18249 * tests/net-yy-inet.test: Likewise.
18250 * tests/net-yy-netlink.test: Likewise.
18251 * tests/net-yy-unix.test: Likewise.
18253 * tests/prctl-arg2-intptr.test: Likewise.
18254 * tests/prctl-dumpable.test: Likewise.
18255 * tests/prctl-name.test: Likewise.
18256 * tests/prctl-no-args.test: Likewise.
18257 * tests/prctl-pdeathsig.test: Likewise.
18258 * tests/prctl-seccomp-filter-v.test: Likewise.
18259 * tests/prctl-seccomp-strict.test: Likewise.
18260 * tests/prctl-securebits.test: Likewise.
18261 * tests/prctl-tid_address.test: Likewise.
18262 * tests/prctl-tsc.test: Likewise.
18265 * tests/pread64-pwrite64.test: Do nore remove pread64-pwrite64-tmpfile.
18266 * tests/read-write.test: Do nore remove read-write-tmpfile.
18269 * tests/redirect-fds.test (check_fd): Reorder removal of work files.
18271 * tests/strace-t.test: Likewise.
18272 * tests/scm_rights-fd.test: Likewise. Use dir instead of $LOG.dir,
18274 * tests/strace-ff.test: Do not remove $OUT and $LOG.* files.
18276 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18284 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18293 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18295 tests: use fixed socket address in net-yy-unix.test.
18296 This allows net-yy-unix invocation without arguments.
18298 * tests/net-yy-unix.c (TEST_SOCKET): New macro.
18300 * tests/net-yy-unix.test: Do not specify arguments for the test
18303 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18305 tests: use fixed socket address in net-y-unix.test.
18306 This allows net-y-unix invocation without arguments.
18308 * tests/net-y-unix.c (TEST_SOCKET): New macro.
18310 * tests/net-y-unix.test: Do not specify arguments for the test
18313 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18318 This level of test isolation allows more test executables to be invoked
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
18328 directory, chdir into it, and add more ../ prefix to STRACE variable.
18330 * tests/attach-f-p.test: Replace "./" with "../".
18331 * tests/attach-p-cmd.test: Likewise.
18333 * tests/btrfs-v.test: Likewise.
18334 * tests/btrfs-vw.test: Likewise.
18335 * tests/btrfs-w.test: Likewise.
18337 * tests/detach-running.test: Likewise.
18338 * tests/detach-sleeping.test: Likewise.
18339 * tests/detach-stopped.test: Likewise.
18341 * tests/net-y-unix.test: Likewise.
18342 * tests/net-yy-inet.test: Likewise.
18343 * tests/net-yy-netlink.test: Likewise.
18344 * tests/net-yy-unix.test: Likewise.
18348 * tests/prctl-seccomp-strict.test: Likewise.
18349 * tests/qual_fault-exit_group.test: Likewise.
18351 * tests/qual_inject-error-signal.test: Likewise.
18352 * tests/qual_inject-retval.test: Likewise.
18353 * tests/qual_inject-signal.test: Likewise.
18357 * tests/redirect-fds.test: Likewise.
18359 * tests/scm_rights-fd.test: Likewise.
18360 * tests/seccomp-strict.test: Likewise.
18361 * tests/strace-C.test: Likewise.
18362 * tests/strace-E.expected: Likewise.
18363 * tests/strace-E.test: Likewise.
18364 * tests/strace-S.test: Likewise.
18365 * tests/strace-T.test: Likewise.
18366 * tests/strace-V.test: Likewise.
18367 * tests/strace-ff.test: Likewise.
18368 * tests/strace-k.test: Likewise.
18369 * tests/strace-r.expected: Likewise.
18370 * tests/strace-r.test: Likewise.
18371 * tests/strace-t.test: Likewise.
18372 * tests/strace-tt.test: Likewise.
18373 * tests/strace-ttt.test: Likewise.
18376 * tests/unix-pair-send-recv.test: Likewise.
18377 * tests/unix-pair-sendto-recvfrom.test: Likewise.
18379 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18388 * tests/mknod.c (sample): Change to a pointer.
18391 * tests/umode_t.c (sample): Change to a pointer.
18395 2017-03-31 Dmitry V. Levin <ldv@altlinux.org>
18401 2017-03-30 Dmitry V. Levin <ldv@altlinux.org>
18406 2017-03-29 Dmitry V. Levin <ldv@altlinux.org>
18409 Due to a subtle gcc bug that leads to miscompiled aarch64 kernels,
18410 the 3rd argument of sched_getattr syscall is not quite 32-bit
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 \
18432 * linux/alpha/syscallent.h: Add TF and TD flags to stat related
18434 * linux/mips/syscallent-compat.h: Likewise.
18436 2017-03-24 Dmitry V. Levin <ldv@altlinux.org>
18440 osf_sysinfo, sethae): Set nargs according to arch/alpha/kernel/osf_sys.c
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>
18475 test: rename README to README.md.
18476 * test/README: Rename to README.md, turn ../tests reference into an URL.
18482 * test/skodic.c: Rewrite this demo to simplify its use.
18484 2017-03-18 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18499 * tests/xstatx.c: Modify to support statx.
18505 2017-03-17 Dmitry V. Levin <ldv@altlinux.org>
18516 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18518 tests: move try_run_prog to init.sh.
18525 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18530 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18541 2017-03-16 Damien Profeta <damien.profeta@amadeus.com>
18543 strace-graph: handle pid looping.
18544 * strace-graph: On long running process or heavily forking one (like
18547 timestamp to the pid, the graph can now handle that case.
18551 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18554 Automatically convert tests to use TAIL_ALLOC_OBJECT_CONST_PTR macro
18557 sed -ri \
18561 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
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.
18579 2017-03-16 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18586 2017-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
18588 tests/sched.test: use heredoc in order to avoid spawning of subprocess.
18592 In order to avoid creating subprocesses, input for read commands
18593 is better to supply via heredoc and not pipe.
18595 * tests/sched.test: Move test cases to heredoc.
18597 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18603 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18607 syscall parser, no need to duplicate its parts in other tests.
18614 2017-03-14 Dmitry V. Levin <ldv@altlinux.org>
18620 * tests/xetitimer.test: Add -a option.
18622 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18624 tests: rewrite sigreturn syscall decoding check from match_grep to match_diff
18631 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18642 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18644 Move sigreturn parser to libstrace.
18647 syscall, remove the warning and move the parser to libstrace.
18653 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18666 * linux/64/syscallent.h (rt_sigreturn): Change sys_func to rt_sigreturn.
18675 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18679 It is going to be used in a parser of rt_sigreturn syscall.
18716 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18721 These definitions are going to be used in a parser of rt_sigreturn
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>
18823 wrapper is going to be used in cases when the length argument is equal
18824 to NSIG_BYTES.
18838 2017-03-08 Dmitry V. Levin <ldv@altlinux.org>
18842 2017-03-08 Abhishek Tiwari <erabhishektiwarics@gmail.com>
18844 Update information on how to build strace from git repository.
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.
18852 * README.md: Change references to COPYING and NEWS files from absolute
18853 to relative.
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 \
18896 * syscall.c: Alias TSC to TRACE_SCHED around syscallent.h inclusion.
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.
18931 2017-03-04 Eugene Syromyatnikov <evgsyr@gmail.com>
18935 https://www.mail-archive.com/strace-devel@lists.sourceforge.net/msg05147.html )
18937 In order to move them to a different namespace than syscall names. This is
18940 Old behaviour is retained in order to preserve backwards compatibility.
18942 * qualify.c (lookup_class) <syscall_class>: Add %-prefixed class definitions.
18943 * strace.1 (.SS Filtering): Add information regarding %-prefixed class
18945 * tests/net.test: Update to use %-prefixed syscall class name.
18947 * tests/qual_fault-exit_group.test: Likewise.
18949 * tests/scm_rights-fd.test: Likewise.
18954 2017-02-28 Dmitry V. Levin <ldv@altlinux.org>
18959 2017-02-27 Dmitry V. Levin <ldv@altlinux.org>
18962 * README: Change homepage URL to https://strace.io
18966 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
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,
18975 to print_time_t_nsec instead of printing them.
18981 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18983 tests: move print_time function to libtests.
18984 Rename print_time function to print_time_t and move it to libtests.
18992 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
19000 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
19008 2017-02-25 Dmitry V. Levin <ldv@altlinux.org>
19016 * linux/x32/syscallent.h (preadv2, pwritev2): Change nargs to 5.
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.
19032 * tests/ppoll-v.expected: Remove.
19033 * tests/.gitignore: Add ppoll-v.
19035 (DECODER_TESTS): Add ppoll-v.test.
19036 (EXTRA_DIST): Remove ppoll.expected and ppoll-v.expected.
19038 2017-02-20 Dmitry V. Levin <ldv@altlinux.org>
19040 tests: move get_sigset_size function to libtests.
19049 2017-02-19 Dmitry V. Levin <ldv@altlinux.org>
19069 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19078 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19080 Move definition of struct sched_attr to a separate header file.
19091 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19093 tests: rewrite sched_xetattr.test from match_grep to 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.
19123 to print_attach. Add attach_flags field to the structure,
19130 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19132 tests: rewrite adjtimex.test from match_grep to match_diff.
19141 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19167 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19171 properly by casting them to kernel_ulong_t and filling higher bits.
19174 syscall arguments to kernel_ulong_t, fill their higher 32 bits.
19176 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
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>
19199 * .mailmap: Add both addresses of JingPiao Chen here to avoid
19206 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19208 Fix -Werror=duplicate-decl-specifier compilation issues.
19217 to "const struct user_cap_header_struct *".
19219 to "const struct user_cap_header_struct * const".
19221 to "const struct user_cap_header_struct *".
19223 to "const struct user_cap_header_struct * const".
19225 argument to "const void *const".
19227 to "const struct utimbuf *const".
19229 to "const siginfo_t *const".
19231 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19233 tests: rewrite pipe syscall decoding check from match_grep to match_diff
19239 pipe syscall, rewrite from match_grep to match_diff.
19242 2017-02-11 Dmitry V. Levin <ldv@altlinux.org>
19244 tests: rewrite pipe2 syscall decoding check from match_grep to match_diff
19254 2017-02-10 Dmitry V. Levin <ldv@altlinux.org>
19256 tests: rewrite mq.test from match_grep to match_diff.
19267 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19280 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19283 * tests/qual_inject-error-signal.c: New file.
19284 * tests/qual_inject-error-signal.expected: Likewise.
19285 * tests/qual_inject-error-signal.test: New test.
19286 * tests/.gitignore: Add qual_inject-error-signal.
19288 (MISC_TESTS): Add qual_inject-error-signal.test.
19289 (EXTRA_DIST): Add qual_inject-error-signal.expected.
19291 tests: simplify qual_inject-signal.test.
19292 * tests/qual_inject-signal.test: Use $NAME instead of qual_inject-signal.
19294 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19296 Make symbolic errno values match case-insensitive.
19297 Follow the example of case-insensitive symbolic signal values in signal
19299 expressions case-insensitive.
19302 to match symbolic errno values.
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>
19329 Starting with commit glibc-2.24-553-g40c0a78, glibc may pass NULL
19330 address to semctl like other libcs.
19334 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19339 Fixes: ad427721 ("tests: rewrite bpf.test from match_grep to match_diff")
19341 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19344 * tests/qual_inject-signal.c: New file.
19345 * tests/qual_inject-signal.expected: Likewise.
19346 * tests/qual_inject-signal.test: New test.
19347 * tests/.gitignore: Add qual_inject-signal.
19349 (MISC_TESTS): Add qual_inject-signal.test.
19350 (EXTRA_DIST): Add qual_inject-signal.expected.
19352 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19354 Implement -e inject= option.
19355 Introduce -e inject= as a general injection option,
19356 limit -e fault= option to syscall fault injection.
19358 Change default return code of syscall fault injection to ENOSYS.
19362 is set to true.
19364 forward it to parse_inject_token.
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.
19379 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19381 tests: prepare for introduction of -e inject= option.
19382 Rename files related to fault injection to avoid further confusion.
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.
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
19407 "fault" to more generic inject/tamper ones.
19409 * defs.h (fault_opts): Rename to inject_opts.
19410 (FAULT_OPTS_RVAL_DEFAULT): Rename to INJECT_OPTS_RVAL_DEFAULT.
19411 (FAULT_OPTS_RVAL_DISABLE): Rename to INJECT_OPTS_RVAL_DISABLE.
19412 (struct tcb): Rename fault_vec field to inject_vec.
19413 (TCB_FAULT_INJ): Rename to TCB_TAMPERED.
19414 (QUAL_FAULT): Rename to QUAL_INJECT.
19415 (fault_vec): Rename to inject_vec.
19417 * qualify.c (fault_set): Rename to inject_set.
19418 (parse_fault_token): Rename to parse_inject_token.
19419 (parse_fault_expression): Rename to parse_inject_expression.
19421 * syscall.c (fault_vec): Rename to inject_vec.
19422 (tcb_fault_opts): Rename to tcb_inject_opts.
19423 (inject_syscall_fault_entering): Rename to tamper_with_syscall_entering.
19424 (update_syscall_fault_exiting): Rename to tamper_with_syscall_exiting.
19425 (syscall_fault_injected): Rename to syscall_tampered.
19428 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19434 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19442 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19454 2017-02-06 Dmitry V. Levin <ldv@altlinux.org>
19458 by linux kernel commit v4.10-rc1~202^2~340^2~1.
19462 by linux kernel commit v4.10-rc1~202^2~340^2~2.
19464 2017-02-06 Jacob Goense <dugo@xs4all.nl>
19469 * linux/or1k/set_error.c (arch_setsuccess): Rename to arch_set_success.
19474 2017-02-04 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
19490 2017-01-31 Dmitry V. Levin <ldv@altlinux.org>
19496 * tests/bpf.test: Add -a option.
19498 2017-01-29 Dmitry V. Levin <ldv@altlinux.org>
19500 tests: rewrite bpf.test from match_grep to match_diff.
19507 bpf: move common code to a separate function.
19511 2017-01-29 Quentin Monnet <quentin.monnet@6wind.com>
19530 2017-01-28 Elvira Khabirova <lineprinter0@gmail.com>
19533 * tests/fault_injection-retval.c: New file.
19534 * tests/fault_injection-retval.test: New test.
19535 * tests/.gitignore: Add fault_injection-retval.
19537 (MISC_TESTS): Add fault_injection-retval.test.
19539 2017-01-28 Elvira Khabirova <lineprinter0@gmail.com>
19543 When :retval=VALUE is specified, the syscall number is replaced by -1
19544 and a bogus success VALUE is returned to the callee.
19551 from struct fault_opts.err to struct fault_opts.rval.
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>
19628 * Makefile.am (m%_type_defs.h): Change sed regular expression to allow
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.
19649 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19652 Do not use glibc wrappers to call newfstatat and fstatat64.
19665 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19668 Remove all definitions of SAMPLE_SIZE that are identical to the fallback
19675 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19677 tests: change SAMPLE_SIZE type to libc_off_t.
19680 of SAMPLE_SIZE constant to libc_off_t.
19682 * tests/fstat.c (SAMPLE_SIZE): Cast to libc_off_t.
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>
19708 Fail the test instead of skipping it to attract more attention.
19713 2017-01-12 Dmitry V. Levin <ldv@altlinux.org>
19717 (main): Use it to print struct stat mismatch details.
19722 2017-01-12 JingPiao Chen <chenjingpiao@gmail.com>
19728 2017-01-12 JingPiao Chen <chenjingpiao@gmail.com>
19730 strace: move description of -k option to the appropriate place.
19731 Follow the example of strace.1 and put the description of -k option
19734 * strace.c (usage): Move description of -k option to the output
19737 2017-01-11 Dmitry V. Levin <ldv@altlinux.org>
19743 git grep -El ',[[:space:]]+}' |xargs sed -ri 's/,([[:space:]]+\})/\1/'
19759 * linux/mips/syscallent-n32.h: Likewise.
19760 * linux/mips/syscallent-n64.h: Likewise.
19761 * linux/mips/syscallent-o32.h: Likewise.
19775 Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
19777 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19810 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19812 scsi: add fallback definitions for SG_* ioctl command constants.
19818 a fallback definition of SG_IO.
19820 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19822 xlat: provide fallback definitions for BSG_FLAG_* constants.
19828 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19830 xlat: provide fallback definitions for SG_FLAG_* constants.
19836 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19842 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19848 Call tprint_iov_upto when iovec_count is non-zero.
19853 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19856 The SCSI driver, starting with kernel commit v2.6.25-rc1~1230^2~78,
19857 translates its "struct request.errors" to ioctl errors after
19860 As there is no easy way to tell SCSI layer errors from other syscall
19870 fields when umove call fails. Pass IOV_DECODE_STR to tprint_iov_upto
19875 fields when umove call fails. Pass IOV_DECODE_STR to tprint_iov_upto
19878 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19880 sg_io: reorder printing of fields to follow structure order.
19899 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19902 The formerly used format string %02x led to misleading output as there
19909 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19912 The tradition is to print scsi status codes in a hexadecimal form.
19917 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19920 The tradition is to print scsi tags in a hexadecimal form.
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>
19940 to print them.
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>
19972 struct sg_io_hdr contains pointers and therefore has to be mpersified.
19975 * sg_io_v3.c (struct_sg_io_hdr): Typedef to struct sg_io_hdr.
19979 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19991 (print_sg_io_req): Rename to decode_sg_io, replace print_sg_io_v3_req
19996 Move [HAVE_SCSI_SG_H] code to sg_io_v3.c.
19997 Move [HAVE_LINUX_BSG_H] code to sg_io_v4.c.
19999 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20025 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20028 The formerly used format string %x led to misleading output as there was
20035 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20038 The formerly used format string %x led to misleading output as there was
20046 2017-01-06 Dmitry V. Levin <ldv@altlinux.org>
20050 to implement it manually any longer.
20055 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20057 getrandom: print string as hex-escaped.
20058 Since there is no reason to interpret the value returned by getrandom as
20059 ASCII string, it makes sense to always print it as a hex-escaped string.
20063 to force hex-escaped string formatting.
20064 * tests/getrandom.test: Remove no longer needed -xx flag as the string
20067 Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
20069 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20071 util: add support for forcing printing string as hex-escaped.
20079 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20081 term: do not abort decoding in case of non-verbose output.
20083 exiting at this point is plain wrong and leads to last argument not
20090 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20095 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20098 Due to a bug in glibc readahead syscall wrapper on MIPS n64,
20104 Reported-by: James Cowgill <james410@cowgill.org.uk>
20106 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20119 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20126 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20136 * tests/quotactl-xfs.c (main): Likewise.
20138 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20140 tests: change the type of fill_memory{,_ex} first argument to void *
20141 As these functions behave like memset, it's more convenient to have
20145 of first argument from "char *" to "void *".
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.
20161 (main): ... here. Change types of magic constants to kernel_ulong_t.
20164 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20169 * tests/ioctl_loop-v.c: Likewise.
20171 * tests/ioctl_loop-v.test: Likewise.
20172 * tests/.gitignore: Add ioctl_loop and ioctl_loop-v.
20174 (DECODER_TESTS): Add ioctl_loop.test and ioctl_loop-v.test.
20176 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20185 faster implementations of libc functions are encouraged to try building
20193 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20198 leads to incorrect formatting of last argument.
20203 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20212 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20215 It is converted to an unsigned value in kernel (see loop_info64_from_old
20221 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20231 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20234 Specifying output width for size argument is rather misleading - it can
20235 be up to 14 bits in size. The use of explicit "0x" prefix is
20237 with alternate form flag leads to inconsistent output for 0.
20241 type, number and size to "%#x".
20246 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20254 * loop.c (decode_loop_info): Change "%#x" printf qualifier to "%#hhx"
20258 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20269 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20271 Add scno.h and syscallent.i to .gitignore files.
20275 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20278 * tests/.gitignore: Replace addkey with add_key, add attach-f-p-cmd.
20280 2017-01-03 Dmitry V. Levin <ldv@altlinux.org>
20284 * util.c: Remove __NR_process_vm_readv checks and fallback definitions,
20295 2017-01-01 Dmitry V. Levin <ldv@altlinux.org>
20299 build. This allows to use scno.h during the build of strace itself.
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>
20325 to only those few that need it.
20333 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20339 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20343 v4.15-39-g605a705a63d533dceb3c2d489468fcd3aed3963c.
20349 Reported-by: Joakim Bech <joakim.bech@linaro.org>
20351 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20360 Move definition of struct sysent and trace flags to a separate file.
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>
20401 loop: add fallback definitions for LOOP_* ioctl command constants.
20402 Since these are architecture-independent and have been added over the
20403 kernel's lifetime, it makes sense to have these definitions in strace
20411 2016-12-29 Dmitry V. Levin <ldv@altlinux.org>
20416 be used, for example, to provide fallback definitions for constants
20419 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20430 Cast lo_inode, lo_init[0], and lo_init[1] to kernel_ulong_t and print
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
20460 containg the invalid address from unsigned long to kernel_ulong_t,
20463 2016-12-28 Eugene Syromyatnikov <evgsyr@gmail.com>
20466 * tests/prctl-tid_address.c: New file.
20467 * tests/prctl-tid_address.test: New test.
20468 * tests/.gitignore: Add prctl-tid_address.
20470 (DECODER_TESTS): Add prctl-tid_address.test.
20472 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20475 Set the publicly shown copyright holder to "The strace developers.".
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>
20502 will be delivered to the tracee.
20504 * defs.h (struct fault_opts): Change the type of err field to int16_t,
20511 to ptrace_restart(PTRACE_SYSCALL).
20516 (trace_syscall_entering): Add pointer argument, forward it to
20518 (trace_syscall): Add pointer argument, forward it to
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>
20563 Move NSIG ifdefery to a separate header file.
20585 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20600 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20610 [SIZEOF_KERNEL_LONG_T == 4]: Use direct casts to long long
20613 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20624 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20630 Interesting, does any callee out there actually care to have enough room
20634 to print the value stored at address pointed by addr2 argument
20637 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20647 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20668 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20674 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20678 of [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4] to select
20681 of [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4] to decide
20682 whether to compile printnum_long_int.
20684 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20687 Do not silently truncate tracee addresses to current_wordsize.
20688 After transition from long to kernel_ulong_t there should be no sign
20695 * tests/umoven-illptr.c: New file.
20696 * tests/umoven-illptr.test: New test.
20697 * tests/.gitignore: Add umoven-illptr.
20699 (DECODER_TESTS): Add umoven-illptr.test.
20701 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20704 Do not silently truncate tracee addresses to current_wordsize.
20705 After transition from long to kernel_ulong_t there should be no sign
20712 * tests/umovestr-illptr.c: New file.
20713 * tests/umovestr-illptr.test: New test.
20714 * tests/.gitignore: Add umovestr-illptr.
20716 (DECODER_TESTS): Add umovestr-illptr.test.
20718 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20721 After transition from long to kernel_ulong_t the implementation
20724 * lseek.c (SYS_FUNC(llseek)): Use direct cast to long long instead
20727 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20730 After transition from long to kernel_ulong_t there are no mo
20731 complications that required to keep a separate implementation
20737 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20740 After transition from long to kernel_ulong_t these fields
20754 [LINUX_MIPSN64]: Extend to [LINUX_MIPSN32].
20762 to print_mmap.
20769 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20772 After transition from long to kernel_ulong_t we no longer need
20773 tcp->ext_arg, and therefore a function to access it is also no longer
20778 (printargs): Access tcp->u_arg directly
20792 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20795 After transition from long to kernel_ulong_t we no longer need
20799 (printaddr_klu): Rename to printaddr.
20804 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20808 as a pointer to an integer.
20810 * tests/prctl-arg2-intptr.c: New file.
20811 * tests/prctl-arg2-intptr.test: New test.
20812 * tests/.gitignore: Add prctl-arg2-intptr.
20814 (DECODER_TESTS): Add prctl-arg2-intptr.test.
20816 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20820 to kernel_ulong_t.
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>
20831 to kernel_ulong_t.
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>
20843 Redirect kernel_ureg_t and kernel_scno_t from unsigned long to kernel_ulong_t
20844 * defs.h (struct tcb): Change u_rval type from long to kernel_long_t.
20845 (PRI_krd, PRI_kru, PRI_krx): Redirect to PRI_kld, PRI_klu, and PRI_klx.
20847 to kernel_ulong_t.
20849 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20853 unsigned long to kernel_ulong_t.
20858 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20862 to vm_read_mem could be silently truncated. Detect this situation
20866 truncated_raddr of type unsigned long. Set errno to EIO and return -1
20867 when truncated_raddr does not equal to raddr.
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>
20877 Use ptr_to_kulong instead of explicit casts of pointers to kernel_ureg_t
20878 Direct casts to kernel_ureg_t will not work after the change
20879 of kernel_ureg_t from unsigned long to kernel_ulong_t.
20883 to kernel_ureg_t.
20898 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20901 * util.c (umoven, umovestr): Remove casts from unsigned long to pointer.
20904 * upoke.c (upoke): Remove casts from unsigned long to pointer.
20906 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20910 to unsigned long. This saves the code from a lot of casts between
20913 Rename __sa_handler to sa_handler__ as names starting with underscore
20916 * signal.c (old_sigaction): Rename __sa_handler to sa_handler__,
20918 from pointer to unsigned long.
20919 (old_sigaction32): Rename __sa_handler to sa_handler__, all users
20922 old_sigaction32.sa_handler__ to old_sigaction.sa_handler__,
20923 from old_sigaction32.sa_restorer to old_sigaction.sa_restorer,
20924 and from old_sigaction.sa_handler__ to unsigned long. Print
20926 * signal.c (new_sigaction): Rename __sa_handler to sa_handler__,
20928 from pointer to unsigned long.
20929 (new_sigaction32): Rename __sa_handler to sa_handler__, all users
20932 new_sigaction32.sa_handler__ to new_sigaction.sa_handler__,
20933 from new_sigaction32.sa_restorer to new_sigaction.sa_restorer,
20934 and from new_sigaction.sa_handler__ to unsigned long. Print
20937 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20939 signal: change signal handler address type from unsigned long to kernel_ureg_t
20941 from unsigned long to kernel_ureg_t.
20943 quota: change address argument type from unsigned long to kernel_ureg_t.
20945 from unsigned long to kernel_ureg_t.
20949 to kernel_ulong_t so it could handle wordsize > sizeof(long) properly.
20951 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20955 so change its decoding to avoid truncation.
20958 to kernel_ureg_t, print it using printflags64 instead of printflags.
20960 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20963 After the change of tcb.u_arg type from long to kernel_ureg_t it is safe
20964 to stop using printxval_long proxy and pass syscall arguments directly
20965 to printxval64.
20975 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20978 After the change of tcb.u_arg type from long to kernel_ureg_t it is safe
20979 to stop using printflags_long proxy and pass syscall arguments directly
20980 to printflags64.
20988 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20990 upeek, upoke: change argument types from long to unsigned long.
20992 to unsigned long. Change res argument type from long to kernel_ureg_t.
20996 to kernel_ureg_t.
21003 to unsigned long.
21005 to unsigned long.
21015 from long to unsigned long.
21020 from pointer to long to pointer to unsigned long.
21021 * linux/arm/arch_regs.c (arm_sp_ptr): Change type from pointer to long
21022 to pointer to unsigned long.
21031 to unsigned long.
21033 arch_sigreturn: change tracee address type from long to unsigned long.
21035 type from long to unsigned long.
21043 of addr and regs variables from long to unsigned long.
21045 type from long to kernel_ureg_t.
21047 of offset and addr variables from long to kernel_ureg_t.
21049 kexec: change flags type from unsigned long to kernel_ureg_t.
21051 from unsigned long to kernel_ureg_t. Use printxval64 instead
21054 kexec: change types of pointers and sizes to kernel_ureg_t.
21056 from unsigned long to kernel_ureg_t.
21058 to kernel_ureg_t. Change seg variable type from unsigned long
21059 to kernel_ureg_t.
21061 printsiginfo: change len argument type from unsigned long to kernel_ureg_t
21063 from unsigned long to kernel_ureg_t.
21065 signal: change address argument type from unsigned long to kernel_ureg_t
21067 from unsigned long to kernel_ureg_t.
21069 statfs64: change size argument type from unsigned long to kernel_ureg_t.
21071 from unsigned long to kernel_ureg_t.
21075 to print_struct_statfs64.
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
21086 decode_sockbuf: change addrlen argument type from long to kernel_ureg_t.
21088 to kernel_ureg_t.
21090 netlink: change size types from unsigned long to kernel_ureg_t.
21092 to kernel_ureg_t.
21095 type from unsigned long to unsigned int.
21097 from unsigned long to kernel_ureg_t. Change nlmsg_len variable type
21098 from unsigned long to unsigned int.
21100 ipc_msg: change size types from unsigned long to kernel_ureg_t.
21102 from unsigned long to kernel_ureg_t. Change flags argument type
21103 from unsigned long to unsigned int.
21105 from unsigned long to kernel_ureg_t.
21107 to kernel_ureg_t.
21109 to kernel_ureg_t.
21111 from unsigned long to kernel_ureg_t.
21113 dumpiov_upto: change size types from unsigned long to kernel_ureg_t.
21115 from unsigned long to kernel_ureg_t.
21117 and iov_len variable from unsigned long to kernel_ureg_t.
21119 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21121 msghdr: change cmsghdr size types from size_t to unsigned int.
21126 Since unsigned int has enough room to contain any valid control message
21128 to unsigned int.
21134 from size_t to unsigned int.
21135 (cmsg_socket_printers): Change min_len type from size_t to unsigned int.
21137 cmsg_len, and len variables from size_t to kernel_ureg_t.
21139 from size_t to unsigned int.
21141 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21143 msghdr: change register based size types from unsigned long to kernel_ureg_t
21145 from unsigned long to kernel_ureg_t.
21148 and msghdr.msg_controllen to kernel_ureg_t instead of unsigned long.
21150 from unsigned long to kernel_ureg_t.
21151 (SYS_FUNC(sendmsg)): Pass -1 instead of -1UL as data_size argument
21152 to decode_msghdr.
21153 * mmsghdr.c (print_struct_mmsghdr): Pass (kernel_ureg_t) -1 instead
21154 of -1UL as data_size argument to print_struct_msghdr.
21155 (dumpiov_in_mmsghdr): Cast msghdr.msg_iovlen to kernel_ureg_t instead
21157 * syscall.c (dumpio): Pass -1 instead of -1UL as data_size argument
21158 to dumpiov_in_msghdr
21161 * mq.c (SYS_FUNC(mq_timedreceive)): Do not check for tcp->u_rval < 0,
21162 syserror(tcp) is enough, and printstrn can handle len < 0 anyway.
21164 io: change size types from unsigned long to kernel_ureg_t.
21166 arguments from unsigned long to kernel_ureg_t.
21168 to kernel_ureg_t.
21170 to kernel_ureg_t.
21172 from unsigned long to kernel_ureg_t.
21174 the type of iov variable from unsigned long to kernel_ureg_t.
21176 mount: change flags type from unsigned long to kernel_ureg_t.
21178 to kernel_ureg_t, use printflags64 instead of printflags_long
21179 to print it.
21181 mem: change mmap arguments type from unsigned long to kernel_ureg_t.
21183 from unsigned long to kernel_ureg_t. Use printflags64 instead
21186 of [AARCH64 || X86_64] to take X32 into account.
21189 flags from unsigned long to kernel_ureg_t. Use printflags64 instead
21192 from unsigned long to kernel_ureg_t.
21194 numa: change size arguments type from unsigned long to kernel_ureg_t.
21197 to kernel_ureg_t.
21199 to kernel_ureg_t. Change buf type from long to kernel_ureg_t.
21201 print_sigset_addr_len: change len argument type from long to kernel_ureg_t
21203 to kernel_ureg_t.
21206 process_vm: change size arguments type from unsigned long to kernel_ureg_t
21209 remote_iovcnt, and flags from unsigned long to kernel_ureg_t.
21211 printstr*: change len argument type from long to kernel_ureg_t.
21213 to kernel_ureg_t.
21216 xattr: change size arguments type from unsigned long to kernel_ureg_t.
21218 from unsigned long to kernel_ureg_t.
21220 to kernel_ureg_t.
21222 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21224 printstr_ex: fix decoding of non-NUL-terminated strings when len == -1.
21225 Do not treat len == -1 in any special way. All users who need the
21226 string to be handled as a NUL-terminated string set QUOTE_0_TERMINATED
21229 * util.c (printstr_ex): Remove (len == -1) check.
21236 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21254 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21256 tests: add F8ILL_KULONG_* and f8ill_ptr_to_kulong to tests.h.
21260 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21262 printstr: rename to printstrn, add printstr as a thin wrapper.
21264 argument set to -1, create a dedicated function for this use case.
21266 * defs.h (printstr): Rename to printstrn. All callers updated.
21269 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21271 process: change ptrace arguments type from unsigned long to kernel_ureg_t
21273 from unsigned long to kernel_ureg_t.
21275 process: change tracee address type from unsigned long to kernel_ureg_t.
21277 from unsigned long to kernel_ureg_t.
21279 to kernel_ureg_t.
21281 net: change address argument type from long to kernel_ureg_t.
21286 to kernel_ureg_t.
21288 print_mq_attr: change address argument type from long to kernel_ureg_t.
21290 to kernel_ureg_t.
21292 ipc_*: change address argument type from long to kernel_ureg_t.
21294 address argument type from long to kernel_ureg_t.
21299 print_msgbuf: change address argument type from long to kernel_ureg_t.
21301 from long to kernel_ureg_t.
21303 desc: change tracee address type from long to kernel_ureg_t.
21304 * desc.c (decode_select): Rename arg to addr, change its type
21305 from long to kernel_ureg_t.
21307 uid: change address argument type from long to kernel_ureg_t.
21309 from long to kernel_ureg_t.
21311 time: change address argument type from long to kernel_ureg_t.
21313 from long to kernel_ureg_t.
21315 sched: change address argument type from long to kernel_ureg_t.
21317 from long to kernel_ureg_t.
21319 printsiginfo: change address argument type from long to kernel_ureg_t.
21321 from long to kernel_ureg_t.
21323 print_timex: change address argument type from long to kernel_ureg_t.
21325 from long to kernel_ureg_t.
21327 print_sigevent: change address argument type from long to kernel_ureg_t.
21329 from long to kernel_ureg_t.
21331 poll: change address argument type from long to kernel_ureg_t.
21333 from long to kernel_ureg_t.
21335 printrusage*: change tracee address argument type from long to kernel_ureg_t
21337 from long to kernel_ureg_t.
21341 of print_rusage from long to kernel_ureg_t.
21343 print_time*: change tracee address argument type from long to kernel_ureg_t
21346 from long to kernel_ureg_t.
21348 of print_tv_ts and sprint_tv_ts from long to kernel_ureg_t.
21351 type from long to kernel_ureg_t.
21356 rtc: change type of ioctl 3rd argument from long to kernel_ureg_t.
21358 Change addr type from long to kernel_ureg_t.
21359 (rtc_ioctl): Change arg type from long to kernel_ureg_t.
21361 mtd: change type of ioctl 3rd argument from long to kernel_ureg_t.
21366 Change addr type from long to kernel_ureg_t.
21367 (mtd_ioctl): Change arg type from long to kernel_ureg_t.
21369 hdio: change type of ioctl 3rd argument from long to kernel_ureg_t.
21370 * hdio.c (hdio_ioctl): Change arg type from long to kernel_ureg_t.
21372 v4l2: change type of ioctl 3rd argument from long to kernel_ureg_t.
21380 to kernel_ureg_t.
21382 evdev: change type of ioctl 3rd argument from long to kernel_ureg_t.
21386 from long to kernel_ureg_t.
21388 btrfs: change type of ioctl 3rd argument from long to kernel_ureg_t.
21390 to kernel_ureg_t.
21392 block: change type of ioctl 3rd argument from long to kernel_ureg_t.
21393 * block.c (block_ioctl): Change arg type from long to kernel_ureg_t.
21395 Change type of ioctl 3rd argument from long to kernel_ureg_t.
21396 * defs.h (DECL_IOCTL): Change arg type from long to kernel_ureg_t.
21402 from long to kernel_ureg_t.
21403 (loop_ioctl): Change arg type from long to kernel_ureg_t.
21408 (decode_ifconf): Change addr type from long to kernel_ureg_t.
21411 (term_ioctl): Change arg type from long to kernel_ureg_t.
21415 ldt: change address argument type from long to kernel_ureg_t.
21417 argument type from long to kernel_ureg_t.
21420 fcntl: change address argument type from long to kernel_ureg_t.
21422 address argument type from long to kernel_ureg_t.
21424 execve: change address argument type from long to kernel_ureg_t.
21426 from long to kernel_ureg_t.
21428 dirent: change address argument type from long to kernel_ureg_t.
21430 to kernel_ureg_t.
21432 bpf: change address argument type from long to kernel_ureg_t.
21435 type from long to kernel_ureg_t.
21437 dump*: change address argument type from long to kernel_ureg_t.
21439 Change address argument type from long to kernel_ureg_t.
21445 print_sigset_addr_len: change address argument type from long to kernel_ureg_t
21447 to kernel_ureg_t.
21451 decode_sockaddr: change address argument type from long to kernel_ureg_t
21453 to kernel_ureg_t.
21456 print_struct_statfs*: change address argument type from long to kernel_ureg_t
21458 argument type from long to kernel_ureg_t.
21463 fetch_struct_flock: change address argument type from long to kernel_ureg_t
21465 Change address argument type from long to kernel_ureg_t.
21467 fetch_seccomp_fprog: change address argument type from long to kernel_ureg_t
21469 type from long to kernel_ureg_t.
21471 printnum_*, printpair_*: change address argument type from long to kernel_ureg_t
21473 address argument type from long to kernel_ureg_t.
21476 printpath*: change address argument type from long to kernel_ureg_t.
21478 from long to kernel_ureg_t.
21481 printstr*: change address argument type from long to kernel_ureg_t.
21483 from long to kernel_ureg_t.
21486 umove*: change tracee address argument type from long to kernel_ureg_t.
21489 type from long to kernel_ureg_t.
21491 from long to kernel_ureg_t.
21494 type from long to kernel_ureg_t.
21496 from long to kernel_ureg_t.
21498 argument type from long to kernel_ureg_t.
21501 futex: change address type from long to kernel_ureg_t.
21503 to kernel_ureg_t.
21505 file_handle: change address type from long to kernel_ureg_t.
21508 to kernel_ureg_t.
21510 printsiginfo: cast pointers to kernel_ureg_t instead of unsigned long.
21512 to kernel_ureg_t instead of unsigned long.
21514 to kernel_ureg_t instead of unsigned long.
21516 sigaltstack: cast pointers and sizes to kernel_ureg_t instead of unsigned long
21518 and sigaltstack.ss_size to kernel_ureg_t instead of unsigned long.
21520 v4l2: cast pointers to kernel_ureg_t instead of long.
21522 to kernel_ureg_t instead of long.
21524 v4l2: cast pointers to kernel_ureg_t instead of unsigned long.
21527 to kernel_ureg_t instead of unsigned long.
21529 to kernel_ureg_t instead of unsigned long.
21531 2016-12-24 Dmitry V. Levin <ldv@altlinux.org>
21533 sysctl: cast pointers to kernel_ureg_t instead of size_t.
21535 __sysctl_args.newval pointers to kernel_ureg_t instead of size_t.
21537 sysctl: cast pointers to kernel_ureg_t instead of long.
21539 to kernel_ureg_t instead of long.
21541 block: cast pointers to kernel_ureg_t instead of long.
21543 to kernel_ureg_t instead of long.
21545 dumpiov_upto: cast pointers to kernel_ureg_t instead of long.
21546 * util.c (dumpiov_upto): Cast iovec.iov_base pointer to kernel_ureg_t
21549 msghdr: cast pointers to kernel_ureg_t instead of long.
21551 to kernel_ureg_t instead of long.
21552 (dumpiov_in_msghdr): Cast msghdr.msg_iov pointer to kernel_ureg_t
21555 mmsghdr: cast pointers to kernel_ureg_t instead of long.
21557 to kernel_ureg_t instead of long.
21561 from pointer to long type.
21567 ptrace_restart: change types of integer arguments to unsigned.
21569 from int to unsigned int.
21578 redundant casts from uint32_t to long.
21580 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21582 numa: change address argument type from unsigned long to kernel_ureg_t.
21584 unsigned long to kernel_ureg_t.
21586 net: change address argument type from unsigned long to kernel_ureg_t.
21588 unsigned long to kernel_ureg_t.
21590 mem: change tracee address type from unsigned long to kernel_ureg_t.
21593 addresses from unsigned long to kernel_ureg_t.
21595 kexec: change address argument type from unsigned long to kernel_ureg_t.
21597 from unsigned long to kernel_ureg_t.
21599 poll: change counter type from unsigned long to unsigned int.
21601 max_printed counters from unsigned long to unsigned int.
21603 xattr: change address argument type from unsigned long to kernel_ureg_t.
21605 argument type from unsigned long to kernel_ureg_t.
21607 uid: change address argument type from unsigned long to kernel_ureg_t.
21609 from unsigned long to kernel_ureg_t.
21611 stat64: change address argument type from unsigned long to kernel_ureg_t
21613 from unsigned long to kernel_ureg_t.
21615 stat: change address argument type from unsigned long to kernel_ureg_t.
21617 from unsigned long to kernel_ureg_t.
21619 sigaltstack: change address argument type from unsigned long to kernel_ureg_t
21621 from unsigned long to kernel_ureg_t.
21623 resource: change address argument type from unsigned long to kernel_ureg_t
21625 address argument type from unsigned long to kernel_ureg_t.
21627 printsiginfo: change address argument type from unsigned long to kernel_ureg_t
21629 from unsigned long to kernel_ureg_t.
21631 poll: change tracee address type from unsigned long to kernel_ureg_t.
21633 all tracee address variables from unsigned long to kernel_ureg_t.
21635 perf: change address argument type from unsigned long to kernel_ureg_t.
21637 address argument type from unsigned long to kernel_ureg_t.
21639 pathtrace: change tracee address type from unsigned long to kernel_ureg_t
21641 from unsigned long to kernel_ureg_t.
21643 from unsigned long to kernel_ureg_t.
21645 scsi: change address argument type from unsigned long to kernel_ureg_t.
21647 from unsigned long to kernel_ureg_t.
21649 dm: change address argument type from unsigned long to kernel_ureg_t.
21653 from unsigned long to kernel_ureg_t.
21655 oldstat: change address argument type from unsigned long to kernel_ureg_t
21657 from unsigned long to kernel_ureg_t.
21659 capability: change address argument type from unsigned long to kernel_ureg_t
21661 Change address argument type from unsigned long to kernel_ureg_t.
21663 btrfs: change address argument type from unsigned long to kernel_ureg_t.
21665 from unsigned long to kernel_ureg_t.
21667 affinity: change address argument type from unsigned long to kernel_ureg_t
21669 unsigned long to kernel_ureg_t.
21671 aio: change address type from unsigned long to kernel_ureg_t.
21672 * aio.c (print_iocb): Remove casts to unsigned long.
21674 from unsigned long to kernel_ureg_t.
21676 mmsghdr: change address argument type from unsigned long to kernel_ureg_t
21678 address argument type from unsigned long to kernel_ureg_t.
21680 msghdr: change address argument type from unsigned long to kernel_ureg_t
21682 from unsigned long to kernel_ureg_t.
21684 fetch_struct_stat64: change address argument type from unsigned long to kernel_ureg_t
21686 type from unsigned long to kernel_ureg_t.
21688 fetch_struct_stat: change address argument type from unsigned long to kernel_ureg_t
21690 type from unsigned long to kernel_ureg_t.
21692 fetch_struct_msghdr: change address argument type from unsigned long to kernel_ureg_t
21694 address argument type from unsigned long to kernel_ureg_t.
21696 fetch_struct_mmsghdr: change address argument type from unsigned long to kernel_ureg_t
21698 address argument type from unsigned long to kernel_ureg_t.
21700 decode_netlink: change address argument type from unsigned long to kernel_ureg_t
21702 from unsigned long to kernel_ureg_t.
21706 print_seccomp_*: change address argument type from unsigned long to kernel_ureg_t
21708 address argument type from unsigned long to kernel_ureg_t.
21712 tprint_iov*: change address argument type from unsigned long to kernel_ureg_t
21714 from unsigned long to kernel_ureg_t.
21717 print_array: change tracee address type from unsigned long to kernel_ureg_t
21719 to kernel_ureg_t.
21721 address variables from unsigned long to kernel_ureg_t.
21723 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21725 Rename LONG_LONG to ULONG_LONG and change it to return unsigned long long
21727 unsigned long long, so it is quite natural to change LONG_LONG as well.
21729 * defs.h (LONG_LONG): Rename to ULONG_LONG, change return type
21730 from long long to unsigned long long. All callers updated.
21732 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21736 from kernel_ureg_t to unsigned long.
21738 from unsigned int to unsigned long.
21742 from uint32_t to kernel_ulong_t.
21744 to unsigned long.
21746 2016-12-22 Dmitry V. Levin <ldv@altlinux.org>
21750 struct_sigevent.sigev_value.sival_ptr to unsigned long as the former
21755 (main): Use it to limit the length passed to print_quoted_memory.
21758 2016-12-22 Gabriel Laskar <gabriel@lse.epita.fr>
21760 tests: test for correct ellipsis with -s in xattr.
21761 * tests/xattr-strings.c: New file.
21762 * tests/xattr-strings.test: New test.
21763 * tests/.gitignore: Add xattr-string.
21765 (DECODER_TESTS): Add xattr-string.test.
21767 2016-12-22 Gabriel Laskar <gabriel@lse.epita.fr>
21770 This fixes the display when using `-s` to limit the string size
21776 Reported-by: Марк Коренберг <socketpair@gmail.com>
21778 2016-12-22 Eugene Syromyatnikov <evgsyr@gmail.com>
21785 2016-12-21 Dmitry V. Levin <ldv@altlinux.org>
21787 sock: cast pointers to kernel_ureg_t instead of unsigned long.
21788 * sock.c (decode_ifconf): Cast ifconf.ifc_buf pointer to kernel_ureg_t
21791 scsi: cast pointers to kernel_ureg_t instead of unsigned long.
21793 sg_io_hdr.dxferp, and sg_io_hdr.sbp pointers to kernel_ureg_t instead
21796 mtd: cast pointers to kernel_ureg_t instead of unsigned long.
21798 to kernel_ureg_t instead of unsigned long.
21800 msghdr: cast pointers to kernel_ureg_t instead of unsigned long.
21802 msghdr.msg_control pointers to kernel_ureg_t instead of unsigned long.
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
21808 evdev: cast pointers to kernel_ureg_t instead of unsigned long.
21810 pointer to kernel_ureg_t instead of unsigned long.
21812 btrfs: cast pointers to kernel_ureg_t instead of unsigned long.
21814 and btrfs_ioctl_vol_args_v2.qgroup_inherit pointers to kernel_ureg_t
21827 Introduce DECL_IOCTL macro to declare *_ioctl functions.
21833 Introduce DECL_PRINT* macros to declare printnum_* and printpair_*
21840 ioctl: use uintptr_t for casts between 32-bit integers and pointers.
21841 * ioctl.c (compare): Cast pointer to uintptr_t before assigning
21842 it to an integer.
21843 (ioctl_lookup): Cast integer to uintptr_t before passing it
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
21859 to DISTCHECK_CONFIGURE_FLAGS instead of CHECK_CONFIGURE_FLAGS.
21861 printaddr: change argument type to kernel_ureg_t.
21863 to kernel_ureg_t.
21869 * tests/ip_mreq.c (main): Create arrays of setsockopt arguments to test.
21881 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21885 that seems to be unneeded for quite a long time.
21889 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21902 * tests/preadv2-pwritev2.c: Likewise.
21905 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21908 Provide scno.h with fallback definitions of all __NR_* constants known
21909 to strace for the personbality being tested.
21912 Such tests can include "scno.h" after <asm/unistd.h> to get definitions
21921 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21926 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21935 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21939 on compat types. Set COMPAT_SYSCALL_TYPES flag to these syscall entries
21941 flag set, to avoid unpleasant alternative of adding multiple
21942 widen_to_ulong invocations to individual syscall parsers.
21946 64-bit type, so the automatic argument truncation cannot be applied.
21949 * syscall.c (CST): New macro, defined to COMPAT_SYSCALL_TYPES.
21954 of compat syscalls to 32-bit values.
21955 * tests/ksysent.c (CST): New macro, defined to 0.
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>
21979 therefore it has to be truncated there.
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.
21988 truncates len argument to unsigned int.
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
21998 The only remaining thing is a pointer to cmdline string, but it is
22005 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22009 shorter and easier to comprehend.
22019 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22022 * defs.h (printaddr_ull): Rename to printaddr_klu, change argument
22023 type from unsigned long long to kernel_ulong_t. All callers updated.
22024 (getarg_ull): Rename to getarg_klu, change return value type
22025 from unsigned long long to kernel_ulong_t. All callers updated.
22039 * util.c (printaddr_ull): Rename to printaddr_klu, change argument
22040 type from unsigned long long to kernel_ulong_t, print it using
22042 (getarg_ull): Rename to getarg_klu, change return value type
22043 from unsigned long long to kernel_ulong_t, print it using
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
22062 block.c: change type of long long fileds to int64_t.
22064 fields from long long to int64_t.
22067 2016-12-19 Eugene Syromyatnikov <evgsyr@gmail.com>
22069 Introduce current_klongsize in addition to current_wordsize.
22070 Subsequent commits are going to use current_klongsize
22087 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22090 Provide SIZEOF_KERNEL_LONG_T macro in addition to SIZEOF_LONG and
22096 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22105 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22112 * kernel_types.h (kernel_ureg_t): New type, typedef to unsigned long.
22113 * defs.h (struct tcb): Change type of u_arg from long to kernel_ureg_t.
22115 to unsigned long long.
22117 to kernel_ureg_t.
22119 to kernel_ureg_t.
22121 of syscall arguments to unsigned long.
22123 to long.
22125 to kernel_ureg_t.
22127 from long to kernel_ureg_t.
22129 no longer needed cast of syscall arguments to unsigned long.
22131 from long to kernel_ureg_t.
22133 arguments to unsigned types.
22135 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22139 instead of umoven to fetch mmap arguments, fix return value when this
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>
22151 Change scno type from long to unsigned long.
22154 to unsigned long, that could be changed later to kernel_ulong_t.
22156 * kernel_types.h (kernel_scno_t): New type, typedef to unsigned long.
22158 to kernel_scno_t.
22159 (syscall_name): Change argument type from long to kernel_scno_t.
22161 to kernel_scno_t.
22163 from long to kernel_scno_t.
22189 from long to kernel_scno_t.
22195 (shuffle_scno): Change return type from long to kernel_scno_t.
22196 (syscall_name): Change argument type from long to kernel_scno_t.
22198 2016-12-18 Dmitry V. Levin <ldv@altlinux.org>
22201 * defs.h (SCNO_IN_RANGE): Rename to scno_in_range. All callers updated.
22202 (SCNO_IS_VALID): Rename to scno_is_valid. All callers updated.
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>
22238 mips n32: provide fallback definitions of kernel_long_t/kernel_ulong_t.
22240 LINUX_MIPSN32] (kernel_long_t, kernel_ulong_t): Define to long long types.
22242 2016-12-17 Eugene Syromyatnikov <evgsyr@gmail.com>
22249 * tests/prctl-no-args.c: New file.
22250 * tests/prctl-no-args.test: New test.
22251 * tests/.gitignore: Add prctl-no-args.
22253 (DECODER_TESTS): Add prctl-no-args.test.
22256 * tests/prctl-securebits.c: New file.
22257 * tests/prctl-securebits.test: New test.
22258 * tests/.gitignore: Add prctl-securebits.
22260 (DECODER_TESTS): Add prctl-securebits.test.
22263 * tests/prctl-dumpable.c: New file.
22264 * tests/prctl-dumpable.test: New test.
22265 * tests/.gitignore: Add prctl-dumpable.
22267 (DECODER_TESTS): Add prctl-dumpable.test.
22276 2016-12-16 Dmitry V. Levin <ldv@altlinux.org>
22279 As kernel_ulong_t type is going to be used in the definition
22314 * tests/prctl-pdeathsig.c: Likewise.
22315 * tests/prctl-tsc.c: Likewise.
22316 * tests/preadv2-pwritev2.c: Likewise.
22318 * tests/read-write.c: Likewise.
22325 2016-12-15 Dmitry V. Levin <ldv@altlinux.org>
22327 Post-release administrivia.
22329 * debian/changelog.in: Add a changelog entry for 4.15-1.
22332 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22334 xlat: provide fallback definitions for NETLINK_* constants.
22336 all constant values to make newer constants decoded properly when strace
22343 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22348 (main): Use it. Allow getaffinity return value to be less than
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>
22360 * .mailmap: Add both addresses of Thomas De Schampheleire here to avoid
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>
22372 https://lists.gnu.org/archive/html/bug-grep/2016-12/msg00011.html
22375 * tests/detach-running.test: Use it instead of grep to search
22377 * tests/detach-sleeping.test: Likewise.
22378 * tests/detach-stopped.test: Likewise.
22380 2016-12-13 Eugene Syromyatnikov <evgsyr@gmail.com>
22382 tests: fix typo in comment inside prctl-tsc.c.
22384 2016-12-13 Sean Stangl <sstangl@mozilla.com>
22387 Fix libunwind segfault when -p is passed before -k.
22392 2016-12-13 Eugene Syromyatnikov <evgsyr@gmail.com>
22397 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22402 * tests/fault_injection-exit_group.test: Use it.
22408 * tests/threads-execve.test: Use require_min_kernel_version_or_skip.
22410 2016-12-07 Eugene Syromyatnikov <evgsyr@gmail.com>
22412 tests: add descriptions to prctl-pdeathsig and prctl-tsc tests.
22414 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22416 tests: robustify prctl-pdeathsig.test and prctl-tsc.test.
22419 * tests/prctl-pdeathsig.test: Filter out unrelated PR_GET_* and PR_SET_*
22421 * tests/prctl-tsc.test: Likewise.
22423 2016-12-07 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22428 dynamically if CC supports these flags before adding them to WARN_CFLAGS.
22431 the flags passed to this compilation also include WARN_CFLAGS (through
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>
22467 * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Change gl_Flags to use
22468 _AC_LANG_PREFIX[]FLAGS in unquoted form. Change gl_Warn to use gl_Flags
22469 instead of _AC_LANG_ABBREV. Change notification message to mention
22474 AC_REQUIRE to a regular call.
22476 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22478 AX_PROG_CC_FOR_BUILD: redirect more variables related to C compiler.
22482 Use st_SAVE_VAR/st_RESTORE_VAR to workaround this issue.
22492 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22494 Move all gl_WARN_ADD calls to a separate m4 macro.
22495 This is going to be needed for the upcoming AX_PROG_CC_FOR_BUILD
22502 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22505 These new macros are going to be needed for the upcoming
22510 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
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.
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.
22525 Due to probabilistic nature of the test, try it several times.
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
22535 Adjust expected output to handle this rare but possible case.
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
22545 Adjust expected output to handle this rare but possible case.
22547 * tests/strace-tt.test: Allow any time stamp between start and finish
22550 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
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>.
22566 (main): Write to stdout instead of descriptor 3. Wait for the peer
22567 writing to stdout.
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.
22629 (QUAL_SIGNAL): Change to a value greater than 0xff.
22630 (QUAL_FAULT): Change to a lower value.
22639 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22649 (QUAL_READ, QUAL_WRITE): Change to values greater than 0xff.
22656 * tests/options-syntax.test: Check invalid sets of descriptors.
22659 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22661 tests: skip redirect-fds.test when strace is wrapped with valgrind.
22666 * tests/redirect-fds.test: Skip the test when $STRACE shows a presence
22669 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22678 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22680 affinity: pass 0 as a pid to sched_getaffinity.
22682 to sched_getaffinity.
22687 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22689 tests: make options-syntax.test tolerant of strace wrappers.
22690 Change the test to allow wrappers like STRACE="valgrind ./strace".
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>
22710 (main): Change type of entries of the "tests" array from long to
22713 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22724 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22730 (main): Use it to print UID/GID values.
22734 (main): Use it to print UID/GID values.
22736 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22741 2016-12-01 Dmitry V. Levin <ldv@altlinux.org>
22748 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22755 corresponding to the given number.
22758 only if there is a syscall corresponding to si_syscall number; print
22762 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22770 which, in turn, is an array of two elements that used to be printed
22776 * swapon.c (SYS_FUNC(swapon)): Do not check for non-zero the value
22777 of the prio variable in order to print it.
22780 2016-12-01 Elvira Khabirova <lineprinter0@gmail.com>
22786 pattern line read, print it as a prefix for non-matched pattern.
22788 2016-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
22798 2016-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
22800 tests: additional checks for prctl-* tests.
22801 * tests/prctl-pdeathsig.c (main): Additional checks.
22802 * tests/prctl-tsc.c (main): Likewise.
22803 * tests/prctl-pdeathsig.test: Update value of -a argument.
22804 * tests/prctl-tsc.test: Likewise.
22806 2016-11-30 JingPiao Chen <chenjingpiao@foxmail.com>
22808 tests: add prctl-pdeathsig.test and prctl-tsc.test.
22809 * tests/prctl-pdeathsig.c: New file.
22810 * tests/prctl-tsc.c: Likewise.
22811 * tests/prctl-pdeathsig.test: New test.
22812 * tests/prctl-tsc.test: Likewise.
22813 * tests/.gitignore: Add prctl-pdeathsig and prctl-tsc.
22815 (DECODER_TESTS): Add prctl-pdeathsig.test and prctl-tsc.test.
22817 2016-11-30 Dmitry V. Levin <ldv@altlinux.org>
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>
22845 to "int", the same way as the kernel does.
22846 * tests/read-write.c: Include <asm/unistd.h> and "kernel_types.h".
22850 x32: fix preadv2-pwritev2.test.
22851 * tests/preadv2-pwritev2.c: Include "kernel_types.h".
22859 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22867 2016-11-29 Elvira Khabirova <lineprinter0@gmail.com>
22869 Make date output format conform to ISO 8601.
22870 * util.c (sprinttime): Make date output conform to ISO 8601.
22874 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22882 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22885 Change the parser of fault expression to follow the POLA:
22886 -e fault=!SET
22887 means that all syscalls except those from SET are subject to fault
22889 -e fault=!SET1:error=ERRNO1, -e fault=!SET2:error=ERRNO2
22890 means that all syscalls except those from SET2 are subject to fault
22892 not in SET1 are subject to fault injection with error code ERRNO1.
22898 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22901 * print_sigevent.c (print_sigevent): Change "int" to "sival_int", "ptr"
22902 to "sival_ptr".
22914 Add field names to the output.
22922 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22928 * defs.h (printxvals, printxval_searchn): Change return type to int.
22931 * util.c (printxvals, printxval_searchn): Change return type to int,
22934 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22942 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22946 to the output.
22949 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
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.
22970 * tests/options-syntax.test: New file.
22973 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
22975 Fix -r option syntax.
22976 While -r option implies -t, it should not literally have the effect
22977 of -t option, e.g. -rr should not increment tflag twice.
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.
22995 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23005 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23008 Use print_struct_timeval interface to print struct timeval.
23017 Suggested-by: Eugene Syromyatnikov <evgsyr@gmail.com>
23019 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23022 After commit v4.14-136-g151d1d1 that removed the last object common
23023 for timespec and timeval parsers there is no need to keep them all
23029 * print_time.c: Move all timespec related code to print_timespec.c.
23030 Move all timeval related code to print_timeval.c.
23032 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23034 tests: check decoding of threads when a non-leader thread invokes execve
23035 * tests/threads-execve.c: New file.
23036 * tests/threads-execve.test: New test.
23037 * tests/.gitignore: Add threads-execve.
23040 (MISC_TESTS): Add threads-execve.test.
23042 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23046 * tests/fault_injection-exit_group.expected: Likewise.
23047 * tests/fault_injection-exit_group.test: New test.
23050 (DECODER_TESTS): Add fault_injection-exit_group.test.
23051 (EXTRA_DIST): Add fault_injection-exit_group.expected.
23053 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23056 Do not assume that some syscalls do not generate syscall-exit-stops.
23057 When syscalls fail for any reason they may generate syscall-exit-stops.
23059 The solution is to wait for an actual exit reported by PTRACE_EVENT_EXIT
23064 * linux/dummy.h (sys_exit): Alias to printargs_d.
23071 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23073 Change printargs to return RVAL_DECODED.
23075 it is not supposed to print anything on exiting, change printargs
23076 to return RVAL_DECODED so it would not be called on exiting at all.
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>
23095 Move two global flags to tracee scope.
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
23101 global variables to TCB_HIDE_LOG and TCB_SKIP_DETACH_ON_FIRST_EXEC bits
23120 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23126 2016-11-25 Dmitry V. Levin <ldv@altlinux.org>
23128 Change parser of fault expressions to conform the documentation.
23136 to individual qual_syscall_ex call.
23138 to their qualify methods without prior splitting into comma
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.
23175 * tests/aio.c: Add field names to expected output.
23181 * tests/ppoll-v.expected: Likewise.
23184 * tests/recvmmsg-timeout.c (main): Likewise.
23189 * tests/strace-T.expected: Likewise.
23194 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23196 tests: robustify prctl-name.test against unrelated prctl invocations.
23197 * tests/prctl-name.test: Filter out unrelated PR_GET_* prctl calls.
23199 2016-11-22 Dmitry V. Levin <ldv@altlinux.org>
23201 tests: cleanup prctl-name.c.
23202 * tests/prctl-name.c (main): Remove "len" variable, rename "len1"
23203 to "len". Remove "name1" variable, use "name" instead.
23205 Move KVM_* ioctl entries from ioctls_inc*.h to ioctls_arch*.h.
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>
23231 maint: move KVM_* constants from ioctls_inc.h to ioctls_arch.h.
23235 2016-11-21 Dmitry V. Levin <ldv@altlinux.org>
23239 ioctls_sym.sh invocations. Use $mydir to specify ioctls_sym.sh
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>
23252 (PROBLEMS): Rename to REPORTING BUGS.
23253 (SEE ALSO): Move to the bottom.
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>
23267 prctl: cast arg2 to int in PR_SET_PTRACER handler.
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.
23271 * prctl.c (SYS_FUNC(prctl)) <PR_SET_PTRACER>: Cast arg2 to int before
23272 comparing it with -1.
23274 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23282 (SYS_FUNC(prctl)): Use getarg_ull to store call arguments in arg2, arg3,
23285 (SYS_FUNC(arch_prctl)): Use getarg_ull to store call argument in addr
23289 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23292 This is done in order to fix build error on old distributions where
23308 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23310 xlat: add values to new ARCH_* constants.
23314 * xlat/archvals.in: Add numeric values to ARCH_MAP_VDSO_* constants.
23316 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23324 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23327 * tests/prctl-name.c: New file.
23328 * tests/prctl-name.test: New test.
23329 * tests/.gitignore: Add prctl-name.
23331 (DECODER_TESTS): Add prctl-name.test.
23335 instead of printstr to print the argument of PR_SET_NAME and PR_GET_NAME
23341 Ensure that str[size] byte is non-zero if it hasn't been fetched.
23343 2016-11-19 Dmitry V. Levin <ldv@altlinux.org>
23347 the fetched string as a NUL-terminated.
23348 After this change, the string is being fetched as a NUL-terminated, too.
23353 2016-11-19 Dmitry V. Levin <ldv@altlinux.org>
23358 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23362 ARCH_MAP_VDSO_64 introduced by linux kernel commit v4.9-rc1~155^2~6.
23366 by linux kernel commit v4.9-rc4~7^2~422.
23368 by linux kernel commit v4.9-rc4~7^2~422.
23372 v4.9-rc1~45^2^2~5.
23376 by linux kernel commit v4.9-rc1~57^2~1^2~7.
23380 by linux kernel commit v4.9-rc1~31^2~69.
23385 by linux kernel commit v4.9-rc1~7^2^2~4.
23389 by linux kernel commit v4.9-rc1~127^2~302^2~4.
23391 2016-11-18 Eugene Syromyatnikov <evgsyr@gmail.com>
23393 make-dist: use HEAD for making distribution package.
23394 * make-dist: Use HEAD commit instead of master branch by default.
23396 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23408 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23417 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23426 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23428 tests: check -e signal=set syntax.
23435 2016-11-17 Dmitry V. Levin <ldv@altlinux.org>
23437 Make -e fault= expressions cumulative.
23438 Change the way how subsequent -e fault= expressions are interpreted
23439 to implement a cumulative behavior. For example,
23440 -e fault=file:when=3+ -e fault=chdir
23447 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23457 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23460 Introduce new -e fault=EXPR syntax that can be used to specify a subset
23462 that has to be injected, and a frequency of injection.
23468 The method used to implement syscall fault injection is the following:
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.
23493 (qualify_one): Add argument: a pointer to struct fault_opts, all callers
23494 changed. Copy struct fault_opts from the pointer to fault_vec.
23497 argument: a pointer to struct fault_opts.
23507 (ptrace_setregset_or_setregs): Define to ptrace_setregset.
23510 (ptrace_setregset_or_setregs): Define to ptrace_setregs.
23515 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23519 supported architecture, needed to implement syscall fault injection.
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>
23613 This might be needed later to implement syscall fault injection.
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>
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.
23651 (SYS_FUNC(mprotect)): Convert to wrapper around do_mprotect.
23669 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
23963 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23966 preadv-pwritev.c: In function 'main':
23967 preadv-pwritev.c:162: warning: comparison between signed and unsigned
23973 * tests/preadv-pwritev.c (main): Cast r_len to int.
23977 2016-11-13 Dmitry V. Levin <ldv@altlinux.org>
23979 syscall.c: refactor getregs_old fallback in get_regs.
23992 to ptrace_getregset.
23994 to ptrace_getregs.
24002 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
24005 In order to avoid name clash on distributions which decide to include
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>'
24024 due to the fact BUILD_BUG_ON_ZERO is already defined in <linux/kernel.h>.
24026 * gcc_compat.h (BUILD_BUG_ON_ZERO): Rename to FAIL_BUILD_ON_ZERO.
24029 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24032 Move the code that calls ptrace(PTRACE_GETREGS) to a separate function.
24037 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24039 syscall.c: rename get_regset to ptrace_getregset.
24040 * syscall.c (get_regset): Rename to ptrace_getregset.
24041 (get_regs): Rename get_regset to ptrace_getregset.
24043 2016-11-12 Andreas Schwab <schwab@linux-m68k.org>
24045 m68k: switch to PTRACE_GETREGS.
24062 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24065 This might be needed later to implement syscall fault injection.
24070 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24076 2016-11-12 Eugene Syromyatnikov <evgsyr@gmail.com>
24082 [327 ... 511] to [329 ... 511].
24084 2016-11-11 Dmitry V. Levin <ldv@altlinux.org>
24087 This will be needed to implement fault injection on those architectures
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.
24119 * tests/ioctl_dm-v.c: Likewise.
24121 * tests/ioctl_dm-v.test: Likewise.
24122 * tests/.gitignore: Add ioctl_dm and ioctl_dm-v.
24124 (DECODER_TESTS): Add ioctl_dm.test and ioctl_dm-v.test.
24126 2016-11-10 Dmitry V. Levin <ldv@altlinux.org>
24131 2016-11-10 Eugene Syromyatnikov <evgsyr@gmail.com>
24133 util: add support for QUOTE_0_TERMINATED in user_style to ptrintstr_ex.
24134 This enables printing size-limited (expectedly) ASCIZ strings.
24139 in case QUOTE_0_TERMINATED is set (due to user_style or usage of len of
24140 -1). As a result, there is one excess byte for string_quote in case
24142 of strings up to size bytes in size (which is len or max_strlen, whatever
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>
24161 * tests/mq_sendrecv-read.c: Likewise.
24162 * tests/mq_sendrecv-write.c: Likewise.
24164 * tests/mq_sendrecv-read.test: Likewise.
24165 * tests/mq_sendrecv-write.test: Likewise.
24166 * tests/.gitignore: Add mq_sendrecv, mq_sendrecv-read,
24167 and mq_sendrecv-write.
24171 (DECODER_TESTS): Add mq_sendrecv.test, mq_sendrecv-read.test,
24172 and mq_sendrecv-write.test.
24174 2016-11-08 Dmitry V. Levin <ldv@altlinux.org>
24180 2016-10-31 Eugene Syromyatnikov <evgsyr@gmail.com>
24214 similar to printval.
24219 * tests/perf_event_open.c: Renamed to
24221 * tests/perf_event_open.test: add -e verbose=none in order to preserve
24223 contents of attr arguments are shown now); rename to
24224 tests/perf_event_open_nonverbose.test; add -e trace=perf_event_open.
24228 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24240 * tests/quotactl-xfs.c (main): Likewise.
24264 defs: add check for argument being array to ARRAY_SIZE macro.
24267 * defs.h (ARRAY_SIZE): Add MUST_BE_ARRAY for build-time type check.
24276 * tests/xstatx.c [!OLD_STAT]: define OLD_STAT to 0.
24282 print address only on non-successful rc.
24288 * tests/fstatx.c (IS_FSTAT): Define to 1.
24290 Define to 0.
24291 * tests/xstatx.c [!IS_STAT] (IS_STAT): Define to 0.
24292 [!TEST_BOGUS_STRUCT_STAT] (TEST_BOGUS_STRUCT_STAT): Define to 1.
24293 (main): Add a check for non-available pointer and a check
24298 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24302 pair in order to save errno. PRINT_SYSCALL_FOOTER now uses sprintrc for
24312 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24317 * open.c (O_ACCMODE): Redefine to 03.
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>
24341 to "%u", cast argument value to unsigned int.
24343 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24354 mq_attr to long long type; use mq_attr_flags xlat for printing mq_flags;
24356 to true.
24363 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24367 to "%llu", use getarg_ull for obtaining msg_len parameter.
24375 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24381 of "%ld" for printing mqdes (0th parameter), cast parameter value to
24387 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24399 [MAX_HANDLE_SZ]: change to defined __NR_name_to_handle_at
24403 (main): Change name_to_handle_at and open_by_handle_at calls to syscall.
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>
24430 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24437 parameters to proper size on x32/n32.
24439 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24443 negation in order to properly negate higher bits of KEXEC_ARCH_MASK.
24455 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24464 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24467 Not all clone flags could be passed to unshare (see check_unshare_flags
24474 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
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.
24500 (DECODER_TESTS): Add caps-abbrev.test.
24501 (EXTRA_DIST): Add caps-abbrev.awk.
24535 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24546 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24550 (printaddr): Change to a static inline wrapper around printaddr_ull.
24551 * util.c (printaddr): Rename to printaddr_ull, change argument type
24552 to unsigned long long, change print format to %#llx.
24554 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24562 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24566 and strace does not support those kernels, there is no use to keep this
24572 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24590 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24593 This is similar to widen_to_long, but for unsigned values.
24597 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24602 argument from "%ld" to "%d".
24604 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24611 parameter to tprint_iov{,_upto} based on its value instead.
24613 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24620 on exiting; we can't simply override it to IOV_DECODE_ADDR on exiting
24621 when syserror is up, since this may be called by code which tries to
24626 preadv test is updated to reflect this. It is notable, though, that this
24632 based on syserror(tcp) value.
24635 with singe-item iovec failed.
24637 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24639 Move umoven_or_printaddr_ignore_syserror to util.c.
24644 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24653 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24662 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24665 * lookup_dcookie.c (SYS_FUNC(kcmp)): Use getarg_ull to retrieve idx1
24668 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24681 O_NONBLOCK and O_CLOEXEC constants, provide fallback definitions.
24690 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24696 specifier from "%lu" to "%llu", use getarg_ull for len argument
24699 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24702 Analogous to offsetof but returns structure offset after the specified
24704 data or specifying amount of data to copy based on the (last) field needed.
24708 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24710 tests: move ARG_STR and similar macros to tests.h.
24718 tests: move LL_PAIR and LL_VAL_TO_PAIR macros to tests.h.
24729 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24731 xlat: provide fallback definitions for CLOCK_* constants.
24733 it's better to define them explicitly in order to avoid situations when
24739 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24744 * tests/quotactl.h (fill_memory, fill_memory_ex): Move to fill_memory.c.
24747 tests: add period parameter to fill_memory_ex.
24749 use it as a divisor in non-constant part of value.
24750 (fill_memory): Specify period of 0x80 to fill_memory_ex call.
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>
24771 According to C89, <stddef.h> shall define offsetof macro.
24776 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24789 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24796 arguments to kernel_ulong_t. Print len using %llu format.
24798 to kernel_ulong_t.
24799 (print_dh_params): Change addr argument to kernel_ulong_t.
24801 to the appropriate handlers.
24803 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24807 to unsigned.
24812 (keyctl_keyring_search): Change addr1 and addr2 arguments to unsigned.
24813 (keyctl_chown_key): Change user and group arguments to unsigned.
24814 (keyctl_get_persistent): Change uid argument to unsigned.
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
24827 (SYS_FUNC(keyctl)): Specify has_nul parameter to keyctl_read_key
24830 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24837 (printstr): Change to a wrapper around printstr_ex with zero user style.
24838 * util.c (printstr): Rename to ...
24842 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24844 util: add quote_string flag signalising that string is NUL-terminated.
24845 It is useful in cases strings with size provided are expected to be
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>
24864 to uint32_t for x32 personality.
24872 of open-coding it. Print unrecognized errno values using %lu format
24875 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24885 2016-10-03 Dmitry V. Levin <ldv@altlinux.org>
24887 struct tcb: change the type of u_error field from int to unsigned long.
24891 * defs.h (struct tcb): Change the type of u_error to unsigned long.
24893 to unsigned long, print it using %lu format, drop no longer needed
24894 explicit cast to unsigned long.
24895 (saved_u_error): Change type to unsigned long.
24897 2016-10-02 Dmitry V. Levin <ldv@altlinux.org>
24908 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24913 arguments, it's better to add special case for it rather than add
24914 printing of comma to all other commands.
24920 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24926 and getarg_ull for fallback argument printing.
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>
24950 Fix test regression introduced by commit v4.13-225-g55334ef.
24954 2016-09-30 Dmitry V. Levin <ldv@altlinux.org>
24956 Enhance -e abbrev=set, -e raw=set, and -e verbose=set.
24957 Enhance abbrev=, raw=, and verbose= to accept the same syntax as trace=.
24958 For example, this allows such syntax as -e verbose=file.
24965 2016-09-30 Dmitry V. Levin <ldv@altlinux.org>
24971 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24984 2016-09-28 Dmitry V. Levin <ldv@altlinux.org>
24988 argument of 7-arg syscalls.
24990 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
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
25003 should be taken in order to obtain it.
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>
25020 fadvise: change printing of len argument to unsigned in fadvise64 syscall
25025 "%ld" to "%lu" for printing len argument since kernel expects argument
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>
25048 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25050 fallocate: change print format of offset and len arguments to signed.
25052 signed values in order to fail when negative values are provided,
25056 printing "offset" and "len" syscall arguments from %llu to %lld.
25058 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25061 In order to avoid dependence of declared constants to headers available
25066 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25076 * tests/ioctl.block (init_magic): Add iterator value to magic value
25077 in order to enable detection of potential 4-byte aligned shifts.
25085 * tests/.gitignore: Add quotactl, quotactl-v, quotactl-xfs,
25086 and quotactl-xfs-v.
25088 (DECODER_TESTS): Add quotactl.test, quotactl-v.test,
25089 quotactl-xfs.test, and quotactl-xfs-v.test.
25093 * quotactl-v.c: Likewise.
25094 * quotactl-xfs.c: Likewise.
25095 * quotactl-xfs-v.c: Likewise.
25097 * quotactl-v.test: Likewise.
25098 * quotactl-xfs.test: Likewise.
25099 * quotactl-xfs-v.test: Likewise.
25101 2016-09-27 Dmitry V. Levin <ldv@altlinux.org>
25105 (decode_cmd_data): Use them to print structure fields.
25113 quota: move Q_QUOTAON handling to subcommand switch statement.
25117 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25122 to minimize amount of code which should be subjected to testing and
25132 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25134 quota: add realtime block limits fields to XFS disk quota printing code.
25136 and d_rtb_softlimit fields to struct xfs_dqblk printing code.
25138 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25140 quota: add packed attribute to struct if_dqblk definition.
25141 Since the only difference between 32-bit and 64-bit environments
25143 to its definition instead of going full mpers.
25147 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25150 * quota.c (decode_cmd_data): Add Q_XQUOTARM handling to subcommand
25153 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25156 Q_XQUOTASYNC is no-op, but it does not require id/addr arguments anyway.
25158 * quota.c (decode_cmd_data): Add Q_SYNC and Q_XQUOTASYNC to subcommand
25160 to be ignored.
25162 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25164 quota: add missing prefixes to struct field names.
25170 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25183 to decode_cmd_data.
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.
25200 (VERBOSE): Define to 1.
25204 tests: use VERBOSE macro in wait4 and wait4-v tests.
25205 * tests/wait4-v.c (VERBOSE_RUSAGE): Remove.
25206 (VERBOSE): Define to 1.
25210 tests: use VERBOSE macro in msg_control and msg_control-v tests.
25211 * tests/msg_control-v.c (VERBOSE_MSGHDR): Remove.
25212 (VERBOSE): Define to 1.
25216 tests: use VERBOSE macro in mmsg_name and mmsg_name-v tests.
25217 * tests/mmsg_name-v.c (VERBOSE_MMSGHDR): Remove.
25218 (VERBOSE): Define to 1.
25222 tests: use VERBOSE macro in ioctl_rtc and ioctl_rtc-v tests.
25223 * tests/ioctl_rtc-v.c (VERBOSE_IOCTL): Remove.
25224 (VERBOSE): Define to 1.
25228 tests: use VERBOSE macro in ioctl_evdev and ioctl_evdev-v tests.
25229 * tests/ioctl_evdev-v.c (VERBOSE_IOCTL): Remove.
25230 (VERBOSE): Define to 1.
25233 tests: use VERBOSE macro in execveat and execveat-v tests.
25234 * tests/execveat-v.c (VERBOSE_EXECVEAT): Remove.
25235 (VERBOSE): Define to 1.
25238 tests: use VERBOSE macro in execve and execve-v tests.
25239 * tests/execve-v.c (VERBOSE_EXECVE): Remove.
25240 (VERBOSE): Define to 1.
25243 2016-09-26 Dmitry V. Levin <ldv@altlinux.org>
25246 Introduce VERBOSE macro (defaults to 0) that is expected to be defined
25247 to 1 by code testing "strace -v" output.
25251 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25261 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25279 * tests/fchmod.test: Update the value specified for strace -a parameter.
25287 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
25303 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
25307 non-mainline filesystems.
25312 2016-09-15 Eugene Syromyatnikov <evgsyr@gmail.com>
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>
25346 2016-09-13 Eugene Syromyatnikov <evgsyr@gmail.com>
25355 * tests/semop.test: Add explicit -e parameter in order to trace both
25359 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25362 * .mailmap: Add both addresses of Dr. David Alan Gilbert here to avoid
25365 2016-09-12 Eugene Syromyatnikov <evgsyr@gmail.com>
25368 This is needed due to apparent deviation in spelling of commit author
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>
25397 2016-09-11 Dmitry V. Levin <ldv@altlinux.org>
25402 2016-09-10 Dmitry V. Levin <ldv@altlinux.org>
25407 2016-09-09 Dmitry V. Levin <ldv@altlinux.org>
25410 According to POSIX, nsops argument of semop syscall has type size_t,
25415 from unsigned long to unsigned int, print it using %u format.
25417 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
25421 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
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
25439 * linux/*/syscallent*.h (io_setup, io_destroy): Change sys_flags to TM.
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
25446 to configure.
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>
25456 to handle precisely this architecture discrepancy.
25460 specifiers for __*64-typed values.
25462 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25466 by the kernel, cast it to int and print it using %d format.
25474 2016-09-08 Dmitry V. Levin <ldv@altlinux.org>
25478 is __kernel_key_t (i.e. int), cast key_t argument to int
25486 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25492 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25494 tests: change type of sched_nice field to signed in sched_xetattr test.
25499 sched_attr to int32_t, update format specifiers accordingly.
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.
25509 (sprintrc_ex): New function, renamed from sprintrc and updated to
25511 (sprintrc): Change to use sprintrc_ex with SPRINTRC_FMT_RAW.
25514 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25520 Rename sched to sched_attr. Change type of sched_attr to struct
25524 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25529 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
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>
25542 * aio.c (SYS_FUNC(io_setup)): Print the pointer to aio_context_t
25549 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25555 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25561 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25563 tests: add suffix and cast to 64-bit constants in aio test.
25564 This helps to avoid warnings like
25566 reported by some versions of gcc on 32-bit platforms.
25568 * tests/aio.c (main): Add ULL suffix to 64-bit constants
25569 and cast them to unsigned long.
25571 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25584 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25622 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25626 in io_getevents check to %ld, cast these arguments to long.
25647 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25651 aio_resfd. It is quite reasonable to use the appropriate function for
25654 * aio.c (print_common_flags): Add struct tcb pointer to parameter list;
25656 (print_iocb_header): Add struct tcb pointer to parameter list;
25658 (print_iocb): Provide tcp argument to print_iocb_header
25662 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25667 2016-09-02 Dmitry V. Levin <ldv@altlinux.org>
25672 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25678 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25688 2016-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
25690 tests: move sprintrc function to libtests.
25692 * tests/futex.c (sprintrc): Move to ...
25696 tests/futex: add support to sprintrc for return codes other than 0 and -1
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.
25705 (main): Convert all retstr calls to sprintrc.
25707 2016-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
25710 According to documentation and kernel's syscalls.h, its type is size_t,
25716 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25727 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25732 2016-08-31 Eugene Syromiatnikov <evgsyr@gmail.com>
25740 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25742 Update TCP* constants.
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>
25776 The syscall parsers guarded by HAVE_SIGACTION check have to be compiled
25782 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25785 All supported systems are expected to have C89 conforming sematics.
25789 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25792 All supported systems are expected to have the 'const' keyword.
25796 2016-08-30 Eugene Syromiatnikov <evgsyr@gmail.com>
25805 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25812 Moreover, <linux/futex.h> used to have an incorrect definition
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>
25826 This is analogous to timeout argument omitting in FUTEX_WAKE_BITSET
25833 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25838 since commit v4.5-rc1~172^2.
25840 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25843 Use alternate form for printing hexadecimal numbers to avoid confusion.
25844 Use printaddr to print uaddr as the latter is interpreted as a pointer
25850 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25853 Since obsolete FUTEX_FD command is known and used to have some expected
25858 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25862 print hexadecimal val3 argument in alternate form to avoid confusion.
25864 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25867 According to the initial and current (v4.7) kernel implementations,
25874 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25877 * bootstrap: Add -DMPERS_IS_$(MPERS_NAME) to ARCH_MFLAGS.
25880 to HAVE_M32_STRUCT_STAT64_ST_MTIME_NSEC.
25883 to HAVE_MX32_STRUCT_STAT64_ST_MTIME_NSEC.
25886 to HAVE_M32_STRUCT_STAT_ST_MTIME_NSEC.
25889 to HAVE_MX32_STRUCT_STAT_ST_MTIME_NSEC.
25893 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25897 there is no need to check this fact in other places.
25901 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25908 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25915 2016-08-30 James Clarke <jrtc27@jrtc27.com>
25920 PTRACE_SUNDETACH is also defined to the correct value by sys/ptrace.h,
25924 to PTRACE_SUNDETACH ...
25927 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25930 All systems supported by strace are expected to have C89 conforming
25935 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25942 2016-08-28 Dmitry V. Levin <ldv@altlinux.org>
25950 2016-08-27 Dmitry V. Levin <ldv@altlinux.org>
25953 No systems supported by strace are expected to have the bug workarounded
25958 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25961 glibc, starting with commit glibc-2.24-28-gdbab657, has deprecated
25977 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25980 This complements commit v4.11-719-gfb0c609.
25983 (btrfs_print_qgroup_inherit): Change qgi_addr type to unsigned long.
25987 2016-08-29 Elvira Khabirova <lineprinter0@gmail.com>
25995 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
25999 st_mtime members of struct stat and struct stat64 to signed integers,
26006 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26013 to fix these issues.
26041 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26047 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26049 mpers: add MPERS_IS_* to CFLAGS passed to mpers.sh.
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
26054 passed to mpers.sh.
26057 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26059 Move redefinition of stat types to asm_stat.h.
26061 to define struct stat ...
26065 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26068 For the reason described in commit v4.10-517-gcfde1e3, a correct
26069 definition of struct stat for x32 personality is necessary to enable
26070 "asm_stat.h" with -mx32 on x86_64.
26072 * linux/x32/asm_stat.h: Rename to ...
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>
26090 * linux/dummy.h (sys_fstatat64): Redirect to sys_newfstatat.
26100 * linux/mips/syscallent-o32.h: Likewise.
26110 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26126 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26136 Rename widen_to_ull to zero_extend_signed_to_ull.
26137 * defs.h (widen_to_ull): Rename to zero_extend_signed_to_ull.
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>
26162 This is needed in order to differentiate it from the value returned
26172 2016-08-22 Eugene Syromyatnikov <evgsyr@gmail.com>
26175 This is done similar to timer_settime syscall parser.
26181 2016-08-21 Richard W.M. Jones <rjones@redhat.com>
26183 Add RISC-V architecture support.
26189 * defs.h [RISCV] (SUPPORTED_PERSONALITIES): Define to 2.
26190 [RISCV] (NEED_UID16_PARSERS): Define to 1.
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
26213 number is equal to 3.
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
26239 to obtain return code of indirect shmat subcall.
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>
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>
26332 * tests/redirect-fds.c: New file.
26333 * tests/redirect-fds.test: New test.
26334 * tests/.gitignore: Add redirect-fds.
26336 (MISC_TESTS): Add redirect-fds.test.
26340 add its exit code to the diagnostic message.
26341 (run_strace): When strace fails, add its exit code to the diagnostic
26343 (run_strace_merge): When strace-log-merge fails, add its exit code
26344 to the diagnostic message.
26346 2016-08-13 Dmitry V. Levin <ldv@altlinux.org>
26348 Fix leakage of placeholder descriptors to tracees.
26349 As a side effect of commit v4.11-211-g0736d4e, strace used to leak
26350 placeholders for standard descriptors to tracees thus affecting their
26351 behaviour. Fix this by setting close-on-exec flag on placeholder
26354 * strace.c (open_dummy_desc): Set close-on-exec flag on the descriptor
26355 that is going to be returned to the caller.
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>
26376 fields. Fix tests to take this difference into account.
26378 * tests/fstat64.c (STRUCT_STAT_IS_STAT64): New macro, defined to 1.
26382 defined to 0.
26385 HAVE_STRUCT_STAT_ST_MTIME_NSEC): Redefine to 1.
26387 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26393 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26397 causes the "wrong" constant to be printed by strace.
26401 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26404 The "syscall" syscall only exists on o32 and causes strace to error out on
26405 64-bit mips ABIs. Pass MIPS_ABI from the configure script through to
26410 * tests/nsyscalls.test: Restrict special mips handling to mips o32.
26412 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26416 32-bit integers on mips64. Therefore, while it's possible to give a file a
26423 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26426 * tests/mlock2.c (main): Pass unsigned long arguments to mlock2 syscall
26427 explicitly, to avoid unwanted sign extension issues.
26431 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26448 * tests/attach-f-p.c: Likewise.
26546 * tests/prctl-seccomp-filter-v.c: Likewise.
26547 * tests/prctl-seccomp-strict.c: Likewise.
26548 * tests/preadv2-pwritev2.c: Likewise.
26573 * tests/seccomp-filter-v.c: Likewise.
26574 * tests/seccomp-filter.c: Likewise.
26575 * tests/seccomp-strict.c: Likewise.
26620 * tests/times-fail.c: Likewise.
26628 * tests/unix-pair-send-recv.c: Likewise.
26642 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26645 Migrate to __NR_* the last user of SYS_* macros provided
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>
26662 file.c: move definitions of struct stat32 to separate files.
26673 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26677 This complements commit v4.10-45-gdf4dd8b.
26679 * file.c [SPARC || SPARC64]: Remove the code related to struct solstat.
26682 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26685 This complements commit v4.13-28-gaebfe83.
26687 * file.c [SPARC64]: Change STAT32_PERSONALITY to 1.
26689 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26691 Fix decoding of invalid syscalls mapped to indirect subcalls.
26700 tcp->s_ent->sys_name instead of syscall_name.
26708 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26711 * linux/subcall.h: Remove definitions of non-existent socket
26717 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26725 [SUPPORTED_PERSONALITIES > 1] (PERSONALITY1_WORDSIZE): Define to 4
26728 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26734 * defs.h (PERSONALITY0_WORDSIZE): Define to SIZEOF_LONG unconditionally.
26736 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26743 * defs.h [SPARC64] (PERSONALITY0_WORDSIZE): Change to 8.
26744 [SPARC64] (PERSONALITY1_WORDSIZE): Change to 4.
26746 * linux/sparc64/ioctls_arch1.h: Rename to ioctls_arch0.h.
26747 * linux/sparc64/ioctls_arch0.h: Rename to ioctls_arch1.h.
26748 * linux/sparc64/ioctls_inc0.h: Rename to ioctls_inc1.h.
26749 * linux/sparc64/ioctls_inc1.h: Rename to ioctls_inc0.h.
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
26803 times in order to generate slightly varying code depending on values of
26804 macro definitions - maybe it's better to change extension of such files
26805 to something like *.inc.
26821 2016-08-06 Dmitry V. Levin <ldv@altlinux.org>
26826 2016-08-05 Dmitry V. Levin <ldv@altlinux.org>
26836 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
26840 to detect libc printf format errors.
26842 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
26845 There seems to be no readily available binary packages of musl that are
26846 sufficiently up to date to be used to build and test strace, so prepare
26849 * travis-install.sh (musl-gcc): Do not add an extra repository,
26850 do not install musl-tools and linux-musl-dev packages.
26853 2016-08-03 Dmitry V. Levin <ldv@altlinux.org>
26887 * tests/creat.test: Update the value specified for strace -a parameter.
26892 2016-08-02 Dmitry V. Levin <ldv@altlinux.org>
26894 tests: simplify attach-f-p.test.
26895 * tests/attach-f-p.c Simplify communications between threads
26896 by replacing per-thread timers with pipes.
26897 * tests/attach-f-p.test: Do not ignore signals.
26899 tests: cleanup attach-p-cmd.test.
26900 * tests/attach-p-cmd-cmd.c (main): Cleanup expected output.
26901 * tests/attach-p-cmd-p.c (main): Print expected output.
26902 * tests/attach-p-cmd.test: Do not print expected output.
26904 ip_mreq.test: rewrite from match_grep to match_diff.
26910 fanotify_mark.test: rewrite from match_grep to match_diff.
26916 signalfd4.test: rewrite from match_grep to match_diff.
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.
26934 2016-07-30 Dmitry V. Levin <ldv@altlinux.org>
26936 memfd_create.test: rewrite from match_grep to match_diff.
26942 2016-07-29 Dmitry V. Levin <ldv@altlinux.org>
26944 Set exit status to 1 if strace has not traced any processes.
26950 Attach to the target process before attempting to attach to its siblings
26951 * strace.c (attach_tcb): Attach to tcp->pid first.
26956 to ptrace_attach_cmd.
26962 (attach_tcb): ... to this new function.
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
26986 from *.c files to xlat/*.in files.
26990 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26999 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
27004 to extended regular expressions for better portability and readability.
27006 * generate_mpers_am.sh: Convert grep and sed BREs to EREs.
27009 %_printer_defs.h): Convert sed BREs to EREs.
27012 * make-dsc: Likewise.
27018 * tests/strace-S.test: Likewise.
27019 * tests/strace-V.test: Likewise.
27020 * tests/strace-k.test: Likewise.
27022 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
27029 2016-07-27 Dmitry V. Levin <ldv@altlinux.org>
27031 Post-release administrivia.
27033 * debian/changelog.in: Add a changelog entry for 4.13-1.
27036 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27042 * btrfs.c (btrfs_ioctl): Add one more expicit cast to "void *",
27043 to avoid breaking strict-aliasing rules reported by some gcc compilers.
27052 of ptrace to "void *'.
27064 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27070 Reported-by: Yun-Chih Chen <b03902074@ntu.edu.tw>
27072 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27075 * tests/chown.test: Fix the value specified for strace -a parameter.
27077 Reported-by: Yun-Chih Chen <b03902074@ntu.edu.tw>
27079 2016-07-25 Dmitry V. Levin <ldv@altlinux.org>
27083 to printargs.
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>
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.
27118 * linux/subcall.h (msgrcv): Change nargs from 4 to 5.
27119 * linux/s390/syscallent.h (ipc): Change nargs from 6 to 5.
27122 2016-07-21 Dmitry V. Levin <ldv@altlinux.org>
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.
27146 (main): Change the type of syscall arguments to kernel_ulong_t.
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,
27157 Similar reasoning applies to mips n32.
27162 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27180 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27183 * tests/unix-pair-send-recv.c: New file.
27184 * tests/unix-pair-send-recv.expected: Likewise.
27185 * tests/unix-pair-send-recv.test: New test.
27186 * tests/.gitignore: Add unix-pair-send-recv.
27188 (DECODER_TESTS): Add unix-pair-send-recv.test.
27189 (EXTRA_DIST): Add unix-pair-send-recv.expected.
27191 tests: rename unix-pair-send-recv to unix-pair-sendto-recvfrom.
27192 * dumpio.expected: Rename to unix-pair-sendto-recvfrom.expected.
27193 * dumpio.test: Rename to unix-pair-sendto-recvfrom.test.
27194 * unix-pair-send-recv.c: Rename to unix-pair-sendto-recvfrom.c
27195 * .gitignore: Rename unix-pair-send-recv to unix-pair-sendto-recvfrom.
27197 (DECODER_TESTS): Add unix-pair-sendto-recvfrom.test.
27200 to unix-pair-sendto-recvfrom.expected.
27209 xlat/shutdown_modes.in: convert to modern syntax.
27210 * xlat/shutdown_modes.in: Replace open-coded xlat table with a list
27214 * tests/mmsg-silent.c: New file.
27215 * tests/mmsg-silent.test: New test.
27216 * tests/.gitignore: Add mmsg-silent.
27218 (DECODER_TESTS): Add mmsg-silent.test.
27224 set msg_len fields, tell this to decode_mmsgvec.
27233 (SYS_FUNC(sendmmsg), SYS_FUNC(recvmmsg)): Pass to decode_mmsgvec
27239 * tests/mmsg_name-v.c: New file.
27240 * tests/mmsg_name-v.test: New test.
27241 * tests/.gitignore: Add mmsg_name-v.
27243 (DECODER_TESTS): Add mmsg_name-v.test.
27252 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27256 the same read-write semantics as struct msghdr argument of recvmsg
27266 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27276 * tests/recvmmsg-timeout.c: New file.
27277 * tests/recvmmsg-timeout.test: New test.
27278 * tests/.gitignore: Add recvmmsg-timeout.
27280 (DECODER_TESTS): Add recvmmsg-timeout.test.
27290 tests: add recv_mmsg and send_mmsg functions to libtests.
27298 tests: add socketcall function to libtests.
27303 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27306 IOV_MAX appears to be more portable than UIO_MAXIOV.
27308 * msghdr.c: Include <limits.h>. Remove fallback defintion of UIO_MAXIOV.
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>
27329 As the value returned by sprint_timespec points to a static area and may
27330 be overwritten by subsequent calls to sprint_timespec, it is not safe to
27334 returned by sprint_timespec to a dynamically allocated memory, and save
27338 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27341 As the value returned by sprint_timespec points to a static area and may
27342 be overwritten by subsequent calls to sprint_timespec, it is not safe to
27346 value returned by sprint_timespec to a dynamically allocated memory,
27350 2016-07-18 Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
27352 Add private data field to struct tcb.
27353 We need to be able to store private data in the struct tcb across it's
27354 lifetime. To ensure proper deallocation of this stored data a callback
27368 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27370 net.c: move parsers of sendmsg and recvmsg syscalls to msghdr.c.
27376 net.c: move parsers of sendmmsg and recvmmsg syscalls to mmsghdr.c.
27383 msghdr.c: move all mmsghdr parsers to a separate file.
27385 * msghdr.c (print_msghdr): Rename to print_struct_msghdr, remove
27387 (decode_mmsghdr, decode_mmsgvec, dumpiov_in_mmsghdr): Move to ...
27391 2016-07-14 Dmitry V. Levin <ldv@altlinux.org>
27393 tests: disable part of msg_name test on non-glibc systems.
27395 so limit the affected part of the test to glibc that doesn't.
27400 2016-07-13 Dmitry V. Levin <ldv@altlinux.org>
27405 * tests/inet-cmsg.c (main): Likewise.
27408 * tests/preadv-pwritev.c (main): Likewise.
27409 * tests/preadv2-pwritev2.c (main): Likewise.
27415 * tests/scm_rights-fd.test: Likewise.
27425 2016-07-13 Dmitry V. Levin <ldv@altlinux.org>
27429 read-write semantics as the address length argument of recvfrom syscall,
27434 * msghdr.c (print_msghdr): Likewise. Treat it as a pointer to struct
27435 msghdr.msg_namelen passed to the kernel. Pass to decode_sockaddr
27439 forward it to print_msghdr.
27443 (SYS_FUNC(recvmsg)): Use fetch_msghdr_namelen on entering to save
27445 to decode_msghdr.
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.
27471 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27487 length passed to the kernel and print it on error. Do not print more
27526 * tests/net-y-unix.c (main): Update expected output.
27527 * tests/net-yy-unix.c (main): Likewise.
27539 length passed to the kernel. Do not print more bytes of the socket
27542 2016-07-11 Dmitry V. Levin <ldv@altlinux.org>
27545 * net.c (do_sockname): Rename to decode_sockname, drop second argument,
27552 2016-07-08 Dmitry V. Levin <ldv@altlinux.org>
27563 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27571 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
27580 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
27591 * msghdr.c (print_msghdr): Pass IOV_DECODE_NETLINK to tprint_iov_upto()
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>
27647 (decode_msg_control): Use it to check control_len argument.
27649 (main): Use it to test printing of excessively large messages.
27651 2016-07-03 Dmitry V. Levin <ldv@altlinux.org>
27653 tests: add read_int_from_file function to libtests.
27658 2016-07-02 Dmitry V. Levin <ldv@altlinux.org>
27672 (main): Use it to test SCM_RIGHTS output in abbrev mode.
27673 * tests/msg_control-v.c: New file.
27674 * tests/msg_control-v.test: New test.
27675 * tests/.gitignore: Add msg_control-v.
27677 (DECODER_TESTS): Add msg_control-v.test.
27679 2016-07-01 Dmitry V. Levin <ldv@altlinux.org>
27688 2016-06-30 Dmitry V. Levin <ldv@altlinux.org>
27696 (print_cmsg_ip_tos): Likewise. Rename to print_cmsg_uint8_t.
27699 (print_cmsg_type_data): Use them to handle struct cmsghdr
27703 * msghdr.c (print_cmsg_ip_ttl): Rename to print_cmsg_uint.
27712 msghdr.c: apply a sane limit to the length of IP_ORIGDSTADDR address.
27713 * msghdr.c (print_cmsg_ip_origdstaddr): Limit address length to the size
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>
27754 net.c: move all msghdr and mmsghdr parsers to a separate file.
27759 * net.c: Move all msghdr and mmsghdr parsers to msghdr.c.
27769 (decode_mmsghdr): Change msg_len argument to use_msg_len.
27772 (decode_mmsg): Rename to decode_mmsgvec. Take addr and len arguments.
27780 net.c: move fallback definition of struct mmsghdr to a separate file.
27783 * net.c: Include it. Move fallback definition of struct mmsghdr there.
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.
27795 * tests/scm_rights-fd.test: Likewise.
27798 * net.c (printcmsghdr): Rename to decode_msg_control.
27799 (do_msghdr): Rename to print_msghdr.
27800 (extractmsghdr): Rename to fetch_msghdr.
27801 (extractmmsghdr): Rename to fetch_mmsghdr.
27802 (printmsghdr): Rename to decode_msghdr.
27803 (printmmsghdr): Rename to decode_mmsghdr.
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>
27819 net.c: move all sockaddr parsers to a separate file.
27820 * sockaddr_ll.c: Rename to sockaddr.c
27825 * net.c: Move all sockaddr parsers to sockaddr.c.
27827 net.c: rename printsock to decode_sockaddr.
27828 * defs.h (printsock): Rename to decode_sockaddr.
27837 * tests/net-sockaddr.c: New file.
27838 * tests/net-sockaddr.test: New test.
27839 * tests/.gitignore: Add net-sockaddr.
27841 (DECODER_TESTS): Add net-sockaddr.test.
27843 2016-06-24 Dmitry V. Levin <ldv@altlinux.org>
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>
27888 * net.c (print_sockaddr_data_nl): Change "pid" to "nl_pid", "groups"
27889 to "nl_groups". Print sockaddr_nl.nl_groups using %#08x format.
27890 * tests/net-yy-netlink.c (main): Update.
27894 from network order to host order before printing.
27896 2016-06-23 Dmitry V. Levin <ldv@altlinux.org>
27899 Prior to RFC2553, struct sockaddr_in6 had no sin6_scope_id field.
27907 2016-06-23 Dmitry V. Levin <ldv@altlinux.org>
27917 * tests/net-y-unix.c (main): Update expected pattern.
27918 * tests/net-yy-unix.c (main): Likewise.
27921 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
27934 sockaddr data to separate funcions.
27936 2016-06-22 Fabien Siron <fabien.siron@epita.fr>
27938 Add a enum for decoding to tprint_iov() and tprint_iov_upto()
27943 (tprint_iov, tprint_iov_upto): Change type of "decode_iov" to enum iov_decode.
27944 * aio.c (print_iocb): Change type of "decode_iov" to enum iov_decode in
27951 (tprint_iov_upto): Change type of "decode_iov" to enum iov_decode.
27952 (readv, do_preadv): Change type of "decode_iov" to enum iov_decode in
27958 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
27961 Before this change printsock used to erroneously clear the last byte
27966 Do not clear memory that is going to be overwritten by umoven.
27969 2016-06-21 Fabien Siron <fabien.siron@epita.fr>
27971 Change printsock to return socket family.
27972 * defs.h (printsock): Change return type to int.
27974 and -1 in case of an error.
27976 2016-06-21 Dmitry V. Levin <ldv@altlinux.org>
27989 Change type of address pointer to "const void *".
27993 xlat/addrfams.in: provide fallback definitions.
27994 * xlat/addrfams.in: add fallback definitions for constants.
28013 2016-06-20 Dmitry V. Levin <ldv@altlinux.org>
28020 * tests/net-accept-connect.c (main): Replace AF_LOCAL with AF_UNIX.
28021 * tests/net-y-unix.c: Likewise.
28022 * tests/net-yy-unix.c: Likewise.
28025 2016-06-19 Dmitry V. Levin <ldv@altlinux.org>
28039 2016-06-19 Fabien Siron <fabien.siron@epita.fr>
28049 to sock_proto.
28051 * util.c (getfdproto): Use it. Change return type to sock_proto.
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>
28087 struct btrfs_ioctl_defrag_range_args to uint64_t.
28089 members of struct btrfs_ioctl_defrag_range_args to uint64_t.
28091 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28093 btrfs: provide fallback definitions for BTRFS_IOC_QUOTA_RESCAN*
28094 <linux/btrfs.h> was introduced in linux v3.9-rc1 while some
28096 and BTRFS_IOC_QUOTA_RESCAN_STATUS in v3.10-rc2,
28097 or BTRFS_IOC_QUOTA_RESCAN_WAIT in v3.11-rc1.
28105 Reported-by: Li Er <phoooyb@gmail.com>
28107 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28114 2016-06-16 Elvira Khabirova <lineprinter0@gmail.com>
28118 2016-06-16 Fei Jie <feij.fnst@cn.fujitsu.com>
28127 tests: add signal2name function to libtests.
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]
28176 (or to &unknown, but only when !SCNO_IS_VALID), there is no need
28177 to check for UNDEFINED_SCNO before calling syscall_name(tcp->scno).
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>
28191 to another line.
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.
28200 * strace.c (usage): Add void to the list of function argments.
28202 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28206 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28208 Move printargs* functions to util.c.
28212 tests/xgetrlimit.c: fix a warning reported by -Wtype-limits.
28214 to the type of argument.
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 ...
28258 * tests/waitid-v.c: Likewise.
28260 * tests/waitid-v.test: Likewise.
28261 * tests/.gitignore: Add waitid and waitid-v.
28263 (DECODER_TESTS): Add waitid.test and waitid-v.test.
28267 * tests/wait4-v.c: Likewise.
28269 * tests/wait4-v.test: Likewise.
28270 * tests/.gitignore: Add wait4 and wait4-v.
28272 (DECODER_TESTS): Add wait4.test and wait4-v.test.
28274 tests: add widen_to_ull macro to tests.h.
28279 to type long, use widen_to_ull instead.
28281 2016-06-09 Dmitry V. Levin <ldv@altlinux.org>
28290 2016-06-09 Fei Jie <feij.fnst@cn.fujitsu.com>
28292 tests: add strace-E.test.
28293 * tests/strace-E.expected: New file.
28294 * tests/strace-E.test: New test.
28296 (EXTRA_DIST): Add strace-E.expected.
28298 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28301 * strace.spec.in: Add libunwind-devel to BuildRequires for RHEL8 family.
28303 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28305 make-dist: generate strace-*.tar.gz, strace.dsc, and strace.spec.
28306 Change make-dist to generate strace-*.tar.gz, strace.dsc,
28307 and strace.spec in addition to strace-*.tar.xz.
28309 * configure.ac (AM_INIT_AUTOMAKE): Remove no-dist-gzip.
28310 * make-dsc: New file.
28311 * make-dist: Use it.
28312 * .gitignore: Add strace-*.tar.gz, strace.dsc, and strace.spec.
28314 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28317 * configure.ac (CHANGELOGTIME): Rename to RPM_CHANGELOGTIME.
28320 * strace.spec.in: Rename CHANGELOGTIME to RPM_CHANGELOGTIME.
28321 * debian/changelog: Rename to ...
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>
28336 * strace.spec: Rename to ...
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.
28352 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28354 tests: always distribute strace-k.test.
28355 Fix distribution of tests/strace-k.test file when configured
28358 * tests/Makefile.am (EXTRA_DIST): Add strace-k.test.
28360 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28362 make-dist: skip news-check for non-releases.
28363 * make-dist: Run news-check only when the commit being built
28366 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28393 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28423 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28429 2016-06-06 Elvira Khabirova <lineprinter0@gmail.com>
28437 to pid_t.
28442 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28445 * debian/control (Build-Depends) [amd64]: Remove libunwind-dev.
28446 * debian/changelog: Sync with 4.12-3.
28449 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28451 tests/strace-S.test: fix testing 64-bit strace using a 32-bit userspace.
28452 * tests/strace-S.test: Measure wall clock time instead of system time.
28455 Reported-by: Steve McIntyre <steve@einval.com>
28457 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28459 tests/strace-S.test: enhance error diagnostics.
28460 * tests/strace-S.test: If strace output does not meet expectations,
28463 2016-06-02 Dmitry V. Levin <ldv@altlinux.org>
28468 2016-06-01 Dmitry V. Levin <ldv@altlinux.org>
28470 maint: post-release administrivia.
28473 2016-05-31 Dmitry V. Levin <ldv@altlinux.org>
28477 * debian/changelog: 4.12-1.
28478 * strace.spec: 4.12-1.
28481 * debian/changelog: Sync with 4.11-1.
28482 * strace.spec: Sync with 4.11.0.163.9720-2.
28484 2016-05-30 Dmitry V. Levin <ldv@altlinux.org>
28491 2016-05-29 Dmitry V. Levin <ldv@altlinux.org>
28497 * loop.c (decode_loop_info): Use square brackets to print
28499 (decode_loop_info64): Use square brackets to print
28510 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28531 * mtd.c (mtd_ioctl): Move parsers of structures to separate functions.
28533 Move parser of UBI_* ioctls to a separate file.
28534 * mtd.c (ubi_ioctl): Move to ...
28540 * tests/ioctl_evdev-v.c: Likewise.
28542 * tests/ioctl_evdev-v.test: Likewise.
28543 * tests/.gitignore: Add ioctl_evdev and ioctl_evdev-v.
28545 (DECODER_TESTS): Add ioctl_evdev.test and ioctl_evdev-v.test.
28555 evdev.c: fix printing of unrecognized event type passed to EVIOCGBIT.
28567 in response to EVIOCGNAME, EVIOCGPHYS, and EVIOCGUNIQ requests.
28606 evdev.c: move handling of EVIOCGBIT to a separate function.
28607 * evdev.c (evdev_read_ioctl): Move EVIOCGBIT handling to ...
28610 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28613 Change the order of ioctl command cheks to match the kernel:
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>
28627 (evdev_ioctl): ... here. Add RVAL_DECODED to return code in _IOC_WRITE
28634 2016-05-28 Jeff Mahoney <jeffm@suse.com>
28642 2016-05-27 Dmitry V. Levin <ldv@altlinux.org>
28647 2016-05-27 Jeff Mahoney <jeffm@suse.com>
28650 * tests/btrfs-vw.test: New file.
28651 * tests/btrfs-w.test: New file.
28664 to reflect the number of records rather than the number of items.
28666 2016-05-26 Jeff Mahoney <jeffm@suse.com>
28668 tests/btrfs.c: fix btrfs-v for BTRFS_IOC_TREE_SEARCH.
28670 to search_args for BTRFS_IOC_TREE_SEARCH ioctl tests.
28672 2016-05-26 Fabien Siron <fabien.siron@epita.fr>
28674 Fix -yy documentation.
28675 * strace.c (usage): Fix description of -yy option.
28678 2016-05-26 Dmitry V. Levin <ldv@altlinux.org>
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.
28714 Move parser of 'X' type ioctls to a separate file.
28718 to fs_x_ioctl.c.
28722 Move parser of HDIO_* ioctls to a separate file.
28726 (block_ioctl): Move parser of HDIO_GETGEO to hdio.c.
28730 Fix explicit casts of signed integer types to unsigned long long.
28733 of explicit casts to unsigned long long.
28746 to unsigned long long, print fields of type __u64 using PRI__u64 format.
28748 2016-05-25 Dmitry V. Levin <ldv@altlinux.org>
28753 * tests/ioctl_rtc-v.c: Likewise.
28755 * tests/ioctl_rtc-v.test: Likewise.
28756 * tests/.gitignore: Add ioctl_rtc and ioctl_rtc-v.
28758 (DECODER_TESTS): Add ioctl_rtc.test and ioctl_rtc-v.test.
28796 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28801 2016-05-24 Fei Jie <feij.fnst@cn.fujitsu.com>
28810 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28814 2016-05-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
28819 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28835 tests/btrfs.c: tweak magic constants to make the test more reliable.
28837 to 0xdeadbeefbadc0ded.
28839 to make their lower 32-bit parts closer to -1U.
28871 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28876 * tests/btrfs-v.test: Likewise.
28879 (DECODER_TESTS): Add btrfs.test and btrfs-v.test.
28881 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28890 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28893 This is limited to FIEMAP. FICLONE* and FIDEDUPERANGE originated in
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>
28998 to [ALPHA || POWERPC] case.
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.
29064 process. Add extra sleep in the parent process to win the race.
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.
29099 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29102 We used to call tail_alloc(1) to create memory mapping holes around
29115 * tests/net-icmp_filter.c (main): Likewise.
29124 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29130 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29133 We used to declare and define all printers marked with
29135 no way to conditionally compile mpersified printers, which was not
29139 to be compiled are also won't be declared and won't be added to
29147 * README-mpers: Update description of MPERS_PRINTER_DECL syntax.
29161 2016-05-20 Dmitry V. Levin <ldv@altlinux.org>
29164 There is no need to declare mpers printers in defs.h because
29171 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29175 to avoid breaking of gcc strict aliasing rules.
29180 2016-05-21 Fabien Siron <fabien.siron@epita.fr>
29182 tests: add check for netlink protocol decoding with -yy option.
29184 * tests/net-yy-netlink.c: New file.
29185 * tests/net-yy-netlink.test: New test.
29186 * tests/.gitignore: Add net-yy-netlink and netlink_netlink_diag
29188 (TESTS): Add net-yy-netlink.test.
29190 2016-05-18 Fabien Siron <fabien.siron@epita.fr>
29192 Add netlink domain sockets support to socketutils.
29200 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29202 tests/pread64-pwrite64.c: robustify against os specific issues.
29206 to return 1.
29208 * tests/pread64-pwrite64.c (main): Tweak the test that can lead
29209 to a partial write.
29211 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29213 tests/read-write.c: robustify against os specific issues.
29216 at the end of page is enough for write syscall to return 1.
29218 * tests/read-write.c (main): Tweak the test that can lead to a partial
29221 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29225 (main): Test with each number between PATH_MAX-1 and 0.
29234 * tests/inet-cmsg.c (print_origdstaddr): Define only
29255 2016-05-17 Fei Jie <feij.fnst@cn.fujitsu.com>
29264 2016-05-17 Dmitry V. Levin <ldv@altlinux.org>
29278 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29287 * tests/prctl-seccomp-strict.c (main): Update.
29339 to uint8_t to avoid potential sign-extension bug when printing
29344 to unsigned short to avoid potential sign-extension bug when printing
29347 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29351 as int to match the kernel behaviour.
29354 of syscalls to a variable of type unsigned int and use it in all
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>
29392 to match the kernel behaviour.
29395 to a variable of type unsigned int and use it in all subsequent
29400 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29403 * dirent.c (SYS_FUNC(getdents)): Treat d_type as unsigned char to avoid
29404 potential sign-extension bug when printing invalid d_type.
29413 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29417 to match the kernel behaviour.
29420 2nd argument of syscall to a variable of type unsigned int
29427 2016-05-15 Dmitry V. Levin <ldv@altlinux.org>
29429 Rename sprintflags64 to sprintflags.
29431 (sprintflags64): Rename to sprintflags.
29432 * util.c (sprintflags64): Rename to sprintflags.
29434 Prepare for transition from sprintflags64 to sprintflags.
29436 to unsigned long.
29440 to unsigned short.
29442 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29444 Rename xlookup64 to xlookup.
29446 (xlookup64): Rename to xlookup.
29447 * util.c (xlookup64): Rename to xlookup.
29449 Prepare for transition from xlookup64 to xlookup.
29451 Cast 2nd argument of xlookup to unsigned long.
29456 and local variables from int to unsigned int.
29458 of xlookup to unsigned int.
29459 * net.c (tprint_sock_type): Change type of the argument to unsigned int.
29462 to unsigned int.
29464 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29467 Prior to v2.6.25-rc3, <linux/videodev2.h> didn't include all
29468 required headers, resulting to omission of V4L2_* constants.
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>
29508 Remove erroneous use of verbose(tcp) as a printing limit
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>
29534 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29543 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29557 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29561 to siginfo_t array.
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>
29609 The addr argument of PTRACE_PEEKSIGINFO request is a pointer to
29617 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29621 contains the size of the buffer pointed to by data argument.
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>
29666 from "long" to "unsigned long", print it using printxval64 instead
29669 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29671 Do not sign-extend siginfo_t.si_syscall.
29673 of siginfo_t that has type "int" to "unsigned int", to avoid sign
29674 extension when passed to syscall_name function.
29682 2016-05-11 Fei Jie <feij.fnst@cn.fujitsu.com>
29698 2016-05-11 Dmitry V. Levin <ldv@altlinux.org>
29701 * tests/preadv2-pwritev2.c: New file.
29702 * tests/preadv2-pwritev2.test: New test.
29703 * tests/.gitignore: Add preadv2-pwritev2.
29705 (DECODER_TESTS): Add preadv2-pwritev2.
29720 * linux/mips/syscallent-n32.h: Likewise.
29721 * linux/mips/syscallent-n64.h: Likewise.
29722 * linux/mips/syscallent-o32.h: Likewise.
29735 2016-05-10 Dmitry V. Levin <ldv@altlinux.org>
29743 tests: add print_quoted_memory function to libtests.
29755 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
29764 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
29768 Note that they tend to read from and also return result in it's data
29778 2016-05-10 Dmitry V. Levin <ldv@altlinux.org>
29781 * m4/ax_code_coverage.m4: Update to serial 16.
29784 (CODE_COVERAGE_BRANCH_COVERAGE): Set to 1.
29786 strace-ff.test: fix race condition.
29787 * tests/strace-ff.test: Wait for completion of PR_SET_PTRACER command.
29791 to kernel_ulong_t.
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.
29797 * count.c (syscall_cmp): Do not pass NULL to strcmp.
29799 strace-S.test: cleanup.
29800 * tests/strace-S.test: Rewrite using sed.
29802 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29804 tests: add strace-S.test.
29805 * tests/strace-S.test: New test.
29808 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29810 strace-ff.test: check that -ff does not create unexpected output files.
29811 * tests/strace-ff.expected: New file.
29813 * tests/strace-ff.test: Use it. Check that no other output files
29816 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29818 tests: add strace-ff.test.
29819 * tests/strace-ff.test: New test.
29822 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29824 strace-V.test: cleanup.
29825 * tests/strace-V.test: Move config.h parser to a function.
29826 Rename $OUT to $EXP, swap arguments passed to match_diff.
29828 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29830 tests: add strace-V.test.
29831 * tests/strace-V.test: New test.
29834 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29843 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29846 This header file was added in glibc-2.3.2,
29847 so it's safe to assume its availability.
29855 2016-05-08 Fabien Siron <fabien.siron@epita.fr>
29861 2016-05-08 Dmitry V. Levin <ldv@altlinux.org>
29864 Allow nanosleep(2) to spend 10% more time to make the test suite
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.
29874 Increase timeouts to make the test more reliable on slow systems.
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.
29933 * ipc_sem.c (tprint_sembuf): Rename to print_sembuf, change signature
29948 (epoll_wait_common): Change to use print_array instead
29954 to process long int argument.
29955 (print_io_event): Change to print struct io_event fetched elsewhere.
29958 Use widen_to_long to print long int arguments.
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.
29973 (DECODER_TESTS): Add net-icmp_filter.test.
29975 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29979 from xlat strings to fix incorrect output.
29982 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
29984 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29987 mips o32 differs from all other 32-bit architectures by defining
29991 of PRINT_F_FSID array to unsigned int.
29993 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29996 * v4l2.c: Mpersify arch-specific structures.
30004 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30019 Acked-by: Elvira Khabirova <lineprinter0@gmail.com>
30021 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30027 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30030 Out-of-range syscalls looks differently on mips o32.
30035 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30038 There is no need to explicitly initialize big holes after conversion
30039 of syscallent.h files to use designated initializers. For architectures
30041 big holes is no-op, for others it just inflates the table unnecessarily.
30054 * linux/mips/syscallent-n32.h: Likewise.
30063 * linux/mips/syscallent-compat.h: Remove explicit initialization
30065 * linux/mips/syscallent-n64.h: Remove explicit initialization
30067 * linux/mips/syscallent-o32.h: Likewise.
30069 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30071 xlat: make "1<<val" syntax work with 64-bit values.
30075 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
30077 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30082 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
30084 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30103 2016-04-29 Jeff Mahoney <jeffm@suse.com>
30105 Change type of struct xlat.val to uint64_t.
30106 Some ioctls have flags fields that are 64-bit. A 32-bit val means
30110 (struct xlat): Change type of val to uint64_t.
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
30128 easier to read.
30133 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30136 * xlat.h (XLAT_TYPE): New macro, similar to XLAT but casts
30137 to the specified type instead of unsigned int.
30138 (XLAT_TYPE_PAIR): New macro, similar to XLAT_PAIR but casts
30139 to the specified type instead of unsigned int.
30141 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30146 the latter to use new XLAT_PAIR macro.
30153 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30155 Explicitly cast argument of XLAT macro to unsigned int.
30158 * xlat.h (XLAT): Cast the argument to unsigned int.
30160 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30162 Change type of {s,t}print_open_modes's argument to unsigned.
30164 involved only in bit operations, change its type to unsigned.
30167 to unsigned int.
30170 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30174 long", so it is not correct to load most significant bits with garbage
30175 ans assume they are going to be ignored.
30179 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30184 * defs.h (printflags): Rename to printflags64, change type of integer
30185 argument to uint64_t.
30187 * util.c (printflags): Rename to printflags64, change type of integer
30188 argument to uint64_t. Print it using PRIx64 format.
30191 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30196 * defs.h (sprintflags): Rename to sprintflags64, change type of integer
30197 argument to uint64_t.
30199 * util.c (sprintflags): Rename to sprintflags64, change type of integer
30200 argument to uint64_t. Print it using PRIx64 format.
30203 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30205 printxvals: change type of integer argument to uint64_t.
30209 * defs.h (printxvals): Change type of integer argument to uint64_t.
30213 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30215 xlat_search: change type of integer argument to uint64_t.
30219 * defs.h (xlat_search): Change type of integer argument to uint64_t.
30224 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30229 * defs.h (xlookup): Rename to xlookup64, change type of integer argument
30230 to uint64_t.
30232 * util.c (xlookup): Rename to xlookup64, change type of integer
30233 argument to uint64_t.
30236 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30238 addflags: change type of integer argument to uint64_t.
30242 * defs.h (addflags): Change type of integer argument to uint64_t.
30246 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30253 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30258 * defs.h (printxval): Change to static inline function.
30260 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30288 * numa.c (get_nodes): Rewrite an rename to print_nodemask.
30293 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30297 brackets to indicate indirect access.
30303 tests: add printxval function to libtests.
30315 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30331 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30337 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30346 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30348 Move parsers of NUMA related syscalls to numa.c.
30365 tests: check decoding of out-of-range syscalls.
30372 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30382 * reboot.c (SYS_FUNC(reboot)): Cast numeric arguments to unsigned int.
30384 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30387 Previous sleep delay value seems to be not enough nowadays.
30391 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30393 Move definitions of MPOL_* constants to xlat files.
30395 Move to xlat/policies.in.
30396 (MPOL_F_NODE, MPOL_F_ADDR): Move to xlat/mempolicyflags.in.
30398 to xlat/mbindflags.in.
30428 2016-04-26 Fei Jie <feij.fnst@cn.fujitsu.com>
30465 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30504 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30506 tests: add printflags function to libtests.
30511 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30513 Move definition of struct xlat to a separate header file.
30521 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30527 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30530 Do not attempt to print struct osf_statfs as if it was the same as
30532 it is probably too late to implement a decoder, so let's just print the
30538 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30543 * xlat/statfs_flags.in (ST_VALID): Move to the head of the list.
30546 2016-04-25 Fei Jie <feij.fnst@cn.fujitsu.com>
30576 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30586 2016-04-25 Zev Weiss <zev@bewilderbeest.net>
30589 * statfs.c (sprintfstype): Don't add double-quotes to fs magic macros.
30590 * tests/statfs.expected: Remove double-quotes.
30592 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30602 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30604 Rename PRI__s64 to PRI__d64.
30608 * defs.h (PRI__s64): Rename to PRI__d64.
30610 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30614 to fetch mmap arguments, return RVAL_DECODED when umove_or_printaddr
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>
30640 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30648 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30650 Move parsers of sync_file_range and sync_file_range2 syscalls to libstrace
30653 moving to libstrace ensures that only one of them that is need
30662 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30671 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30677 grep -q '\<assert(' "$f" ||
30678 sed -i '/# *include *<assert\.h>/d' "$f"
30681 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30687 grep -Fv errno.h "$f" |
30688 grep -Ewq '(si_)?errno|SOCK_FILTER_DENY_SYSCALL' ||
30689 sed -i '/# *include *<errno\.h>/d' "$f"
30692 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30736 tests/seccomp-strict.c: cleanup.
30737 * tests/seccomp-strict.c (main): Use errno2name, stop using assert.
30739 tests/seccomp-filter.c: cleanup.
30740 * tests/seccomp-filter.c (main): Use errno2name, stop using assert.
30754 tests/preadv-pwritev.c: cleanup.
30756 tests/prctl-seccomp-strict.c: cleanup.
30757 * tests/prctl-seccomp-strict.c (main): Use errno2name,
30840 sed -i 's/errno == E[[:alnum:]]\+ ? "E[[:alnum:]]\+" : "E[[:alnum:]]\+"/errno2name()/g'
30843 This is going to be necessary for the following commit.
30845 2016-04-21 Fei Jie <feij.fnst@cn.fujitsu.com>
30882 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30884 tests: add errno2name function to libtests.
30885 Add a simple translator of errno to its name, so one could
30893 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30895 hppa: rename ECANCELLED to ECANCELED.
30896 hppa seems to be the only architecture that defines ECANCELLED synonym
30898 Change the way how this constant is printed on hppa to be in line
30901 * linux/hppa/errnoent.h [253]: Rename ECANCELLED to ECANCELED.
30903 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30906 timerfd syscall was introduced in v2.6.22-rc1, but in v2.6.25-rc1
30913 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30915 tests: workaround kernel bugs in seccomp-strict.test and prctl-seccomp-strict.test
30922 * tests/seccomp-strict.c (main): Remove workaround for x32.
30923 * tests/prctl-seccomp-strict.c: Likewise.
30924 * tests/seccomp-strict.test: Skip the test if the test program
30926 * tests/prctl-seccomp-strict.test: Likewise.
30928 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
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
30945 Adjust the test to handle both cases properly.
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>.
30962 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30964 tests: remove obsolete non-strict uid tests.
30980 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31009 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31041 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31057 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31060 * linux/mips/syscallent-o32.h (iopl): Fix nargs.
31064 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31073 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31218 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31227 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31234 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31243 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31245 prctl-seccomp-filter-v.test: robustify against unrelated prctl invocations
31246 * tests/prctl-seccomp-filter-v.test: Filter out PR_GET_* prctl calls.
31248 Reported-by: Steve McIntyre <steve@einval.com>
31250 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31256 Reported-by: Steve McIntyre <steve@einval.com>
31258 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31304 Fix decoding of 16-bit uid_t/git_t.
31305 * uid.c (printuid): Always cast value to uid_t.
31307 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31309 tests: move kernel uid overflow check to libtests.
31310 This code used in two different places, so move it to the library.
31318 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31320 tests: skip seccomp-strict.test and prctl-seccomp-strict.test on x32.
31324 * tests/seccomp-strict.c (main) [__x86_64__ && __ILP32__]: Bail out
31326 * tests/prctl-seccomp-strict.c: Likewise.
31328 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31330 tests: add seccomp-filter.test.
31331 * tests/seccomp-filter.c: New file.
31332 * tests/seccomp-filter.test: New test.
31333 * tests/.gitignore: Add seccomp-filter.
31335 (DECODER_TESTS): Add seccomp-filter.test.
31337 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31347 * tests/prctl-seccomp-filter-v.c (main): Update.
31348 * tests/seccomp-filter-v.c: New file.
31349 * tests/seccomp-filter-v.test: New test.
31350 * tests/.gitignore: Add seccomp-filter-v.
31352 (DECODER_TESTS): Add seccomp-filter-v.test.
31354 2016-04-11 Dmitry V. Levin <ldv@altlinux.org>
31358 * tests/prctl-seccomp-filter-v.c: Update.
31360 tests: rename seccomp.test to prctl-seccomp-filter-v.test.
31361 * tests/.gitignore: Replace seccomp with prctl-seccomp-filter-v.
31363 (DECODER_TESTS): Replace seccomp.test with prctl-seccomp-filter-v.test.
31364 * tests/seccomp.c: Rename to tests/prctl-seccomp-filter-v.c.
31365 * tests/seccomp.test: Rename to tests/prctl-seccomp-filter-v.test.
31367 tests: add seccomp-strict.test.
31368 * tests/seccomp-strict.c: New file.
31369 * tests/seccomp-strict.test: New test.
31370 * tests/.gitignore: Add seccomp-strict.
31372 (DECODER_TESTS): Add seccomp-strict.test.
31374 tests: add prctl-seccomp-strict.test.
31375 * tests/prctl-seccomp-strict.c: New file.
31376 * tests/prctl-seccomp-strict.test: New test.
31377 * tests/.gitignore: Add prctl-seccomp-strict.
31379 (DECODER_TESTS): Add prctl-seccomp-strict.test.
31381 tests: bring lists back to the sorted order.
31383 2016-04-10 Dmitry V. Levin <ldv@altlinux.org>
31393 2016-04-09 Dmitry V. Levin <ldv@altlinux.org>
31402 2016-04-08 Fei Jie <feij.fnst@cn.fujitsu.com>
31425 2016-04-08 Dmitry V. Levin <ldv@altlinux.org>
31427 tests/pread64-pwrite64.c: minor cleanup.
31428 * tests/pread64-pwrite64.c: Do not include <sys/uio.h>.
31430 2016-04-07 Dmitry V. Levin <ldv@altlinux.org>
31444 2016-04-06 Elliott Hughes <enh@google.com>
31458 * Hard-code PR_SET_VMA_ANON_NAME, the only current sub-option.
31461 2016-04-06 Fei Jie <feij.fnst@cn.fujitsu.com>
31491 2016-04-06 Dmitry V. Levin <ldv@altlinux.org>
31503 2016-04-05 Dmitry V. Levin <ldv@altlinux.org>
31508 2016-04-05 Elliott Hughes <enh@google.com>
31524 2016-04-04 Dmitry V. Levin <ldv@altlinux.org>
31527 AF_* constants appear to be more standardized, and in practice there's
31528 always a one to one relationship between AF_* and PF_*, so let's
31534 * tests/inet-cmsg.c: Replace PF_INET with AF_INET.
31535 * tests/net-yy-inet.c: Likewise.
31537 * tests/net-accept-connect.c: Replace PF_LOCAL with AF_LOCAL.
31538 * tests/net-y-unix.c: Likewise.
31539 * tests/net-yy-unix.c: Likewise.
31543 2016-04-03 Dmitry V. Levin <ldv@altlinux.org>
31545 tests: add read-write.test.
31546 * tests/read-write.c: New file.
31547 * tests/read-write.test: New test.
31548 * tests/.gitignore: Add read-write.
31550 (DECODER_TESTS): Add read-write.test.
31552 2016-04-02 Dmitry V. Levin <ldv@altlinux.org>
31554 tests/pread64-pwrite64.test: extend dumpio coverage.
31555 * tests/pread64-pwrite64.c (dump_str, print_hex, test_dump):
31557 (main): Use them to test dumping of various data.
31558 * tests/pread64-pwrite64.test: Update.
31560 tests: add hexdump_memdup function to libtests.
31582 * tests/pread64-pwrite64.c: New file.
31583 * tests/pread64-pwrite64.test: New test.
31584 * tests/.gitignore: Add pread64-pwrite64.
31587 (DECODER_TESTS): Add pread64-pwrite64.
31593 tests/preadv-pwritev.c: fix typo in error diagnostics.
31594 * tests/preadv-pwritev.c (main): Fix typo in error message.
31596 2016-04-01 Fei Jie <feij.fnst@cn.fujitsu.com>
31626 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31630 arguments as unsigned to avoid potential sign extension issues.
31633 arguments to local variables of appropriate types.
31635 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31640 use "unsigned int" type to avoid potential sign extension issues.
31644 from "int" to "unsigned int".
31646 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31648 Add sentinel attribute to printxvals.
31655 (SYS_FUNC(ptrace)): Assign syscall arguments to local variables with
31658 to print address in PTRACE_PEEKUSER and PTRACE_POKEUSER requests.
31660 2016-03-31 Jeff Mahoney <jeffm@suse.com>
31662 Define PRI__[uxs]64 macros to print __s64 and __u64 values.
31668 2016-03-31 Dmitry V. Levin <ldv@altlinux.org>
31673 * tests/preadv-pwritev.c: New file.
31674 * tests/preadv-pwritev.test: New test.
31675 * tests/.gitignore: Add preadv-pwritev.
31678 (DECODER_TESTS): Add preadv-pwritev.
31680 2016-03-30 Dmitry V. Levin <ldv@altlinux.org>
31689 * io.c (print_llu_from_low_high_val): Rename to
31706 tests: factor out a part common to many simply organized test scripts.
31720 * tests/execveat-v.test: Likewise.
31726 * tests/fork-f.test: Likewise.
31735 * tests/inet-cmsg.test: Likewise.
31775 * tests/times-fail.test: Likewise.
31791 * tests/init.sh (NAME): New variable, defined to ${ME_%.test}.
31797 * tests/net-y-unix.test: Likewise.
31798 * tests/net-yy-inet.test: Likewise.
31799 * tests/net-yy-unix.test: Likewise.
31809 2016-03-30 Dmitry V. Levin <ldv@altlinux.org>
31811 tests: move definitions of $OUT and $ERR to init.sh.
31814 of these variables from individual tests to init.sh.
31821 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
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
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.
31852 * xlat/clone_flags.in: Rename CLONE_STOPPED to CLONE_NEWCGROUP.
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>
31876 * tests/uname.c (main): Use print_quoted_string to print
31880 2016-03-28 Dmitry V. Levin <ldv@altlinux.org>
31883 * tests/faccessat.c (TMP_FILE): Rename to sample, change its value
31884 to "faccessat.sample".
31888 * tests/openat.c (main): Rename fname to sample, change its value
31889 to "openat.sample".
31890 * tests/openat.test: Use -P option to filter out openat syscalls
31900 2016-03-27 Dmitry V. Levin <ldv@altlinux.org>
31908 2016-03-26 Dmitry V. Levin <ldv@altlinux.org>
31913 Update path of saa6588.h and exynos-fimc.h files.
31915 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
31923 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
31927 that resulted to sparc personality being decoded as old solaris
31928 personality. This complements commit v4.10-45-gdf4dd8b and fixes
31929 commit v4.10-46-g588a90f.
31933 2016-03-25 Katerina Koukiou <k.koukiou@googlemail.com>
31942 2016-03-25 Fei Jie <feij.fnst@cn.fujitsu.com>
31979 2016-03-23 JayRJoshi <jay.r.joshi100@gmail.com>
31981 tests/scm_rights-fd.test: fix pathname regex.
31982 Pathname containing >, }, or non-printable characters was resulting
31985 * tests/scm_rights-fd.test: Fix pathname regex and simplify things.
31987 2016-03-24 Dmitry V. Levin <ldv@altlinux.org>
31989 tests: add strace-r.test.
31990 * tests/strace-r.expected: New file.
31991 * tests/strace-r.test: New test.
31993 (EXTRA_DIST): Add strace-r.expected.
31995 tests: add strace-ttt.test.
31996 * tests/strace-ttt.test: New test.
31999 tests: add strace-tt.test.
32000 * tests/strace-tt.test: New test.
32003 tests: add strace-t.test.
32004 * tests/strace-t.test: New test.
32007 tests: add strace-T.test.
32008 * tests/strace-T.expected: New file.
32009 * tests/strace-T.test: New test.
32011 (EXTRA_DIST): Add strace-T.expected.
32013 2016-03-23 Dmitry V. Levin <ldv@altlinux.org>
32019 * tests/Makefile.am (TESTS): Move attach-f-p.test, attach-p-cmd.test,
32020 bexecve.test, count-f.test, count.test, detach-running.test,
32021 detach-sleeping.test, detach-stopped.test, dumpio.test,
32022 filter-unavailable.test, fork-f.test, ksysent.test, opipe.test,
32024 strace-f.test, and vfork-f.test to MISC_TESTS.
32025 Move remaining tests except $(LIBUNWIND_TESTS) to DECODER_TESTS.
32028 2016-03-23 JayRJoshi <jay.r.joshi100@gmail.com>
32037 tests: add print_quoted_string function to libtests.
32042 2016-03-17 Fei Jie <feij.fnst@cn.fujitsu.com>
32053 2016-03-15 Fei Jie <feij.fnst@cn.fujitsu.com>
32069 2016-03-15 Dmitry V. Levin <ldv@altlinux.org>
32072 This complements commit v4.9-368-g301c65c.
32078 2016-03-14 Dmitry V. Levin <ldv@altlinux.org>
32083 2016-03-12 Dmitry V. Levin <ldv@altlinux.org>
32085 tests: add count-f.test.
32086 * tests/count-f.c: New file.
32087 * tests/count-f.expected: Likewise.
32088 * tests/count-f.test: New test.
32089 * tests/.gitignore: Add count-f.
32092 (EXTRA_DIST): Add count-f.expected.
32093 (TESTS): Add count-f.test.
32095 2016-02-21 Dmitry V. Levin <ldv@altlinux.org>
32100 2016-03-11 Fei Jie <feij.fnst@cn.fujitsu.com>
32103 * tests/uname.test: Use uniq to filter strace output.
32105 2016-03-10 Fei Jie <feij.fnst@cn.fujitsu.com>
32132 2016-03-10 Fabien Siron <fabien.siron@epita.fr>
32141 2016-03-09 Fei Jie <feij.fnst@cn.fujitsu.com>
32150 2016-03-07 Anchit Jain <anchitjain1234@gmail.com>
32159 2016-03-05 Nahim El Atmani <naam@lse.epita.fr>
32165 Reviewed-By: Gabriel Laskar <gabriel@lse.epita.fr>
32166 Reported-by: haris iqbal <haris.phnx@gmail.com>
32168 2016-03-01 Fei Jie <feij.fnst@cn.fujitsu.com>
32191 2016-02-20 Dmitry V. Levin <ldv@altlinux.org>
32194 * linux/mips/syscallent-n32.h [6324]: Add copy_file_range entry.
32195 * linux/mips/syscallent-n64.h [5320]: Likewise.
32196 * linux/mips/syscallent-o32.h [4360]: Likewise.
32198 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32222 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32230 2016-02-19 Fei Jie <feij.fnst@cn.fujitsu.com>
32239 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32260 Do not align length to 4-byte boundary. Align destination buffer
32261 to 4-byte boundary and initialize it with zeroes so that subsequent
32262 call to sprintsigmask_n will not access uninitialized data.
32274 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32276 Change unix_diag requests back to use full dump instead of exact match.
32277 Unfortunately, 64-bit linux kernel has a bug in matching inode numbers
32282 * socketutils.c (unix_send_query): Add NLM_F_DUMP to nlmsg_flags,
32285 add NLM_F_DUMP to nlmsg_flags, remove initialization of udiag_ino
32289 socket inode to send_query and check_responses.
32291 2016-02-19 Michael Shigorin <mike@altlinux.org>
32293 tests: avoid using cpp -dD.
32294 -dD is less portable across some peculiar preprocessors.
32296 tests/Makefile.am (ksysent.h): Use cpp -dM instead of cpp -dD.
32298 2016-02-16 Dmitry V. Levin <ldv@altlinux.org>
32310 * tests/ppoll-v.expected: Update.
32326 2016-02-14 Dmitry V. Levin <ldv@altlinux.org>
32343 * defs.h (printargs_lu): Rename to printargs_u.
32344 (printargs_ld): Rename to printargs_d.
32345 * syscall.c (printargs_lu): Rename to printargs_u. Replace %lu with %u.
32346 (printargs_ld): Rename to printargs_d. Replace %ld with %d.
32347 * linux/dummy.h (sys_getpgrp): Change to printargs.
32348 (sys_alarm): Change to printargs_u.
32350 sys_timer_delete, sys_timer_getoverrun): Change to printargs_d.
32352 Change printargs_lu and printargs_ld to return RVAL_DECODED.
32357 and exit status instead of redirecting strace output to /dev/null.
32427 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32431 for an address that is more likely to be not yet mapped.
32438 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32441 This semi-automatic change brings syscall tables in sync with kernel's
32460 * linux/mips/syscallent-n32.h (getpgid, statfs, fstatfs, init_module,
32462 * linux/mips/syscallent-n64.h (getpgid, statfs, fstatfs, init_module,
32464 * linux/mips/syscallent-o32.h (signal, statfs, fstatfs, ioperm,
32486 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32493 * linux/mips/syscallent-n64.h (fadvise64): Replace SEN(fadvise64_64)
32499 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32505 * linux/alpha/syscallent.h (pipe): Change nargs to 0.
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>
32522 or paths to test, move SEN_pipe2 to the appropriate category.
32528 2016-02-12 Dmitry V. Levin <ldv@altlinux.org>
32531 * tests/mmap.c (main): Change output format from regexp to verbatim.
32533 * tests/mmap.test: Convert from match_grep to match_diff.
32534 Add madvise, mlockall, mremap, and msync syscalls to syscall filter.
32536 2016-02-11 Dmitry V. Levin <ldv@altlinux.org>
32547 * wait.c (SYS_FUNC(waitid)): Do not check for tcp->s_ent->nargs
32550 socketutils: add const qualifier to variables.
32571 2016-02-09 Dmitry V. Levin <ldv@altlinux.org>
32573 tests: check that -f -p attaches to threads properly.
32574 Check that -f -p attaches and follows all threads of the given pid.
32576 * tests/attach-f-p.c: New file.
32577 * tests/attach-f-p.test: New test.
32578 * tests/.gitignore: Add attach-f-p.
32581 (TESTS): Add attach-f-p.test.
32583 2016-02-09 Dmitry V. Levin <ldv@altlinux.org>
32591 (libstrace_a_CPPFLAGS): New variable, set to $(strace_CPPFLAGS).
32592 (libstrace_a_CFLAGS): New variable, set to $(strace_CFLAGS).
32593 (libstrace_a_SOURCES): New variable, set to upeek.c.
32597 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32599 travis-ci: pass more gcov arguments to codecov.
32616 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32621 * tests/execve-v.c: New file.
32622 * tests/execveat-v.c: Likewise.
32623 * tests/execve-v.test: New test.
32624 * tests/execveat-v.test: Likewise.
32630 * tests/execve-v.expected: Likewise.
32632 * tests/execveat-v.expected: Likewise.
32633 * tests/.gitignore: Add execve-v and execveat-v.
32635 (TESTS): Add execve-v.test and execveat-v.test.
32636 (EXTRA_DIST): Remove execve.expected, execve-v.expected,
32637 execveat.expected, and execveat-v.expected.
32639 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32655 to inaccessible cpu_set_t.
32677 * strace.c (open_dev_null): Rename to open_dummy_desc. All callers
32681 2016-02-08 Denys Vlasenko <dvlasenk@redhat.com>
32683 If stdin/stdout aren't open on startup, open them to /dev/null.
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'
32698 The writer (head) will be able to perform writes to write end of the pipe.
32703 * strace.c (startup_child): Close stdin/out and reopen them to /dev/null.
32705 2016-02-05 Dmitry V. Levin <ldv@altlinux.org>
32708 Check that -o |pipe_command works. In particular, check that
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
32722 trying to use seq as an array reference. Ensure that clone populates
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>
32739 Add README.md file with links to build status and test coverage.
32741 travis-ci: prepare and submit test coverage report.
32745 (main): Allocate memory for string and buffer passed to the syscall
32752 tests: add hexquote_strndup function to libtests.
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>
32777 * Makefile.am (strace_CFLAGS): New variable, set to $(AM_CFLAGS).
32778 (libmpers_CFLAGS): New variable, set to $(strace_CFLAGS).
32780 set to $(libmpers_CFLAGS).
32786 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32788 tests: replace net-fd.test with net-y-unix.test.
32792 * tests/net-y-unix.c: New file.
32793 * tests/net-y-unix.test: New test.
32794 * tests/net-fd.test: Remove.
32795 * tests/net-fd.expected: Remove.
32796 * tests/.gitignore: Add net-y-unix.
32798 (TESTS): Replace net-fd.test with net-y-unix.test.
32799 (net-fd.log): Remove.
32800 (EXTRA_DIST): Remove net-fd.expected.
32802 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32805 As -yy parser, compared to -y, needs to do at least 5 extra syscalls
32806 (getxattr, socket, sendmsg, recvmsg, close) to print socket details,
32824 * tests/unix-yy.c (main): Update.
32826 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32828 Change unix_diag requests to use exact match instead of full dump.
32835 (main): Pass listening socket inode to send_query and check_responses.
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.
32850 is large enough to contain a inet_diag_msg structure.
32853 * socketutils.c (receive_responses): Pass MSG_DONTWAIT to recvmsg after
32854 the first recvmsg call to avoid potential hangup.
32856 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32858 tests: replace net-yy.test with net-yy-inet.test.
32862 * tests/net-yy-inet.c: New file.
32863 * tests/net-yy-inet.test: New test.
32864 * tests/net-yy.test: Remove.
32865 * tests/net-yy-accept.awk: Remove.
32866 * tests/net-yy-connect.awk: Remove.
32867 * tests/inet-accept-connect-send-recv.c: Remove.
32868 * tests/.gitignore: Replace inet-accept-connect-send-recv
32869 with net-yy-inet.
32871 (TESTS): Replace net-yy.test with net-yy-inet.test.
32872 (EXTRA_DIST): Remove net-yy-accept.awk and net-yy-connect.awk.
32874 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32876 tests: replace unix-yy.test with net-yy-unix.test.
32880 * tests/net-yy-unix.c: New file.
32881 * tests/net-yy-unix.test: New test.
32882 * tests/unix-yy.test: Remove.
32883 * tests/unix-yy-accept.awk: Remove.
32884 * tests/unix-yy-connect.awk: Remove.
32885 * tests/.gitignore: Add net-yy-unix.
32887 (TESTS): Replace unix-yy.test with net-yy-unix.test.
32888 (EXTRA_DIST): Remove unix-yy-accept.awk and unix-yy-connect.awk.
32890 2016-02-02 Dmitry V. Levin <ldv@altlinux.org>
32892 tests: add inode_of_sockfd function to libtests.
32899 is large enough to contain a unix_diag_msg structure.
32901 2016-01-29 Dmitry V. Levin <ldv@altlinux.org>
32913 2016-01-23 Dmitry V. Levin <ldv@altlinux.org>
32915 Move fallback -yy socket print from printfd to print_sockaddr_by_inode.
32916 * util.c (printfd): In -yy mode, move fallback print of proto:[inode] ...
32917 * socketutils.c (to print_sockaddr_by_inode): ... here.
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
32928 Never attach to the tracer process.
32929 In -D mode, never attach to the parent of the tracer process,
32932 * strace.1: Document that -p option can be used along with tracing
32935 * tests/attach-p-cmd-cmd.c: New file.
32936 * tests/attach-p-cmd-p.c: Likewise.
32937 * tests/attach-p-cmd.test: New test.
32938 * tests/.gitignore: Add attach-p-cmd-cmd and attach-p-cmd-p.
32940 (TESTS): Add attach-p-cmd.test.
32944 2016-01-22 Dmitry V. Levin <ldv@altlinux.org>
32946 strace.1: fix format of -P description.
32947 * strace.1 (-P): Write trailing using regular font.
32949 2016-01-21 Dmitry V. Levin <ldv@altlinux.org>
32957 tests: add error_msg_and_fail function to libtests.
32961 2016-01-20 Dmitry V. Levin <ldv@altlinux.org>
32965 pass data size limit to dumpiov_upto.
32972 instead of dumpiov, pass data_size to dumpiov_upto.
32973 * syscall.c (dumpio): Pass data size limit to dumpiov_in_msghdr.
32983 (dumpiov): Change to a wrapper around dumpiov_upto.
32984 * util.c (dumpiov): Rename to dumpiov_upto, add and check data_size
33002 tests: add hexdump_strdup function to libtests.
33007 tests: add tprintf function to libtests.
33013 2016-01-19 Dmitry V. Levin <ldv@altlinux.org>
33025 * quota.c (decode_cmd_data): Change return type to int.
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>
33063 Move definitions of quotactl constants to xlat files.
33064 * quota.c (Q_*): Move to xlat/quotacmds.in.
33065 (USRQUOTA, GRPQUOTA): Move to xlat/quotatypes.in.
33066 (QFMT_VFS_OLD, QFMT_VFS_V0): Move to xlat/quota_formats.in.
33067 (XFS_QUOTA_*): Move to xlat/xfs_quota_flags.in.
33068 (XFS_*_QUOTA): Move to xlat/xfs_dqblk_flags.in.
33069 (QIF_*): Move to xlat/if_dqblk_valid.in.
33070 (IIF_*): Move to xlat/if_dqinfo_valid.in.
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.
33091 (main): Redirect stdout to a new descriptor. Use LENGTH_OF.
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>
33105 s390, s390x: fix printing of syscalls unknown to the kernel.
33106 On s390/s390x, syscalls with NR up to 255 can be implemented
33112 in %r2 and is available to arch_get_scno via s390_regset.gprs[2].
33113 For syscall numbers >= NR_syscalls this register is set to 0,
33115 via s390_regset.gprs[1] to decide what the syscall number is.
33123 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33126 * linux/s390/syscallent.h [0]: Set nargs to MA.
33129 mips o32: alias sys_syscall to printargs.
33130 * linux/dummy.h (sys_syscall): Alias to printargs.
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>
33148 for DW_TAG_pointer_type to default_pointer_size. Set parent
33150 to DW_AT_upper_bound.
33152 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33159 scm_rights-fd.test: rewrite without fork.
33161 Place all objects passed to sendmsg and recvmsg at the end
33163 * tests/scm_rights-fd.test: Update.
33173 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
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>
33201 libc. Do not rely on struct sigevent definition at all to access
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>
33226 musl libc defines SIGRTMAX to a function that returns signed int,
33227 which obviously makes gcc -Wsign-compare unhappy.
33229 * signal.c (signame): Cast ASM_SIGRTMAX to unsigned int.
33231 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33235 to macro expansion when used in definitions of TEST_SYSCALL_NR,
33239 (stat64 as stat, lstat64 as lstat, etc.), this might result to incorrect
33241 macros. To avoid this problem, define these macros directly and remove
33267 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33272 A cast to the target type helps to avoid these libc differences.
33278 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33280 tests/inet-cmsg.c: fix musl libc compilation warnings.
33281 The types that are used to define msg_namelen member of struct msghdr
33283 For example, glibc defines them as size_t, while musl libc - as type
33284 socklen_t. Print these fields using %lu format to avoid issues caused
33287 * tests/inet-cmsg.c (main): Cast mh.msg_controllen and c->cmsg_len
33288 to unsigned long and print them using %lu format.
33290 2016-01-11 Dmitry V. Levin <ldv@altlinux.org>
33298 * tests/mmsg.c (main): Place all objects passed to sendmmsg and recvmmsg
33301 mmsg.test: check decoding of flags passed to sendmmsg and recvmmsg.
33302 * tests/mmsg.c (main): Pass MSG_DONTROUTE|MSG_NOSIGNAL to sendmmsg.
33303 Pass MSG_DONTWAIT to recvmmsg.
33306 2016-01-11 Dmitry V. Levin <ldv@altlinux.org>
33308 mmsg.test: prefer direct sendmmsg/recvmmsg syscalls to libc wrappers.
33310 Check for __NR_sendmmsg as an alternative to HAVE_SENDMMSG.
33315 Reported-by: Szabolcs Nagy <nsz@port70.net>
33317 2016-01-10 Dmitry V. Levin <ldv@altlinux.org>
33325 Reported-by: Szabolcs Nagy <nsz@port70.net>
33327 2016-01-10 Dmitry V. Levin <ldv@altlinux.org>
33332 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33348 * linux/sparc/syscallent.h [353]: Move mlock2 entry to 356.
33352 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33359 Reported-by: Szabolcs Nagy <nsz@port70.net>
33361 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33367 Reported-by: Szabolcs Nagy <nsz@port70.net>
33369 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33377 * linux/alpha/syscallent.h [20]: Change SEN(getpid) to SEN(getxpid).
33378 [24]: Change SEN(getuid) to SEN(getxuid).
33379 [47]: Change SEN(getgid) to SEN(getxgid).
33389 2016-01-08 Dmitry V. Levin <ldv@altlinux.org>
33394 alpha: alias getdtablesize to printargs.
33395 * linux/dummy.h [ALPHA] (sys_getdtablesize): Alias to printargs.
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
33415 The only syscall that appears to be affected is the times syscall.
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>
33436 Print cpu_set_t as a set of integers, similar to the way
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.
33575 tests/vfork-f.c: use libtests.
33576 * tests/vfork-f.c (main): Use assert and perror_msg_and_fail.
33578 tests/fork-f.c: use libtests.
33579 * tests/fork-f.c (main): Use assert and perror_msg_and_fail.
33632 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33662 tests/inet-cmsg.c: use libtests.
33663 * tests/inet-cmsg.c (main): Use perror_msg_and_skip.
33679 tests/inet-accept-connect-send-recv.c: use libtests.
33680 * tests/inet-accept-connect-send-recv.c (main): Use perror_msg_and_skip
33683 tests/net-accept-connect.c: use libtests.
33684 * tests/net-accept-connect.c (main): Use perror_msg_and_skip
33687 tests/unix-pair-send-recv.c: use libtests.
33688 * tests/unix-pair-send-recv.c (main): Use perror_msg_and_skip
33691 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33701 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33746 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33754 tests/filter-unavailable.c: use libtests.
33755 * tests/filter-unavailable.c (main): Use perror_msg_and_fail.
33773 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33778 2016-01-04 Dmitry V. Levin <ldv@altlinux.org>
33780 tests/times-fail.c: use assert.
33781 * tests/times-fail.c (main): Use assert.
33792 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33827 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33829 tests: include tests.h instead of config.h.
33830 Automatically edit tests/*.c files using the following perl one-liner:
33832 perl -0777 -pi -e \
33833 's/#ifdef HAVE_CONFIG_H\n# include "config\.h"\n#endif\n*/#include "tests.h"\n/' \
33836 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33851 2016-01-01 Dmitry V. Levin <ldv@altlinux.org>
33853 tests: enable strace-k.test only for --with-libunwind configurations.
33854 Also, since -k option does not support multiple personalities,
33855 add strace-k.test to XFAIL_TESTS when running mpers tests.
33859 [USE_LIBUNWIND] (LIBUNWIND_TESTS): Add strace-k.test.
33860 (TESTS): Replace strace-k.test with $(LIBUNWIND_TESTS).
33861 * bootstrap: Substitute MPERS_NAME variable in tests-*/Makefile.am.
33862 * tests/strace-k.test: Do not check for -k option availability.
33864 2016-01-02 Dmitry V. Levin <ldv@altlinux.org>
33866 Move gcc compat macros to gcc_compat.h.
33874 2015-12-31 Dmitry V. Levin <ldv@altlinux.org>
33876 Move defs.h from noinst_HEADERS to strace_SOURCES.
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>
33919 On architectures that use dedicated registers to report syscall errors,
33922 semantics, there is no way to distinguish a syscall error from a valid
33924 SYSCALL_NEVER_FAILS flag remains the only way to tell one case
33935 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33939 might report a failure on some architectures due to obscure kernel
33946 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33954 tcp->u_rval to uid_t on exiting syscall, return RVAL_DECODED.
33956 2015-12-26 Dmitry V. Levin <ldv@altlinux.org>
33969 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33977 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33984 to 0xffffffff, print it verbatim.
33987 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
34002 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
34006 v2.6.29-6609-g11d06b2a1e5658f448a308aa3beb97bacd64a940, personality
34007 syscall never fails to set the personality, but before commit
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>
34028 * linux/32/syscallent.h: Add sys_ prefix to ARCH_mmap and mmap.
34029 * linux/arc/syscallent.h: Add sys_ prefix to ARCH_mmap and mmap_pgoff.
34032 * linux/tile/syscallent1.h: Add sys_ prefix to ARCH_mmap and sys_mmap_4koff.
34036 Reported-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
34038 2015-12-24 Dmitry V. Levin <ldv@altlinux.org>
34041 Starting with commit v4.9-46-g681452b that removed all references
34042 to acl.h, we no longer use acl development library.
34044 * .travis.yml (addons.apt.packages): Remove libacl1-dev.
34045 * strace.spec (BuildRequires): Remove libacl-devel.
34047 2015-12-23 Dmitry V. Levin <ldv@altlinux.org>
34049 packages/x86_64: enable experimental -k option.
34050 * debian/control (Build-Depends) [amd64]: Add libunwind-dev.
34051 * strace.spec (BuildRequires) [x86_64]: Add libunwind-devel.
34053 maint: post-release administrivia.
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>
34066 * debian/changelog: Sync with 4.10-3.
34069 * strace.spec: Sync with 4.10-3.
34073 to avoid duplications in CREDITS file.
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>
34086 Add copyright headers to some files which lack them.
34095 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34100 Reported-by: Szabolcs Nagy <nsz@port70.net>
34102 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34104 mpers.sh: switch to DWARF version 2 format for better portability.
34105 * mpers.sh (CFLAGS): Replace -gdwarf-4 with -gdwarf-2.
34110 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34131 Reported-by: Szabolcs Nagy <nsz@port70.net>
34133 2015-12-16 Szabolcs Nagy <nsz@port70.net>
34136 The syscall_name argument was subject to macro expansion because
34137 it was passed down to other macros before it was prefixed.
34140 so SYS_FUNC(fstat64) was expanded to sys_fstat.
34142 This change adds the prefix before the name is passed to other macros,
34145 * defs.h (SYS_FUNC): Add sys_ prefix to SYS_FUNC_NAME's argument.
34146 (SYS_FUNC_NAME): Do not add sys_ prefix to MPERS_FUNC_NAME's argument.
34148 to MPERS_FUNC_NAME's argument.
34151 to SYS_FUNC_NAME's argument.
34153 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34156 As glibc times wrapper on x32 is known to wrongly truncate and then sign
34162 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34164 mpers.awk: make fillers added to the output structure more predictable.
34167 * mpers_test.sh: Use a more complicated sample type to test mpers
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.
34188 * mpers_test.sh: Use a more complicated type to test mpers machinery.
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>
34202 The last reference to this parser was removed by commit
34203 v4.10-45-gdf4dd8b.
34207 2015-12-13 Dmitry V. Levin <ldv@altlinux.org>
34210 As arm kernels used to overwrite ARM_r0 with -EINTR after
34211 ERESTART_RESTARTBLOCK, update regexp to workaround this.
34216 2015-12-12 Dmitry V. Levin <ldv@altlinux.org>
34220 This change complements commit v4.10-566-gbab4ef4.
34224 2015-12-11 Dmitry V. Levin <ldv@altlinux.org>
34228 as unsigned, to avoid potential sign extension bugs.
34230 This also fixes --enable-gcc-Werror build.
34233 from int to uint32_t.
34235 Reported-by: Sergey Bolshakov <sbolshakov@altlinux.org>
34237 2015-12-10 Dmitry V. Levin <ldv@altlinux.org>
34246 x86_64: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.12, 3.11,
34247 3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
34248 i386: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.11,
34249 3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
34250 aarch64: 4.4-rc
34252 arm eabi: 4.4-rc, 4.2, 4.1
34257 ppc64: 3.10-rhel, 2.6.32-rhel
34264 The only platform which is known at this moment to fail the test
34265 is CentOS-5 provided by OBS. On x86_64 instance it fails with
34269 So this is a real platform bug that is not likely to be worked around
34275 * tests/Makefile.am (AM_CPPFLAGS): Add -I$(builddir).
34283 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34289 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34298 SYS_FUNC_NAME macro temporarily redirected to printargs.
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
34311 be personality 1, to follow the traditional layout used for other
34316 [AARCH64 && HAVE_M32_MPERS]: Rename PERSONALITY1_* to PERSONALITY0_*.
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
34337 from fadvise64 to fadvise64_64.
34338 * linux/mips/syscallent-n64.h [5215]: Rename from "fadvise64_64"
34339 to "fadvise64"
34340 * linux/mips/syscallent-o32.h [4254]: Likewise.
34358 * linux/avr32/syscallent.h [0]: Rename from setup to restart_syscall.
34363 to "atomic_cmpxchg_32".
34367 to "sched_set_affinity".
34368 [161]: Rename "sched_getaffinity" to "sched_get_affinity".
34371 * linux/powerpc/syscallent.h [201]: Rename "MOL" to "multiplexer".
34372 [225]: Rename "tux" to "tuxcall".
34373 [256]: Rename "debug_setcontext" to "sys_debug_setcontext".
34378 [100]: Rename "osf_getpriority" to "getpriority".
34379 [255]: Rename "osf_subsysinfo" to "osf_subsys_info".
34380 [303]: Rename "adjtimex32" to "old_adjtimex".
34381 [319]: Rename "sysctl" to "_sysctl".
34384 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34387 Change syscall names to match kernel __NR_* constants.
34389 * linux/avr32/syscallent.h [90]: Rename "mmap" to "mmap2".
34390 * linux/bfin/syscallent.h [90]: Rename "old_mmap" to "mmap".
34399 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34402 Change syscall names to match kernel __NR_* constants.
34405 * linux/arm/syscallent.h [82]: Rename "oldselect" to "select".
34406 [142]: Rename "select" to "_newselect".
34415 * linux/hppa/syscallent.h [142]: Rename "select" to "_newselect".
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.
34419 * linux/s390/syscallent.h [142]: Rename "select" to "_newselect".
34420 * linux/sparc/syscallent.h [230]: Rename "select" to "_newselect".
34421 * tests/oldselect.test: Rename oldselect to select. Convert
34422 from match_grep to match_diff.
34434 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34437 Change syscall names to match kernel __NR_* constants.
34439 * linux/avr32/syscallent.h [1]: Rename "_exit" to "exit".
34446 * linux/x32/syscallent.h [60]: Rename "_exit" to "exit".
34449 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34452 Change syscall names to match kernel __NR_* constants.
34454 * linux/alpha/syscallent.h [349]: Rename "pread" to "pread64".
34455 [350]: Rename "pwrite" to "pwrite64".
34456 * linux/ia64/syscallent.h [1148]: Rename "pread" to "pread64".
34457 [1149]: Rename "pwrite" to "pwrite64".
34458 * linux/sh/syscallent.h [180]: Rename "pread" to "pread64".
34459 [181]: Rename "pwrite" to "pwrite64".
34461 * linux/x32/syscallent.h [17]: Rename "pread" to "pread64".
34462 [18]: Rename "pwrite" to "pwrite64".
34465 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34472 * linux/ia64/syscallent.h (1125): Set to remap_file_pages.
34478 build: add -D_FILE_OFFSET_BITS=64 to _CPPFLAGS instead of _CFLAGS.
34479 * tests/Makefile.am (fstat64_CFLAGS): Rename to fstat64_CPPFLAGS,
34481 (fstatat64_CFLAGS): Rename to fstatat64_CPPFLAGS,
34483 (ftruncate64_CFLAGS): Rename to ftruncate64_CPPFLAGS,
34485 (lstat64_CFLAGS): Rename to lstat64_CPPFLAGS,
34487 (mmap64_CFLAGS): Rename to mmap64_CPPFLAGS,
34489 (newfstatat_CFLAGS): Rename to newfstatat_CPPFLAGS,
34491 (stat64_CFLAGS): Rename to stat64_CPPFLAGS,
34493 (statfs_CFLAGS): Rename to statfs_CPPFLAGS,
34495 (truncate64_CFLAGS): Rename to truncate64_CPPFLAGS,
34497 (uio_CFLAGS): Rename to uio_CPPFLAGS,
34500 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34502 Move x32 <asm/stat.h> replacement to x32 specific directory.
34503 As tests-m*32/Makefile.am files now refer to proper arch specific
34504 directories, it's possible to relocate x32 <asm/stat.h> replacement
34505 to its arch specific directory.
34511 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34513 build: set arch specific -m switches in tests-m*32/Makefile.am files properly
34516 * bootstrap: In tests-m32/Makefile.am and tests-mx32/Makefile.am,
34517 add -m32 and -mx32, respectively, to ARCH_MFLAGS instead of AM_CFLAGS.
34519 build: initialize ARCH variable in tests-m*32/Makefile.am files properly
34520 * configure.ac (arch_m32): Set to sparc on sparc64, powerpc on
34522 (arch_mx32): Set to x32 on x86_64, $arch in other cases.
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>
34539 * linux/avr32/syscallent.h: Rename umount to umount2.
34545 2015-12-07 Dmitry V. Levin <ldv@altlinux.org>
34552 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34571 the latter is more prone to return value truncation.
34577 more likely to contain different values.
34579 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34582 As times syscall returns kernel's long value, it has to be printed as
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
34596 cannot be bound to INADDR_LOOPBACK.
34598 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34624 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34629 2015-12-04 Elvira Khabirova <lineprinter0@gmail.com>
34634 * linux/32/syscallent.h: Change parser of fcntl64 to SEN(fcntl64).
34642 * linux/mips/syscallent-n32.h: Likewise.
34643 * linux/mips/syscallent-o32.h: Likewise.
34651 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34653 travis-ci: add build matrix.
34658 * tests/stat32-v.test: Remove.
34660 * tests/stat64-v.test: Remove.
34664 (stat_CFLAGS): Rename to stat64_CFLAGS.
34665 (TESTS): Replace stat32-v.test and stat64-v.test with stat64.test.
34692 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34695 Parametrize code from fstatat.c to support <asm/stat.h>
34696 as an alternative to <sys/stat.h> and move it to a separate file.
34704 * tests/fstatat64.c (FSTATAT_NAME): Change to TEST_SYSCALL_NAME.
34707 2015-12-04 Gabriel Laskar <gabriel@lse.epita.fr>
34709 ioctl: allow to stop decoding number.
34712 return of ioctl_decode_command_number() disables further calls to
34722 Suggested-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
34724 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34735 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34738 On x32, tcp->ext_arg is not initialized for i386 personality,
34739 so tcp->u_arg has to be used instead.
34743 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
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
34768 /proc to match pathnames. As this test does not need descriptor
34773 2015-12-02 Dmitry V. Levin <ldv@altlinux.org>
34788 2015-12-01 Dmitry V. Levin <ldv@altlinux.org>
34791 * linux/alpha/syscallent.h (newfstatat): Change sys_name to fstatat64.
34828 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34834 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34836 syscall.c: move inclusion of arch specific files to the end of file.
34837 Move inclusion of arch specific files that define static functions to
34845 to the end of file.
34847 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34849 x86_64: change getregs_old to forward ptrace return code.
34850 * linux/x86_64/getregs_old.c (getregs_old): Change to return ptrace
34855 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34864 uses these macros to print the instruction pointer.
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
34947 with get_syscall_args temporarily defined to arm_get_syscall_args.
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
35008 temporarily defined to arm_get_error.
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
35063 to i386_arch_sigreturn.
35067 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
35069 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35073 * travis-ci.sh: Likewise.
35075 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35078 * tests/net-yy.test: Remove "$LOG"-connect and "$LOG"-accept.
35079 * tests/unix-yy.test: Likewise.
35081 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35083 tests: skip stat32-v.test on x32.
35084 Explicitly skip 32-bit stat test on x32 even if libc pretends
35085 to support it.
35089 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35092 * tests/ipc_msgbuf.c: Include "config.h" and "kernel_types.h".
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>
35144 the first argument has to be actual output,
35145 the second argument has to be expected output.
35154 * tests/inet-cmsg.test: Likewise.
35174 * tests/times-fail.test: Likewise.
35184 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35188 that has 32-bit syscall arguments.
35193 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35197 that has 32-bit syscall arguments.
35201 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35209 variable number of arguments to silence a compilation warning.
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>
35229 Convert parsers of flock structures to new mpers infrastructure.
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
35295 to probe the headers from the kernel and use them when they are
35298 It might make more sense to never rely on the C library's headers as
35300 apps and the C library match that what is passed to the kernel.
35308 Fallback to <linux/msg.h> when available.
35313 * ipc_shm.c: Fallback to <linux/shm.h> when available.
35316 * print_mq_attr.c: Fallback to <linux/mqueue.h> when available.
35318 2015-11-25 Dmitry V. Levin <ldv@altlinux.org>
35321 Thanks to Jian Zhen for donation of https://github.com/strace/ and
35326 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35330 to SEN(getpmsg).
35331 (putpmsg): Change SEN(printargs) to SEN(putpmsg).
35332 * linux/mips/syscallent-n32.h: Likewise.
35333 * linux/mips/syscallent-n64.h: Likewise.
35334 * linux/mips/syscallent-o32.h: Likewise.
35335 * linux/arm/syscallent.h (getpmsg, putpmsg): Set sys_flags to TN.
35347 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35352 * linux/dummy.h(getpmsg, putpmsg): Move to the list of deprecated
35358 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35362 and strace does not support those kernels, there is no use to keep this
35373 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35376 * linux/alpha/syscallent.h (sysfs): Change nargs from 5 to 3.
35378 * linux/mips/syscallent-n32.h (sysfs): Likewise.
35379 * linux/mips/syscallent-n64.h (sysfs): Likewise.
35381 Move sysfs syscall to deprecated category.
35382 * linux/dummy.h (sys_sysfs): Move to the list of deprecated syscalls.
35385 * linux/alpha/syscallent.h (bdflush): Change nargs from 0 to 2.
35401 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
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>
35473 Do not pass sizeof(struct cmsghdr) to every cmsg printer.
35475 * net.c (printcmsghdr): Pass pointer to cmsg_data and length
35476 of cmsg_data to print_cmsg_type_data.
35477 (print_cmsg_type_data): Update prototype. Pass pointer to cmsg_data
35478 and length of cmsg_data to cmsg printers.
35481 2015-11-21 Dmitry V. Levin <ldv@altlinux.org>
35483 net: factor out address printing code to a separate function.
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,
35508 Fallback definitions of constants provided by xlat files
35518 * xlat/gen.sh (cond_xlat): Move printing of fallback definitions ...
35527 2015-11-20 Dmitry V. Levin <ldv@altlinux.org>
35541 2015-11-19 Dmitry V. Levin <ldv@altlinux.org>
35556 Rename direnttypes to dirent_types.
35558 * dirent64.c: ... here. Rename direnttypes to dirent_types.
35561 * xlat/direnttypes.in: Rename to xlat/dirent_types.in.
35563 2015-11-19 Gabriel Laskar <gabriel@lse.epita.fr>
35571 * tests/getdents.awk: Update regexps to match fixed output.
35574 2015-11-19 Dmitry V. Levin <ldv@altlinux.org>
35576 printcmsghdr: move type and data decoders to a separate function.
35578 to return void. Move printing of struct cmsghdr closing '}' ...
35579 (printcmsghdr): ... here. Move type and data decoders to ...
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>
35597 net.c: move fallback definition of SCM_SECURITY to xlat/
35598 * net.c: Move fallback definition of SCM_SECURITY ...
35601 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35637 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35641 v4.3-rc7-1-gd305c47.
35645 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35648 Starting with linux commit v4.3-rc3-33-ga342361, powerpc has
35649 direct sysv ipc syscalls in addition to traditional ipc syscall.
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>
35679 Tweak sprintflags behaviour to match printflags.
35682 to sprintflags is also zero.
35684 2015-11-16 Mike Frysinger <vapier@gentoo.org>
35687 If the set of headers are unable to produce a valid list, printflags
35688 will try to pass NULL to tprints which crashes. Add a sanity check
35691 * util.c (printflags): Check xlat->str is not NULL.
35693 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35695 mpers: forward mpers_DEFS to mpers.sh.
35696 mpers_DEFS has to be forwarded to mpers.sh so that config.h would be
35699 * Makefile.am (mpers-m%.stamp): Add the whole $(mpers_sh_opts) set of
35700 options to mpers.sh's CPPFLAGS.
35702 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35707 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35711 v4.0-rc4-67-g529d235.
35715 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35718 Move socket subcalls further down the table to make room
35721 * linux/sparc/syscallent.h (SYS_socket_subcall): Raise from 353 to 400.
35723 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35726 Starting with linux commit v4.3-rc3-1-g5b3f33e, m68k has direct
35727 socket syscalls in addition to traditional socketcall syscall.
35733 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35736 Starting with linux commit v4.2-rc1-64-g9dea5dc, x86 has direct
35737 socket syscalls in addition to traditional socketcall syscall.
35743 2015-11-11 Heiko Carstens <heiko.carstens@de.ibm.com>
35749 2015-11-07 Dmitry V. Levin <ldv@altlinux.org>
35758 While it appears to work with GNU make, it has to be fixed nevertheless.
35760 * Makefile.am (m%_defs.h): Rename to m%_type_defs.h.
35761 (mpers_m32_targets): Rename m32_defs.h to m32_type_defs.h.
35762 (mpers_mx32_targets): Rename mx32_defs.h to mx32_type_defs.h.
35763 * mpers_type.h: Rename m32_defs.h to m32_type_defs.h,
35764 mx32_defs.h to mx32_type_defs.h.
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>
35776 desc.c: move parser of fcntl syscall to a separate file.
35779 * desc.c (printflock64, printflock, SYS_FUNC(fcntl)): Move to fcntl.c.
35781 desc.c: move parser of flock syscall to a separate file.
35784 * desc.c (SYS_FUNC(flock)): Move to flock.c.
35786 2015-10-08 Dmitry V. Levin <ldv@altlinux.org>
35793 Reported-by: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
35795 2015-10-01 Gabriel Laskar <gabriel@lse.epita.fr>
35797 Fix make -j builds.
35799 original files where the type definition was done. This causes to
35803 This patch add an explicit dependency to printers.h for the mpers
35806 * Makefile.am (mpers-m%.stamp): Add printers.h to order-only
35809 2015-09-29 Mike Frysinger <vapier@gentoo.org>
35811 mpers: fix shell code to conform better to POSIX.
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>
35833 2015-09-23 Dmitry V. Levin <ldv@altlinux.org>
35835 tests: convert ioctl.test from match_grep to match_diff.
35841 2015-09-20 Dmitry V. Levin <ldv@altlinux.org>
35843 Convert parser of seccomp filter program to new mpers infrastructure.
35850 2015-09-19 Dmitry V. Levin <ldv@altlinux.org>
35859 tests: add one more case to select.test.
35874 Add some padding to the timeval structure.
35876 tests: add one more case to pselect6.test.
35885 Add some padding to the timespec structure.
35887 Convert another parser of struct timeval to new mpers infrastructure.
35895 to decode_select.
35897 to decode_select.
35898 (pselect6): Pass print_timespec and sprint_timespec to decode_select.
35902 Convert another parser of struct timespec to new mpers infrastructure.
35910 tests: add another case to pselect6 test.
35914 Use it to check how ERESTARTNOHAND is printed.
35919 to print struct timezone.
35921 instead of print_timeval32 to print struct timezone.
35928 Convert parser of struct timeval to new mpers infrastructure.
35940 Convert parser of struct timespec to new mpers infrastructure.
35967 Add helper functions to clear/restore syserror.
35988 * tests/restart_syscall.test: Update to use restart_syscall.
35994 Properly initialize siginfo_t object passed to print_stopped function.
35996 to ptrace(PTRACE_GETSIGINFO) because the latter may initialize only a
36006 Convert parser of struct itimerval to new mpers infrastructure.
36024 Convert parser of struct itimerspec to new mpers infrastructure.
36029 2015-09-17 Dmitry V. Levin <ldv@altlinux.org>
36051 time.c: move parser of time syscall to print_time.c.
36066 Convert parser of struct timex to new mpers infrastructure.
36073 (tprint_timex): Rename to print_timex. Mpersify it.
36074 * time.c (do_adjtimex): Rename tprint_timex to print_timex.
36081 Move parser of struct timex to a separate file.
36084 * time.c (tprint_timex32, tprint_timex): Move to print_timex.c.
36097 2015-09-16 Dmitry V. Levin <ldv@altlinux.org>
36099 Convert parser of struct sigevent to new mpers infrastructure.
36105 (printsigevent): Rename to print_sigevent. Mpersify it.
36106 * mq.c (sys_mq_notify): Rename printsigevent to print_sigevent.
36109 Move parser of struct sigevent to a separate file.
36112 * time.c (printsigevent32, printsigevent): Move to print_sigevent.c.
36114 time.c: move fallback definitions of SIGEV_* values to xlat/
36115 * time.c: Move fallback definitions of SIGEV_* values ...
36121 * mpers_type.h [!IN_MPERS] (MPERS_DEFS): Change to "native_defs.h".
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
36160 2015-09-14 Dmitry V. Levin <ldv@altlinux.org>
36162 Rename umove_long_or_printaddr to umove_ulong_or_printaddr.
36163 Rename the recently added function to reflect what kind of data type
36166 * defs.h (umove_long_or_printaddr): Rename to umove_ulong_or_printaddr,
36167 chage 3rd argument to unsigned long *.
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
36257 checks fail. As we want to support multiple personalities despite of
36263 * Makefile.am (DISTCLEANFILES): Add gnu/stubs-32.h and gnu/stubs-x32.h.
36265 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36267 tests: add times-fail.test.
36268 * tests/times-fail.c: New file.
36269 * tests/times-fail.test: New test.
36270 * tests/Makefile.am (check_PROGRAMS): Add times-fail.
36271 (TESTS): Add times-fail.test.
36272 * tests/.gitignore: Add times-fail.
36274 2015-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
36284 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36293 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36302 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36311 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36321 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36331 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36342 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36354 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36363 (mq_LDADD): Add -lrt.
36366 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36377 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36388 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36402 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36411 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36426 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36435 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36444 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36454 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36468 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36471 Add a subsystem for semi-automatical definition of how parsers should
36472 work with personality-dependent (mpers) types of tracee's data. Create
36484 would be to compile one source code into multiple parsers, differing
36487 To get a definition of a given type for nonnative personality
36489 is being compiled for this personality (using -m32 or -mx32 compiler
36492 into a corresponding header file. Resulting headers are being used to
36495 In addition to syscall parsers, there can occur a need to create mpers
36506 generate_mpers_am.sh is called by bootstrap to find the files
36513 headers for nonnative personalities. Pointers to printers are
36517 * README-mpers: New README explaining how to use mpers support.
36525 (strace_CPPFLAGS, strace_LDFLAGS, strace_LDADD): Move to the beginning
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,
36552 Add fallback definitions of
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
36580 tests: convert getrandom.test from match_awk to match_diff.
36586 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36588 tests: convert select.test from match_awk to match_diff.
36594 tests: convert several tests from match_grep to match_diff.
36606 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36610 output, the second argument - the file with actual output.
36617 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36619 build: fix -I options.
36621 * Makefile.am (AM_CPPFLAGS): Append -I$(builddir) and -I$(srcdir).
36624 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36626 aio: rewrite from libaio.h to linux/aio_abi.h.
36639 * strace.spec (BuildRequires): Remove libaio-devel.
36644 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36647 Introduce a new helper function to fetch tracee's long integers
36648 and use it to fix multiple personalities support in io_submit parser.
36652 * aio.c (sys_io_submit): Use it to fetch tracee's pointers.
36659 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36668 (main): Replace AT_FDCWD with -100.
36673 2015-08-26 Mike Frysinger <vapier@gentoo.org>
36678 kernel unfortunately does not do this -- it allows for different opts
36682 To support this, extend the printxval function to take multiple sets of
36698 (printxval): Change to a define.
36701 and SOL_IPV6 decoding to use printxvals, and use is_getsockopt to pass more
36705 * util.c (printxval): Rename to ...
36706 (printxvals): ... this. Rewrite to be varargs based.
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>
36756 When msgrcv syscall is an ipc subcall, msgp (pointer to struct msgbuf)
36764 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36767 In preparation for upcoming mpers-related changes,
36781 sys_mq_getsetattr): Move to mq.c.
36783 to ipc_msg.c.
36784 (sys_msgctl): Move to ipc_msgctl.c.
36786 sys_semget, syssemctl): Move to ipc_sem.c.
36787 (sys_shmget, sys_shmat, sys_shmdt): Move to ipc_shm.c.
36788 (sys_shmctl): Move to ipc_shmctl.c.
36789 (printmqattr): Move to print_mq_attr.c.
36790 (tprint_msgbuf): Move to print_msgbuf.c.
36791 (IPC_64, PRINTCTL): Move to ipc_defs.h.
36797 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36801 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36812 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36815 When sendfile is called with a valid pointer to a file offset variable,
36818 * sendfile.c (sys_sendfile, sys_sendfile64): Print tcp->u_arg[2]
36821 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36823 io.c: move sendfile parsers to a separate file.
36826 * io.c (sys_sendfile, sys_sendfile64): Move to sendfile.c
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>
36864 2015-08-18 Elvira Khabirova <lineprinter0@gmail.com>
36869 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36872 Replace ambiguous printnum_long that used to fetch native long integers
36897 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36909 2015-08-18 Mike Frysinger <vapier@gentoo.org>
36912 When receiving SIGSYS, the si_syscall & si_arch fields are set to known
36921 (trace_syscall_entering): Change undefined_scno_name to syscall_name.
36925 2015-08-18 Elvira Khabirova <lineprinter0@gmail.com>
36931 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36933 resource.c: move times parser to a separate file.
36936 * resource.c (sys_times): Move to times.c.
36938 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36946 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36955 2015-08-15 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
36969 2015-08-09 Dmitry V. Levin <ldv@altlinux.org>
36987 2015-08-03 Dmitry V. Levin <ldv@altlinux.org>
37008 signal.c: move signalfd parsers to a separate file.
37011 * signal.c (do_signalfd, sys_signalfd, sys_signalfd4): Move to signalfd.c
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>
37050 * xlat/epollflags.in: Remove EPOLL_NONBLOCK, provide fallback definition
37060 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37062 desc.c: move epoll parsers to a separate file.
37067 Move to epoll.c.
37085 * eventfd.c (do_eventfd): Explicitly cast initial value to unsigned int.
37090 desc.c: move eventfd parsers to a separate file.
37093 * desc.c (do_eventfd, sys_eventfd, sys_eventfd2): Move to eventfd.c.
37097 provide fallback definitions.
37099 desc.c: move perf_event_open parser to a separate file.
37102 * desc.c (sys_perf_event_open): Move to perf.c.
37104 2015-08-01 Elvira Khabirova <lineprinter0@gmail.com>
37111 2015-08-01 Elvira Khabirova <lineprinter0@gmail.com>
37113 ipc.c: move fallback definitions of msg, sem, and shm constants to xlat/
37114 * ipc.c: Move MSG_STAT and MSG_INFO definitions to xlat/msgctl_flags.in.
37115 Move SHM_STAT and SHM_INFO definitions to xlat/shmctl_flags.in.
37116 Move SEM_STAT and SEM_INFO definitions to xlat/semctl_flags.in.
37118 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37126 * tests/ppoll-v.expected: Likewise.
37128 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37133 2015-07-30 Dmitry V. Levin <ldv@altlinux.org>
37141 * tests/ppoll-v.expected: Likewise.
37145 (EXTRA_DIST): Add ppoll.expected and ppoll-v.expected.
37149 * poll.c (sys_poll): Explicitly cast timeout argument to int.
37151 stream.c: move poll and ppoll parsers to a separate file.
37154 * stream.c (decode_poll, sys_poll, sys_ppoll): Move to poll.c.
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.
37178 * desc.c (sys_oldselect): Rename args to long_args.
37179 [SIZEOF_LONG == 4] Alias oldselect_args to long_args.
37180 [SIZEOF_LONG != 4] Introduce oldselect_args to fetch oldselect args.
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"…
37204 SYS_FUNC(recvfrom) passes address of fromlen, not fromlen, to printsock():
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.
37212 Android kernels have a prctl to name VMAs.
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>
37256 2015-07-28 Elliott Hughes <enh@google.com>
37263 2015-07-27 Dmitry V. Levin <ldv@altlinux.org>
37276 * tests/execveat-v.expected: Likewise.
37280 (EXTRA_DIST): Add execveat.expected and execveat-v.expected.
37288 * tests/execve-v.expected: Likewise.
37292 (EXTRA_DIST): Add execve.expected and execve-v.expected.
37311 2015-07-25 Dmitry V. Levin <ldv@altlinux.org>
37314 The use of printargs introduced by commit v4.10-179-g210a6b6 is wrong:
37320 2015-07-23 Dmitry V. Levin <ldv@altlinux.org>
37322 Macroize -m32/-mx32 configure checks.
37329 2015-07-22 Dmitry V. Levin <ldv@altlinux.org>
37335 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37363 * linux/mips/syscallent-n32.h (semop): Likewise.
37364 * linux/mips/syscallent-n64.h (semop): Likewise.
37376 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37378 tests: use -lpthread instead of -pthread.
37379 On some obscure systems, -lpthread is more likely to work than -pthread.
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>
37445 Change to traditional structure output format.
37468 * chmod.c (decode_chmod): Change to return void.
37475 Alias sys_epoll_create to printargs_ld.
37477 * linux/dummy.h (sys_epoll_create): Alias to printargs_ld.
37583 (tprint_sembuf): Rename to tprint_sembuf_array.
37605 keyctl_setperm_key): Change to return void.
37637 * mem.c (print_mmap): Change to return void.
37653 * mknod.c (decode_mknod): Change to return void.
37664 Alias sys_connect to sys_bind.
37665 * linux/dummy.h (sys_connect): Alias to sys_bind.
37681 2015-07-18 Elvira Khabirova <lineprinter0@gmail.com>
37693 * bootstrap: Delete tests-m32 and tests-mx32 directories
37696 2015-07-18 Dmitry V. Levin <ldv@altlinux.org>
37710 resource.c: move printrusage and printrusage32 to a separate file.
37714 to printrusage.c.
37768 Define to print_rlimit64.
37783 2015-07-17 Dmitry V. Levin <ldv@altlinux.org>
37809 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37821 swapon.c: move fallback definitions of swap options to xlat/
37883 * utimes.c (decode_utimes): Change to return void.
37888 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37893 * tests/uid.awk (BEGIN): Update getuid regexp to match both getuid
37896 to __NR_getuid.
37900 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37910 (sys_setgroups, sys_getgroups): Add const qualifier to local variables
37936 2015-07-15 Dmitry V. Levin <ldv@altlinux.org>
37940 to printrusage.
37944 wait: move fallback definitions of wait options to xlat/
37957 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37977 to printstr.
37986 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37994 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37996 Change printnum_* printers to honor syserror.
37997 With this change, printnum_* printers will not attempt to fetch data
37998 in case of exiting(tcp) && syserror(tcp).
38006 2015-07-13 Dmitry V. Levin <ldv@altlinux.org>
38015 2015-07-12 Elvira Khabirova <lineprinter0@gmail.com>
38017 Change comparisons with function pointers to comparisons with SENs.
38019 pointers to a single SEN based switch.
38021 with function pointers to comparisons with SENs.
38034 (SEN): Use it to prepend syscall entry number.
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>
38115 (print_rtc): Rename to print_rtc_time.
38125 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38128 Add functions to fetch and print pairs of integer types.
38129 Note that these printers do not attempt to fetch data
38130 in case of exiting(tcp) && syserror(tcp).
38140 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38143 Add printnum_short and printnum_int64 in addition to already existing
38151 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38158 is not going to be fetched (in case of exiting(tcp) && syserror(tcp))
38167 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38170 Implement a method for "on entering" parsers to return
38171 "done with decoding" information to their callers.
38174 with RVAL_DECODED bit set, record this value in tcp->sys_func_rval
38179 SYS_FUNC(ioctl) that the decoding is finished but fallback printing of
38181 that the decoding is finished and no fallback decoding is needed.
38185 * syscall.c (trace_syscall_entering): Initialize tcp->sys_func_rval
38187 (trace_syscall_exiting): Use tcp->sys_func_rval instead of calling
38188 tcp->s_ent->sys_func when the former has RVAL_DECODED flag set.
38189 Reset tcp->sys_func_rval along with clearing TCB_INSYSCALL flag.
38191 Print ioctl argument iff RVAL_DECODED is set and fallback decoding
38194 2015-07-05 Dmitry V. Levin <ldv@altlinux.org>
38196 time.c: move rtc ioctl parser to a separate file.
38199 * time.c (print_rtc, rtc_ioctl): Move to rtc.c.
38202 * term.c: Rename TCLFLSH to TCFLSH.
38208 2015-07-02 Dmitry V. Levin <ldv@altlinux.org>
38211 * ioctl.c (ioctl_decode_command_number): Change 1st arg to struct tcb*.
38220 ioctl_decode_command_number): Rename "arg" to "code".
38222 Move ioctl syscall parser to ioctl.c.
38233 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38238 * tests/filter-unavailable.c: New file.
38239 * tests/filter-unavailable.expected: Likewise.
38240 * tests/filter-unavailable.test: New test.
38241 * tests/Makefile.am (check_PROGRAMS): Add filter-unavailable.
38242 (filter_unavailable_LDFLAGS): Add -pthread.
38243 (TESTS): Add filter-unavailable.test.
38244 (EXTRA_DIST): Add filter-unavailable.expected.
38245 * tests/.gitignore: Add filter-unavailable.
38247 Reported-by: Bryan Matsuo <bryan.matsuo@gmail.com>
38249 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38251 Fix -qq option in conjunction with -o option.
38252 This change makes -qq option work in conjunction with -o option,
38253 thus complementing commit v4.7-222-g01997cf.
38257 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38271 2015-06-17 Dmitry V. Levin <ldv@altlinux.org>
38276 mips n32 where the only available stat syscall is 64-bit but at the same
38277 time struct stat defined by <asm/stat.h> is 32-bit.
38281 2015-06-17 Dmitry V. Levin <ldv@altlinux.org>
38283 Consistenly use #ifdef to check for AC_DEFINE'd macros.
38293 xattr: move fallback definitions of xattr flags to xlat/
38298 link: move fallback definitions of AT_* constants to xlat/
38302 net: move fallback definitions of SOL_* constants to xlat/
38306 futex: move fallback definitions of futex constants to xlat/
38315 clone: move definitions of cloning flags to xlat/
38319 2015-06-16 Dmitry V. Levin <ldv@altlinux.org>
38325 mount: update parser to match kernel behaviour.
38334 2015-06-08 Dmitry V. Levin <ldv@altlinux.org>
38339 (print_setsockopt): Use them to decode IP_ADD_MEMBERSHIP,
38352 2015-06-08 Dmitry V. Levin <ldv@altlinux.org>
38357 2015-06-05 Dmitry V. Levin <ldv@altlinux.org>
38363 2015-05-25 Dmitry V. Levin <ldv@altlinux.org>
38380 * tests/detach-stopped.test: Likewise.
38383 * bjm.c (sys_query_module): Use error_msg to print OOM diagnostics.
38386 2015-05-25 Dmitry V. Levin <ldv@altlinux.org>
38389 Introduce wrappers to the following functions that do memory allocation:
38392 This commit is a follow-up to the related discussions in strace-devel ML:
38405 * strace.c (die_out_of_memory): Move to xmalloc.c.
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.
38427 * linux/32/ioctls_inc.h: Rename to ...
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>.
38502 2015-04-14 Dmitry V. Levin <ldv@altlinux.org>
38511 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38519 (TEST_LOG_COMPILER): Change to "env".
38525 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38528 Introduce SYS_FUNC macro to declare and define all syscall parsers.
38534 [NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers.
38536 * linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs
38538 * *.c: Use SYS_FUNC to define syscall parsers.
38540 2015-04-07 Denys Vlasenko <dvlasenk@redhat.com>
38545 $ sleep 2 & sleep 1; ./strace -erestart_syscall -p $!
38552 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38562 2015-04-06 Dmitry V. Levin <ldv@altlinux.org>
38566 page size is too big for GNU grep. Rewrite the test to use diff
38570 * tests/umovestr2.c (main): Convert output from regexp to plain text.
38572 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38578 umovestr: read chunks of memory up to pagesize at a time.
38584 (umovestr): Read chunks up to pagesize at a time.
38586 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38600 Reported-by: Josef T. Burger <bolo@cs.wisc.edu>
38602 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38606 control rules wrt traced processes: process_vm_readv() is more likely to
38611 fall back to ptrace(PTRACE_PEEKDATA).
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>
38631 or going to be used soon.
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>
38662 signal.c: move siginfo_t parsers to a separate file.
38665 * defs.h (printsiginfo): Change second argument's type from int to bool.
38667 Move inclusion of xlat/sig*_codes.h files to printsiginfo.c
38668 (printsigsource, printsigval, printsiginfo_at): Move to printsiginfo.c.
38669 (printsiginfo): Change second argument's type from int to bool,
38670 split, and move to printsiginfo.c.
38686 2015-03-26 Dmitry V. Levin <ldv@altlinux.org>
38688 signal.c: move sigaltstack parser to a separate file.
38691 * signal.c (print_stack_t, sys_sigaltstack): Move to sigaltstack.c.
38694 2015-03-25 Denys Vlasenko <dvlasenk@redhat.com>
38698 sparc: rename personality 2 files to personality 1.
38699 Run-tested in qemu 32-bit sparc.
38701 2015-03-25 Denys Vlasenko <dvlasenk@redhat.com>
38704 Personality 1 for sparc and sparc64 appears to be an old attempt
38705 to support stracing Solaris binaries.
38710 This change deletes personality 1. Now sparc is an one-personality
38711 arch, and sparc64 is a two-personality one.
38713 For clarity, pure renaming of personality 2 files to personality 1 for sparc64
38714 is performed in the next commit - this prevents a state where syscallent1.h
38715 seems to indergo a lot of changes, where in fact in is deleted, and then
38720 2015-03-24 Denys Vlasenko <dvlasenk@redhat.com>
38722 qemu_multiarch_testing/*: make it easier to do debug in sandboxes.
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,
38765 Do not apply the check to SCNO_IN_RANGE syscalls.
38767 Extend diagnostics and move it to debug level.
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
38782 to linux/*/arch_sigreturn.c, include "arch_sigreturn.c".
38787 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38790 Split code that use arch-specific registers to separate arch files.
38793 to linux/*/arch_regs.c files.
38794 [HAVE_GETRVAL2] (getrval2): Move arch-specific code
38795 to linux/*/arch_getrval2.c, include "arch_getrval2.c".
38796 (print_pc): Move arch-specific code to linux/*/print_pc.c files,
38798 [X86_64] (x86_64_getregs_old): Rename to getregs_old, move to
38800 [POWERPC] (powerpc_getregs_old): Rename to getregs_old, move to
38803 (get_scno): Move arch-specific code to linux/*/get_scno.c,
38805 (get_syscall_args): Move arch-specific code
38806 to linux/*/get_syscall_args.c, include "get_syscall_args.c".
38807 (get_error): Move arch-specific code to linux/*/get_error.c,
38809 (get_syscall_result): Move arch-specific code
38810 to linux/*/get_syscall_result.c, include "get_syscall_result.c".
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>
38820 Move get_regs error check from trace_syscall_entering to get_scno.
38821 Starting with commit v4.10-25-g8497b62, get_scno() can be called outside
38823 trace_syscall_entering() to get_scno().
38828 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38850 2015-03-22 Dmitry V. Levin <ldv@altlinux.org>
38856 2015-03-21 Denys Vlasenko <dvlasenk@redhat.com>
38864 Change last parameter of umoven() from char* to void*
38876 2015-03-21 Denys Vlasenko <dvlasenk@redhat.com>
38879 When signal is received, or if we have attached to a process,
38885 IOW: users want to see "resuming interrupted nanosleep"
38886 instead of "resuming interrupted call" when they attach to "sleep 999".
38889 to fetch syscall# on attach, and save it.
38891 This patch does this. It adds tcp->s_prev_ent, which is
38892 a pointer to struct_sysent of the previous syscall of this tracee.
38895 sys_restart_syscall() is made to use it when the message is generated.
38897 To similarly handle restart_syscall() *after signals*, not just
38899 in the same member (tcp->s_prev_ent).
38903 $ sleep 3 & strace -p $!
38909 2015-03-20 Dmitry V. Levin <ldv@altlinux.org>
38927 2015-03-19 Dmitry V. Levin <ldv@altlinux.org>
38936 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38939 Factor out awk code used in several tests to match.awk.
38951 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38958 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38961 According to arch/arm/kernel/sys_oabi-compat.c,
38967 [COMPAT_STATFS64_PADDED_SIZE]: Check it in addition to
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.
38980 * tests/net-fd.expected: New file.
38992 2015-03-18 Elliott Hughes <enh@google.com>
39000 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
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>
39031 * linux/aarch64/syscallent1.h: Don't override entries 277 to 1023.
39034 * tests/ipc_msg.test: Count matches to verify that all patterns match.
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.
39047 explicitly cast them to int.
39048 * tests/stat64-v.test: Test that negative time_t is decoded properly.
39050 Reported-by: Andreas Schwab <schwab@suse.de>
39052 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39062 Reported-by: Andreas Schwab <schwab@suse.de>
39064 2015-03-16 Andreas Schwab <schwab@suse.de>
39072 2015-03-16 Andreas Schwab <schwab@suse.de>
39081 2015-03-16 Andreas Schwab <schwab@suse.de>
39093 2015-03-12 Andreas Schwab <schwab@suse.de>
39096 * tests/select.awk (BEGIN): Update regexps to match both select
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.
39132 Move sigreturn/rt_sigreturn parser to a separate file.
39139 (sys_sigreturn): Move to sigreturn.c.
39141 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39143 ia64: use PTRACE_GETREGS to fetch registers.
39150 [IA64] (ia64_ia32mode): Convert to macro.
39156 s390, s390x: use PTRACE_GETREGSET to fetch registers.
39172 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39174 tests: robustify unix-yy.test.
39176 to guarantee that the child starts closing connected socket only after
39178 This guarantee seems to be necessary to reliably receive UNIX_DIAG_PEER
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>
39188 * configure.ac (ASM_SIGRTMIN): Define to SIGRTMIN from <asm/signal.h>.
39191 Use lower RT_* numbers to support pre-3.18 hppa kernels.
39194 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39203 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39209 signal.c:702:45: warning: signed and unsigned type in conditional expression [-Wsign-compare]
39213 [AARCH64] (arm_sp_ptr): Change pointer type to unsigned.
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>
39231 * test/sigreturn.c: Rewrite to ...
39238 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39242 it's more convenient to display signal mask as a syscall argument
39253 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39276 [MIPS] Use print_sigset_addr_len to print signal mask.
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>
39312 Use print_sigset_addr_len to print signal mask.
39314 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39317 This complements commit v4.9-321-gfcf7f8d.
39322 2015-03-04 Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
39324 Document that -k is available only with libunwind.
39328 * strace.1: Note that -k is available only if strace is built
39331 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39334 * debian/control (strace, strace-udeb): Add mips64 and mips64el
39335 to architecture list.
39340 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39342 debian: sync with 4.9-2 package.
39343 * debian/changelog: Sync with 4.9-2.
39346 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39348 Add arch-specific PTRACE_* constants.
39349 * xlat/ptrace_cmds.in: Add arch-specific ptrace commands.
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
39364 is passed to preadv/pwritev syscalls using two syscall arguments.
39368 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39372 instead. We don't want the testsuite failing due to kernel bugs.
39374 * tests/ipc_sem.c (main): Change 99 to 77.
39376 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39385 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39387 tests: note the kernel configs for -yy options.
39388 * tests/net-yy.test: Note CONFIG_INET_TCP_DIAG.
39389 * tests/unix-yy.test: Note CONFIG_UNIX_DIAG.
39391 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39393 alpha: fix -yy decoding.
39396 Reported-and-tested-by: Mike Frysinger <vapier@gentoo.org>
39398 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39410 instead of l and cast kernel ulong types to unsigned long long.
39412 aarch64: add -i option support.
39415 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39429 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39435 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39438 * tests/uid.c (main): Ignore uids returned by getresuid to avoid
39443 in setresuid test to match uid.c
39446 Reported-by: Mike Frysinger <vapier@gentoo.org>
39448 2015-03-01 Mike Frysinger <vapier@gentoo.org>
39457 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39463 Update generic 64-bit ioctlent from linux v3.19.
39466 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39469 Fix regression introduced by commit v4.9-9-gc3a5c01.
39474 instead of SA_RESTORER to check whether to define sa_restorer.
39476 addition to SA_RESTORER to check whether to use sa_restorer.
39478 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39482 is going to execute does not exceed PATH_MAX limit.
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>
39521 * tests/ipc_sem.test: Save output to $OUT and show it when failing.
39522 Handle exit status 99 to throw an ERROR.
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.
39549 Use the AX_PROG_CC_FOR_BUILD helper to set up build settings when cross
39553 * Makefile.am (ioctlsort_CC): Set to CC_FOR_BUILD.
39554 (ioctlsort_CPPFLAGS): Change CPPFLAGS to CPPFLAGS_FOR_BUILD.
39555 (ioctlsort_CFLAGS): Change CFLAGS to CFLAGS_FOR_BUILD.
39556 (ioctlsort_LDFLAGS): Change LDFLAGS to LDFLAGS_FOR_BUILD.
39558 (ioctlsort%): Change to ioctlsort%$(BUILD_EXEEXT). Use ioctlsort_CFLAGS.
39559 * m4/ax_prog_cc_for_build.m4: Import from the autoconf-archive package.
39561 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39564 * configure.ac: Check for dladdr in -ldl.
39566 * tests/pc.c: Include "config.h" and <dlfcn.h>.
39567 (main): Use dladdr to find the address to unmap.
39569 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39577 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39579 Rename _newselect to select.
39580 As an exception to the general rules that syscall names should match
39584 * linux/arm/syscallent.h (82): Change name to oldselect.
39585 * linux/hppa/syscallent.h (142): Change name to select.
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>
39598 (67, 68, 202, 230): Change syscall names to match __NR_* constants
39601 2015-02-26 Dmitry V. Levin <ldv@altlinux.org>
39604 * linux/s390/syscallent.h (1, 180, 181): Change syscall names to match
39608 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39612 But now with >200, trying to run them all in parallel can easily
39617 2015-02-26 Dmitry V. Levin <ldv@altlinux.org>
39621 Change syscall names to match __NR_* constants defined
39629 Change syscall names to match __NR_* constants defined in
39653 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39661 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39665 the syscall table. getresgid was wired to the wrong output while the other
39666 two were wired up to printargs instead of the real printer.
39668 * linux/ia64/syscallent.h: Connect getresuid to sys_getresuid, getresgid to
39669 sys_getresgid, and setresgid to sys_setresgid.
39671 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39675 32bit apps, so we need to enable the 16bit uid parsers for it.
39677 * defs.h (NEED_UID16_PARSERS): Define to 1 for IA64.
39678 * linux/ia64/syscallent.h: Undefine sys_stime to avoid redefine warnings.
39680 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39684 are ints or longs which makes printfs annoying. Lets cast them to the
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.
39715 (syscall_trap_sig): Set to (SIGTRAP | 0x80).
39716 (ptrace_setoptions): Set to (PTRACE_O_TRACESYSGOOD | PTRACE_O_TRACEEXEC).
39735 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39740 * tests/pc.test: Update regexps to take CLD_DUMPED child process
39743 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39754 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39763 to (unsigned long long).
39764 * v4l2.c (v4l2_ioctl): Likewise. Cast __s64 type to (long long).
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>
39804 Change errnoent.h files to use designated initializers.
39805 * signal.c (printsiginfo): Allow elements of errnoent array to be zero.
39839 2015-02-22 Dmitry V. Levin <ldv@altlinux.org>
39846 * evdev.c (keycode_V2_ioctl): Use evdev_keycode to print
39852 * evdev.c (SYN_MAX): Add fallback definition.
39860 2015-02-22 Etienne Gemsa <etienne.gemsa@lse.epita.fr>
39884 2015-02-22 Dmitry V. Levin <ldv@altlinux.org>
39888 print_exited): Remove "const" qualifier from status variable to
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>
39928 * xlat/kexec_flags.in: Rename to kexec_load_flags.in, add default
39945 seccomp: fix fallback definitions of some SECCOMP_* constants.
39947 SECCOMP_FILTER_FLAG_TSYNC): Remove fallback definitions.
39951 2015-02-19 Dmitry V. Levin <ldv@altlinux.org>
39954 Linux kernel used to guarantee that the largest errno value will not
39956 v3.4-rc2-13-gacf3b2c71ed20c53dc69826683417703c2a88059 inadvertently
39958 v3.19-8275-g580c57f1076872ebc2427f898b927944ce170f2d.
39960 * syscall.c (is_negated_errno): Set maximum errno value to 4095.
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
39986 * xlat/seccomp_mode.in: Add fallback definitions.
39993 Move CAP_* definitions out to header files.
40002 * xlat/capabilities.in: Rename to xlat/cap_mask0.in.
40003 * xlat/capabilities1.in: Rename to xlat/cap_mask1.in.
40005 2015-02-18 Dmitry V. Levin <ldv@altlinux.org>
40012 2015-02-17 Dmitry V. Levin <ldv@altlinux.org>
40014 Rename printnum to printnum_long to avoid confusion.
40015 * defs.h (printnum): Rename to printnum_long.
40021 * sock.c (sock_ioctl): Use printnum_int instead of printnum to print
40025 2015-02-16 Dmitry V. Levin <ldv@altlinux.org>
40036 mips: use PTRACE_GETREGS to fetch all registers.
40045 (get_syscall_args) [MIPS]: Use mips_REG_A[0-5].
40049 mips: move ABI check to configure.ac.
40058 2015-02-15 Dmitry V. Levin <ldv@altlinux.org>
40061 Some gcc versions complain about assigning long* to uint32_t* on i386.
40063 * syscall.c [I386] (i386_esp_ptr): Change type from uint32_t* to long*.
40068 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40071 As get_regs() is now guaranteed to set get_regs_error,
40072 there is no need to reset get_regs_error before get_regs() call.
40076 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40079 As get_regs() is now guaranteed to fetch registers when either
40086 nothing has to be done after get_regs().
40088 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40096 (get_regs_error): Define unconditionally, change scope to static.
40107 return type to long, return ptrace() return code instead of assigning it
40108 to get_regs_error; do not list individual architectures, implement
40110 (get_regs): Assign get_regset() return code to get_regs_error.
40112 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40114 arm, i386: switch back to use PTRACE_GETREGS.
40116 i386 architectures, but PTRACE_GETREGSET with fallback to PTRACE_GETREGS
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>
40241 Pass pointers to tracee's memory as integers instead of pointers.
40243 * scsi.c (print_sg_io_buffer): Change second argument's type to
40247 2015-02-08 Dmitry V. Levin <ldv@altlinux.org>
40249 tests: extend getdents to support all filesystems regardless of file order
40251 direntries to regexps.
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>
40278 happens, forget its pid, so that any other event or action related to a
40283 equals to the given pid.
40285 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40287 -b execve: avoid misleading warning about unknown pid.
40293 -b execve: do not use struct tcb after detach.
40296 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40299 This change moves the main loop back to main() and splits trace()
40308 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40311 * signal.c (printsiginfo): Make the first argument a pointer to a const type.
40317 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40348 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40351 Thanks to SECCOMP_RET_DATA == 0xffff, abnormally large errno
40357 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40360 This is required to process SECCOMP_RET_ERRNO filtered syscalls on
40361 systems where linux kernel does not change the syscall number to -1.
40364 (syscall_fixup_on_sysenter) [I386 || X32 || X86_64] : Use it to check
40367 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40374 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40376 x32: rename is_negated_errno_x32 to is_negated_errno.
40379 * syscall.c [X32] (is_negated_errno_x32): Rename to is_negated_errno.
40382 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40384 x86, x32, x86_64: do not skip syscall number -1.
40385 Syscall number -1 might be a side effect of SECCOMP_RET_ERRNO filtering.
40388 Do not skip syscalls that have number -1.
40390 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40392 x86_64: do not interpet syscall number -1 as a x32 personality syscall.
40393 Syscall number -1 might be a side effect of SECCOMP_RET_ERRNO filtering.
40395 * syscall.c (get_scno) [X86_64]: Handle the case of scno == -1.
40397 2015-02-05 Dmitry V. Levin <ldv@altlinux.org>
40413 2015-02-04 Dmitry V. Levin <ldv@altlinux.org>
40420 * test/select.c: Rewrite to ...
40429 2015-02-01 Dmitry V. Levin <ldv@altlinux.org>
40433 * tests/unix-pair-send-recv.c: New file.
40435 * tests/Makefile.am (check_PROGRAMS): Add unix-pair-send-recv.
40438 * tests/.gitignore: Add unix-pair-send-recv.
40440 2015-02-01 Aurelien Jacobs <aurel@gnuage.org>
40442 Fix simultaneous -e read and -e write usage.
40443 This allows using both -e read=FD and -e write=FD at the same time
40445 Without this patch, the -e write=FD is ignored if -e read=FD is used
40448 2015-01-31 Dmitry V. Levin <ldv@altlinux.org>
40450 net.c: remove unused HAVE_SIN6_SCOPE_ID_LINUX-based code.
40451 The AC_SIN6_SCOPE_ID autoconf macro that was able to define
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>
40468 * tests/net-accept-connect.c: Allow long socket addresses.
40473 * net.c (printsock): If sockaddr_un.sun_path is not NUL-terminated,
40480 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
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.
40503 to a separate function.
40504 Move printers specific to getsockopt and setsockopt to separate
40506 Move parsers of specific socket options to separate functions.
40508 * net.c (printicmpfilter): Rename to print_icmp_filter.
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>
40550 (sock_ioctl): Use it to quote ifr_name, ifru_newname, and ifru_slave.
40563 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40566 Change printfd() behaviour in show_fd_path mode to quote pathnames
40569 * util.c (printfd): Print non-socket paths using print_quoted_string.
40570 * tests/scm_rights-fd.test: Test it.
40573 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40576 string_quote() has proven to be too hard to use, replace it with
40583 of "len", treat QUOTE_0_TERMINATED style flag as former (len == -1);
40587 (printpathn, printstr): Update to new API.
40593 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40596 * linux/avr32/syscallent.h (timerfd): Change sys_name to "timerfd".
40599 * linux/hppa/syscallent.h (getresuid): Change sys_func to sys_getresuid.
40600 (getresgid): Change sys_func to sys_getresgid.
40602 2015-01-24 Helge Deller <deller@gmx.de>
40608 * linux/hppa/syscallent.h (getpeername): Change sys_name to "getpeername".
40610 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40615 Change output format to be consistent with other parts of strace
40623 * tests/scm_rights.c (main): Pass one more descriptor to the receiver.
40624 Set SO_PASSCRED on the receiver part. Reserve enough space to receive
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>
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…
40671 The solution is to use all 32 bits for decoding, not just "number" and
40674 As some architectures override defaults that come from asm-generic/ and
40676 per-architecture ioctl definitions and merge them with common
40677 definitions at build time. During the merge, we used to keep both
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
40684 of bits and their values differ between architectures. To reduce
40688 Additional bits of "size" are also architecture specific -- not only the
40690 depend on sizeof(long). To reduce architecture differences in the
40691 source code, we keep 32-bit and 64-bit versions of common ioctl
40695 To implement this, the tools for generating ioctl definitions from
40806 * Makefile.am: Remove all ioctlent-related definitions.
40807 Define the list of ioctlent*.h files that have to be generated by
40815 * HACKING-scripts: Update for ioctlent.sh -> ioctls_gen.sh migration.
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>
40853 linux directory, but powerpc64 didn't, causing inconveniences.
40855 * configure.ac (arch): Define to "powerpc64" on powerpc64.
40856 * linux/powerpc/errnoent1.h: Move to linux/powerpc64/.
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,
40892 * defs.h (struct_ioctlent): Change "code" type to "unsigned int".
40909 2015-01-16 Dmitry V. Levin <ldv@altlinux.org>
40911 ioctlent.sh: cleanup regexps that are used to fetch bases.
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
40938 Change length type of umoven and umovestr to unsigned.
40940 to "unsigned int".
40948 * tests/inet-accept-connect-send-recv.c (main): Return 77 if inet stream
40949 socket cannot be created or it cannot be bound to INADDR_LOOPBACK.
40950 * tests/net-yy.test: Skip the test if inet-accept-connect-send-recv
40954 * tests/caps.awk: Handle the case when all bits of 64-bit capability
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.
40995 * configure.ac [MIPS]: Use it to generate syscallent stubs.
40997 * linux/mips/syscallent-n32.h: Remove stub entries, include
40999 * linux/mips/syscallent-n64.h: Likewise.
41000 * linux/mips/syscallent-o32.h: Likewise.
41002 build: add $(builddir)/$(OS)/$(ARCH) to the headers search list.
41003 * Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS)/$(ARCH) before
41004 -I$(srcdir)/$(OS)/$(ARCH).
41017 * tests/stat32-v.test: Likewise.
41018 * tests/stat64-v.test: Likewise.
41020 * tests/net-fd.test: Likewise.
41024 * tests/net-yy-accept.awk: Likewise.
41025 * tests/net-yy-connect.awk: Likewise.
41027 * tests/unix-yy-accept.awk: Likewise.
41028 * tests/unix-yy-connect.awk: Likewise.
41030 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41042 * linux/mips/syscallent-n32.h: Likewise.
41043 * linux/mips/syscallent-n64.h: Likewise.
41044 * linux/mips/syscallent-o32.h: Likewise.
41059 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41062 According to linux/arch/s390/include/uapi/asm/unistd.h, readdir is
41069 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41071 Change syscallent.h files to use designated initializers.
41072 Automatically convert all linux syscallent.h files to a form that uses
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>
41120 * linux/tile/syscallent1.h (truncate64, ftruncate64): Change nargs to 3.
41121 (pread64, pwrite64): Change nargs to 5.
41122 (llseek): Change sys_name to _llseek.
41125 * linux/s390/syscallent.h (fadvise64, fadvise64_64): Change sys_func to
41126 printargs until special parsers for 31-bit 31 s390 emulation wrappers
41130 * linux/alpha/syscallent.h (fadvise64): Change sys_name to fadvise64.
41149 * linux/aarch64/syscallent1.h (umount): Change nargs to 1.
41152 * linux/ia64/syscallent.h (umount2): Change nargs to 2.
41170 * linux/arc/syscallent.h (sendfile64): Change sys_name to sendfile64.
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
41207 these entries to a new file 64/syscallent.h using the following
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.
41257 * linux/aarch64/syscallent1.h (sched_setparam): Change nargs to 2.
41274 * linux/arc/syscallent.h (fanotify_mark): Change nargs to 6.
41282 * linux/tile/syscallent.h (lookup_dcookie): Change nargs to 3.
41290 * linux/aarch64/syscallent1.h (mlock): Change to mlock entry.
41293 * linux/sh/syscallent.h (mlock): Change nargs to 2.
41297 * linux/tile/syscallent.h (swapon): Change nargs to 2.
41300 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41307 Raise to 400.
41309 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41327 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41330 indirect_ipccall used to guess whether currently decoded ipc syscall is
41332 robust method to identify indirect ipc subcalls.
41338 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41340 Move socket and ipc subcall entries to subcall.h.
41343 to the single file.
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
41372 * fanotify.c (sys_fanotify_mark): Use getllval to properly decode
41373 64-bit mask and two syscall arguments followed by it.
41380 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41388 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41390 tests: fix build with awk that does not support switch-case.
41391 The switch-case statement is a gawk-specific feature which is not
41392 necessarily available, let's use traditional if-else statements instead.
41394 * tests/uid.awk: Rewrite without switch-case statements.
41396 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41401 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41412 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41418 Fix "make dist" regression introduced by commit v4.9-125-g120e5db.
41421 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41426 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41430 defined by linux/aufs_type.h, resulting to ioctls.h with references to
41433 * linux/ioctlent.sh: Update the regexp that is used to lookup constants
41436 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41439 * tests/stat32-v.test: Remove work files if the test is skipped.
41443 * tests/stat64-v.test: Try to set modification time of the sample file
41444 to a value set in the distant future.
41446 Use AC_CHECK_TYPES to check for struct statfs64.
41452 Use AC_CHECK_TYPES to check for struct stat64.
41458 file.c: fix 32-bit stat decoding on 64-bit architectures.
41464 [STAT32_PERSONALITY] (struct stat_powerpc32): Rename to struct stat32.
41465 [STAT32_PERSONALITY] (printstat_powerpc32): Rename to printstat32.
41470 [!HAVE_STAT64] (sys_stat64): Fallback to sys_stat.
41471 [!HAVE_STAT64] (sys_fstat64): Fallback to sys_fstat.
41512 Convert do_printstat to a template function.
41516 (do_printstat): Move to printstat.h, parametrize its name
41520 * file.c (realprintstat): Adjust format strings so that all 64-bit
41522 all the rest. Rename to do_printstat.
41528 tests: check verbose decoding of 32-bit and 64-bit struct stat.
41531 * tests/stat32-v.test: New file.
41532 * tests/stat64-v.test: Likewise.
41535 (TESTS): Add stat32-v.test and stat64-v.test.
41538 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41548 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41552 decoding -- these fields are not defined in system headers.
41559 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41561 tests: fix race condition in net-accept-connect based tests.
41562 Change all net-accept-connect based tests to use different unix domain
41565 * tests/net-accept-connect.c: Parametrize unix domain socket address.
41566 * tests/net-fd.test: Pass socket address to net-accept-connect.
41568 * tests/unix-yy.test: Likewise.
41569 * tests/unix-yy-accept.awk: Update regexps.
41570 * tests/unix-yy-connect.awk: Likewise.
41572 2014-12-31 Mike Frysinger <vapier@gentoo.org>
41576 a bunch of newer flags. We have to handle fallbacks for all of them
41577 since the kernel doesn't currently export things to userspace.
41580 (TFD_TIMER_ABSTIME): Move to xlat/timerfdflags.in.
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>
41602 * linux/sparc/dummy2.h (solaris_lxstat): Alias to sys_xstat.
41605 2014-12-28 Dmitry V. Levin <ldv@altlinux.org>
41610 2014-12-27 Dmitry V. Levin <ldv@altlinux.org>
41614 to a new helper function.
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
41633 (receive_responses): Add proto_name argument, pass it to the parser.
41634 (inet_print): Add proto_name argument, pass it to receive_responses.
41636 (print_sockaddr_by_inode): Pass protocol name to inet_print calls.
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>
41647 Some test regexps have to be properly initialized before they could
41650 2014-12-25 Dmitry V. Levin <ldv@altlinux.org>
41654 kernel modules, they have to be tested separately.
41657 * tests/unix-yy.test: Use it.
41661 2014-12-25 Masatake YAMATO <yamato@redhat.com>
41664 * tests/unix-yy-accept.awk: New file.
41665 * tests/unix-yy-connect.awk: New file.
41666 * tests/unix-yy.test: New test.
41668 (EXTRA_DIST): Add unix-yy-accept.awk and unix-yy-connect.awk.
41670 2014-12-25 Masatake YAMATO <yamato@redhat.com>
41672 Support unix domain sockets in -yy option.
41673 This change extends -yy option to handle unix domain sockets:
41674 their peer addresses will be printed, similar to inet 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
41703 * socketutils.c (send_query): Rename to inet_send_query.
41704 (parse_response): Rename to inet_parse_response.
41712 2014-12-16 Masatake YAMATO <yamato@redhat.com>
41715 To resolve the peer address of socket, all combinations of families
41717 This change utilizes the protocol name obtained via getxattr to specify
41727 the given path to print_sockaddr_by_inode as the 2nd argument.
41729 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41732 Convert parsers of these syscalls to the same scheme as were applied to
41735 (either directly or via multiarch) 16-bit and 32-bit gid getgroups
41745 * linux/arm/syscallent.h: Rename sys_[gs]etgroups to sys_[gs]etgroups16,
41746 rename sys_[gs]etgroups32 to sys_[gs]etgroups.
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
41774 * linux/dummy.h (sys_geteuid16): Alias to sys_getuid16.
41776 sys_setgid16, sys_setregid16, sys_setresgid16): Alias to corresponding
41782 (printuid): Check for (uid_t) -1.
41804 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41812 * linux/s390/syscallent.h: Add "32" suffix to names of *chown32
41816 * linux/sparc/syscallent.h: Add "32" suffix to names
41818 Fix entry for syscall #112 from setresgid32 to setregid32.
41820 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41826 * chown.c (sys_fchownat: Move to fchownat.c.
41827 (sys_chown, sys_fchown): Move to uid.c.
41830 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41832 util.c: move printuid to uid.c.
41838 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41843 2014-12-14 Dmitry V. Levin <ldv@altlinux.org>
41845 printuid: fix uid_t decoding on 64-bit architectures.
41846 It was not a good idea to treat uid_t as a long int type because
41847 the latter is twice larger than uid_t on 64-bit architectures.
41850 to "unsigned int".
41851 * util.c (printuid): Likewise. When uid equals to -1, print "-1".
41862 2014-12-13 Dmitry V. Levin <ldv@altlinux.org>
41874 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41884 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41893 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41895 process.c: split struct_user_offsets into architecture-specific include files
41908 * process.c (struct_user_offsets): Split into architecture-specific
41919 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41922 Introduce XLAT_UOFF macro and use it to automatically transform
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>
41934 process.c: move sethostname and gethostname parsers to a separate file.
41937 * process.c (sys_sethostname, sys_gethostname): Move to hostname.c.
41939 process.c: move exit parser to a separate file.
41942 * process.c (sys_exit): Move to exit.c.
41944 process.c: move clone, setns, unshare, and fork parsers to a separate file
41948 related code to clone.c.
41950 process.c: move get*uid and set*uid parsers to a separate file.
41954 sys_setreuid, sys_setresuid): Move to uid.c.
41956 process.c: move getgroups* and setgroups* parsers to a separate file.
41960 sys_getgroups32, and related code to groups.c.
41962 process.c: move execve and execv parsers to a separate file.
41965 * process.c: Move sys_execve, sys_execv, and related code to execve.c.
41967 process.c: move waitpid, wait4, osf_wait4, and waitid parsers to a separate file
41971 related code to wait.c.
41973 process.c: move uname parser to a separate file.
41976 * process.c (sys_uname): Move to uname.c.
41978 process.c: move futex parser to a separate file.
41981 * process.c: Move sys_futex and related code to futex.c.
41983 process.c: move get_robust_list parser to a separate file.
41986 * process.c (sys_get_robust_list): Move to get_robust_list.c.
41988 process.c: move sched_* parsers to a separate file.
41993 sys_sched_rr_get_interval, and related code to sched.c.
41995 process.c: move sched_setaffinity and sched_getaffinity parsers to a separate file
41999 to affinity.c.
42001 process.c: move prctl and arch_prctl parsers to a separate file.
42004 * process.c: Move sys_prctl, sys_arch_prctl, and related code to prctl.c.
42006 process.c: move getcpu parser to a separate file.
42009 * process.c (sys_getcpu): Move to getcpu.c.
42011 process.c: move process_vm_readv and process_vm_writev parsers to a separate file
42015 to process_vm.c.
42028 file.c: move open, openat, and creat parsers to a separate file.
42032 to open.c.
42034 file.c: move access and faccessat parsers to a separate file.
42037 * file.c: Move sys_access, sys_faccessat and related code to access.c.
42039 file.c: move umask parser to a separate file.
42042 * file.c (sys_umask): Move to umask.c.
42044 file.c: move lseek and llseek parsers to a separate file.
42047 * file.c: Move sys_lseek, sys_llseek, and related code to lseek.c.
42049 file.c: move readahead parser to a separate file.
42052 * file.c (sys_readahead): Move to readahead.c.
42054 file.c: move truncate, truncate64, ftruncate, and ftruncate64 parsers to a separate file
42058 Move to truncate.c.
42060 file.c: move chdir parser to a separate file.
42063 * file.c (sys_chdir): Move to chdir.c.
42065 file.c: move link, linkat, unlinkat, and symlinkat parsers to a separate file
42069 related code to link.c.
42071 file.c: move readlink and readlinkat parsers to a separate file.
42075 to readlink.c.
42077 file.c: move renameat and renameat2 parsers to a separate file.
42081 to renameat.c.
42083 file.c: move chown, fchown, and fchownat parsers to a separate file.
42086 * file.c (sys_chown, sys_fchownat, sys_fchown): Move to chown.c.
42091 file.c: move chmod, fchmod, and fchmodat parsers to a separate file.
42094 * file.c (sys_chmod, sys_fchmodat, sys_fchmod): Move to chmod.c.
42096 file.c: move utimes, futimesat, utimensat, and osf_utimes parsers to a separate file
42100 sys_osf_utimes): Move to utimes.c.
42102 file.c: move utime parser to a separate file.
42105 * file.c (sys_utime): Move to utime.c.
42109 * file.c (sprinttime): Make global and move to util.c.
42111 file.c: move mknod, mknodat, and xmknod parsers to a separate file.
42115 to mknod.c.
42117 file.c: export sprintmode and move it to a separate file.
42121 * file.c (sprintmode): Make global and move to printmode.c.
42123 file.c: move getcwd parser to a separate file.
42126 * file.c (sys_getcwd): Move to getcwd.c.
42128 file.c: move *xattr parsers to a separate file.
42133 and related code to xattr.c.
42135 file.c: move fadvise64 and fadvise64_64 parsers to a separate file.
42139 to fadvise.c.
42141 file.c: move sync_file_range and sync_file_range2 parsers to a separate file
42145 code to sync_file_range.c.
42147 file.c: move fallocate parser to a separate file.
42150 * file.c (sys_fallocate): Move to fallocate.c.
42152 file.c: move swapon parser to a separate file.
42155 * file.c: Move sys_swapon and related code to swapon.c.
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
42168 (print_cap_header): Update to use get_cap_header result.
42179 2014-12-06 Dmitry V. Levin <ldv@altlinux.org>
42181 Make parsers of capget and capset syscalls self-contained.
42182 Various versions of <linux/capability.h> used to require different
42183 workarounds to avoid conflicts with types defined by libc headers.
42184 Define all required types and constants locally to fix this issue.
42194 2014-12-04 Dmitry V. Levin <ldv@altlinux.org>
42197 All disjoint parts of system.c have been moved to separate files.
42202 2014-12-04 Dmitry V. Levin <ldv@altlinux.org>
42204 Move mount parser to a separate file.
42207 * system.c: Move sys_mount and related code to mount.c.
42209 Move umount2 parser to a separate file.
42212 * system.c: Move sys_umount2 and related code to umount.c.
42214 Move personality parser to a separate file.
42217 * system.c: Move sys_personality and related code to personality.c.
42219 Move syslog parser to a separate file.
42222 * system.c: Move sys_syslog and related code to syslog.c.
42224 Move cacheflush parser to a separate file.
42227 * system.c: Move inclusion of <asm/cachectl.h> to cacheflush.c.
42228 [M68K, BFIN, SH]: Move to cacheflush.c.
42230 bfin: move sram_alloc parser to a separate file.
42233 * system.c [BFIN]: Move sys_sram_alloc and related code to sram_alloc.c.
42235 Move capget and capset parsers to a separate file.
42239 to capget and capset decoding to capability.c.
42241 to capability.c.
42243 2014-12-03 Dmitry V. Levin <ldv@altlinux.org>
42245 Move sysctl parser to a separate file.
42248 * system.c: Move sys_sysctl and related code to sysctl.c.
42250 mips: move sysmips parser to a separate file.
42254 Move inclusions of <linux/utsname.h> and <asm/sysmips.h> to sysmips.c.
42257 or1k: move or1k_atomic parser to a separate file.
42260 * system.c [OR1K]: Move to or1k_atomic.c.
42262 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42264 Alias sys_setdomainname to sys_sethostname.
42266 replace sys_setdomainname with an alias to sys_sethostname.
42268 * linux/dummy.h (sys_setdomainname): Alias to sys_sethostname.
42272 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42274 Alias sys_getpeername to sys_getsockname.
42276 replace sys_getpeername with an alias to sys_getsockname.
42278 * linux/dummy.h (sys_getpeername): Alias to sys_getsockname.
42282 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42284 Alias sys_stime to sys_time.
42286 replace sys_stime with an alias to sys_time.
42288 * linux/dummy.h (sys_stime): Alias to sys_time.
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>
42304 Alias sys_mkdir and sys_mkdirat to sys_chmod and sys_fchmodat.
42309 * linux/dummy.h (sys_mkdir): Alias to sys_chmod.
42310 (sys_mkdirat): Alias to sys_fchmodat.
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>
42359 MAXPATHLEN is defined to PATH_MAX, so replace the former with the latter.
42364 2014-11-21 Mike Frysinger <vapier@gentoo.org>
42370 * ioctl.c (ioctl_decode): Pass 'X' ioctls to block_ioctl.
42372 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42376 available versions of glibc, it's safe to assume that any usable
42388 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42395 2014-11-20 Mike Frysinger <vapier@gentoo.org>
42400 2014-11-11 Helge Deller <deller@gmx.de>
42405 1. EWOULDBLOCK has been up to kernel 3.14 errorcode #246. Since hppa
42414 they have been merged into the kernel, we have to follow.
42416 2014-11-11 Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
42419 The output format of the stack trace is supposed to be different
42423 string pointed to (which could be empty).
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>
42469 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42472 This patch is similar to what I did in commit
42484 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42490 supporting "-e write=set" and "-e read=set" option for sendmmsg and
42494 if configure reports it is available, falling back to the old local
42501 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42503 Introduce a separate function to copy from msghdr32 to msghdr.
42504 This patch is an initial step for supporting "-e write=set" and
42505 "-e read=set" option for sendmmsg and recvmmsg system calls.
42507 Coverting a data of msghdr32 to msghdr is needed both for
42508 {send,recv}msg and {send,recv}mmsg to decode parameters.
42509 To share the copying code in both decoders, a separate
42516 2014-11-11 Dmitry V. Levin <ldv@altlinux.org>
42519 * linux/ioctlsort.c: Rename to ioctlsort.c
42520 * Makefile.am (EXTRA_DIST): Rename linux/ioctlsort.c to ioctlsort.c.
42528 2014-11-11 Lubomir Rintel <lkundrak@v3.sk>
42531 While most of ioctl-related kernel headers are now exported by kernel's
42535 to look for modules_install'ed headers for the running kernel, and fall
42536 back to old behavior if they aren't found.
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>
42590 to another's name, keep the entry with a shorter name. Filter out
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>
42651 the ifr_index field to look things up, but ifr_newname.
42656 2014-10-31 Mike Frysinger <vapier@gentoo.org>
42663 * sock.c (sock_ioctl): Add explicit length limits to ifr_name printfs.
42665 2014-10-03 Elliott Hughes <enh@google.com>
42668 On Android, 32-bit arm and x86 use __kernel_mode_t (an unsigned short)
42670 like O_CLOEXEC get truncated if you coerce them to mode_t.
42673 from mode_t to int.
42676 2014-09-29 Dmitry V. Levin <ldv@altlinux.org>
42685 Move sysinfo parser to a separate file.
42688 * resource.c (sys_sysinfo): Move to sysinfo.c.
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>
42703 * tests/net-fd.test: Do not check for rm.
42705 * tests/scm_rights-fd.test: Likewise.
42709 tests: add a test for -yy option.
42710 * tests/net-yy.test: New test.
42711 * tests/inet-accept-connect-send-recv.c: New file.
42713 * tests/net-yy-accept.awk: Likewise.
42714 * tests/net-yy-connect.awk: Likewise.
42715 * tests/.gitignore: Add inet-accept-connect-send-recv,
42716 netlink_inet_diag, *.tmp-*, and *.tmp.*.
42717 * tests/Makefile.am (check_PROGRAMS): Add inet-accept-connect-send-recv
42719 (TESTS): Add net-yy.test.
42720 (EXTRA_DIST): Add net-yy-accept.awk and net-yy-connect.awk.
42722 2014-09-22 Dmitry V. Levin <ldv@altlinux.org>
42724 Move statfs related parsers to a separate file.
42728 to statfs.c.
42737 * xlat/fsmagic.in: Sort by value and mark as not NULL-terminated.
42745 2014-09-21 Dmitry V. Levin <ldv@altlinux.org>
42751 2014-09-17 Dmitry V. Levin <ldv@altlinux.org>
42753 Add -yy option: print ip and port associated with socket descriptors.
42754 When two ore more -y options are given, print local and remote ip:port
42765 * strace.1: Document -yy option.
42769 2014-09-17 Vicente Olivert Riera <vincent@gentoo.org>
42772 Wrap sa_restorer member definitions in #ifdef SA_RESTORER to be
42775 defines SA_RESTORER macro, the latter has to be explicitly undefined.
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.
42793 * defs.h (struct tcb): Change 'currpers' type to unsigned.
42794 (struct xlat): Change 'val' type to unsigned
42795 (signame): Add 'const' qualifier to its argument.
42796 (xlookup, printxval): Add 'const' qualifier to the 2nd argument and
42797 change its type to unsigned.
42798 (printpathn): Change the 3rd argument type to unsigned.
42799 (ioctl_lookup): Change 1st argument type to unsigned.
42800 * count.c (call_summary_pers, call_summary): Change 'i' type to unsigned.
42804 (ioctl_lookup): Change 1st argument type to to unsigned.
42805 (ioctl_next_match): Change 'code' type to unsigned.
42806 * mem.c (sys_move_pages): Change 'i' type to unsigned.
42807 * mtd.c (mtd_ioctl): Change 'i' and 'j' types to unsigned.
42809 * process.c (sys_prctl): Change 'i' type to unsigned.
42810 (printargv): Change 'n' type to unsigned.
42811 (sys_ptrace): Change 'addr' type to unsigned.
42812 * scsi.c (print_sg_io_buffer): Add 'const' qualifier to 'len' argument
42813 and change its type to unsigned. Change 'i' and 'allocated' types
42814 to unsigned.
42815 * signal.c (signame): Add 'const' qualifier to its argument.
42819 * sock.c (sock_ioctl): Change 'i' and 'nifra' types to unsigned.
42820 * strace.c (expand_tcbtab, alloctcb): Change 'i' type to unsigned.
42821 (detach): Change 'sig' type to unsigned.
42822 (startup_attach): Change 'tcbi' type to unsigned.
42823 (startup_child): Change 'm', 'n', and 'len' types to unsigned.
42824 (init): Use new variable to iterate 'tcbtab'.
42825 (pid2tcb): Change 'i' type to unsigned.
42826 (cleanup): Change 'i' and 'sig' types to unsigned.
42828 to unsigned.
42829 (struct qual_options): Change 'bitflag' type to unsigned.
42830 (reallocate_qual): Add 'const' qualifier to its argument and change its
42831 type to unsigned.
42832 (qualify_one): Change 'n' and 'bitflag' arguments types to unsigned.
42833 Add 'const' qualifier to 'n', 'not', and 'pers' arguments.
42834 Change 'p' type to signed int.
42835 (qual_syscall): Change 'bitflag' argument type to unsigned.
42836 Add 'const' qualifier to 'bitflag' and 'not' arguments.
42837 Change 'p' type to signed int.
42838 (qual_signal): Change 'bitflag' argument type to unsigned.
42839 Add 'const' qualifier to 'bitflag' and 'not' arguments.
42840 Change 'i' type to unsigned.
42841 (qual_desc): Change 'bitflag' argument type to unsigned.
42842 Add 'const' qualifier to 'bitflag' and 'not' arguments.
42843 (qualify): Change 'i' type to unsigned.
42844 (get_scno): Change 'currpers' type to unsigned.
42846 * system.c (sys_sysctl): Change 'cnt' and 'max_cnt' types to unsigned.
42848 * util.c (xlookup, printxval): Add 'const' qualifier to 'val' argument
42849 and change its type to unsigned.
42851 (printpathn): Change 'n' argument type to unsigned.
42852 (printstr): Change 'size' type to unsigned.
42854 (setbpt): Change 'i' type to unsigned.
42858 2014-09-11 Dmitry V. Levin <ldv@altlinux.org>
42860 Move dirent related parsers to a separate file.
42864 Move to dirent.c.
42866 getdents, getdents64: fix potential out-of-bounds read issues.
42875 2014-09-10 Dmitry V. Levin <ldv@altlinux.org>
42878 * net.c (tprint_sock_type): Remove unused parameter 'tcp'.
42882 * net.c (printsock): Fix fallback string for AF_PACKET packet types.
42884 2014-09-09 Dmitry V. Levin <ldv@altlinux.org>
42887 A pointer to fd_set was used uninitialized when nfds == 0.
42891 Reported-by: Zubin Mithra <zubin.mithra@gmail.com>
42893 2014-09-08 Dmitry V. Levin <ldv@altlinux.org>
42896 Stop using an outdated partial copy of libaio.h, switch back to external
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.
42919 * debian/changelog: Sync with 4.8-1.1.
42922 * strace.spec: Sync with 4.8-5.
42926 2014-08-15 Mike Frysinger <vapier@gentoo.org>
42928 Update syscall tables to the point where they include renameat2.
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>
42964 of that block expects to be in the original dir. Change to a subshell so
42967 * Makefile.am ($(srcdir)/CREDITS): Change {...} to (...).
42969 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42974 the right location (causing things to be decoded incorrectly).
42976 Add the missing syscalls before preadv which also re-aligns all the
42981 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42985 SA_RESTORER. Deploy the same trick that HPPA is using to make the
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>
43008 The preadv/pwritev symbols weren't added to glibc until the 2.10 release,
43009 so trying to build the uio test leads to link failures. Add configure
43010 tests and update uio.test to handle this.
43013 * tests/uio.c: Include config.h.
43017 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43020 The tests like to generate random .tmp files, so ignore them.
43024 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43028 set -e
43039 The problem is that while `set -e` is disabled for the body of the
43042 is non-zero, the script ends up failing overall.
43044 Add an explicit return 0 to the cleanup function so that we don't kill
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>
43054 This way I don't have to keep reading up on these options and wondering
43059 2014-08-10 Mike Frysinger <vapier@gentoo.org>
43062 Previous commit here re-added the bugs trying to be fixed due to a
43066 * signal.c (struct new_sigaction): Change || to &&.
43068 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43078 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43083 * linux/alpha/syscallent.h (rt_sigaction): Change nargs to 5.
43084 * linux/sparc/syscallent.h (rt_sigaction): Change nargs to 5.
43086 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43092 We also have to undefine SA_RESTORER so that code doesn't try to
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.
43110 * defs.h (show_fd_path): Change type to unsigned int.
43112 (init): Handle repeated -y option.
43114 2014-08-07 Dmitry V. Levin <ldv@altlinux.org>
43120 Cast argument to unsigned long before casting it to unsigned long long.
43122 2014-08-07 Dmitry V. Levin <ldv@altlinux.org>
43137 2014-08-06 Dmitry V. Levin <ldv@altlinux.org>
43140 * net.c (do_accept): Rename to do_sockname.
43143 * tests/net-fd.test: Update.
43145 2014-08-01 Mike Frysinger <vapier@gentoo.org>
43151 * linux/x32/syscallent.h: Change existing io_{setup,submit} to 64bit,
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.
43192 Add two more function calls to the stack. Suggested by Masatake YAMATO.
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>
43205 * unwind.c (build_mmap_cache): Move local variables to the code branch
43214 2014-06-12 Dmitry V. Levin <ldv@altlinux.org>
43218 to separate function print_stack_frame.
43222 queue_put, queue_put_call): Add const qualifier to binary_filename and
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>
43234 unwind: rename function_off_set to function_offset.
43237 Rename function_off_set to function_offset.
43240 * unwind.c (print_stacktrace): Fix another off-by-one error in binary search.
43243 * unwind.c (fopen_for_input): Define to fopen64 iff
43244 [_LARGEFILE64_SOURCE && HAVE_FOPEN64], otherwise define it to fopen.
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.
43252 to use getpid instead of getuid.
43255 to unsigned long.
43256 (queue_put_error): Change the 3rd argument's type to unsigned long.
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>
43270 * bjm.c (sys_delete_module): ... to here.
43274 2014-06-04 Zubin Mithra <zubin.mithra@gmail.com>
43280 (do_dup2, decode_open, sys_creat): Change return value to RVAL_FD.
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.
43299 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43304 (strace, strace-udeb): Add x32 to architecture list.
43306 (strace, strace-udeb): Add or1k to architecture list.
43308 (strace, strace-udeb): Add arm64 to architecture list,
43314 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43317 $ groff -ww -mandoc -z strace.1
43321 Change remaining '-' as minus to '\-'.
43327 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43329 unwind: tests: add a test for -k option.
43330 * tests/stack-fcall.c: New test target.
43331 * tests/strace-k.test: New test driver.
43332 * tests/Makefile.am (check_PROGRAMS): Add stack-fcall.
43333 (TESTS): Add strace-k.test.
43334 * tests/.gitignore: Add stack-fcall.
43336 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43338 unwind: move stacktrace capturing and mmap cache invalidating to trace_syscall_entering
43345 to do with this patch. unwind_cache_invalidate is mentioned only
43349 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43351 unwind: add SE and SI flags to syscall entries for all architectures.
43352 Add SE flag to execve, exit, and exit_group syscall entries.
43353 Add SI flag to brk, execve, mmap, mprotect, mremap, munmap,
43356 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43364 appropriate syscall handlers. However, it is difficult to keep the
43365 source code maintainable using this approach to cover all system calls
43368 A more generic way to implement this is to flag all syscalls that
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>
43412 When a file mmap'ed to the target process is unlink'ed, backtracing the
43414 "backtracing_error". To avoid confusion, the message is changed to
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
43436 recorded information in the case "backtracing_error" to switch the
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]
43450 mmap cache and before unwinding, strace cannot have a chance to record
43457 cache to avoid to report "backtracing_error". In this patch I keep it,
43461 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43464 captured stacktrace is printed in unwind_tcb_fin if tcp->queue is not
43466 unwind_tcb_fin is moved to the top of droptcb.
43470 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43473 A mmap cache belonging to a tcb was updated when a system call which
43476 incorrect if the target application is multi-threaded; more than two
43481 and mmap_cache_generation field to struct tcb. The variable
43492 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43497 New `queue' field is added to tcb. Captured stacktrace is stored here.
43502 tcb. It's printing is delayed to the next call of
43509 Currently unwind_capture_stacktrace invocations are added directly to
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>
43540 * unwind.c (DPRINTF): New macro, to be utilized in debugging cache
43543 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43557 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43560 * unwind.c (init_unwind_addr_space): Rename to unwind_init.
43561 (init_libunwind_ui): Rename to unwind_tcb_init.
43562 (free_libunwind_ui): Rename to unwind_tcb_fin.
43563 (delete_mmap_cache): Rename to unwind_cache_invalidate.
43564 (print_stacktrace): Rename to unwind_print_stacktrace.
43571 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43574 free_libunwind_ui is expected to release all unwind related resources
43575 attached to tcp.
43578 * unwind.c (free_libunwind_ui): ... to here.
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
43594 stack and to obtain the function name pointed by the IP.
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>
43631 Automatically convert xlat structures from *.c files to xlat/*.in files
43634 Rename several xlat structures to avoid collisions.
43635 * bjm.c (which): Rename to qm_which.
43636 * ipc.c (msg_flags): Rename to ipc_msg_flags.
43637 * time.c (which): Rename to itimer_which.
43641 Some symbolic constants are not macros, extend #ifdef check to cover
43649 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43652 Now that ./xlat/gen.sh has to be run before autoreconf,
43655 * bootstrap: Forward arguments to autoreconf.
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.
43680 * tests/scm_rights-fd.test: New test.
43682 (TESTS): Add scm_rights-fd.test.
43685 tests: add a test for -c and -w options.
43689 2014-05-29 Mark Hills <Mark.Hills@framestore.com>
43693 non-CPU resource, eg. typically open() or stat() to a network drive.
43695 This patch adds a new flag (-w) to produce a summary of the time
43698 This functionality has been useful to profile slow processes that
43699 are not CPU-bound.
43701 2014-05-29 Dmitry V. Levin <ldv@altlinux.org>
43704 * count.c (count_syscall): Add const qualifier to timeval argument and
43712 const qualifier to read only arguments.
43716 2014-05-28 Dmitry V. Levin <ldv@altlinux.org>
43719 The argument passed to sethostname and setdomainname syscalls, as well
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>
43755 Add TM flag to shmat and shmdt syscall entries.
43757 Alias sys_vfork to sys_fork.
43760 * linux/dummy.h (sys_vfork): Alias to sys_fork.
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>
43793 arguments to 5.
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>
43810 2014-04-10 Dmitry V. Levin <ldv@altlinux.org>
43823 2014-04-10 Denys Vlasenko <dvlasenk@redhat.com>
43825 Make int3 example in comments more cut-n-pastable.
43827 after cut-n-pasting it into a file, there is no need
43828 to edit the result (e.g. no need to remove C comment
43831 2014-04-09 Dmitry V. Levin <ldv@altlinux.org>
43834 * linux/dummy.h [MIPS]: Do not redirect sys_set_thread_area to printargs.
43839 sys_get_thread_area, and sys_set_thread_area to printargs.
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>
43896 The workaround needed to be applied to all LP64 architectures, not
43899 2014-03-11 Masatake YAMATO <yamato@redhat.com>
43902 * net.c (protocols): Rename to inet_protocols.
43904 (sys_socket): Rename protocols to inet_protocols.
43907 Acked-by: Mike Frysinger <vapier@gentoo.org>
43909 2014-03-11 Dmitry V. Levin <ldv@altlinux.org>
43913 no decoding related to other domains is required for socketpair.
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>
43973 Besides that, F_FREESP64 decoding is too complicated to support.
43976 Remove F_FREESP64 from the check whether to define struct flock64.
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
43995 Luckily, the aarch64 struct stat is structurally equivalent to the arm
43998 * file.c [AARCH64] (stat64): Define to stat.
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>
44036 Old implementation used to check each signal number in the given signal
44047 sys_sigsuspend, sys_sigprocmask, decode_new_sigaction): Update to use
44052 2014-02-26 Dmitry V. Levin <ldv@altlinux.org>
44055 Add generic tests for fopen64 and fputs_unlocked functions to fix build
44065 Reported-by: Elliott Hughes <enh@google.com>
44067 2014-02-25 James Yang <james.yang@freescale.com>
44069 powerpc64: fix 64-bit process detection on embedded.
44070 * syscall.c (get_scno) [POWERPC64]: Fix 64-bit process detection
44073 2014-02-25 Dmitry V. Levin <ldv@altlinux.org>
44076 Add a generic test for <scsi/sg.h> availability to fix build with
44083 Reported-by: Elliott Hughes <enh@google.com>
44085 2014-02-14 Dmitry V. Levin <ldv@altlinux.org>
44087 Revert "Add support for Altera's Nios-II softcore architecture"
44089 managed to mangle it so that most of the patch was not applied.
44091 According to Ezequiel García, an architecture port based on the generic
44096 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44101 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44103 Fix sigaction reporting on non-x86 architectures.
44108 * signal.c [!SA_RESTORER]: Define to ASM_SA_RESTORER if the latter is
44111 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44116 signal.c, so SA_RESTORER value is forwarded from <asm/signal.h> to
44117 config.h using a configure check.
44122 2014-02-07 Dmitry V. Levin <ldv@altlinux.org>
44125 Fix "dereferencing type-punned pointer will break strict-aliasing rules"
44126 warning introduced by commit v4.8-54-g670b21b.
44128 * signal.c (sys_sigreturn) [ARM]: Avoid dereferencing type-punned pointers.
44130 2014-02-06 Dmitry V. Levin <ldv@altlinux.org>
44135 2014-02-06 Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
44137 Add support for Altera's Nios-II softcore architecture.
44138 This commit adds strace support for Altera's Nios-II official
44139 kernel port as found in git://git.rocketboards.org/linux-socfpga.git
44141 Notice that this an out-of-tree kernel architectural port, and uses the
44142 legacy (non-generic) system call ABI. In particular, the port doesn't
44145 Given it's mandatory for new architectures to support the generic
44147 mainlined, the strace support will have to be re-factored accordingly.
44153 * configure.ac: Add NIOS2 to the list of supported architectures.
44162 Acked-by: Mike Frysinger <vapier@gentoo.org>
44164 2014-02-05 Dmitry V. Levin <ldv@altlinux.org>
44192 (inotify_modes): Rename to inotify_flags, convert to XLAT form.
44193 (inotify_init_flags): Convert to XLAT form.
44234 Itroduce XLAT_END macro to make xlat structures more compact.
44237 Convert personality_options to XLAT form.
44241 (personality_options): Update PER_* constants, convert to XLAT form.
44243 Convert futexops to XLAT form.
44245 (futexops): Convert to XLAT form.
44247 Convert sigev_value to XLAT form.
44248 * time.c (sigev_value): Convert to XLAT form.
44252 Automatically convert all xlat structures to XLAT form
44256 2014-02-05 Dmitry V. Levin <ldv@altlinux.org>
44258 Introduce XLAT macro to ease maintenance of xlat structures.
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>
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.
44316 (LOG_COMPILER): Rename to TEST_LOG_COMPILER.
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.
44342 (decode_old_sigaction) [MIPS]: Print sa_mask according to its definition.
44345 2014-01-08 Dmitry V. Levin <ldv@altlinux.org>
44353 2014-01-08 Dmitry V. Levin <ldv@altlinux.org>
44358 to catch basic rt_sigaction decoding bugs.
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>
44381 logic in defs.h to make sure it's set sanely. Delete this old logic as
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>
44403 We used to explicitly list architectures where <sys/ptrace.h> from glibc
44404 is known to provide a valid prototype for ptrace, and use a homegrown
44405 replacement for all the rest. Situation seems to be better nowadays,
44413 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44417 libc provides LFS64 functions and structures. The most natural thing to
44418 do there is to check for _LARGEFILE64_SOURCE - the macro provided by
44420 interfaces are expected to define this macro as well.
44425 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44429 undefined references so far because _LFS64_LARGEFILE appears to be
44435 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44443 these constants are defined and differ from their non-64bit versions.
44445 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44455 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44458 IPPROTO_* macros are defined by <netinet/in.h>, no need to redefine
44466 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44477 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44486 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44495 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44498 SIGEV_THREAD_ID decoding requires access to an internal member of
44499 struct sigevent. There seems to be no portable way to do it besides
44505 to print thread id.
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>
44530 Move io_* syscalls decoding to a separate file.
44532 sys_io_getevents, declarations from libaio.h): Move to ...
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>
44554 The caller prints the string. It's simpler to just print
44560 it is renamed to tprint_lio_opcode().
44562 2013-11-11 Denys Vlasenko <dvlasenk@redhat.com>
44567 We used to try reading iocbpp[i] until i == nr.
44570 2013-11-09 Denys Vlasenko <dvlasenk@redhat.com>
44572 Fix pathtrace_match() to match recent fixes to select decoding.
44574 Fix select decoding on e.g. 32-bit ppc process by 64-bit strace.
44578 Also, properly round fdsize up to word size of traced process,
44579 not to strace's word size.
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>
44594 or equal to FD_SETSIZE is passed to FD_ISSET. Select family syscalls,
44595 however, can legitimately accept such descriptors. To overcome this
44596 limitation, we have to replace FD_ISSET with an equivalent that imposes
44602 2013-11-05 Dmitry V. Levin <ldv@altlinux.org>
44606 syscall. When arg[0] is negative, do not attempt to fetch and decode
44611 2013-11-05 Denys Vlasenko <dvlasenk@redhat.com>
44613 Truncate arg[0] to int in select decoding.
44618 2013-11-05 Dr. David Alan Gilbert <dave@treblig.org>
44621 We used to allocate and fetch bit arrays using a sanitized
44626 Add test/select.c to capture the case.
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),
44650 hence very similar to metag port.
44652 test/* all seem to work well.
44658 * configure.ac: Add ARC to the list of supported architectures.
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
44677 arguments to 7.
44679 2013-09-11 Mike Frysinger <vapier@gentoo.org>
44682 The fanotify_mark func takes a 64bit mask, so 32bit arches have to split
44686 * linux/arm/syscallent.h: Set the number of fanotify_mark arguments to 6.
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>
44715 This change hardwires it to be 1.
44717 The cases where it was 0 are, and why the change to "decode RT sigs too"
44720 IA64: 64-bit arch, all 64 signals fit in one word in any case.
44726 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44728 Convert some uses of long_to_sigmask+printsigmask to sprintsigmask_long.
44729 This allows to drop long_to_sigmask function,
44737 &i386_regs.esp is a pointer to long, not unsigned long.
44740 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44745 This allows us to drop "do we need to print RT signals?" parameter,
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.
44805 which used to copy garbage in high bits, now it will copy actual data.
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>
44823 Improve sigreturn decoding on x86 to show RT signal bits too.
44824 This includes decoding of 32-bit sigreturn by 64-bit strace,
44829 2013-07-12 Anton Blanchard <anton@samba.org>
44832 We were using uname to determine if userspace was 32 or 64bit.
44835 * configure.ac (powerpc*): Similar to x86, use a runtime test
44836 to determine if we are 32 or 64bit.
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
44850 generation when we attach to a process, and it manages to finish
44851 execve'ing before we set TRACEEXEC option to suppress that.
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
44885 equal to GRP2 value there. So it can be removed.
44893 gpr2 variable is renamed s390_gpr2 to match the convention used
44896 2013-07-04 Denys Vlasenko <dvlasenk@redhat.com>
44898 ARM: add STRACE_KNOWS_ONLY_EABI define which can be used to omit OABI support
44900 Add paranoia check before passing a long to pid2tcb(int pid)
44902 2013-07-02 Denys Vlasenko <dvlasenk@redhat.com>
44911 2013-07-02 Denys Vlasenko <dvlasenk@redhat.com>
44921 However, it's not necessary to be difficult.
44924 2013-07-01 Denys Vlasenko <dvlasenk@redhat.com>
44926 Convert trace() from returning int to returning void.
44930 Remove ia64-specific printing of current address on signal delivery.
44931 The address is printed anyway by printleader() if -i is active.
44933 Rename ia32 to ia64_ia32mode, and make it bool, not long.
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.
44957 Change upeek() to take pid, not full tcp.
44960 2013-06-26 Anton Blanchard <anton@samba.org>
44962 powerpc: Provide a fallback for old kernels without PTRACE_GETREGS.
44963 PTRACE_GETREGS was added to the ppc kernel in 2.6.23. In order to
44965 fallback.
44970 2013-06-26 Anton Blanchard <anton@samba.org>
44972 powerpc: Use PTRACE_GETREGS to fetch all registers.
44980 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
44987 Now it also contains a tested example of i686 build on 64-bit host.
44989 In -f mode, do not assume that new pid is stopped - handle exits too.
44991 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
44995 because of vfork (no way to know which process would win).
44997 After this change, strace_child is set to nonzero only
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>
45039 * strace.c (detach): Change return type from int to void.
45042 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45052 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45055 V3: split SEIZE/!SEIZE code paths to reduce confusion.
45066 2013-06-19 Dmitry V. Levin <ldv@altlinux.org>
45069 * tests/detach-running: Disable /proc based checks when
45071 * tests/detach-sleeping: Likewise.
45072 * tests/detach-stopped: Likewise.
45074 2013-06-19 Denys Vlasenko <dvlasenk@redhat.com>
45076 tests/detach-{running,sleeping,stopped}: check post-detach state.
45080 2013-06-19 Dmitry V. Levin <ldv@altlinux.org>
45083 * tests/detach-running: New test.
45087 * tests/detach-sleeping: Do not send SIGCONT to the sleeping process.
45089 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45091 tests: fix parallel-tests support in detach-* tests.
45092 * tests/detach-sleeping: Use $LOG file for set_ptracer_any output.
45093 * tests/detach-stopped: Likewise.
45097 * tests/detach-sleeping: Use it.
45098 * tests/detach-stopped: Likewise.
45102 * tests/detach-sleeping: New test.
45103 * tests/detach-stopped: Likewise.
45105 (TESTS): Add detach-sleeping and detach-stopped.
45108 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45116 * tests/detach-stopped: Update callers.
45121 * tests/strace-f: Likewise.
45123 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45125 tests: enable parallel-tests support.
45126 * configure.ac (AM_INIT_AUTOMAKE): Add parallel-tests.
45128 tests: prepare for parallel-tests support.
45131 * tests/detach-stopped: Use it.
45135 * tests/strace-f: Likewise.
45137 2013-06-18 Denys Vlasenko <dvlasenk@redhat.com>
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
45185 to suppress all signal delivery messages.
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>
45199 pushed back to the community, and which may or may not eventually
45206 2013-05-17 Mike Frysinger <vapier@gentoo.org>
45208 Rename COPYRIGHT to COPYING.
45212 * COPYRIGHT: Rename to ...
45214 * Makefile.am (EXTRA_DIST): Rename COPYRIGHT to COPYING.
45218 2013-05-17 Dmitry V. Levin <ldv@altlinux.org>
45221 * debian/changelog: Sync with 4.7-1.
45223 * strace.spec: Sync with 4.7-3.
45232 2013-05-14 Dmitry V. Levin <ldv@altlinux.org>
45234 NOMMU: do not hide startup syscalls unless in -D mode.
45235 On NOMMU systems in "strace PROG" case, we have no way to attach to
45236 the tracee before it calls execve unless in -D mode. That is, the
45237 first execve call is very likely to be missed, and setting
45238 hide_log_until_execve just results to empty log.
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",
45258 all cases seem to work.
45262 Rename skip_startup_execve to skip_one_b_execve.
45264 (init): If "strace PROG" case (as opposed to "strace -pPID"),
45265 set skip_one_b_execve and hide_log_until_execve to 1.
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
45280 * defs.h: Change 'qflag' from 'bool' to 'unsigned int'.
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>
45312 to 6.
45318 * linux/mips/syscallent-o32.h: Likewise.
45322 * linux/powerpc/syscallent.h: Change sync_file_range to
45323 sync_file_range2, set the number of sync_file_range2 arguments to 6.
45324 * linux/tile/syscallent.h: Change sync_file_range to sync_file_range2,
45325 set the number of sync_file_range2 arguments to 4.
45326 * linux/tile/syscallent1.h: Change sync_file_range to sync_file_range2.
45347 * linux/mips/syscallent-n32.h: Likewise.
45348 * linux/mips/syscallent-n64.h: Likewise.
45349 * linux/mips/syscallent-o32.h: Likewise.
45364 * tests/net-accept-connect.c: Fix address length passed to bind()
45369 * tests/.gitignore: Add net-accept-connect, *.o and *.log.*.
45371 (check_PROGRAMS): Add net-accept-connect.
45373 * tests/net-accept-connect.c: New file.
45381 * tests/strace-f: Likewise.
45383 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45388 (SYS_socket_nsubcalls, SYS_ipc_subcall, SYS_ipc_nsubcalls): Move to ...
45402 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45411 2013-05-07 Mike Frysinger <vapier@gentoo.org>
45415 the mips headers around causing it to check the ABI defines before it
45422 2013-05-07 James Hogan <james.hogan@imgtec.com>
45424 metag: rename llseek syscall to _llseek.
45426 naming of it for metag to allow the stat test to pass.
45428 * linux/metag/syscallent.h: Rename llseek syscall to _llseek.
45430 2013-05-07 James Hogan <james.hogan@imgtec.com>
45433 The metag architecture also uses dedicated syscalls and doesn't need to
45439 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45443 personality. For 64bit and ilp32 it equals to 4, for unaligned
45444 32bit it equals to 5, and for aligned 32bit it equals to 6.
45447 arguments to 4.
45449 * linux/mips/syscallent-n32.h: Likewise.
45450 * linux/mips/syscallent-n64.h: Likewise.
45457 arguments to 5.
45459 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45463 personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit
45464 it equals to 5, and for aligned 32bit it equals to 6.
45467 arguments to 4.
45470 * linux/mips/syscallent-n32.h: Likewise.
45471 * linux/mips/syscallent-n64.h: Likewise.
45478 arguments to 6.
45482 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45486 and personality. For 64bit and ilp32 it equals to 2, for unaligned
45487 32bit it equals to 3, and for aligned 32bit it equals to 4.
45490 truncate64 arguments to 3.
45494 number of its arguments to 3.
45496 truncate64 arguments to 4.
45498 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45502 personality. For 64bit and ilp32 it equals to 4,
45503 for 32bit it equals to 6.
45506 to 4.
45508 * linux/mips/syscallent-n32.h: Likewise.
45509 * linux/mips/syscallent-n64.h: Likewise.
45517 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45521 personality. For 64bit and ilp32 it equals to 4, for unaligned
45522 32bit it equals to 5, and for aligned 32bit it equals to 6.
45525 unaligned 32bit and most of aligned 32bit it equals to 6, and for
45526 mips o32 it equals to 7.
45531 of syscall arguments to 6.
45533 to 4.
45534 * linux/mips/syscallent-n32.h: Likewise.
45536 to 5.
45537 * linux/mips/syscallent-o32.h: Change the number of fadvise64_64
45538 arguments to 7.
45540 handler. Change numbers of fadvise64 and fadvise64_64 arguments to 4.
45542 Change numbers of fadvise64 and fadvise64_64 arguments to 4.
45544 change numbers of their arguments to 5 and 6.
45547 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45549 mips o32: raise the max number of syscall arguments to 7.
45552 * defs.h [LINUX_MIPSO32]: Raise MAX_ARGS to 7.
45554 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45558 common. Split them into separate files to ease maintenance.
45560 * linux/mips/syscallent-compat.h: New file.
45561 * linux/mips/syscallent-n32.h: Likewise.
45562 * linux/mips/syscallent-n64.h: Likewise.
45563 * linux/mips/syscallent-o32.h: Likewise.
45567 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45571 personality. For 64bit and ilp32 it equals to 3, for unaligned 32bit it
45572 equals to 4, and for aligned 32bit it equals to 5.
45574 * linux/aarch64/syscallent1.h: Set number of readahead arguments to 3.
45581 * linux/or1k/syscallent.h: Set number of readahead arguments to 4.
45584 * linux/xtensa/syscallent.h: Set number of readahead arguments to 5.
45586 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45593 2013-05-06 Chris Zankel <chris@zankel.net>
45597 need to multiplex ipc and socket subcalls.
45602 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45655 2013-05-06 Chris Metcalf <cmetcalf@tilera.com>
45660 Support seeing this output in the 'strace -efile' test.
45662 As part of this change, use "grep -E -x" syntax consistently for
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>
45681 The mips/o32 ABI and xtensa arch also do 64bit aligning, so add it to the
45685 mips/o32 ABI is funky and doesn't shift -- it has 7 args. So just add
45686 xtensa to it.
45688 * file.c (sys_fadvise64_64): Add XTENSA to the shifted list.
45689 * util.c (printllval): Add LINUX_MIPSO32 and XTENSA to the shifted list.
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>
45712 * linux/s390/syscallent.h: Change nargs to 3 for truncate64/ftruncate64.
45714 2013-05-05 Mike Frysinger <vapier@gentoo.org>
45718 make sure we clamp that number to the size of the buffer we've allocated
45719 on the stack to prevent buffer overflows.
45721 * mtd.c (ubi_ioctl): Clamp length to string_quote to 0/UBI_MAX_VOLUME_NAME.
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>
45742 * file.c [HPPA]: Do not redefine stat64 to hpux_stat64.
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
45756 a pointer to a 64bit value, not a strict.
45758 * util.c (MAX, MIN): Move to ...
45767 * linux/ubi-user.h: Import from linux 3.8.
45769 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45772 I used these to develop the mtd/ubi ioctl decoders.
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.
45800 sys_lstat64 before redefining them to printargs.
45802 Reported-by: Mike Frysinger <vapier@gentoo.org>
45804 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45813 2013-05-02 Dmitry V. Levin <ldv@altlinux.org>
45818 x32: fix printllval-based decoders of i386 syscalls.
45825 2013-05-01 Dmitry V. Levin <ldv@altlinux.org>
45827 x32: fix build regressions introduced by commit v4.7-96-g8435d67.
45832 (printstat) [X32]: Redirect to printstat64.
45834 [X32] (realprintstat64): Rename to printstat64_x32.
45842 (sys_lstat): Alias to sys_stat.
45843 (sys_lstat64): Alias to sys_stat64.
45844 (sys_oldlstat): Alias to sys_oldstat.
45855 2013-05-01 James Hogan <james.hogan@imgtec.com>
45859 argument to point at the bottom of the stack instead of the top.
45862 to avoid a segfault at runtime.
45864 2013-05-01 James Hogan <james.hogan@imgtec.com>
45869 not relevant to the test). Also don't assume the file desriptor returned
45870 by open call is 3 when passing it to mmap.
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:
45892 * configure.ac (AM_CONFIG_HEADER): Rename to AC_CONFIG_HEADERS.
45894 2013-04-30 Dmitry V. Levin <ldv@altlinux.org>
45896 build: introduce git-version-gen.
45899 Add rules to check NEWS, generate $(srcdir)/.version and
45900 $(distdir)/.tarball-version files.
45901 Change ChangeLog and CREDITS generation rules to depend on
45903 * NEWS: Add dates to recent releases.
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.
45909 Makefile.am: sort long lists to ease maintenance.
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>
45932 * desc.c (sys_io_submit): Change offset output format from %llx to %lld.
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>
45961 * configure.ac: Add XTENSA to the list of supported architectures.
45971 2013-03-22 Denys Vlasenko <vda.linux@googlemail.com>
45973 Add example script which builds static (possibly cross-compiled) strace.
45975 2013-03-21 Dmitry V. Levin <ldv@altlinux.org>
45977 Use 64-bit versions of stat, readdir and setrlimit functions when available
45978 strace already has a mechanism to use fopen64 for output when the 64-bit
45979 version of fopen is available on 32-bit architectures. Apply this
45980 mechanism for other three functions to make strace fully adopted for
45981 64-bit types.
45989 2013-03-20 Dmitry V. Levin <ldv@altlinux.org>
45995 * file.c (printdir): Rename to print_old_dirent.
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>
46003 sendfile parser used to decode off_t* parameter as a pointer to host
46004 off_t type. With this change, it is decoded as a pointer to target long
46017 2013-03-18 Dmitry V. Levin <ldv@altlinux.org>
46027 * desc.c (print_common_flags, sys_io_submit): Add missing ", " to
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.
46034 Relax check_prog to handle those cases.
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()
46085 count_syscall() was calling setitimer/getitimer once in order to find
46086 smallest "tick" OS uses in time accounting, in order to use it
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").
46101 The code seems to seriously underestimate CPU usage:
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"
46106 It might be useful to have a mode where we show wall clock time
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>
46151 thanks to Chris Metcalf for the hint.
46158 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46162 Disable STREAMS syscalls for non-SPARC.
46167 Fix printstrbufarg's address argument to be long, not int.
46171 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46173 Use dynamically-sized selected[] array for -P PATH.
46175 the path twice if it happens to be the same.
46181 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46185 Assorted fixes to syscallent.h.
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>
46200 architecture/ABI is usually referred to as metag in code). The Meta
46204 sys_lookup_dcookie writes a filename to buffer argument, so I've set
46206 nfsservctl appears to be set to sys_ni_syscall in asm-generic/unistd.h
46215 add TM flag to various memory syscalls.
46218 fanotify_init doesn't appear to take a file descriptor so remove TD.
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.
46230 * syscall.c (qual_syscall, qualify): Pass personality down to
46235 2013-03-01 Chris Metcalf <cmetcalf@tilera.com>
46243 2013-02-27 Denys Vlasenko <vda.linux@googlemail.com>
46245 Make -b take SYSCALL param, document it in --help and in manpage.
46246 To not waste an option letter for just one trick,
46247 extend -b to take a parameter:
46248 "on which syscalls do you want to detach?".
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>
46263 Second, clients of umoven and umovestr are not prepared to detect and
46265 way to handle them is to return an error code.
46270 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46273 * pathtrace.c (upathmatch): Only NUL-terminated strings can be
46274 path-matched, so fix the umovestr return code check to filter out
46277 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46279 Fix compilation errors uncovered by -Werror=enum-compare.
46280 This fixes regression introduced by commit v4.7-111-g9cbc15b.
46285 2013-02-26 Denys Vlasenko <vda.linux@googlemail.com>
46287 Mass replace error_msg("%s", "literal") -> error_msg("literal")
46288 There is no need to print literal strings through "%s".
46291 2013-02-26 Ben Noordhuis <info@bnoordhuis.nl>
46296 while its callers expect it to simply return zero on success.
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.
46315 Don't set skip_startup_execve to 1 if NOMMU and not in daemonized mode
46316 (try "strace [-D] -b env echo HI" to see whether we detach on correct execve).
46318 Fix test_ptrace_FOO shortcuts on NOMMU to always assume success
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.
46353 * util.c (dumpstr): Rewrite to be faster and smaller.
46355 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46359 in it. MAX_QUALS had to be maintained by hand to be higher than syscall
46360 count. It also limited the highest possible fd to track.
46362 This change makes qual_flagsN[] arrays start sized to the required minimum
46364 -e read=BIGNUM. As a precaution, BIGNUM should be < 2^15, but this limit
46367 qual_flags is now a define to qual_vec[current_personality].
46370 names in one-personality arches to their corresponding <foo>0 arrays,
46377 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46382 The future change will need to typedef sysent to sysent0,
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
46429 to struct tcb. Remove "int u_nargs" from it.
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].
46456 Print undefined syscall name with undefined_scno_name(tcp).
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.
46468 Extending syscall table to have [0x000f0005] index is of course
46471 Someone decided to handle that by having a separate personality
46474 But multi-personality arch does a bit more work in other parts.
46477 down to the entries just above last ordinary syscall,
46480 In order to not worsen genuine undefined scnos' printing,
46481 the code remaps scno back to actual value before printing
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>
46524 failing, and to top it off, the tracer's stack was also
46529 make a malloced copy instead. Explain "NOMMU + -D bug"
46532 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46534 Make it possible to to do test builds for NOMMU architectures.
46535 And while using it, I discovered that -D doesn't work too well
46538 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46586 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46594 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46598 to figure out what gets used when.
46612 *at most* two permutations, no need to add yet another variable
46613 (sizeof(off_t)) to the mix.
46619 As a result, never remap sys_mmap64 to sys_mmap.
46625 As a result, never remap sys_*stat64 to sys_*stat etc.
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.
46643 to the only place it affects.
46646 Cast u_arg[5] (offset param) to unsigned long, to prevent erroneous signed
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.
46674 Add SEEK_DATA and SEEK_HOLE to them.
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>
46692 * file.c: Rename whence[] to whence_codes[].
46693 (sys_lseek): Fix printxval() to use whence_codes[].
46696 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46699 The code doesn't look fully correct to me, but I need to experiment
46708 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46710 Cosmetic fixes to syscall tables, no code changes.
46712 2013-02-16 Denys Vlasenko <vda.linux@googlemail.com>
46720 * syscall.c (get_error): Change return type to void.
46724 Mass rename of SCNO_IN_RANGE define to SCNO_IS_VALID.
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.
46737 Change i386_regs from "struct pt_regs" to "struct user_regs_struct".
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>
46800 * defs.h: Added or1k to use register reading system.
46803 * process.c: Added or1k register defs to struct_user_offsets[].
46815 2013-02-14 Denys Vlasenko <vda.linux@googlemail.com>
46817 [X86] Use ptrace(PTRACE_GETREGSET, NT_PRSTATUS) to get registers.
46818 Unlike PTRACE_GETREGS, this new method detects 32-bit processes
46821 While at it, also fixed x32 detection to use __X32_SYSCALL_BIT,
46825 * strace.c: Make os_release non-static, remove KERNEL_VERSION define.
46830 on earlier kernels fall back to old method.
46838 2013-02-13 Denys Vlasenko <vda.linux@googlemail.com>
46841 This makes it easier to grep for them.
46844 r0 -> bfin_r0,alpha_r0,sh_r0.
46845 a3 -> mips_a3.
46846 r2 -> mips_r2.
46851 2013-02-13 Denys Vlasenko <vda.linux@googlemail.com>
46853 Factor out code to check addr, fetch and print siginfo.
46854 * defs.h: Declare new function printsiginfo_at(tcp, addr).
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>
46927 use "defined(SPARC) || defined(SPARC64)". Better to use
46932 Move PTRACE_xxx compat defines up, before arch-specific
46938 2013-02-11 Denys Vlasenko <vda.linux@googlemail.com>
46941 * syscall.c: Move PT_FLAGS_COMPAT define to its only user, get_scno().
46942 Rename arm_regs_union's fields to names less likely to collide with
46947 Explain 64-bit check in X32 build better.
46949 2013-02-09 Dmitry V. Levin <ldv@altlinux.org>
46952 strace used to hang when decoding sigaltstack called with invalid
46956 Change return type to void.
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.
47019 No need to check and change personality on syscall exit.
47024 (printcall): Add commented-out PC printing.
47025 (get_regs): Remove now-unnecessary 64-to-32 bits register copying.
47028 2013-02-07 Denys Vlasenko <vda.linux@googlemail.com>
47031 This makes it easier to grep for them.
47035 r8,r10 -> ia64_r8,ia64_r10.
47036 d0 -> m68k_d0.
47037 a3 -> alpha_a3.
47038 r28 -> hppa_r28.
47039 r9 -> sh64_r9.
47040 r10 -> cris_r10.
47041 r3 -> microblaze_r3.
47047 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47049 Rename ARM's regs structure to arm_regs.
47050 Compile-tested.
47052 * defs.h: Rename regs structure to arm_regs.
47061 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47068 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47082 (init): Set need_fork_exec_workarounds to TRUE if needed.
47083 * syscall.c: Rename internal_syscall() to syscall_fixup_for_fork_exec().
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.
47121 * syscall.c (printcall): Cast x86_64_regs.rip to the type being printed.
47123 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
47128 2013-02-05 Chris Metcalf <cmetcalf@tilera.com>
47130 Add tilegx support to strace.
47133 present in strace, primarily the decision to use the
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>.
47153 (tile_regs) [TILE]: Define 'struct pt_regs' variable to hold state.
47154 (get_regs) [TILE]: use PTRACE_GETREGS to set tile_regs rather than using upeek.
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
47196 * syscall.c (get_regs): New function. Used to fetch registers early,
47199 if available on the arch, instead of re-fetching it.
47203 * util.c (printcall): Moved to syscall.c.
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>
47217 * file.c (print_xattr_val): Do not attempt to decode a zero sized array.
47220 2012-12-08 Stanislav Brabec <sbrabec@suse.cz>
47224 and kernel, I started to believe that timeval should be located in
47225 tcp->u_arg[4] and not tcp->u_arg[5]. Fortunately, tcp->u_arg[5] now
47226 works correctly as well, due to side effects of decode_ipc_subcall().
47235 We have to use indexes: 0 3 1 4
47240 We have to use indexes: 0 3 1 2
47245 2012-12-06 John Spencer <maillist-strace@barfooze.de>
47251 2012-11-29 James Hogan <james.hogan@imgtec.com>
47253 Add state argument to change_syscall and fix SPARC.
47254 Add a state argument to change_syscall() so that SPARC can modify that
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.
47265 (setbpt, clearbpt): Pass state argument to change_syscall.
47267 2012-11-12 Steve McIntyre <steve.mcintyre@linaro.org>
47269 Add support for tracing 32-bit ARM EABI binaries on AArch64.
47271 accessor macros, so it's possible to build on AArch64 without
47272 ARM system headers. Set SUPPORTED_PERSONALITIES to 2.
47274 Set DEFAULT_PERSONALITY to 1.
47287 AArch64 we can fall back to supporting the ARM personality.
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>
47313 * linux/*/syscallent.h: Add TF flag to quotactl entry.
47315 2012-10-26 Steve McIntyre <steve.mcintyre@linaro.org>
47317 Add AArch64 support to strace.
47331 asm-generic/unistd.h.
47333 2012-10-26 Steve McIntyre <steve.mcintyre@linaro.org>
47338 * linux/errnoent.h (ERRNO_517): Change to EPROBE_DEFER.
47339 (ERRNO_518): Change to EOPENSTALE.
47341 2012-10-26 Namhyung Kim <namhyung.kim@lge.com>
47343 Add -e trace=memory option.
47354 * linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls.
47374 2012-09-28 Mike Frysinger <vapier@gentoo.org>
47383 2012-09-28 Dmitry V. Levin <ldv@altlinux.org>
47386 strace used to honor fflush(3) return value in trace_syscall_entering
47387 which resulted to tracees not being PTRACE_SYSCALL'ed which in turn
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>
47430 Starting with linux 3.6 (and backported to earlier kernels), these two
47431 syscalls have changed numbers (moving from native to compat entry points).
47434 * linux/x32/syscallent.h: Move setsockopt from 54 to 541, and move
47435 getsockopt from 55 to 542.
47437 2012-08-16 Dmitry V. Levin <ldv@altlinux.org>
47442 2012-07-12 Dmitry V. Levin <ldv@altlinux.org>
47446 redirected to a file or a pipe, close it and wait for the pipe
47452 2012-07-10 Denys Vlasenko <vda.linux@googlemail.com>
47455 * defs.h: Define USE_SEIZE to 1. Remove PTRACE_SEIZE_DEVEL
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>
47488 * system.c (sys_sysctl): Cast pointer to long, not size_t,
47489 when we intend to use it as an address. Set oldlen to 0 prior
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.
47497 "fast" printf code doesn't support those too, I convert them to %lu and %ld.
47499 * bjm.c (sys_query_module): Convert %Zd usages to %lu.
47502 2012-05-15 Denys Vlasenko <vda.linux@googlemail.com>
47511 2012-05-15 Denys Vlasenko <vda.linux@googlemail.com>
47514 On 64bit systems with a single personality, they used to be sizeof(long),
47519 * count.c (call_summary): Revert the change which added cast to int.
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
47559 So rename our local function to something unique, and add a define so the
47563 (process_vm_readv): Define to strace_process_vm_readv.
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.
47600 * tests/strace-f: Likewise.
47602 Reported-by: Mike Frysinger <vapier@gentoo.org>
47604 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47614 version to use.
47621 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47626 * net.c (printmmsghdr): Add msg_len parameter to pass down to do_msghdr.
47627 When this parameter is zero, pass mmsghdr.msg_len to do_msghdr instead.
47628 (decode_mmsg): Add msg_len parameter, pass it down to printmmsghdr.
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
47650 as printstr(len). Truncating them to int may be a bad thing.
47652 * defs.h: Change len parameter's type from int to long in
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
47667 * net.c (do_msghdr): Add data_size parameter, pass it down to tprint_iov_upto.
47668 (printmsghdr): Add data_size parameter, pass it down to do_msghdr.
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>
47684 Cast current_wordsize to an int.
47690 Since on multi-personality systems this is an array of ints, cast
47691 the multiplication to an int and update the printf format.
47693 * count.c (call_summary): Change %u to %d and cast first argument to int.
47695 2012-04-20 Dmitry V. Levin <ldv@altlinux.org>
47701 * debian/changelog: Sync with 4.5.20-2.3.
47703 * strace.spec: Sync with 4.6-2.
47705 2012-04-18 Mike Frysinger <vapier@gentoo.org>
47708 Needed to debug some losetup failures, and it's easier when you can see
47719 2012-04-18 H.J. Lu <hongjiu.lu@intel.com>
47727 * defs.h (SUPPORTED_PERSONALITIES): Set to 2 for X32.
47728 (PERSONALITY1_WORDSIZE): Set to 4 for X32.
47747 2012-04-17 H.J. Lu <hongjiu.lu@intel.com>
47749 Cast clock_t type to unsigned long long.
47750 * resource.c (sys_times): Cast clock_t type to unsigned long long.
47753 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47756 * defs.h: Declare strace_vfprintf either as a alias to vfprintf
47762 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47767 * block.c (block_ioctl): Cast the value to unsinged and use %u
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>
47784 Add x32 support to strace.
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
47791 This patch adds x32 support to strace. Tested on Linux/x32.
47794 * defs.h: Set SUPPORTED_PERSONALITIES to 3 for X86_64,
47795 Set PERSONALITY2_WORDSIZE to 4 for X86_64.
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.
47847 for lseek parameter and return value. We need u_lrval to handle it
47852 Set RVAL_MASK to 7.
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.
47876 The ptrace setoptions code will fork a child which goes to sleep and
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
47882 of work, but easier to just disable this for the release so it works
47887 2012-03-29 Denys Vlasenko <vda.linux@googlemail.com>
47891 2012-03-27 Anton Blanchard <anton@samba.org>
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.
47944 configure.ac: sort lists and use m4_normalize to ease maintenance.
47948 2012-03-23 Denys Vlasenko <vda.linux@googlemail.com>
47951 Why open-coding isdigit is a good idea?
47968 * defs.h: Alias sigemptyset to __sigemptyset on glibc.
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>
47981 Simplify current tcp switching and current column handling.
47983 to cache current outfile and its position, we can simply
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.
48004 (printleader): Switch current tcb by "current_tcp = tcp" istead of
48005 assignments to outf and curcol.
48006 (droptcb): Set current_tcp to NULL if we dropped it.
48007 (startup_child): Rename outf to shared_log.
48010 (trace): Simplify current tcp switching and current column handling.
48012 2012-03-22 Denys Vlasenko <vda.linux@googlemail.com>
48015 * strace.c (droptcb): Remove outfname check in "outfname && followfork >= 2" -
48019 This allows to remove tcp != NULL checks in threaded execve handling.
48020 Rewrite threaded execve handling code to be less indented,
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.
48035 Slight tweak to qemu_multiarch_testing scripts.
48037 2012-03-21 Denys Vlasenko <vda.linux@googlemail.com>
48040 After this change, we no longer need to decide when we need
48041 to set TCB_REPRINT, and when we don't: it's never needed :)
48043 Well, almost. That pesky pid-changing execve needs special treatment.
48044 If not it, it'd be possible to nuke TCB_REPRINT...
48046 While at it, fix a case of mishandled -C.
48050 Fix mishandling of -C.
48053 Remove call to printargs(): it is known to just return 0 here.
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>
48064 This tells user that strace failed to let sendto syscall
48065 to be entered - process was dead at that point of time.
48066 It is (marginally) better than to always say "<unfinished ...>"
48068 While at it, patch removes tcp->ptrace_errno.
48070 it is not needed for ptrace error detection: I failed to execute
48074 * defs.h: Remove struct tcp::ptrace_errno field.
48075 * strace.c (ptrace_restart): Emit message to log on error.
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.
48089 * syscall.c (syscall_enter): Rename to get_syscall_args.
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>
48132 Update qemu build script: now tries to upload result back to host.
48134 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48139 That is, "SYS_53" string had to be allocated and stored in strace binary.
48152 Tested to still decode undefined syscalls correctly (syscall no. 222 on i386).
48157 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48168 Make set_personality() no-op, current_personality constant zero,
48187 * syscall.c: Initialize sysent to sysent0 etc.
48191 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48194 sys_pwrite seems to do the same thing as sys_pwrite64
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).
48235 supposed to be used if off_t is long long. It appears to be buggy
48238 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48243 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48250 It is defined to sys_lseek if HAVE_LONG_LONG_OFF_T is true.
48253 conditional it sits in can be simplified to
48257 by addind an "else" clause to it.
48258 To simplify it more, drop define and just rename sys_lseek64 ->
48264 * file.c (sys_lseek64): Rename to sys_lseek; don't compile it
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>
48303 Move change_syscall() to its only user and make it static.
48308 MAP_ANON is the same as MAP_ANONYMOUS, no need to have the former.
48316 2012-03-16 Dmitry V. Levin <ldv@altlinux.org>
48332 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48334 Remove another "interrupt to quit" message.
48335 * strace.c (startup_attach): Remove another "interrupt to quit" message.
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 -
48344 Call newoutf(tcp) after successful attach.
48345 (startup_child): Call newoutf(tcp) after successful attach.
48346 (trace): Call newoutf(tcp) when we picked up already attached child.
48348 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48356 Shuffle functions around to make compiler happy.
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>
48401 compiler to optimize out unreachable code that is not expected to work
48404 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48407 * tests/init.sh (check_strace): Use "${parameter:-word}" shell syntax
48408 instead of "${parameter-word}".
48410 Reported-by: Mike Frysinger <vapier@gentoo.org>
48412 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48416 to protect the definition of the func itself. This fixes warnings
48422 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48448 and change number of arguments to two.
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.
48469 (getfdpath): Simplify snprintf to sprintf.
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.
48477 "A traced process which tries to block SIGTRAP will be sent a SIGSTOP
48478 in an attempt to force continuation of tracing." - not needed
48481 - not true anymore.
48484 - not true anymore.
48487 * strace.c (init): Set SIGCHLD to SIG_DFL earlier.
48501 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48505 finer-grained checks such as "kernel >= 3.2.1".
48508 * strace.c: Change os_release from string to integer.
48509 (get_os_release): Parse uname.release to KERNEL_VERSION
48511 (init): Convert kernel version check to KERNEL_VERSION.
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>
48552 Rename dtime to Tflag, debug to debug_flag.
48554 variable declarations from int to bool.
48557 Rename dtime to Tflag, debug to debug_flag.
48558 * syscall.c: Rename dtime to Tflag, debug to debug_flag.
48560 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48562 Fix compiler warnings about breaking strict-aliasing rules.
48563 * system.c (sys_capget, sys_capset): Use proxy unions to cast long*
48564 pointers to cap_user_header_t and cap_user_data_t pointers without
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>
48600 failed to recognize AT_EMPTY_PATH. Merging these incomplete
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.
48640 Our logic which was deciding whether to print "<unfinished ...>"
48641 thingy wasn't working properly for -ff case.
48643 * defs.h: Group log generation-related declarations together.
48647 to indicate that previous line was finished.
48648 (printleader): Change logic to fix log generation in -ff mode.
48649 (newoutf): Make check for -ff mode consistent with other places.
48650 (droptcb): Print "<detached ...>" if last line for this tcp wasn't finished.
48651 (cleanup): Remove code to print "<unfinished ...>", printleader()
48653 (trace): Remove code to print "<unfinished ...>".
48655 with " <pid changed to PID ...>" message. Replace printing_tcp = NULL
48657 * process.c (sys_exit): Call line_ended() to indicate that we finished priting.
48658 * syscall.c (trace_syscall_exiting): Set printing_tcp to current tcp.
48659 Call line_ended() to indicate that we finished priting.
48660 Remove call to fflush(), it is done by line_ended() now.
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>
48682 (Need to be careful and not allow automatic inlining).
48684 * strace.c (init): New function. Most of pre-existing code of
48686 (main): Call init() to do initialization.
48688 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48696 2012-03-11 Dmitry V. Levin <ldv@altlinux.org>
48702 mmsghdr array to print.
48706 (sys_recvmmsg): Use decode_mmsg to fix mmsghdr array decoding.
48723 Define sys_set_robust_list as an alias to sys_munmap.
48724 * linux/dummy.h (sys_set_robust_list): Redefine to sys_munmap.
48733 Define sys_setns as an alias to sys_inotify_rm_watch.
48734 * linux/dummy.h (sys_setns): Redefine to sys_inotify_rm_watch.
48742 Alias sys_fsync to sys_close.
48745 * linux/dummy.h (sys_fsync): Alias to sys_close.
48746 * linux/m68k/syscallent.h: Add TD flag to fsync entry.
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
48809 of strace's parent. It's ok to handle it exactly as an attached process.
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>
48819 Fix the case where we try to detach unattached processes.
48821 $ strace -D -p1
48822 strace: -D and -p are mutually exclusive options
48823 Process 1 detached <==== WRONG! (and we try to SIGSTOP it!!!)
48826 is attached to us". Add TCB_STRACE_CHILD: "this tracee is our child".
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.
48850 In this case we were printing PIDs to LOG.* files
48859 (printleader): Use print_pid_pfx to decide whether to print pid prefix.
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.
48881 * util.c (ptrace_restart): Do not pass addr=1 to ptrace(), pass 0 instead.
48888 2012-03-08 Denys Vlasenko <vda.linux@googlemail.com>
48890 Trivial tweaks to error messages.
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.
48936 to eliminate sprintf(buf, "RLIM_INFINITY"). Use smaller static buffer.
48941 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48950 * desc.c (sys_epoll_create): Call printargs_ld() instead of open-coding it.
48954 * process.c (sys_setgid): Delete this function: now aliased to sys_setuid().
48955 (sys_getresgid): Delete this function: now aliased to sys_getresuid().
48956 (sys_setregid): Delete this function: now aliased to sys_setreuid().
48957 (sys_setresgid): Delete this function: now aliased to sys_setresuid().
48958 (sys_setpgrp): Delete this function: now aliased to printargs_lu().
48962 (sys_getpgrp): Delete this function: was unused - was already shadowed
48966 * resource.c (sys_nice): Delete this function: now aliased to printargs_ld().
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>
48991 This change is a verbatim part of Dmitry's changes to remove support
48992 for non-Linux architectures.
48994 * Makefile.am: Don't install PORTING file. Install README-linux-ptrace file.
48995 Set OS variable to linux unconditionally.
48996 * configure.ac: Remove code to set opsys variable, and its usage.
49001 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
49004 This change is a verbatim part of Dmitry's changes to remove support
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>
49016 This change is abapted from Dmitry's changes to remove support for
49017 non-Linux architectures.
49028 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49030 Build fixes after non-Linux code removal.
49031 * configure.ac: Remove calls to proc-based ptrace checks.
49033 * Makefile.am: Remove reference to proc.c.
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 -
49080 Makefile.am: remove references to deleted files.
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>
49095 When accessing data blocks, truncate addr to wordsize.
49096 * util.c (umoven): Truncate addr to wordsize before use.
49098 2012-02-22 Dmitry V. Levin <ldv@altlinux.org>
49109 * strace.c (main): Set RLIMIT_CORE to zero before terminating itself
49113 2012-02-20 Dmitry V. Levin <ldv@altlinux.org>
49118 * process.c [IA64]: Replace known_scno(tcp) with tcp->scno.
49122 (syscall_fixup_on_sysenter) [USE_PROCFS]: Replace known_scno(tcp)
49123 with tcp->scno.
49131 to printargs.
49134 (setbpt): Use sys_func to check for clone, fork and vfork syscalls.
49137 * linux/dummy.h (sys_ipc, sys_socketcall): Remove redirections to
49148 * syscall.c (trace_syscall_entering): Use sys_func to check for ipc and
49151 2012-02-20 Dmitry V. Levin <ldv@altlinux.org>
49156 entries there is no need to initialize native_scno.
49166 * strace.c [USE_PROCFS] (proc_open): Use sys_func to check for execve.
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>
49204 Cast to long for %l in printf.
49205 Cast a value to long for %l in printf to avoid compiler warning
49208 * count.c (call_summary_pers): Cast to long.
49214 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49217 When HAVE_LONG_LONG_OFF_T is defined, we need to use %llu to print
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>
49246 * linux/mips/syscallent.h: Use sys_pread and sys_pwrite to handle
49252 2012-02-03 Denys Vlasenko <vda.linux@googlemail.com>
49254 Trivial changes to help text. No code changes.
49256 make -V and -h sit on separate lines (hard to see them otherwise).
49258 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
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.
49283 to _tracee_ to die instead?" are typical complaints.
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.
49299 (cleanup): If we exiting due to signal, send that signal to child tracee.
49301 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49303 Add experimental code to use PTRACE_SEIZE, disabled by default.
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.
49312 This leaves tracee stopped. This fixes the inability to SIGSTOP or ^Z
49315 * defs.h: Add commented-out "define USE_SEIZE 1" and define PTRACE_SEIZE
49318 to expect SIGSTOP on attach (IOW: are we going to use PTRACE_SEIZE).
49320 PTRACE_SEIZE + PTRACE_INTERRUPT to attach to given pid.
49323 (test_ptrace_setoptions_followfork): More robust parameters to PTRACE_TRACEME.
49324 (test_ptrace_seize): New function to test whether PTRACE_SEIZE works.
49327 to not let tracee run.
49329 * util.c (ptrace_restart): Add "LISTEN" to a possible error message.
49331 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49337 Revert last change. Add a comment to prevent further misunderstanding.
49341 * time.c (sys_nanosleep): Fix bug - inverted is_restart_error() check.
49344 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49346 Use process_vm_readv instead of PTRACE_PEEKDATA to read data blocks.
49347 Currently, we use PTRACE_PEEKDATA to read things like filenames and
49350 For example, in order to print fstat syscall, we need to perform
49351 more than twenty trips into kernel to fetch one struct stat!
49353 Kernel 3.2 got a new syscall, process_vm_readv(), which can be used to
49357 with fallback to old method if process_vm_readv() fails.
49358 If it returns ENOSYS, we don't try to use it anymore, eliminating
49361 Result of "time strace -oLOG ls -l /usr/lib >/dev/null":
49365 * util.c (process_vm_readv): Wrapper to call process_vm_readv syscall.
49374 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49377 * defs.h: Rename tcp_last to printing_tcp. Explain what it means.
49379 * process.c (sys_exit): Convert printtrailer() call to "printing_tcp = NULL".
49381 (cleanup): Convert printtrailer() call to "printing_tcp = NULL".
49383 (trace): Fix checks for incomplete line - it was working wrongly if last syscall was exit.
49388 (trace_syscall_exiting): Convert printtrailer() call to "printing_tcp = NULL".
49390 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49393 Since 3.0, Linux has a way to identify which thread execve'ed.
49394 This patch makes use of it in order to properly dispose
49415 (main): Call get_os_release to retrieve Linux version.
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>
49469 we want to send entire message as one write() call. Since stderr
49470 is unbuffered, separate fprintf's to it always result in separate
49472 which writes to this particular stderr, this may result
49476 it's ok to make it less efficient.
49478 * strace.c (verror_msg): Attempt to print the message in single
49479 write operation. Use separate fprintfs as a fallback if malloc fails.
49481 2012-01-21 Denys Vlasenko <vda.linux@googlemail.com>
49485 to a flag variable later, closer to the place where it will be used.
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.
49498 (umovestr): Change to return 1 if NUL was seen.
49500 umovestr result may have no NUL, use "%.*s" instead of "%s" to print it.
49505 2012-01-20 Denys Vlasenko <vda.linux@googlemail.com>
49513 Add 'int special' parameter to sprinttv().
49515 similarly to 'int special' parameter of printtv_bitness().
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>
49556 On attempts to block or set SIGTRAP handler,
49561 It appears to work just fine.
49563 It also works if I force strace to not use PTRACE_O_TRACESYSGOOD,
49565 not (SIGTRAP | 0x80) - I wondered maybe that's when
49573 and sys_sigprocmask syscalls - the ones which are most usually
49574 used to implement signal blocking, it is only set in obsolete
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>
49606 Change x86_64_regs struct type from pt_regs to user_regs_struct.
49608 pt_regs to user_regs_struct, and explain the change in comment.
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>
49622 all four of them the same: as "(To be restarted)".
49626 codes that way - or else someone confused
49627 is bound to come later and mangle them again.
49630 ERESTARTSYS (To be restarted if SA_RESTART is set)
49631 ERESTARTNOINTR (To be restarted)
49638 2012-01-10 Denys Vlasenko <dvlasenk@redhat.com>
49640 Fix sigreturn arg count from 1 to 0 on all architectures.
49641 * linux/alpha/syscallent.h: Change [rt_]sigreturn's arg count to 0.
49654 2012-01-10 Denys Vlasenko <dvlasenk@redhat.com>
49656 Display mask on enter to sigreturn, not on exit.
49657 sys_sigreturn() performs ugly manipulations in order to show
49659 fetches it from the stack, saves it in tcp->u_arg[]
49660 (where it used to overflow this array - fixed sometime ago),
49663 Apparently, the motivation is to make it slightly more obvious
49664 to user that signal mask is restored only when this syscall returns.
49666 to display the mask at the point when we fetch it - on syscall entry.
49672 which re-arms ALRM:
49676 rt_sigsuspend([INT]) = ? ERESTARTNOHAND (To be restarted)
49677 --- {si_signo=SIGALRM, si_code=SI_KERNEL} (Alarm clock) ---
49683 rt_sigsuspend([INT]) = ? ERESTARTNOHAND (To be restarted)
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>
49696 and we happened to poke it at the same time, we print "????(" thingy
49712 2012-01-04 Denys Vlasenko <dvlasenk@redhat.com>
49715 * strace.c (detach): Drop sig parameter - it is zero in all calls.
49716 (cleanup): Don't pass sig = 0 to detach() call.
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>
49744 * net.c (socktcpoptions): Add more TCP_* constants from linux/tcp.h.
49745 Reported-by: Rick Jones <rick.jones2@hp.com>
49747 2011-12-01 Heiko Carstens <heiko.carstens@de.ibm.com>
49754 This leads to broken decoding of the timespec argument:
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>
49771 Remove 51 function declarations aliased to other declarations in
49796 linux/dummy.h: Move nfsservctl to "unimplemented" section.
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>
49960 Rename siggetmask to sgetmask and sigsetmask to ssetmask.
49961 * linux/arm/syscallent.h: Rename siggetmask to sgetmask and
49962 sigsetmask to ssetmask.
49970 * linux/ia64/syscallent.h: Rename sys_sgetmask to sys_siggetmask,
49971 sys_ssetmask to sys_sigsetmask.
49973 Add TRACE_IPC flag to sys_ipc syscall entries.
49974 * linux/arm/syscallent.h: Add TI flag to sys_ipc entry.
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>
50009 * linux/dummy.h: Add aliases to printargs() for those of dummy parsers
50015 to printargs().
50017 2011-10-14 Mike Frysinger <vapier@gentoo.org>
50021 (sys_epoll_create1): Use epollflags to printflags. Change "O" to "EPOLL".
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.
50061 This is wrong: it's better to set them right away on the very first
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>
50093 This also allows to get rid of TCB_ATTACH_DONE flag.
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>
50106 unify code paths to ptrace(PTRACE_SYSCALL).
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)
50123 it is always in [0, 1025*1024], IOW: we will try to allocate at most
50127 * desc.c (decode_select): Cap fdsize to 1024*1024.
50128 * pathtrace.c (pathtrace_match): Cap fdsize to 1024*1024.
50129 * file.c (sys_getdents): Cap len to 1024*1024.
50130 (sys_getdents64): Cap len to 1024*1024.
50131 * util.c (dumpiov): Refuse to process iov with more than 1024*1024
50135 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50137 Add stpcpy to autoconf machinery.
50138 * configure.ac: Add stpcpy to AC_CHECK_FUNCS.
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>
50160 unnecessary calls to getpid().
50199 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50201 Add README-linux-ptrace file.
50202 I tried to push this doc to Michael Kerrisk <mtk.manpages@gmail.com>,
50203 but got no reply. To avoid losing the document, let it live
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>
50236 * defs.h: Change sprinttv() return type to char *.
50238 * desc.c (decode_select): Change printing logic in order to eliminate
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 -
50248 we potentially do them for every single byte, need to be fast.
50259 2011-08-30 Denys Vlasenko <dvlasenk@redhat.com>
50262 * syscall.c (syscall_enter): Optimize tcp->u_arg[i] setting
50265 2011-08-30 Denys Vlasenko <dvlasenk@redhat.com>
50267 On X86_64 and I386, use PTRACE_GETREGS to fetch all registers.
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>
50289 Include <sys/param.h> to get PATH_MAX definition.
50290 * pathtrace.c: Include <sys/param.h> instead of <limits.h> to get
50293 Reported-by: Steve Bennett <steveb@workware.net.au>
50295 2011-08-26 Denys Vlasenko <dvlasenk@redhat.com>
50300 Rename syscall_fixup to syscall_fixup_on_sysenter.
50302 * syscall.c: Rename syscall_fixup to syscall_fixup_on_sysenter.
50310 for this function to get_syscall_result. Affected arches:
50314 2011-08-25 Denys Vlasenko <dvlasenk@redhat.com>
50317 * syscall.c (syscall_fixup): Remove checks for entering(tcp).
50318 Remove code which executes if exiting(tcp).
50320 if entering(tcp). Remove checks for exiting(tcp).
50331 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50335 On glibc, tprintf("%*s", col - curcol, "") is noticeably slow
50336 compared to tprintf(" "). Use the latter.
50346 (tabto): Use simpler method to print lots of spaces.
50348 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50352 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50357 scno to unsigned long: ((unsigned long)(scno) < nsyscalls)
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>
50437 * defs.h: Rename get_scno_on_sysenter() to get_scno();
50439 * strace.c (proc_open): Rename get_scno_on_sysenter() to get_scno().
50440 * syscall.c: Rename get_scno_on_sysenter() to get_scno().
50441 Rename get_scno_on_sysexit() to get_syscall_result().
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
50448 (multitude of places on many architectures) to a single location
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.
50466 to get_scno_on_sysexit, and (b) perform EAX retrieval in syscall_fixup
50474 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50483 * syscall.c (get_scno_on_sysenter): Remove "if (exiting(tcp))" code,
50484 make "if (entering(tcp))" code unconditional.
50485 (get_scno_on_sysexit): Remove "if (entering(tcp))" code,
50486 make "if (exiting(tcp))" code unconditional.
50488 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50492 It checks for post-execve SIGTRAP. It checks for changes
50499 syscall exit, which is stupid: we don't need to know scno on syscall
50501 tcp->scno! In essence, get_scno() does two completely different things
50505 The following patches will try to improve this situation.
50511 * defs.h: Rename get_scno to get_scno_on_sysenter; declare it only
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>
50529 Define MAX_ARGS to 6 for all Linux arches.
50530 * defs.h: Define MAX_ARGS to 6 for all Linux arches.
50531 * linux/ia64/syscallent.h: Change all 8-argument printargs
50532 to MA (MAX_ARGS).
50533 linux/mips/syscallent.h: Change all two 7-argument printargs
50534 to MA (MAX_ARGS).
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.
50625 * defs.h (count_syscall): Change return type from int to void.
50626 * count.c (count_syscall): Change return type from int to void.
50628 to count_syscall accordingly.
50647 Exclude tcp->pfd from non-procfs systems.
50649 * strace.c (alloc_tcb): Use tcp->pfd only if USE_PROCFS.
50652 Small optimizations related to memory allocation.
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>
50688 allowing gcc to see their sizes and eliminate variables
50698 * syscall.c: Move above definitions to this file. Make them static const
50701 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50704 * defs.h (set_personality): Change return type to void.
50705 * syscall.c (set_personality): Change return type to void.
50710 Use natural-sized integer field for tcb::flags.
50711 * defs: Change struct tcb::flags type from short to int.
50715 * syscall.c (get_scno): For POWERPC64 and X86-64, variable currpers
50717 to ordinary local variable.
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
50736 * defs.h (addflags): Change return type from int to void.
50737 * util.c (addflags): Change return type from int to void.
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!
50757 This commit changes the code to save NSIG / 8 bytes only.
50759 thus NSIG / 8 is <= 16 bytes == 4 32-bit words,
50762 * defs.h: Reduce MAX_ARGS for X86_64 and I386 from 32 to 8
50763 for FreeBSD and to 6 for everyone else. Add comment about current
50766 (sprintsigmask): Reduce static string buffer from 8k to 2k.
50767 (sys_sigreturn): Fix sigset saving to save only NSIG / 8 bytes,
50769 * linux/mips/syscallent.h: Reduce nargs of printargs-type syscall to 7.
50770 * linux/arm/syscallent.h: Reduce nargs of printargs-type syscall to 6.
50780 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50783 * mem.c (sys_old_mmap): For Ia64 and 32-bit personality of x86-64,
50785 separate ones; then assign them to long u_arg[i]. For SH[64],
50786 avoid copying of tcp->u_arg.
50787 (sys_mmap): Add FIXME comment - SH64 and i386 seem to be handled
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
50800 [7] without checking that it's valid to do so.
50806 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50809 * mem.c: Indent includes to show nesting better.
50813 Use simpler rounding up to next multiple of 2.
50814 * util.c (printllval): simpler rounding up to next multiple of 2.
50821 (signame): Reformat code a bit without changes to logic.
50827 2011-08-23 Dmitry V. Levin <ldv@altlinux.org>
50831 (test_ptrace_setoptions_followfork): Change return type to void.
50832 Fix and harden error handling. Use kill_save_errno() to avoid errno
50834 (test_ptrace_setoptions_for_all): Use kill_save_errno() to avoid errno
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:
50846 (1) to send signal on detach via tgkill (need to know tgid).
50848 (2) to optimize out ptrace options setting for new tracees.
50852 TCB_CLONE_THREAD is a misnomer. It used only to flag sibling we attached to
50853 in startup_attach. This is used to prevent infinite recursive rescanning
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*
50857 a thread leader, strace will happily attach to it and all siblings
50859 since we no longer detach when we think tracee is going to die,
50861 about thread group leaders for anything. (We used it to delay
50864 IOW: after this patch strace has no need to know about threads, parents
50871 * process.c (internal_fork): Don't set tcpchild->parent.
50873 TCB_CLONE_THREAD to avoid attach attempts on already-attached threads.
50878 not only when tcp->parent == NULL.
50880 2011-08-17 Denys Vlasenko <dvlasenk@redhat.com>
50886 Background: on some other OSes, attach to child is done this way:
50890 on Linux only, because on Linux attach to child is done differently.
50893 adding CLONE_THREAD bit to syscall (if needed, we change
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>
50919 Do not detach when we think tracee is going to die.
50920 Current code plays some ungodly tricks, trying to not detach
50924 which will cause tracee to exit.
50925 This operation is racy (not to mention the determination
50926 whether signal is set to SIG_DFL is a horrible hack):
50929 *other thread* may set a handler to this signal, and
50932 I need to look in the past to figure out why we even do it.
50934 kernel used to deliver exit notifications to the tracer,
50935 not to real parent. These workarounds are ancient
50938 The patch deletes the hacks. We no longer need tcp->nclone_threads,
50944 It is analogous to existing "+++ killed by SIG +++" message.
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>
51007 * strace.c (trace): Change ifdef LINUX to make a bit more sense,
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>
51049 While at it, it indents ifdefs so that nesting is easier to track,
51051 "tcp->u_nargs*sizeof..." -> "tcp->u_nargs * sizeof...".
51052 There is no actual changes to the code here.
51056 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51066 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51074 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51077 TCB_FOLLOWFORK flag seems to be unnecessary, because we either follow
51079 followfork is an already existing indicator of what we want to do.
51082 In internal_fork, check is moved to in front of if(), since
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>
51103 This allows us to avoid having code to malloc them, and code to check
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>
51146 Error from strace_fopen in main results in call to exit(1).
51147 Error from strace_fopen in newoutf is propagated to newoutf
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
51155 to the same outf will be lost. I don't think this is sane.
51159 (newoutf): Change return type to void.
51163 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51167 such as -1 or non-opened one. If we do, we have a bug
51168 in the caller. It makes no sense to try to continue
51172 indicator. Change function to return void.
51177 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51180 It makes no sense to postpone abort on strace_popen error
51181 unti it returns. Moreover, out-of-memory error was exiting
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>
51194 Get rid of fork_tcb() function. It used to do what the comment
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>
51219 In alloc_tcp, I use memset to clear entire new tcp.
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>
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,
51272 options need to be set on the child; otherwise they are inherited
51273 and do not need to be set.
51274 I misunderstood the check and if tcp->parent is not NULL, I was
51277 unnecessary to keep two sets of options in separate variables,
51289 depending on "tcp->parent == NULL" condition. Add a comment
51292 2011-06-18 Denys Vlasenko <dvlasenk@redhat.com>
51295 strace used to suspend waitpid until there is a child
51296 for waitpid'ing process to collect status from.
51299 were making waitpid in real parent to not see children.
51308 * strace.c (alloc_tcb): Do not set tcp->nclone_waiting.
51315 2011-06-13 Andi Kleen <ak@linux.intel.com>
51318 strace didn't decode important fields in the iocb passed to io_submit.
51319 This patch changes the code to dump them all. Also it prefixes the fields
51320 with names to make it easier to read.
51325 2011-06-13 Dmitry V. Levin <ldv@altlinux.org>
51327 Add argument to tprint_iov() specifying whether to decode each iovec.
51342 2011-06-13 Andi Kleen <ak@linux.intel.com>
51346 pointer for the timer id in the memory pointed to by timer_id.
51348 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51357 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51360 The test have to be adjusted after commit v4.6-5-g3454e4b.
51362 * ptrace_setoptions: Update grep pattern, rename to
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>
51383 not printargs, to show [rt_]sigreturn syscall, change number of arguments
51384 from 1 to 0: sys_sigreturn function doesn't use syscall parameters.
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
51400 Do not call umoven to fetch parameters if we have zero params.
51402 to fetch zero bytes. This is just an optimization.
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 ")=".
51424 test/sigkill_rain.c can be used to verify the fix.
51428 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51432 Update test/* directory, it seem to be a bit bit-rotted.
51433 Added README; modified sigkill_rain.c to be more understandable,
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
51492 This rule also applies to syscall's arguments.
51496 * util.c (printllval): Align 64bit argument to 64bit boundary on
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
51512 to a "modern" form. This does not change any actual code.
51527 2011-05-27 Denys Vlasenko <dvlasenk@redhat.com>
51531 * strace.c (SYSCALLTRAP): Rename to syscall_trap_sig.
51535 (main): Set strace_tracer_pid to our initial pid.
51536 (startup_attach): Change strace_tracer_pid if we are in -D mode.
51537 (test_ptrace_setoptions_for_all): Minor changes to logic,
51540 2011-05-25 Denys Vlasenko <dvlasenk@redhat.com>
51542 Identifier "errno" may be a macro, it's unsafe to use it.
51543 * strace.c (strerror): Rename parameter errno to err_no
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>
51556 * defs.h (ptrace_setoptions): Variable renamed to ptrace_setoptions_followfork.
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>
51578 * linux/errnoent.h: Change ERRNO_133 to EHWPOISON.
51580 2011-04-08 Grant Edwards <grant.b.edwards@gmail.com>
51582 Add ability to print file descriptor paths and filter by those paths.
51583 * pathtrace.c: New file, implements matching syscall arguments to
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.
51592 * syscall.c (trace_syscall_entering): Add path matching logic to the
51595 TCB_FILTERED bit to determine print/noprint status.
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>
51628 allowing each arch to maintain its own minor list.
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.
51643 * linux/alpha/ioctlent.h: Rename to linux/alpha/ioctlent.h.in, remove
51644 non-asm entries.
51645 * linux/bfin/ioctlent.h: Rename to linux/bfin/ioctlent.h.in, remove
51646 non-asm entries.
51647 * linux/hppa/ioctlent.h: Rename to linux/hppa/ioctlent.h.in, remove
51648 non-asm entries.
51649 * linux/ia64/ioctlent.h: Rename to linux/ia64/ioctlent.h.in, remove
51650 non-asm entries.
51651 * linux/mips/ioctlent.h: Rename to linux/mips/ioctlent.h.in, remove
51652 non-asm entries.
51653 * linux/powerpc/ioctlent.h: Rename to linux/powerpc/ioctlent.h.in,
51654 remove non-asm entries.
51655 * linux/s390/ioctlent.h: Rename to linux/s390/ioctlent.h.in, remove
51656 non-asm entries.
51657 * linux/sh/ioctlent.h: Rename to linux/sh/ioctlent.h.in, remove
51658 non-asm entries.
51659 * linux/sparc/ioctlent.h: Rename to linux/sparc/ioctlent.h.in, remove
51660 non-asm entries.
51677 * Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS).
51679 [MAINTAINER_MODE && LINUX]: Convert from ioctlent_h to ioctlent_h_in.
51683 2011-03-10 Dmitry V. Levin <ldv@altlinux.org>
51688 printsiginfo() to show more details about received signal.
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>
51718 * file.c (print_dirfd): Update prototype to use printfd().
51741 2011-03-03 Sebastian Pipping <sebastian@pipping.org>
51745 (sys_shutdown): Use shutdown_modes to decode 2nd syscall argument.
51751 2011-03-03 Dmitry V. Levin <ldv@altlinux.org>
51757 NULL-terminated.
51760 * tests/ptrace_setoptions: Replace "grep -q" with "grep > /dev/null".
51761 The former may result to strace being killed by SIGPIPE, which in
51762 certain configuratons may lead to generation of a core file.
51765 2011-03-01 Mike Frysinger <vapier@gentoo.org>
51771 2011-02-27 Dmitry V. Levin <ldv@altlinux.org>
51774 * configure.ac (AM_INIT_AUTOMAKE): Replace dist-bzip2 with dist-xz.
51776 * make-dist: Update for dist-xz.
51779 * .gitignore: Add strace-*.tar.xz.
51782 * debian/control: Update Build-Depends.
51786 Implement two basic "strace -f" tests.
51793 * tests/strace-f: Likewise.
51795 2011-02-26 Dmitry V. Levin <ldv@altlinux.org>
51808 2011-02-25 Dmitry V. Levin <ldv@altlinux.org>
51811 * linux/ioctlsort.c (main): Use NR and TYPE bits only, to sync with
51815 * test/.cvsignore: Rename to test/.gitignore.
51821 2011-02-24 Dmitry V. Levin <ldv@altlinux.org>
51829 * .mailmap: New file, required to map git author names and email
51830 addresses to canonical/preferred form.
51832 2011-02-23 Dmitry V. Levin <ldv@altlinux.org>
51836 to unsigned long.
51844 Fix compilation warning reported by gcc -Wunused-but-set-variable.
51847 2011-02-22 Mike Frysinger <vapier@gentoo.org>
51849 ioctlsort: zero pad ioctl codes to 4 places.
51855 2011-02-22 Mike Frysinger <vapier@gentoo.org>
51857 Update mount flags to latest linux.
51863 2011-02-22 Dmitry V. Levin <ldv@altlinux.org>
51866 * debian/changelog: Sync with 4.5.20-2.
51869 2011-02-20 Dmitry V. Levin <ldv@altlinux.org>
51871 Add TRACE_DESC|TRACE_FILE flags to fanotify_* sysentries.
51872 * linux/*/syscallent.h: Add TD flag to fanotify_init. Add TD|TF flags
51873 to fanotify_mark.
51878 Add TRACE_DESC flag to epoll_create* sysentries.
51879 * linux/*/syscallent.h: Add TD flag to sys_epoll_create and
51882 Add TRACE_DESC flag to fgetxattr, flistxattr, and fremovexattr sysentries
51883 * linux/*/syscallent.h: Add TD flag to sys_fgetxattr, sys_flistxattr,
51886 Add TRACE_FILE flag to swapoff sysentries.
51887 * linux/*/syscallent.h: Add TF flag to sys_swapoff.
51889 Add TRACE_DESC flag to fadvise64* sysentries.
51890 * linux/*/syscallent.h: Add TD flag to sys_fadvise64 and
51893 Add TRACE_DESC flag to mmap, mmap2, and old_mmap sysentries.
51894 * linux/*/syscallent.h: Add TD flag to sys_mmap and sys_old_mmap.
51907 2011-02-19 Dmitry V. Levin <ldv@altlinux.org>
51913 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51915 linux/sparc: move to common syscall.h.
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>
51926 sparc: add new funcs to syscall.h.
51932 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51936 Seems to be a really old copy of the common syscall.h.
51941 2011-02-19 Dmitry V. Levin <ldv@altlinux.org>
51945 SYS_exit to handle exit_group(2) as well as _exit(2).
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>
51991 * linux/mips/syscallent.h: Use sys_stat64() to decode stat64 syscall.
51994 Update linux/*/syscallent.h files to match Linux kernel v2.6.37.
52013 2011-01-16 Dmitry V. Levin <ldv@altlinux.org>
52021 Use format macros from inttypes.h to print values of type uint64_t.
52023 2011-01-15 Dmitry V. Levin <ldv@altlinux.org>
52029 * ioctl.c (ioctl_decode) [LINUX]: Use it to decode HDIO_* and BLK*
52033 2011-01-14 Holger Hans Peter Freyther <zecke@selfish.org>
52043 2011-01-14 Dmitry V. Levin <ldv@altlinux.org>
52046 * strace.1: Use bold instead of italics for "-e trace=" keywords.
52057 2011-01-13 Dmitry V. Levin <ldv@altlinux.org>
52061 PTRACE_O_TRACEVFORK to PTRACE_SETOPTIONS call, to test exactly
52062 the same set of options that is going to be used later in trace().
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)
52085 sh: Fix compilation warning in do_pipe due to missing prototype.
52086 * defs.h [SH]: Make getrval2 prototype visible to do_pipe
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>
52108 Output diagnostics to stderr.
52110 personality mode to stderr. Reported by Pádraig Brady.
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>
52142 use them to do followfork rather than the original setbpt
52153 call the new function to handle PTRACE_EVENT_* status, and
52156 2010-11-30 Wang Chao <wang.chao@cn.fujitsu.com>
52162 tracee. Since PTRACE_O_TRACECLONE/*FORK were introduced to kernel
52163 at the same time, this test seems to be enough for these 3 options.
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>
52180 If clone is called with flag CLONE_UNTRACED, to be consistent with
52186 2010-09-17 Dmitry V. Levin <ldv@altlinux.org>
52188 Update the list of CLOCK_* constants to match Linux kernel v2.6.32+
52192 2010-09-16 Dmitry V. Levin <ldv@altlinux.org>
52194 Update linux/hppa/syscallent.h to match Linux kernel v2.6.35.
52197 2010-09-15 Dmitry V. Levin <ldv@altlinux.org>
52199 Pass less information to qualify_one and qual_*
52201 qual_desc): Take just a bitflag argument instead of pointer to the whole
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
52221 any configure errors, the fall back code is pretty dumb (which is to say
52223 some fun compiler tricks with sizeof and array lengths to turn it into
52227 Convert from AC_RUN_IFELSE to AC_COMPILE_IFELSE.
52229 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52231 Fix long long little endian detection when cross-compiling.
52233 doesn't work when cross-compiling, it sets a fallback value. However,
52235 sets it to "no". This probably breaks most little endian systems out
52236 there when cross-compiling for them. It certainly breaks Blackfin
52238 and key off of that when cross-compiling.
52241 * m4/long_long.m4 (AC_LITTLE_ENDIAN_LONG_LONG): Set cross-compiling
52244 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52251 * linux/ioctlent.sh: Search a few non-exported paths.
52253 2010-09-15 Roland McGrath <roland@redhat.com>
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.
52290 * defs.h (struct xlat): Add const qualifier to the field of
52292 (set_sortby, qualify, printnum, printnum_int): Add const qualifier to
52294 * count.c (set_sortby): Add const qualifier to the argument and
52296 * desc.c (decode_select): Add const qualifier to automatic variables of
52298 * ioctlsort.c (struct ioctlent): Add const qualifier to fields of
52300 (main): Add const qualifier to argv.
52301 * process.c (printargv): Add const qualifier to the argument and
52303 (printargc) Add const qualifier to argument of type "char *".
52304 * signal.c (sprintsigmask, parse_sigset_t): Add const qualifier to
52307 (detach): Add const qualifier to automatic variable of type "char *".
52308 * stream.c (struct strbuf): Add const qualifier to the field of
52310 * syscall.c (struct qual_options): Add const qualifier to fields of
52313 to arguments of type "char *".
52314 (qual_signal): Add const qualifier to the argument of type "char *",
52317 * util.c (printflags): Add const qualifier to automatic variable of
52319 (printnum, printnum_int): Add const qualifier to arguments of
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
52358 are tcp's threads, rather than tcp's children.
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
52364 addition to the main thread, other threads could not be traced even if we
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>
52472 * debian/control: update standards-version to 3.8.4.
52477 * debian/rules: use *-stamp instead of stamp-*, so dh_clean can tidy
52480 2010-04-13 Heiko Carstens <heiko.carstens@de.ibm.com>
52484 pwritev to the system call table list.
52487 2010-04-07 Dmitry V. Levin <ldv@altlinux.org>
52490 * linux/ioctlent.sh: Search in asm-generic directory as well.
52493 Update linux/*/syscallent.h files to match Linux kernel v2.6.33.
52508 6 syscall names to match the kernel. Use sys_semop to parse semop.
52522 2010-04-07 Andreas Schwab <schwab@linux-m68k.org>
52525 * net.c (do_msghr): New function to print struct msghdr.
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.
52558 * count.c (count_syscall): Move clearing of TCB_INSYSCALL to ...
52562 Fix "make dist" regression introduced by commit v4.5.19-12-g5078770.
52563 * Makefile.am (EXTRA_DIST): Rename linux/syscallent.h to linux/i386/syscallent.h
52569 2010-03-31 Dmitry V. Levin <ldv@altlinux.org>
52572 This regression was introduced by commit v4.5.18-136-g783f5bc.
52574 (sys_msgsnd): Pass "flags" argument to tprint_msgsnd().
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>
52608 * configure.ac: Add TILE to the list of supported architectures.
52619 2010-02-04 Dmitry V. Levin <ldv@altlinux.org>
52643 2010-02-04 Frederik Schüler <fs@debian.org>
52646 * debian/control: add sparc64 to the architectures list.
52648 * Backport commit f0df31e71a58c6e79ba77c1a9d84b2f38d44bec7 to fix FTBFS.
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
52657 * debian/source/format: new file, adapt to debian source format "quilt"
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.
52686 * linux/syscallent.h: Moved to ...
52692 2009-11-16 Andreas Schwab <schwab@redhat.com>
52694 Remove support for pre-C89.
52695 * defs.h: Remove references to __STDC__ and P macros.
52698 2009-11-13 Dmitry V. Levin <ldv@altlinux.org>
52706 2009-11-11 Andreas Schwab <schwab@redhat.com>
52711 2009-11-06 Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
52714 * acinclude.m4 (AC_STATFS64): New macro to check for struct statfs64.
52719 2009-11-06 Dmitry V. Levin <ldv@altlinux.org>
52737 Fix check for linux/netlink.h on Linux 2.6.32-rc5+
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>
52776 * defs.h (struct tcp): Add curcol.
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
52794 process redirect to printstat.
52798 2009-10-12 Dmitry V. Levin <ldv@altlinux.org>
52802 2009-10-12 Mike Frysinger <vapier@gentoo.org>
52804 sparc/linux: Rewrite to use asm/ptrace.h.
52806 dropped that header completely. So switch over to the ptrace headers
52811 [SPARC || SPARC64] (change_syscall): Change struct regs to struct pt_regs.
52814 [SPARC || SPARC64] (sys_sigreturn): Change struct regs to struct pt_regs.
52817 syscall_enter): Change struct regs to struct pt_regs.
52821 struct regs to struct pt_regs.
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>
52853 Add pretty printing of sembuf argument to semop() and semtimedop()
52857 2009-10-08 Mike Frysinger <vapier@gentoo.org>
52859 Add support for Linux/no-mmu with vfork.
52867 On end of directory, getdents returns 0. This return value is used to
52870 then don't bother calling malloc(0) and set the pointer to NULL ourself.
52873 2009-10-07 Mike Frysinger <vapier@gentoo.org>
52879 Silence compiler warnings about implicit cast from pointer to integer.
52880 * util.c (do_ptrace): Cast ptrace() 4th arg to long.
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>
52919 * debian/control: Update to Debian standards version 3.8.1, and remove
52923 2009-10-05 Dmitry V. Levin <ldv@altlinux.org>
52925 * defs.h [HPPA]: Lower MAX_ARGS from 32 to 6.
52930 2009-10-05 Carlos O'Donell <carlos@systemhalted.org>
52936 * signal.c (sys_sigaction): Cast SA_HANDLER function pointers to long.
52939 2009-10-05 Edgar E. Iglesias <edgar.iglesias@gmail.com>
52941 CRIS: Correct first argument to upeek()
52944 tcp pointer instead of pid to upeek().
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>
52991 * linux/errnoent.h: Change ERRNO_132 to ERFKILL according to errno 132
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.