aboutsummaryrefslogtreecommitdiff
path: root/linux/mips
AgeCommit message (Collapse)Author
2018-12-19Update strace to 4.25.Elliott Hughes
Bug: N/A Test: adb shell strace date Change-Id: I8c5e68b5fc174b267be9c47ce49bca07a0e5707b
2018-06-15Update strace to 4.23.Elliott Hughes
Noteworthy changes in release 4.23 (2018-06-14) =============================================== * Changes in behaviour * On x32 personality, 64-bit syscalls (such as readv) are now shown with "#64" suffix instead of "64:" prefix. Unlike the old names, these new names can be used in syscall qualification expressions. * Changed error number output format: error numbers are consistently printed as "-1 ECONST (Error description)" for known errors and as "-1 (errno 123)" for unknown errors, regardless of -e raw qualification settings. One can specify -X raw for displaying raw error numbers unconditionally. * Unfetchable addresses inside arrays are now printed as comments. * Obsolete IA-32 mode syscall names are no longer printed on ia64. * Improvements * Implemented libdw backend for -k option, configured at build time using --with-libdw option. Whether -k option is compiled is now configured at build time using --enable-stacktrace option. * Added -X option for configuring xlat output formatting (addresses Debian bug #692915). * Added support for personality designation ("64", "32", or "x32") to syscall qualifications in -e trace expressions. * Implemented injection of syscalls with no side effects as an alternative to injection of an invalid syscall (-e inject=SET:syscall= expression). * Improved support for reproducible builds (addresses Debian bug #896016). * Implemented decoding of BPF_PROG_QUERY and BPF_RAW_TRACEPOINT_OPEN bpf syscall commands. * Implemented decoding of INOTIFY_IOC_SETNEXTWD and PERF_EVENT_IOC_* ioctl commands. * Implemented decoding of PR_GET_SPECULATION_CTRL and PR_SET_SPECULATION_CTRL prctl syscall options. * Enhanced decoding of bpf, getsockopt, setsockopt, and socket syscalls. * Enhanced decoding of NETLINK_KOBJECT_UEVENT and NETLINK_ROUTE protocols. * Enhanced decoding of *_DIAG_MEMINFO netlink attributes. * Enhanced decoding of BTRFS_*, FS_IOC_*, SIOCGIFHWADDR, and SIOCSIFHWADDR ioctl commands. * Enhanced decoding of AF_BLUETOOTH socket addresses. * Implemented decoding of io_pgetevent syscall. * Wired up rseq syscall. * Updated lists of ADJ_*, BPF_*, BPF_F_*, BPF_PROG_TYPE_*, ETH_P_*, FPE_*, IFF_*, IPPROTO_*, MAP_*, MS_*, MSG_*, NETLINK_*, PACKET_*, PROT_*, SCTP_*, SECCOMP_FILTER_FLAG_*, SEGV_*, SEM_*, SHM_*, SW_*, V4L2_CID_*, V4L2_CTRL_CLASS_*, and V4L2_PIX_FMT_* constants. * Updated lists of ioctl commands from Linux 4.17. * Bug fixes * Fixed decoding of msgtyp argument of msgrcv syscall. * Fixed fallback definitions for F_*, MCL_*, MSG_ZEROCOPY, SI_*, and SOL_SOCKET constants. * Fixed -e trace=%pure expression on mips. Bug: N/A Test: strace -f date Change-Id: I9eff306cca99b239815284a366315fb04686667a
2018-06-14Update strace to 4.22.Elliott Hughes
Noteworthy changes in release 4.22 (2018-04-05) =============================================== * Changes in infrastructure * The mailing list was moved to strace-devel@lists.strace.io. * SourceForge git repository (https://sourceforge.net/p/strace/code/ci/master/tree/) is no longer maintained. Please use GitLab (https://gitlab.com/strace/strace/) or GitHub (https://github.com/strace/strace/) repository instead. * Changes in behaviour * When printing string data, '8' and '9' following an octal escape sequence no longer lead to unabbreviated octal escape sequence output, as they used to do. * Angle brackets are now printed as octal number escape sequences in the output of paths associated with file descriptors. * Data dump for write syscalls (-e write) is performed regardless of successfulness of these syscall (addresses Debian bug #436284). * -r and -t options are now affect output independently. Previously, -r option led to ignoring of the -t option (addresses Debian bug #466195). * Improvements * Implemented delay injection (-e inject=SET:delay_enter= and -e inject=SET:delay_exit= options). * Added -A option for opening output files in append mode (addresses Debian bug #528488). * IPv6 addresses shown in socket information in -yy mode are now printed in brackets. * Enhanced decoding of bpf, prctl and ptrace syscalls. * Enhanced decoding of BTRFS_IOC_INO_PATHS, BTRFS_IOC_LOGICAL_INO, and PTP_* ioctl commands. * Enhanced NETLINK_ROUTE protocol decoding. * Updated lists of signal codes. * Updated lists of BPF_*, BTN_*, ETH_P_*, INET_DIAG_BC_*, KEY_*, POLL*, RWF_*, SCHED_FLAG_*, SCTP_* and error constants. * Implemented block/character device number printing in -yy mode. * Known pixel/SDR format names are printed as comments for pixelformat fields in v4l2 structures. * Enhanced decoding of kern_features syscall. * Enhanced NETLINK_NETFILTER netlink protocol decoder. * Optimized handling of large number of tracees. * Improved wall clock time measurement in syscall count statistics (-c -w option). * Extended the range of allowed values in -e inject=...:retval= expression. * Added i18n support. * Updated lists of ioctl commands from Linux 4.16. * Enhanced manual page. * Bug fixes * Fixed build on m68k. * Fixed v4l2 pixelformat decoding on big-endian architectures. * Fixed -O option. Bug: N/A Test: strace -f date Change-Id: I41780dbf3262f9e2f72c825fc3c4c1be662bbbf5
2018-02-20Update strace to 4.21.Elliott Hughes
Noteworthy changes in release 4.21 (2018-02-13) =============================================== * Changes in behaviour * Warning is now issued when -F option is used. * Warning is now issued when a tracee with unsupported personality is attached. * Unknown syscall numbers are now printed in hexadecimal form. * Improvements * Implemented decoding of netlink descriptor attributes as file descriptors. * Implemented decoding of hugetlb page size selection flags. * Implemented decoding of BPF_PROG_TEST_RUN, BPF_PROG_GET_NEXT_ID, BPF_MAP_GET_NEXT_ID, BPF_PROG_GET_FD_BY_ID, BPF_MAP_GET_FD_BY_ID, and BPF_OBJ_GET_INFO_BY_FD commands of bpf syscall. * Enhanced decoding of get_thread_area, memfd_create, modify_ldt, perf_event_open, reboot, s390_guarded_storage, s390_pcio_mmio_read, s390_pci_mmio_write, s390_runtime_instr, s390_sthyi, set_thread_area, and shmget syscalls. * Implemented decoding of KVM_* and DM_LIST_DEVICES ioctl commands. * Implemented decoding of riscv_flush_icache syscall. * Enhanced decoding of getsockopt and setsockopt syscalls for SOL_NETLINK level. * Enhanced decoding of BPF_MAP_CREATE command of bpf syscall. * Print values returned by mq_open syscall and first arguments of mq_getsetattr, mq_notify, mq_timedreceive, and mq_timedsend syscalls as file descriptors. * Added decoding of get_tls syscall on arm. * Added -e trace=%pure option for tracing system calls with no arguments that never fail. * Updated lists of IPV6_*, MAP_*, MEMBARRIER_CMD_*, MSG_*, NT_*, PKEY_*, SHM_*, and TCP_* constants. * Added manual page for the strace-log-merge command. * Updated lists of ioctl commands from Linux 4.15. * Implemented biarch support for s390x. * Implemented an optional support for symbol demangling in strace -k output (activated by --with-libiberty configure option). * Information about availability of demangling and reliable personality decoding (on architectures with multiple personalities) is now available in strace -V output. * Added decoding of pkey_alloc, pkey_free, and pkey_mprotect syscalls on powerpc and powerpc64. * Enhanced manual page. * Bug fixes * Fixed multi-personality support in cross builds. * Added mq_getsetattr, mq_notify, mq_open, mq_timedreceive, and mq_timedsend syscalls to %desc tracing set. * Fixed path tracing support for mmap syscalls with indirect arguments and for old select syscall. * Fixed decoding of arm-specific (__ARM_NR_*) syscalls. * Fixed open mode flags decoding. * Fixed corner cases in handling of strace -ff -ttt logs by strace-log-merge. * Error counts that exceed one billion are now printed correctly in call summary output. * Fixed call summary header for x32 personality. * Changes of tracee personalities are reported more reliably. * Fixed the case when strace attaches to a tracee being inside exec and its first syscall stop is syscall-exit-stop instead of syscall-enter-stop, which messed up all the syscall state tracking. * Fixed printing of higher 32 bits of the return value for x32 personality. * Portability * A C compiler that supports "for" loop initial declarations is now required. * Inability to configure multiple personality support on architectures where multiple personalities are supported leads to configuration failure during build now. Use --enable-mpers=check to revert to the old behaviour. * Build-time requirement for the mpers support has been lowered from gawk 4 to gawk 3. * Removed incomplete and non-functional support for the CRIS architecture. * Removed incomplete and unused support for IA-32 mode on the IA-64 architecture. Bug: N/A Test: strace -f date Change-Id: I126eec18d7309a89f5a75dcab6498c99bb099836
2017-09-12Update strace to 4.19.Elliott Hughes
Noteworthy changes in release 4.19 (2017-09-05) =============================================== * Changes in behaviour * Changed formatting of personality names on tile architecture in order to make it in line with other multi-personality architectures. * Changed field output order in struct v4l2_requestbuffers to improve in/out field formatting. * Changed handling of multiple signal= specifications in an injection expression: multiple specification now leads to error instead of implicit usage the last specification. * Improvements * Enhanced decoding of optlen argument of getsockopt syscall. * Enhanced decoding of SO_LINGER option of getsockopt and setsockopt syscalls. * Enhanced decoding of SO_PEERCRED option of getsockopt syscall. * Enhanced decoding of IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP, IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST, MCAST_JOIN_GROUP, and MCAST_LEAVE_GROUP options of setsockopt syscall. * Enhanced decoding of KEYCTL_DH_COMPUTE operation of keyctl syscall (KDF parameters decoding). * Implemented decoding of KEYCTL_RESTRICT_KEYRING operation of keyctl syscall. * Enhanced decoding of UFFDIO_API ioctl command. * Enhanced decoding of BPF_PROG_LOAD, BPF_MAP_CREATE, BPF_MAP_LOOKUP_ELEM, and BPF_MAP_GET_NEXT_KEY commands of bpf syscall. * Implemented decoding of linux socket filter programs specified for SO_ATTACH_FILTER and SO_ATTACH_REUSEPORT_CBPF socket options. * Implemented decoding of inet_diag_req_v2, inet_diag_req_compat, packet_diag_msg, and smc_diag_msg netlink attributes of NETLINK_SOCK_DIAG. * Implemented NETLINK_SELINUX protocol specific decoding. * Implemented decoding of netlink message ack flags. * Implemented decoding of nlmsgerr netlink attributes. * Implemented basic protocol specific decoding of NETLINK_CRYPTO. * Implemented decoding of crypto_user_alg netlink attributes of NETLINK_CRYPTO. * Implemented basic protocol specific decoding of addr, addrlabel, dcb, link, mdb, neigh, neightbl, netconf, nsid, route, rule, tc, and tca messages of NETLINK_ROUTE. * Implemented decoding of NETLINK_KOBJECT_UEVENT messages. * Improved handling of unexpected tracees (the ones that cloned with CLONE_PARENT/CLONE_PTRACE or called PTRACE_TRACEME on themselves): they are now PTRACE_DETACH'ed instead of PTRACE_CONT'ed. * Updated lists of BPF_*, KEY_*, RWF_*, SCM_*, SO_*, and *_MAGIC constants. * Added decoding of arch_prctl syscall on x86. * Added decoding of seccomp, bpf, userfaultfd, membarrier, mlock2, copy_file_range, preadv2, pwritev2, and statx on alpha. * Added decoding of statx syscall on microblaze. * Added decoding of s390_guarded_storage syscall on s390. * Updated lists of ioctl commands from Linux 4.13. * Enhanced manual page. * Bug fixes * Fixed printing of group_req structure on non-native personalities. * Fixed output formatting of blkpg_ioctl_arg, dm_name_list, and iocb structures. * Fixed formatting of nul-terminated strings which have kernel-imposed size limit. * Fixed printing of paths that hit PATM_MAX limit in order to match kernel's behaviour. * Fixed build warnings on Android mips64. * Fixed unused function "is_negated_errno" build warning when built with clang. * Fixed syscall number and arguments retrieval behaviour on sparc64 and mips o32 after prctl(PR_SET_DUMPABLE, 0) makes PTRACE_PEEKTEXT impossible to use if Linux kernel has commit v4.10-rc1~114^2~2. * Fixed path tracing for execveat, symlink, symlinkat, inotify_add_watch, and inotify_init syscalls. * Fixed personality switch printing on sparc64 and risc-v. Bug: N/A Test: strace date Change-Id: Idd0ba3efc3fe14dad8aa7b3859045b00d4e6749d
2017-07-05Update strace to 4.18.Elliott Hughes
Noteworthy changes in release 4.18 (2017-07-05) =============================================== * Improvements * Implemented decoding of SCM_TIMESTAMP* control messages. * Implemented decoding of netlink NLMSG_DONE messages. * Implemented decoding of netlink generic nlmsg_type and nlmsg_flags. * Implemented decoding of NETLINK_AUDIT, NETLINK_NETFILTER, NETLINK_ROUTE, NETLINK_SELINUX, NETLINK_SOCK_DIAG, and NETLINK_XFRM message types. * Implemented decoding of NETLINK_GENERIC protocol families. * Implemented basic protocol specific decoding of AF_INET, AF_INET6, AF_NETLINK, AF_PACKET, AF_SMC, and AF_UNIX messages of NETLINK_SOCK_DIAG. * Implemented basic decoding of netlink attributes. * Implemented basic protocol specific decoding of AF_INET, AF_NETLINK, AF_PACKET, AF_SMC, and AF_UNIX netlink attributes of NETLINK_SOCK_DIAG. * Implemented decoding of inet_diag_msg, netlink_diag_msg, and unix_diag_msg netlink attributes of NETLINK_SOCK_DIAG. * Updated lists of ARPHRD_*, KEYCTL_*, NDIAG_SHOW_*, RTM_*, SCM_*, SCTP_*, SO_*, V4L2_*, and prctl ARCH_* constants. * Updated lists of ioctl commands from Linux 4.12. * Bug fixes * In interactive mode (-I2), those signals that were blocked at startup will remain blocked for the whole period of strace execution. * strace no longer resets SIGCHLD handler in tracees to the default action. * When traced command is terminated by a blocked signal, strace unblocks that signal to ensure its own termination with the same signal. * Fixed corner cases in decoding of old sigaction syscall. * Fixed build with old kernel headers on mips. * Fixed build on aarch64 and tile with glibc >= 2.26. * Fixed build on arc and nios2. Bug: N/A Test: strace date Change-Id: Ib34873ff60824b04f67332380c3460721f66002e
2017-05-30Fix mips64 build and enable mips32 strace buildGoran Jakovljevic
Added stub files which were missing after strace was upgraded to 4.17. Files are generated by linux/mips/genstub.sh script. This also reverts commit c2beb1c753e30aa6b20a5a151a966ca1ad79e405. Test: successful mips32 and mips64 build Change-Id: I67a7219570ba3689229373ff8febc6c9b35896fe
2017-05-25Upgrade strace to 4.17.Elliott Hughes
Noteworthy changes in release 4.17 (2017-05-24) =============================================== * Changes in command line syntax * Syscall classes specified in -e trace= option now have % prefix (like -e trace=%process). Old style class names without leading % are still supported, but considered deprecated now. * Improvements * Optimized syscall filtering. * Improved representation of timestamps. * Enhanced decoding of sched_setattr syscall. * Added -e trace=%stat option for tracing variants of stat syscall. * Added -e trace=%lstat option for tracing variants of lstat syscall. * Added -e trace=%fstat option for tracing variants of fstat and fstatat syscalls. * Added -e trace=%%stat option for tracing syscalls used for querying file status information (stat, lstat, fstat, fstatat, statx, and their variations). * Added -e trace=%statfs option for tracing statfs, statfs64 and statvfs syscalls. * Added -e trace=%fstatfs option for tracing fstatfs, fstatfs64 and fstatvfs syscalls. * Added -e trace=%%statfs option for tracing syscalls used for querying file system statistics information (statfs-like, fstatfs-like and ustat). * Added -e trace=/regex option for filtering syscalls using regular expressions. * Added support for prepending of question mark before syscall qualification in -e trace expressions in order to suppress error in case no syscalls matched the provided qualification. * Implemented decoding of signal mask in rt_sigreturn syscall on alpha, arc, arm, avr32, bfin, cris, hppa, m68k, metag, microblaze, mips, nios2, or1k, powerpc, powerpc64, riscv, sh, sh64, sparc, sparc64, tile, x86, and xtensa architectures. * Implemented decoding of statx syscall. * Implemented decoding of NS_* ioctl commands. * Implemented decoding of the remaining V4L2_BUF_TYPE_* types. * Implemented decoding of VIDIOC_[SG]_TUNER ioctl commands. * Implemented decoding of NLMSG_ERROR netlink messages. * Improved decoding of BPF_PROG_ATTACH command of bpf syscall. * Improved decoding of misplaced parts in DM_* ioctl commands. * Updated lists of ioctl commands from Linux 4.11. * Bug fixes * Fixed decoding of flags argument of preadv2 and pwritev2 syscalls on x32. * Fixed the number of arguments and tracing flags of alpha specific syscalls. * Fixed decoding of old sigsuspend syscall on alpha, cris, mips, powerpc, powerpc64, sh, sh64, sparc, and sparc64. * Fixed decoding of sgetmask and ssetmask syscalls on 64-bit architectures. * Fixed decoding of netlink messages received within struct msghdr. * Worked around a bug in miscompiled aarch64 kernels leading to the 3rd argument of sched_getattr syscall being not quite 32-bit. * Fixed corner cases of printing inaccessible times argument of utimes and futimesat syscalls. Bug: N/A Test: strace date Change-Id: Idc4614a3f16ffe57fdca2a07a05253900d1c52bb
2017-02-20Fix mips64 buildGoran Jakovljevic
Added missing stub files. Files are generated by linux/mips/genstub.sh script. Test: successful mips64 build Change-Id: If46a286e70ed595663dc30dfca75abf9f3597eb7
2017-02-15Upgrade strace to 4.16 from 4.14.Elliott Hughes
Noteworthy changes in release 4.16 (2017-02-14) * Improvements * Implemented syscall return value injection (-e inject=SET:retval= option). * Implemented signal injection (-e inject=SET:signal= option). * Implemented decoding of SUID_DUMP_* constants in PR_[GS]ET_DUMPABLE. * Implemented decoding of all SG_* ioctl commands. * Implemented decoding of ustat syscall. * Implemented decoding of BPF_OBJ_PIN, BPF_OBJ_GET, BPF_PROG_ATTACH, and BPF_PROG_DETACH commands of bpf syscall. * Enhanced decoding of sg_io_hdr and sg_io_v4 structures. * Enhanced decoding of get_robust_list, getrandom, io_submit, set_robust_list syscalls. * Enhanced decoding of entities of kernel long type on x32 and mips n32 ABIs. * Updated lists of IP_*, IPV6_*, and LOOP_* constants. * Updated lists of ioctl commands from Linux 4.10. * Added decoding of recently added syscalls on avr32, microblaze, ppc, and ppc64. * Bug fixes * Fixed pathmatch of oldselect syscall on 64-bit architectures. * Fixed decoding of mmap2 syscall on s390 when arguments are not available. * Fixed decoding of kexec_file_load, mprotect, pkey_mprotect, prctl, preadv*, and pwritev* syscalls on x32. * Fixed printing of string arguments of getxattr and setxattr syscalls when -s option is used to limit the printed string size. * Fixed decoding of ifconf, ifreq, and loop_info structures on non-native personalities. * Fixed decoding of SG_* and LOOP_* ioctl commands. * Fixed build on mips with musl libc. * Fixed cross-building of ioctlsort. * Applied minor formatting fixes to the manual page. Noteworthy changes in release 4.15 (2016-12-14) * Changes in behavior * Time stamps are now printed according to ISO 8601. * Changed output format of val3 parameter of futex FUTEX_WAKE_OP operation. * The last argument of mincore, sched_getaffinity, and sched_setaffinity syscalls is now formatted as an array. * Improvements * Implemented syscall fault injection (-e fault=... option). * Implemented decoding of DM_* ioctl commands. * Implemented decoding of attr parameter of perf_event_open syscall. * Implemented decoding of pkey_alloc, pkey_free, and pkey_mprotect syscalls. * Implemented dumping of mq_timedsend and mq_timedreceive syscalls. * Implemented decoding of PR_SET_FP_MODE and PR_GET_FP_MODE operations of prctl syscall. * Implemented PTRACE_GETREGS API support on m68k. * Updated lists of ARCH_*, BPF_*, BTRFS_*, FALLOC_*, MS_*, *_MAGIC, and V4L2_* constants. * Updated lists of ioctl commands from Linux 4.9. * Added decoding of recently added syscalls on arc, x32, and xtensa. * Enhanced manual page. * Bug fixes * Fixed corner cases in decoding of exit, exit_group, futimesat, getgroups, getresuid, init_module, inotify_init1, kcmp, kexec_load, lookup_dcookie, mq_getsetattr, mq_notify, mq_open, mq_timedreceive, mq_timedsend, name_to_handle_at, prctl, process_vm_readv, process_vm_writev, setfsuid, setgroups, setns, unshare, and utimes syscalls. * Fixed handling of verbose flag in printing of controls array of struct v4l2_ext_controls. * Fixed omission of field names in the output of capability, sigaction, sigevent, statfs, timespec, timeval, and utimbuf structures. * Fixed printing of unknown syscalls in siginfo structure. * Fixed decoding of ioctl constants on m68k. * Fixed cris architecture support. * Fixed cross build when host compiler does not support the same set of warning flags as the cross compiler. * Fixed build on SLE10 and SLE11. Bug: N/A Test: manual Change-Id: I590bf5db1652aa1dfdc0eb16e30fd97c82af2261
2016-10-04Merge remote-tracking branch 'aosp/upstream-master' into mergeElliott Hughes
Change-Id: I0a1073b25455fe02d26decec64a6ed9314284062
2016-09-09Mark io_setup and io_destroy as memory mapping related syscallsDmitry V. Levin
As io_setup syscall allocates some memory using do_mmap_pgoff, and io_destroy deallocates this memory using vm_munmap, set TRACE_MEMORY flag for all sysentries of io_setup and io_destroy using the following oneliner: sed -ri '/io_setup|io_destroy/ s/0,/TM,/' linux/*/syscallent*.h * linux/*/syscallent*.h (io_setup, io_destroy): Change sys_flags to TM.
2016-08-23Introduce a separate SEN entry for fstatat64 syscallDmitry V. Levin
* linux/dummy.h (sys_fstatat64): Redirect to sys_newfstatat. * linux/32/syscallent.h: Replace SEN(newfstatat) with SEN(fstatat64). * linux/alpha/syscallent.h: Likewise. * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * pathtrace.c (pathtrace_match): Handle SEN_fstatat64.
2016-07-28Consistently use extended regular expressions where appropriateDmitry V. Levin
When grep or sed is used with basic regular expressions containing '(', ')', '{', '}', '|', '?', and '+' special characters, convert them to extended regular expressions for better portability and readability. * generate_mpers_am.sh: Convert grep and sed BREs to EREs. * Makefile.am (ioctl_redefs%.h, m%_type_defs.h, m%_funcs.h, mpers_printer_decl_pattern, printers.h, %_printer_decls.h, %_printer_defs.h): Convert sed BREs to EREs. * generate_sen.sh: Likewise. * linux/mips/genstub.sh: Likewise. * make-dsc: Likewise. * mpers.sh: Likewise. * xlat/gen.sh: Likewise. * tests/Makefile.am (ksysent.h): Likewise. * tests/ksysent.sed: Likewise. * tests/pc.test: Likewise. * tests/strace-S.test: Likewise. * tests/strace-V.test: Likewise. * tests/strace-k.test: Likewise.
2016-06-03Merge remote-tracking branch 'strace/master' into HEADandroid-wear-n-preview-2android-wear-7.1.1_r1android-n-preview-5android-n-preview-4android-n-iot-preview-2nougat-mr1-wear-releasen-iot-preview-2Elliott Hughes
Change-Id: I818627080b47fdadcd619d6220579fecbb6bc28c
2016-05-11Implement decoding of preadv2 and pwritev2 syscallsDmitry V. Levin
* io.c: Include "xlat/rwf_flags.h". (do_preadv, do_pwritev, SYS_FUNC(preadv2), SYS_FUNC(pwritev2)): New functions. (SYS_FUNC(preadv)): Use do_preadv. (SYS_FUNC(pwritev)): Use do_pwritev. * linux/32/syscallent.h (preadv2, pwritev2): New entries. * linux/64/syscallent.h: Likewise. * linux/arm/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * syscall.c (dumpio): Handle SEN_preadv2 and SEN_pwritev2. * xlat/rwf_flags.in: New file. * NEWS: Mention parsers of new syscalls.
2016-04-29Remove initialization of big holes in syscallent.h filesDmitry V. Levin
There is no need to explicitly initialize big holes after conversion of syscallent.h files to use designated initializers. For architectures that have some data at the end of syscallent.h this initialization of big holes is no-op, for others it just inflates the table unnecessarily. * linux/arc/syscallent.h: Remove initialization of arch specific block at the end of table. * linux/metag/syscallent.h: Likewise. * linux/nios2/syscallent.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/tile/syscallent1.h: Likewise. * linux/arm/syscallent.h: Remove explicit initialization of a big hole before socket subcalls. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/mips/syscallent-compat.h: Remove explicit initialization of big holes between different mips ABIs. * linux/mips/syscallent-n64.h: Remove explicit initialization of big holes before socket subcalls and between different mips ABIs. * linux/mips/syscallent-o32.h: Likewise.
2016-04-20mips o32, powerpc, powerpc64: fix decoding of iopl syscallDmitry V. Levin
* linux/mips/syscallent-o32.h (iopl): Fix nargs. * linux/powerpc/syscallent.h (iopl): Fix nargs and sys_func. * linux/powerpc64/syscallent.h (iopl): Likewise.
2016-04-06Merge remote-tracking branch 'strace/master' into HEADElliott Hughes
2016-02-20mips: wire up copy_file_range syscallDmitry V. Levin
* linux/mips/syscallent-n32.h [6324]: Add copy_file_range entry. * linux/mips/syscallent-n64.h [5320]: Likewise. * linux/mips/syscallent-o32.h [4360]: Likewise.
2016-02-13Fix numbers of syscall arguments in syscall tablesDmitry V. Levin
This semi-automatic change brings syscall tables in sync with kernel's include/linux/syscalls.h file. * linux/aarch64/syscallent.h (recv): Fix nargs. * linux/alpha/syscallent.h (sigaltstack, init_module, sched_getscheduler, settimeofday): Likewise. * linux/arm/syscallent.h (signal, pciconfig_iobase, msgrcv, msgctl, shmat, shmdt, shmctl, semtimedop, get_mempolicy, set_mempolicy, timerfd_create): Likewise. * linux/bfin/syscallent.h (signal, delete_module): Likewise. * linux/hppa/syscallent.h (init_module, munlockall, sched_getscheduler, io_cancel, set_tid_address, listxattr, llistxattr, flistxattr, removexattr, lremovexattr, fremovexattr): Likewise. * linux/i386/syscallent.h (signal, mmap): Likewise. * linux/ia64/syscallent.h (init_module, readv, writev, sched_getscheduler): Likewise. * linux/m68k/syscallent.h (signal, request_key): Likewise. * linux/microblaze/syscallent.h (signal, clone, fstatfs64, vmsplice): Likewise. * linux/mips/syscallent-n32.h (getpgid, statfs, fstatfs, init_module, delete_module): Likewise. * linux/mips/syscallent-n64.h (getpgid, statfs, fstatfs, init_module, delete_module): Likewise. * linux/mips/syscallent-o32.h (signal, statfs, fstatfs, ioperm, fstatfs64): Likewise. * linux/powerpc/syscallent.h (signal, spu_run, spu_create): Likewise. * linux/powerpc64/syscallent.h (signal, pread64, pwrite64, readahead, fadvise64, lookup_dcookie, spu_run, spu_create, sync_file_range2, fallocate, preadv, pwritev, fanotify_mark): Likewise. * linux/s390/syscallent.h (signal, mmap, lookup_dcookie, ipc): Likewise. * linux/s390x/syscallent.h (signal, ipc): Likewise. * linux/sh/syscallent.h (signal, ipc, munlockall, fstatfs64, vmsplice): Likewise. * linux/sh64/syscallent.h (signal, ipc, msgrcv, msgctl, shmat, shmdt, shmctl, fstatfs64, vmsplice): Likewise. * linux/sparc/syscallent.h (ptrace, dup, signal, ipc): Likewise. * linux/sparc64/syscallent.h (ptrace, dup, signal, pread64, pwrite64, readahead, lookup_dcookie, fadvise64, fadvise64_64, ipc, sync_file_range, fallocate, preadv, pwritev, fanotify_mark): Likewise. * linux/x32/syscallent.h (64:recvmsg): Likewise. * linux/xtensa/syscallent.h (mremap, futex, reboot, init_module, delete_module, request_key, getcpu, ioprio_set, ioprio_get, utimensat, futimesat, fchmodat, faccessat): Likewise. * NEWS: Mention this fix.
2016-02-13mips n64: use the most optimal parser for fadvise64 syscallDmitry V. Levin
* linux/mips/syscallent-n64.h (fadvise64): Replace SEN(fadvise64_64) with SEN(fadvise64).
2016-02-13alpha, ia64, mips, sh, sh64: fix the number of pipe syscall argumentsDmitry V. Levin
On alpha, ia64, mips, sh, sh64, sparc, and sparc64 architectures pipe syscall does not take arguments. * linux/alpha/syscallent.h (pipe): Change nargs to 0. * linux/ia64/syscallent.h (pipe): Likewise. * linux/mips/syscallent-n32.h (pipe): Likewise. * linux/mips/syscallent-n64.h (pipe): Likewise. * linux/mips/syscallent-o32.h (pipe): Likewise. * linux/sh/syscallent.h (pipe): Likewise. * linux/sh64/syscallent.h (pipe): Likewise.
2016-01-04Merge remote-tracking branch 'strace/master' into HEADElliott Hughes
2015-12-29Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscallDmitry V. Levin
* linux/*/syscallent*.h (getpid, getppid, gettid): Set NF flag.
2015-12-29Set SYSCALL_NEVER_FAILS flag for umask syscallDmitry V. Levin
Linux kernel always ANDs umask argument with 0700 and therefore this syscall never fails. * linux/*/syscallent*.h (umask): Set NF flag.
2015-12-27alpha, ia64, mips, nios2, powerpc, sparc: always check for syscall errorDmitry V. Levin
On architectures that use dedicated registers to report syscall errors, check for syscall error condition regardless of SYSCALL_NEVER_FAILS flag in the syscall entry. On architectures that use negated errno semantics, there is no way to distinguish a syscall error from a valid return code that looks like a syscall error, and the check for SYSCALL_NEVER_FAILS flag remains the only way to tell one case from another. * linux/alpha/get_error.c (get_error): Ignore check_errno. * linux/ia64/get_error.c: Likewise. * linux/mips/get_error.c: Likewise. * linux/nios2/get_error.c: Likewise. * linux/powerpc/get_error.c: Likewise. * linux/sparc/get_error.c: Likewise. * linux/sparc64/get_error.c: Likewise.
2015-12-25Set SYSCALL_NEVER_FAILS flag for personality syscallDmitry V. Levin
Starting with commit v2.6.29-6609-g11d06b2a1e5658f448a308aa3beb97bacd64a940, personality syscall never fails to set the personality, but before commit v2.6.35-rc1-372-g485d527 it still could return an error. Starting with that commit, personality syscall never returns an error. * linux/*/syscallent.h: Set SYSCALL_NEVER_FAILS flag in personality syscall entries.
2015-12-10Merge remote-tracking branch 'strace/master' into HEADElliott Hughes
Change-Id: I65e4a0c7b98d3a813829088e8bcb34ed7d71fa3e
2015-12-08mips: fix fadvise64 syscall entriesDmitry V. Levin
* linux/mips/syscallent-n32.h [6216]: Change syscall handler from fadvise64 to fadvise64_64. * linux/mips/syscallent-n64.h [5215]: Rename from "fadvise64_64" to "fadvise64" * linux/mips/syscallent-o32.h [4254]: Likewise.
2015-12-08Fix select and _newselect syscall entriesDmitry V. Levin
Change syscall names to match kernel __NR_* constants. This reverts commit ddcf54969d253582ab2cfdcab8ede9cdae3fb171. * linux/arm/syscallent.h [82]: Rename "oldselect" to "select". [142]: Rename "select" to "_newselect". * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/powerpc/syscallent.h [82]: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/hppa/syscallent.h [142]: Rename "select" to "_newselect". * linux/mips/syscallent-n32.h [6022]: Rename "select" to "_newselect". * linux/mips/syscallent-n64.h [5022]: Likewise. * linux/mips/syscallent-o32.h [4142]: Likewise. * linux/s390/syscallent.h [142]: Rename "select" to "_newselect". * linux/sparc/syscallent.h [230]: Rename "select" to "_newselect". * tests/oldselect.test: Rename oldselect to select. Convert from match_grep to match_diff. * tests/oldselect.expected: Likewise. * xselect.c: New file, based on select.c. * tests/_newselect.c: New file. * tests/select.c: Replace with a wrapper around xselect.c. * tests/select.test: Parametrize. * tests/_newselect.test: New test. * tests/Makefile.am (check_PROGRAMS): Add _newselect. (TESTS): Add _newselect.test. (EXTRA_DIST): Add xselect.c. * tests/.gitignore: Add _newselect.
2015-12-04fcntl: create a separate parser for fcntl64 syscallElvira Khabirova
* fcntl.c(print_fcntl): New function, made from SYS_FUNC(fcntl). (SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Use it. * linux/32/syscallent.h: Change parser of fcntl64 to SEN(fcntl64). * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise.
2015-11-30Cleanup print_pcDmitry V. Levin
Apparently, there are only two types of instruction pointer printers depending on the architecture: those that print a register that was fetched earlier, and those that fetch a register themselves using upeek. With this change, architectures of the first type have ARCH_PC_REG defined in their arch_regs.c file, architectures of the first type have ARCH_PC_PEEK_ADDR defined there, and the common code in syscall.c uses these macros to print the instruction pointer. * Makefile.am (EXTRA_DIST): Remove linux/*/print_pc.c. * linux/*/print_pc.c: Remove. * linux/aarch64/arch_regs.c(ARCH_PC_REG): Define macro. * linux/arc/arch_regs.c(ARCH_PC_REG): Likewise. * linux/arm/arch_regs.c(ARCH_PC_REG): Likewise. * linux/avr32/arch_regs.c(ARCH_PC_REG): Likewise. * linux/i386/arch_regs.c(ARCH_PC_REG): Likewise. * linux/ia64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/metag/arch_regs.c(ARCH_PC_REG): Likewise. * linux/mips/arch_regs.c(ARCH_PC_REG): Likewise. * linux/nios2/arch_regs.c(ARCH_PC_REG): Likewise. * linux/or1k/arch_regs.c(ARCH_PC_REG): Likewise. * linux/powerpc64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/powerpc/arch_regs.c(ARCH_PC_REG): Likewise. * linux/s390/arch_regs.c(ARCH_PC_REG): Likewise. * linux/s390x/arch_regs.c(ARCH_PC_REG): Likewise. * linux/sparc64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/sparc/arch_regs.c(ARCH_PC_REG): Likewise. * linux/tile/arch_regs.c(ARCH_PC_REG): Likewise. * linux/x32/arch_regs.c(ARCH_PC_REG): Likewise. * linux/x86_64/arch_regs.c(ARCH_PC_REG): Likewise. * linux/alpha/arch_regs.c(ARCH_PC_PEEK_ADDR): Define macro. * linux/bfin/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/crisv10/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/crisv32/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/hppa/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/m68k/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/microblaze/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/sh64/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/sh/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * linux/xtensa/arch_regs.c(ARCH_PC_PEEK_ADDR): Likewise. * syscall.c (print_pc): Stop including "print_pc.c". Use ARCH_PC_REG or ARCH_PC_PEEK_ADDR.
2015-11-30cleanup: make get_scno.c files more readableDmitry V. Levin
Make get_scno.c files more self-contained. While they are still being included by syscall.c, the latter no longer provides a function framework for them. * linux/aarch64/get_scno.c (arch_get_scno): Define. * linux/alpha/get_scno.c: Likewise. * linux/arc/get_scno.c: Likewise. * linux/arm/get_scno.c: Likewise. * linux/avr32/get_scno.c: Likewise. * linux/bfin/get_scno.c: Likewise. * linux/crisv10/get_scno.c: Likewise. * linux/hppa/get_scno.c: Likewise. * linux/i386/get_scno.c: Likewise. * linux/ia64/get_scno.c: Likewise. * linux/m68k/get_scno.c: Likewise. * linux/metag/get_scno.c: Likewise. * linux/microblaze/get_scno.c: Likewise. * linux/mips/get_scno.c: Likewise. * linux/nios2/get_scno.c: Likewise. * linux/or1k/get_scno.c: Likewise. * linux/powerpc/get_scno.c: Likewise. * linux/powerpc64/get_scno.c: Likewise. * linux/s390/get_scno.c: Likewise. * linux/sh/get_scno.c: Likewise. * linux/sh64/get_scno.c: Likewise. * linux/sparc/get_scno.c: Likewise. * linux/sparc64/get_scno.c: Likewise. * linux/tile/get_scno.c: Likewise. * linux/x86_64/get_scno.c: Likewise. * linux/xtensa/get_scno.c: Likewise. * syscall.c (arch_get_scno): New declaration. Include "get_scno.c" in file scope. (get_scno): Use arch_get_scno. Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
2015-11-30cleanup: make get_syscall_args.c files more readableDmitry V. Levin
Make get_syscall_args.c files more self-contained. While they are still being included by syscall.c, the latter no longer defines get_syscall_args function. * linux/aarch64/get_syscall_args.c: Include "arm/get_syscall_args.c" with get_syscall_args temporarily defined to arm_get_syscall_args. (get_syscall_args): Define. * linux/alpha/get_syscall_args.c (get_syscall_args): Define. * linux/arc/get_syscall_args.c: Likewise. * linux/arm/get_syscall_args.c: Likewise. * linux/avr32/get_syscall_args.c: Likewise. * linux/bfin/get_syscall_args.c: Likewise. * linux/crisv10/get_syscall_args.c: Likewise. * linux/hppa/get_syscall_args.c: Likewise. * linux/i386/get_syscall_args.c: Likewise. * linux/ia64/get_syscall_args.c: Likewise. * linux/m68k/get_syscall_args.c: Likewise. * linux/metag/get_syscall_args.c: Likewise. * linux/microblaze/get_syscall_args.c: Likewise. * linux/mips/get_syscall_args.c: Likewise. * linux/nios2/get_syscall_args.c: Likewise. * linux/or1k/get_syscall_args.c: Likewise. * linux/powerpc/get_syscall_args.c: Likewise. * linux/s390/get_syscall_args.c: Likewise. * linux/sh/get_syscall_args.c: Likewise. * linux/sh64/get_syscall_args.c: Likewise. * linux/sparc/get_syscall_args.c: Likewise. * linux/tile/get_syscall_args.c: Likewise. * linux/x86_64/get_syscall_args.c: Likewise. * linux/xtensa/get_syscall_args.c: Likewise. * syscall.c (get_syscall_args): Remove. Include "get_syscall_args.c" in file scope. Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
2015-11-29cleanup: make get_error.c files more readableDmitry V. Levin
Make get_error.c files more self-sustained. While they are still being included by syscall.c, the latter no longer defines get_error function. * linux/aarch64/get_error.c: Include "arm/get_error.c" with get_error temporarily defined to arm_get_error. (get_error): Define. * linux/alpha/get_error.c (get_error): Define. * linux/arc/get_error.c: Likewise. * linux/arm/get_error.c: Likewise. * linux/avr32/get_error.c: Likewise. * linux/bfin/get_error.c: Likewise. * linux/crisv10/get_error.c: Likewise. * linux/hppa/get_error.c: Likewise. * linux/i386/get_error.c: Likewise. * linux/ia64/get_error.c: Likewise. * linux/m68k/get_error.c: Likewise. * linux/metag/get_error.c: Likewise. * linux/microblaze/get_error.c: Likewise. * linux/mips/get_error.c: Likewise. * linux/nios2/get_error.c: Likewise. * linux/or1k/get_error.c: Likewise. * linux/powerpc/get_error.c: Likewise. * linux/s390/get_error.c: Likewise. * linux/sh/get_error.c: Likewise. * linux/sh64/get_error.c: Likewise. * linux/sparc/get_error.c: Likewise. * linux/sparc64/get_error.c: Likewise. * linux/tile/get_error.c: Likewise. * linux/x86_64/get_error.c: Likewise. * linux/xtensa/get_error.c: Likewise. * syscall.c: Include "get_error.c" in file scope. (get_error): Remove. Move arch independent code ... (get_syscall_result): ... here. Update get_error invocation. Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
2015-11-28cleanup: make arch_sigreturn.c files more readableDmitry V. Levin
Make arch_sigreturn.c files more self-sustained. While they are still being included by sigreturn.c, the latter no longer defines arch_sigreturn function. * linux/alpha/arch_sigreturn.c (arch_sigreturn): Define. * linux/arm/arch_sigreturn.c: Likewise. * linux/crisv10/arch_sigreturn.c: Likewise. * linux/i386/arch_sigreturn.c: Likewise. * linux/ia64/arch_sigreturn.c: Likewise. * linux/m68k/arch_sigreturn.c: Likewise. * linux/microblaze/arch_sigreturn.c: Likewise. * linux/mips/arch_sigreturn.c: Likewise. * linux/powerpc/arch_sigreturn.c: Likewise. * linux/s390/arch_sigreturn.c: Likewise. * linux/sparc/arch_sigreturn.c: Likewise. * linux/tile/arch_sigreturn.c: Likewise. * linux/x32/arch_sigreturn.c: Remove code. Include "x86_64/arch_sigreturn.c". * linux/x86_64/arch_sigreturn.c: Stop including "x32/arch_sigreturn.c". Include "i386/arch_sigreturn.c" with arch_sigreturn temporarily defined to i386_arch_sigreturn. (arch_sigreturn): Define. Add x32 personality support there. * sigreturn.c: Remove arch_sigreturn header and footer. Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
2015-11-24Fix syscall entries of unimplemented getpmsg and putpmsg syscallsDmitry V. Levin
* linux/ia64/syscallent.h (getpmsg): Change SEN(printargs) to SEN(getpmsg). (putpmsg): Change SEN(printargs) to SEN(putpmsg). * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/arm/syscallent.h (getpmsg, putpmsg): Set sys_flags to TN. * linux/bfin/syscallent.h (getpmsg, putpmsg): Likewise. * linux/hppa/syscallent.h (getpmsg, putpmsg): Likewise. * linux/i386/syscallent.h (getpmsg, putpmsg): Likewise. * linux/m68k/syscallent.h (getpmsg, putpmsg): Likewise. * linux/microblaze/syscallent.h (getpmsg, putpmsg): Likewise. * linux/powerpc/syscallent.h (getpmsg, putpmsg): Likewise. * linux/s390/syscallent.h (getpmsg, putpmsg): Likewise. * linux/s390x/syscallent.h (getpmsg, putpmsg): Likewise. * linux/x32/syscallent.h (getpmsg, putpmsg): Likewise. * linux/x86_64/syscallent.h (getpmsg, putpmsg): Likewise.
2015-11-24Fix syscall entries of deprecated sysfs syscallDmitry V. Levin
* linux/alpha/syscallent.h (sysfs): Change nargs from 5 to 3. * linux/hppa/syscallent.h (sysfs): Likewise. * linux/mips/syscallent-n32.h (sysfs): Likewise. * linux/mips/syscallent-n64.h (sysfs): Likewise.
2015-11-17Wire up userfaultfd, membarrier, and mlock2 syscallsDmitry V. Levin
* linux/dummy.h (membarrier, mlock2, userfaultfd): New stub aliases. * linux/32/syscallent.h (userfaultfd, membarrier, mlock2): New entries. * linux/64/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/arm/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/hppa/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/i386/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/ia64/syscallent.h (userfaultfd, membarrier): Likewise. * linux/m68k/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/microblaze/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/mips/syscallent-n32.h (userfaultfd, membarrier, mlock2): Likewise. * linux/mips/syscallent-n64.h (userfaultfd, membarrier, mlock2): Likewise. * linux/mips/syscallent-o32.h (userfaultfd, membarrier, mlock2): Likewise. * linux/powerpc/syscallent.h (userfaultfd, membarrier): Likewise. * linux/s390/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/s390x/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/sparc/syscallent.h (membarrier, userfaultfd, mlock2): Likewise. * linux/x32/syscallent.h (userfaultfd, membarrier, mlock2): Likewise. * linux/x86_64/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
2015-07-29Fix mips64 build.Elliott Hughes
Change-Id: I9c71baa6e468731de170a3b16c29dac292b29abd
2015-07-29Merge remote-tracking branch 'strace/master' into HEADElliott Hughes
2015-07-29mips: fix stub filesDmitry V. Levin
This complements commit 140ecf876686d49085c6eb3a2306e2ea6ea641bc. * linux/mips/genstub.sh: Output SEN(printargs) instead of printargs. Reported-by: Elliott Hughes <enh@google.com>
2015-07-29Fix mips build.Elliott Hughes
Generating these required a fix to linux/mips/genstub.sh too, but I'll see what upstream says first. Change-Id: I4265a20111e713da9d20fb5d9a3b8b7af99266ea
2015-07-29Merge remote-tracking branch 'strace/master' into HEADElliott Hughes
2015-07-21alpha, arm, ia64, mips, sh64: fix semop syscall entriesDmitry V. Levin
* linux/alpha/syscallent.h (semop): Fix nargs, set sys_func. * linux/ia64/syscallent.h (semop): Set sys_func. * linux/mips/syscallent-n32.h (semop): Likewise. * linux/mips/syscallent-n64.h (semop): Likewise. * linux/arm/syscallent.h (semop): Fix nargs. * linux/sh64/syscallent.h (semop): Likewise.
2015-07-21mips o32: fix utimensat syscall entryDmitry V. Levin
* linux/mips/syscallent-o32.h (utimensat): set sys_flags and sys_func.
2015-07-21linux/mips/syscallent-compat.h: use designated initializersDmitry V. Levin
Change linux/mips/syscallent-compat.h to use designated initializers like normal syscallent.h files. * linux/mips/syscallent-compat.h: Use designated initializers.
2015-07-21linux/mips/syscallent-compat.h: fix initalization of empty entriesDmitry V. Levin
This complements commit 140ecf876686d49085c6eb3a2306e2ea6ea641bc. * linux/mips/syscallent-compat.h: Fix initalization of empty entries.
2015-07-12Introduce SEN macroElvira Khabirova
* syscall.c (SEN): New temporary macro. * linux/dummy.h (sys_printargs): New macro. * linux/subcall.h: Wrap all sys_func entries using SEN. * linux/*/syscallent*.h: Likewise.