summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* netlink: fix printing of field names of struct nlmsghdrDmitry V. Levin2021-01-1150-398/+436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * netlink.c (print_nlmsghdr): Print "nlmsg_len" instead of "len", "nlmsg_type" instead of "type", "nlmsg_flags" instead of "flags", "nlmsg_seq" instead of "seq", and "nlmsg_pid" instead of "pid". * tests/netlink_audit.c: Update expected output. * tests/netlink_crypto.c: Likewise. * tests/netlink_generic.c: Likewise. * tests/netlink_netfilter.c: Likewise. * tests/netlink_protocol.c: Likewise. * tests/netlink_route.c: Likewise. * tests/netlink_selinux.c: Likewise. * tests/netlink_sock_diag.c: Likewise. * tests/netlink_xfrm.c: Likewise. * tests/nfnetlink_acct.c: Likewise. * tests/nfnetlink_cthelper.c: Likewise. * tests/nfnetlink_ctnetlink.c: Likewise. * tests/nfnetlink_ctnetlink_exp.c: Likewise. * tests/nfnetlink_cttimeout.c: Likewise. * tests/nfnetlink_ipset.c: Likewise. * tests/nfnetlink_nft_compat.c: Likewise. * tests/nfnetlink_nftables.c: Likewise. * tests/nfnetlink_osf.c: Likewise. * tests/nfnetlink_queue.c: Likewise. * tests/nfnetlink_ulog.c: Likewise. * tests/nlattr.c: Likewise. * tests/nlattr_br_port_msg.c: Likewise. * tests/nlattr_crypto_user_alg.c: Likewise. * tests/nlattr_dcbmsg.c: Likewise. * tests/nlattr_fib_rule_hdr.c: Likewise. * tests/nlattr_ifaddrlblmsg.c: Likewise. * tests/nlattr_ifaddrmsg.c: Likewise. * tests/nlattr_ifinfomsg.c: Likewise. * tests/nlattr_ifla.h: Likewise. * tests/nlattr_inet_diag_msg.c: Likewise. * tests/nlattr_inet_diag_req_compat.c: Likewise. * tests/nlattr_inet_diag_req_v2.c: Likewise. * tests/nlattr_mdba_mdb_entry.c: Likewise. * tests/nlattr_mdba_router_port.c: Likewise. * tests/nlattr_ndmsg.c: Likewise. * tests/nlattr_ndtmsg.c: Likewise. * tests/nlattr_netconfmsg.c: Likewise. * tests/nlattr_netlink_diag_msg.c: Likewise. * tests/nlattr_nlmsgerr.c: Likewise. * tests/nlattr_packet_diag_msg.c: Likewise. * tests/nlattr_rtgenmsg.c: Likewise. * tests/nlattr_rtmsg.c: Likewise. * tests/nlattr_smc_diag_msg.c: Likewise. * tests/nlattr_tc_stats.c: Likewise. * tests/nlattr_tca_stab.c: Likewise. * tests/nlattr_tcamsg.c: Likewise. * tests/nlattr_tcmsg.c: Likewise. * tests/nlattr_unix_diag_msg.c: Likewise. * tests/test_netlink.h: Likewise.
* sock: add decoding of a few SIOC* ioctl commandsDmitry V. Levin2021-01-103-9/+18
| | | | | | | | | * sock.c (print_ifreq): Handle SIOCADDMULTI, SIOCDELMULTI, and SIOCSIFHWBROADCAST. (sock_ioctl): Handle SIOCADDMULTI, SIOCDELMULTI, SIOCGIFENCAP, SIOCOUTQNSD, SIOCSIFENCAP, and SIOCSIFHWBROADCAST. * NEWS: Mention this change. * tests/ioctl_sock.c (test_int, test_ifreq): Check it.
* tests: check decoding of SIOC* ioctl commands with struct ifreq argumentDmitry V. Levin2021-01-101-0/+245
| | | | | * tests/ioctl_sock.c (test_ifreq): New function. (main): Use it.
* sock: enhance decoding of SIOCBRADDBR and SIOCBRDELBR commandsDmitry V. Levin2021-01-092-1/+32
| | | | | | | * sock.c (sock_ioctl): As the kernel does copy_from_user(buf, uarg, IFNAMSIZ) for these commands, do not print more than IFNAMSIZ symbols either. * tests/ioctl_sock.c: Check it.
* tests: check decoding of SIOC* ioctl commands with an integer argumentDmitry V. Levin2021-01-081-0/+36
| | | | | * tests/ioctl_sock.c (test_int): New function. (main): Use it.
* sock: consistently treat the argument of SIOC* ioctl commands as a pointerDmitry V. Levin2021-01-075-0/+246
| | | | | | | | | * sock.c (sock_ioctl): Handle all known SIOC* ioctl commands, print their argument using printaddr. * tests/ioctl_sock.c: New file. * tests/gen_tests.in (ioctl_sock): New entry. * tests/pure_executables.list: Add ioctl_sock. * tests/.gitignore: Likewise.
* linux/sh*/ioctls_arch0.h: update SIOCGSTAMP* ioctl entriesDmitry V. Levin2021-01-072-4/+4
| | | | | | * linux/sh/ioctls_arch0.h (SIOCGSTAMP): Rename to SIOCGSTAMP_OLD. (SIOCGSTAMPNS): Rename to SIOCGSTAMPNS_OLD. * linux/sh64/ioctls_arch0.h: Likewise.
* linux/*/ioctls_arch0.h: remove redundant 0x890[1-7] ioctl entriesDmitry V. Levin2021-01-078-41/+0
| | | | | | | | | | | | | They are already defined in appropriate ioctls_inc*.h files. * linux/alpha/ioctls_arch0.h (0x8906, 0x8907): Remove. * linux/mips/ioctls_arch0.h: Likewise. * linux/xtensa/ioctls_arch0.h: Likewise. * linux/avr32/ioctls_arch0.h (0x890[1-7]): Remove. * linux/hppa/ioctls_arch0.h: Likewise. * linux/ia64/ioctls_arch0.h: Likewise. * linux/sparc/ioctls_arch0.h: Likewise. * linux/sparc64/ioctls_arch0.h: Likewise.
* alpha, mips, sh, xtensa: fix decoding of FIO[GS]ETOWN, SIOC[GS]PGRP, and ↵Dmitry V. Levin2021-01-062-10/+27
| | | | | | | | | | | | | SIOCATMARK While all other architectures define these ioctl commands using 0x89 type, these peculiar architectures define FIO{G,S}ETOWN using 'f' type, SIOC[GS]PGRP and SIOCATMARK using 's' type. * ioctl.c (f_ioctl): New function. (ioctl_decode) <case 'f'>: Use it. [ALPHA || MIPS || SH || XTENSA]: Handle 's'. * NEWS: Mention this change.
* sock: fix decoding of SIOCBRADDIF and SIOCBRDELIF commandsDmitry V. Levin2021-01-062-2/+6
| | | | | | | | | These ioctl commands have an argument. * sock.c (sock_ioctl) <SIOCBRADDIF, SIOCBRDELIF>: Rewrite. * NEWS: Mention this change. Fixes: v4.11~473 "sock.c: enhance socket ioctl parser"
* sock: fix decoding of SIOCGIFINDEX commandDmitry V. Levin2021-01-062-0/+4
| | | | | | | * sock.c (print_ifreq): Handle SIOCGIFINDEX. * NEWS: Mention this change. Fixes: v4.11~473 "sock.c: enhance socket ioctl parser"
* sock: do not include headers unnecessarily before DEF_MPERS_TYPE and MPERS_DEFSDmitry V. Levin2021-01-051-7/+9
| | | | | | * sock.c: Include <sys/socket.h> and <net/if.h> after DEF_MPERS_TYPE. Include <linux/ioctl.h>, <linux/sockios.h>, <arpa/inet.h>, and "print_fields.h" after MPERS_DEFS.
* sock: sort case labels in switch statementsDmitry V. Levin2021-01-051-12/+12
| | | | * sock.c (sock_ioctl): Sort case labels.
* sock: simplify decoding of SIOCSIFNAME and SIOCGIFNAMEDmitry V. Levin2021-01-051-12/+10
|
* sock: simplify decoding of some ioctl commandsDmitry V. Levin2021-01-051-15/+7
| | | | | * sock.c (sock_ioctl): simplify decoding of ioctl commands that write into struct ifreq.
* sock: simplify decoding of FIOGETOWN, SIOCGPGRP, and SIOCATMARKDmitry V. Levin2021-01-051-6/+4
| | | | | * sock.c (sock_ioctl) <FIOGETOWN, SIOCGPGRP, SIOCATMARK>: Reuse printing done for FIOSETOWN and SIOCSPGRP.
* sock: remove redundant ifdefsDmitry V. Levin2021-01-051-19/+1
| | | | | | | * sock.c: Include <linux/ioctl.h> unconditionally. (sock_ioctl): Handle SIOCBRADDBR, SIOCBRDELBR, FIOSETOWN, FIOGETOWN, SIOCSPGRP, SIOCGPGRP, SIOCATMARK, SIOCBRADDIF, and SIOCBRDELIF unconditionally.
* sock: avoid printing "ifc_len=0 * sizeof(struct ifreq)"Dmitry V. Levin2021-01-052-2/+2
| | | | | * sock.c (print_ifc_len): Simplify output corresponding to zero length. * tests/ioctl_sock_gifconf.c (print_ifc_len): Update expected output.
* sock: use print_fields.h macrosDmitry V. Levin2021-01-051-41/+23
| | | | | | * sock.c (print_ifname): Remove. (print_ifreq, print_ifconf_ifreq, sock_ioctl): Use print_fields.h macros instead of print_ifname and direct tprintf calls.
* tests: check decoding of FS_IOC{,32}_{G,S}ETFLAGS ioctl commandsDmitry V. Levin2021-01-047-0/+153
| | | | | | | | | | | | * tests/ioctl_fs_f.c: New file. * tests/ioctl_fs_f-Xabbrev.c: Likewise. * tests/ioctl_fs_f-Xraw.c: Likewise. * tests/ioctl_fs_f-Xverbose.c: Likewise. * tests/pure_executables.list: Add ioctl_fs_f, ioctl_fs_f-Xabbrev, ioctl_fs_f-Xraw, and ioctl_fs_f-Xverbose. * tests/.gitignore: Likewise. * tests/gen_tests.in (ioctl_fs_f, ioctl_fs_f-Xabbrev, ioctl_fs_f-Xraw, ioctl_fs_f-Xverbose): New entries.
* fs_f_ioctl: implement decoding of FS_IOC{,32}_{G,S}ETFLAGSDmitry V. Levin2021-01-044-2/+64
| | | | | | | | | | | | * xlat/fs_x_ioctl_cmds.in (FS_IOC_GETFLAGS, FS_IOC32_GETFLAGS, FS_IOC_SETFLAGS, FS_IOC32_SETFLAGS): New constants introduced by Linux kernel commit v2.6.19-rc1~640^2~13. * xlat/fs_ioc_flags.in: New file. * fs_f_ioctl.c: Include "xlat/fs_ioc_flags.h". (decode_fs_ioc_flags): New function. (fs_f_ioctl): Use it to handle FS_IOC_GETFLAGS, FS_IOC32_GETFLAGS, FS_IOC_SETFLAGS, and FS_IOC32_SETFLAGS. * NEWS: Mention this change.
* maint: remove ioctl duplicatesDmitry V. Levin2021-01-046-69/+20
| | | | | | | | | | | * maint/ioctls_sym.awk: If a header file defines several ioctl names with the same value, omit those ioctl names that are either substrings or equivalents of other ioctl names with the same value. * linux/64/ioctls_inc.h: Regenerate. * linux/32/ioctls_inc_align16.h: Likewise. * linux/32/ioctls_inc_align32.h: Likewise. * linux/32/ioctls_inc_align64.h: Likewise. * linux/x32/ioctls_inc0.h: Likewise.
* file_ioctl: rename to fs_f_ioctlDmitry V. Levin2021-01-044-5/+5
| | | | | | | | | | * Makefile.am (libstrace_a_SOURCES): Replace file_ioctl.c with fs_f_ioctl.c. * defs.h (DECL_IOCTL): Replace file with fs_f. * file_ioctl.c: Rename to ... * fs_f_ioctl.c: ... new file. (file_ioctl): Rename to fs_f_ioctl. * ioctl.c (ioctl_decode): Replace file_ioctl with fs_f_ioctl.
* file_ioctl: refactor FS_IOC_FIEMAP decodingDmitry V. Levin2021-01-041-39/+41
| | | | | * file_ioctl.c (decode_fiemap): New function. (file_ioctl): Use it.
* file_ioctl: compile unconditionallyDmitry V. Levin2021-01-044-13/+45
| | | | | | | | | | * configure.ac (AC_CHECK_HEADERS): Remove linux/fiemap.h. * types/fiemap.h: New file. * xlat/fs_f_ioctl_cmds.in: Likewise. * file_ioctl.c: Include "types/fiemap.h" instead of <linux/fiemap.h>. Include "xlat/fs_f_ioctl_cmds.h" in XLAT_MACROS_ONLY mode. (print_fiemap_extentm, file_ioctl): Use struct_fiemap instead of struct fiemap, compile unconditionally.
* tests: fix invalid flag testing in userfaultfd testSven Schnelle2021-01-031-2/+2
| | | | | | | | | With linux commit 37cd0575b851 ("userfaultfd: add UFFD_USER_MODE_ONLY") flag with value 1 is now a valid flag. This commit changes it to 2 as that one is the next available. It doesn't implement any testing of UFFD_USER_MODE_ONLY though. Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
* Move decoders of FS_IOC_[GS]ETFSLABEL from btrfs.c to fs_0x94_ioctl.cDmitry V. Levin2021-01-034-14/+24
| | | | | | | | | | | * types/fs_0x94.h (fs_0x94_label_t): New type. * xlat/fs_0x94_ioctl_cmds.in (FS_IOC_GETFSLABEL, FS_IOC_SETFSLABEL): New constants introduced by Linux kernel commit v4.18-rc1~37^2~66. * fs_0x94_ioctl.c (decode_fslabel): New function. (fs_0x94_ioctl): Use it to decode FS_IOC_GETFSLABEL and FS_IOC_SETFSLABEL. * btrfs.c (btrfs_ioctl) <BTRFS_IOC_GET_FSLABEL, BTRFS_IOC_SET_FSLABEL>: Remove.
* fs_0x94_ioctl: refactor decoding of FICLONERANGE and FIDEDUPERANGEDmitry V. Levin2021-01-031-55/+66
| | | | | | * fs_0x94_ioctl.c (decode_file_clone_range, decode_file_dedupe_range): New functions. (fs_0x94_ioctl): Use them.
* ioctl: call btrfs_ioctl from fs_0x94_ioctlDmitry V. Levin2021-01-033-16/+5
| | | | | | | | | | | It used to be the other way around. * btrfs.c (btrfs_ioctl) <BTRFS_IOC_CLONE, BTRFS_IOC_CLONE_RANGE, BTRFS_IOC_FILE_EXTENT_SAME>: Remove. * fs_0x94_ioctl.c (fs_0x94_ioctl) <default> [HAVE_LINUX_BTRFS_H]: Call btrfs_ioctl. * ioctl.c (ioctl_decode) <0x94>: Call fs_0x94_ioctl instead of btrfs_ioctl.
* fs_0x94_ioctl: move type definitions to types/fs_0x94.hDmitry V. Levin2021-01-033-45/+52
| | | | | | | | | | | | | | * types/fs_0x94.h: New file. * xlat/fs_0x94_ioctl_cmds.in: Likewise. * fs_0x94_ioctl.c Include "types/fs_0x94.h" instead of <linux/fs.h>. Include "xlat/fs_0x94_ioctl_cmds.h" in XLAT_MACROS_ONLY mode. [!FICLONE, !FICLONERANGE, !FIDEDUPERANGE]: Remove. (print_file_dedupe_range_info): Replace struct file_dedupe_range_info with struct_file_dedupe_range_info. (fs_0x94_ioctl): Replace struct file_clone_range, struct file_dedupe_range, and struct file_dedupe_range_info with struct_file_clone_range, struct_file_dedupe_range, and struct_file_dedupe_range_info, respectively.
* file_ioctl: move decoders of linux/fs.h 0x94 commands to a separate fileDmitry V. Levin2021-01-035-133/+155
| | | | | | | | * file_ioctl.c: Move decoders of 0x94 ioctl commands to ... * fs_0x94_ioctl.c: ... new file. * Makefile.am (libstrace_a_SOURCES): Add it. * btrfs.c (btrfs_ioctl): Replace file_ioctl with fs_0x94_ioctl. * defs.h (DECL_IOCTL): Add fs_0x94.
* tests: extend FS_IOC_FIEMAP decoding checksDmitry V. Levin2021-01-0316-16/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/ioctl_fiemap.c: Rewrite. * tests/ioctl_fiemap-Xabbrev.c: New file. * tests/ioctl_fiemap-Xraw.c: Likewise. * tests/ioctl_fiemap-Xverbose.c: Likewise. * tests/ioctl_fiemap-success.c: Likewise. * tests/ioctl_fiemap-success-Xabbrev.c: Likewise. * tests/ioctl_fiemap-success-Xraw.c: Likewise. * tests/ioctl_fiemap-success-Xverbose.c: Likewise. * tests/ioctl_fiemap-success-v.c: Likewise. * tests/ioctl_fiemap-success-v-Xabbrev.c: Likewise. * tests/ioctl_fiemap-success-v-Xraw.c: Likewise. * tests/ioctl_fiemap-success-v-Xverbose.c: Likewise. * tests/gen_tests.in (ioctl_fiemap-Xabbrev, ioctl_fiemap-Xraw, ioctl_fiemap-Xverbose, ioctl_fiemap-success, ioctl_fiemap-success-Xabbrev, ioctl_fiemap-success-Xraw, ioctl_fiemap-success-Xverbose, ioctl_fiemap-success-v, ioctl_fiemap-success-v-Xabbrev, ioctl_fiemap-success-v-Xraw, ioctl_fiemap-success-v-Xverbose): New entries. * tests/Makefile.am (check_PROGRAMS): Add ioctl_fiemap-success, ioctl_fiemap-success-Xabbrev, ioctl_fiemap-success-Xraw, ioctl_fiemap-success-Xverbose, ioctl_fiemap-success-v, ioctl_fiemap-success-v-Xabbrev, ioctl_fiemap-success-v-Xraw, and ioctl_fiemap-success-v-Xverbose. * tests/pure_executables.list: Add ioctl_fiemap-Xabbrev, ioctl_fiemap-Xraw, and ioctl_fiemap-Xverbose. * tests/.gitignore: Add ioctl_fiemap-Xabbrev, ioctl_fiemap-Xraw, ioctl_fiemap-Xverbose, ioctl_fiemap-success, ioctl_fiemap-success-Xabbrev, ioctl_fiemap-success-Xraw, ioctl_fiemap-success-Xverbose, ioctl_fiemap-success-v, ioctl_fiemap-success-v-Xabbrev, ioctl_fiemap-success-v-Xraw, and ioctl_fiemap-success-v-Xverbose.
* tests: rename file_ioctl to ioctl_fiemapDmitry V. Levin2021-01-034-6/+6
| | | | | | | | | | Since the only ioctl being tested by file_ioctl test is FS_IOC_FIEMAP, rename the test. * tests/file_ioctl.c: Rename to tests/ioctl_fiemap.c * tests/gen_tests.in (file_ioctl): Rename to ioctl_fiemap. * tests/pure_executables.list (file_ioctl): Likewise. * tests/.gitignore (file_ioctl): Likewise.
* tests: check decoding of FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTRDmitry V. Levin2021-01-029-10/+170
| | | | | | | | | | | | | | | * configure.ac (AC_CHECK_MEMBERS): Check for struct fsxattr.fsx_cowextsize in <linux/fs.h>. * tests/ioctl_fs_x-success.c: New file. * tests/ioctl_fs_x-success-Xabbrev.c: Likewise. * tests/ioctl_fs_x-success-Xraw.c: Likewise. * tests/ioctl_fs_x-success-Xverbose.c: Likewise. * tests/Makefile.am (check_PROGRAMS): Add ioctl_fs_x-success, ioctl_fs_x-success-Xabbrev, ioctl_fs_x-success-Xraw, and ioctl_fs_x-success-Xverbose. * tests/.gitignore: Likewise. * tests/gen_tests.in (ioctl_fs_x-success, ioctl_fs_x-success-Xabbrev, ioctl_fs_x-success-Xraw, ioctl_fs_x-success-Xverbose): New entries.
* fs_x_ioctl: implement decoding of FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTRDmitry V. Levin2021-01-025-2/+64
| | | | | | | | | | | * types/fs_x.h (struct_fsxattr): New typedef. * xlat/fs_x_ioctl_cmds.in (FS_IOC_FSGETXATTR, FS_IOC_FSSETXATTR): New constants introduced by Linux kernel commit v4.5-rc1~23^2~1^2~2. * xlat/fs_xflags.in: New file. * fs_x_ioctl.c: Include "xlat/fs_xflags.h". (decode_fsxattr): New function. (fs_x_ioctl): Use it to handle FS_IOC_FSGETXATTR and FS_IOC_FSSETXATTR. * NEWS: Mention this change.
* Update copyright year number rangeDmitry V. Levin2021-01-014-4/+5
| | | | | | | * COPYING: Update copyright year number range. * tests/COPYING: Likewise. * debian/copyright: Likewise. * maint/README-release: Update.
* fs_x_ioctl: refactor FITRIM decodingDmitry V. Levin2020-12-311-10/+15
| | | | | * fs_x_ioctl.c (decode_fstrim_range): New function. (fs_x_ioctl): Use it.
* tests: check decoding of linux/fs.h 'X' ioctl commandsDmitry V. Levin2020-12-317-0/+142
| | | | | | | | | | | | * tests/ioctl_fs_x.c: New file. * tests/ioctl_fs_x-Xabbrev.c: Likewise. * tests/ioctl_fs_x-Xraw.c: Likewise. * tests/ioctl_fs_x-Xverbose.c: Likewise. * tests/gen_tests.in (ioctl_fs_x, ioctl_fs_x-Xabbrev, ioctl_fs_x-Xraw, ioctl_fs_x-Xverbose): New entries. * tests/pure_executables.list: Add ioctl_fs_x, ioctl_fs_x-Xabbrev, ioctl_fs_x-Xraw, and ioctl_fs_x-Xverbose. * tests/.gitignore: Likewise.
* fs_x_ioctl: compile unconditionallyDmitry V. Levin2020-12-313-7/+31
| | | | | | | | | * types/fs_x.h: New file. * xlat/fs_x_ioctl_cmds.in: Likewise. * fs_x_ioctl.c: Include "types/fs_x.h" instead of <linux/fs.h>. Include "xlat/fs_x_ioctl_cmds.h" in XLAT_MACROS_ONLY mode. (fs_x_ioctl): Use struct_fstrim_range instead of struct fstrim_range, compile unconditionally.
* fs_x_ioctl: decode FITRIM using print_fields.h macrosDmitry V. Levin2020-12-311-7/+7
| | | | | | * fs_x_ioctl.c: Include "print_fields.h". (fs_x_ioctl): Use PRINT_FIELD_X and PRINT_FIELD_U to decode fields of struct fstrim_range.
* Change my email addressDmitry V. Levin2020-12-31591-652/+653
|
* Post-release administriviaDmitry V. Levin2020-12-193-0/+16
| | | | | | * NEWS: Add a header line for the next release. * debian/changelog.in: Add a changelog entry for 5.10-1. * strace.spec.in: Likewise.
* Prepare for 5.10 releasev5.10Dmitry V. Levin2020-12-141-2/+2
| | | | * NEWS: Update for 5.10 release.
* Update .mailmapDmitry V. Levin2020-12-131-0/+1
| | | | | * .mailmap: Add both email addresses of Sven Schnelle to avoid duplication in CREDITS file.
* Update copyright headersDmitry V. Levin2020-12-1315-15/+15
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* tests: check decoding of clock_gettime64, clock_settime64, and ↵Dmitry V. Levin2020-12-1312-61/+184
| | | | | | | | | | | | | | | | | | clock_getres_time64 syscalls * tests/clock_xettime-common.c: New file. * tests/clock_xettime64.c: Likewise. * tests/Makefile.am (EXTRA_DIST): Add clock_xettime-common.c. * tests/clock_xettime.c: Turn into a wrapper around clock_xettime-common.c. * tests/pure_executables.list: Add clock_xettime64. * tests/.gitignore: Likewise. * tests/gen_tests.in (clock_xettime64): New entry. * tests/clock.in (clock_xettime64): Likewise. * tests/trace_clock.in (clock_xettime64): Likewise. * tests/trace_personality_regex_32.in (clock_xettime64): Likewise. * tests/trace_personality_regex_64.in (clock_xettime64): Likewise. * tests/trace_personality_regex_x32.in (clock_xettime64): Likewise.
* tests: check decoding of clock_adjtime64 syscallDmitry V. Levin2020-12-1312-23/+68
| | | | | | | | | | | | | | | | * tests/clock_adjtime-common.c: New file. * tests/clock_adjtime64.c: Likewise. * tests/Makefile.am (EXTRA_DIST): Add clock_adjtime-common.c. * tests/clock_adjtime.c: Turn into a wrapper around clock_adjtime-common.c. * tests/pure_executables.list: Add clock_adjtime64. * tests/.gitignore: Likewise. * tests/gen_tests.in (clock_adjtime64): New entry. * tests/clock.in (clock_adjtime64): Likewise. * tests/trace_clock.in (clock_adjtime64): Likewise. * tests/trace_personality_regex_32.in (clock_adjtime64): Likewise. * tests/trace_personality_regex_64.in (clock_adjtime64): Likewise. * tests/trace_personality_regex_x32.in (clock_adjtime64): Likewise.
* Fix %clock trace classDmitry V. Levin2020-12-132-4/+8
| | | | | | | | | | | | Four syscalls (clock_gettime64, clock_settime64, clock_adjtime64, and clock_getres_time64) were missed when the %clock trace class was introduced. * linux/syscallent-common-32.h (clock_gettime64, clock_settime64, clock_adjtime64, clock_getres_time64): Add TCL flag. * NEWS: Mention this change. Fixes: v5.7~72 "Add %clock trace class"
* tests: rewrite pselect6 testDmitry V. Levin2020-12-137-132/+220
| | | | | | | | | | | | | | | | | | Starting with glibc commit glibc-2.32.9000-132-g2433d39b69, pselect function in glibc is implemented on top of pselect6_time64 syscall on 32-bit architectures, which makes it unsuitable for the test of pselect6 decoder. Resolve this issue by creating two tests that check decoding of __NR_pselect6 and __NR_pselect6_time64 syscalls. * tests/pselect6-common.c: New file. * tests/pselect6_time64.c: Likewise. * tests/Makefile.am (EXTRA_DIST): Add pselect6-common.c. * tests/pselect6.c: Rewrite using __NR_pselect6. * tests/pure_executables.list: Add pselect6_time64. * tests/.gitignore: Likewise. * tests/gen_tests.in (pselect6_time64): New entry.
* tests: rewrite semtimedop testDmitry V. Levin2020-12-129-138/+284
| | | | | | | | | | | | | | | | | | | | | Starting with glibc commit glibc-2.32.9000-105-g7c437d3778, semtimedop function in glibc is implemented on top of semtimedop_time64 syscall on 32-bit architectures, which makes it unsuitable for the test of semtimedop decoder. Resolve this issue by creating three tests that check decoding of __NR_semtimedop, __NR_semtimedop_time64, and __NR_ipc SEMTIMEDOP. * tests/semtimedop-common.c: New file. * tests/semtimedop-syscall.c: Likewise. * tests/semtimedop-ipc.c: Likewise. * tests/semtimedop_time64.c: Likewise. * tests/Makefile.am (EXTRA_DIST): Add semtimedop-common.c and semtimedop-syscall.c. * tests/semtimedop.c: Rewrite using __NR_semtimedop. * tests/pure_executables.list: Add semtimedop-ipc and semtimedop_time64. * tests/.gitignore: Likewise. * tests/gen_tests.in (semtimedop-ipc, semtimedop_time64): New entries.