summaryrefslogtreecommitdiff
path: root/tests/memfd_create.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersDmitry V. Levin2023-04-301-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* xlat: update MFD_* constantsDmitry V. Levin2023-04-281-5/+6
| | | | | | | * src/xlat/memfd_create_flags.in (MFD_NOEXEC_SEAL, MFD_EXEC): New constants introduced by Linux kernel commit v6.3-rc1~113^2~502. * tests/memfd_create.c (main): Update expected output. * NEWS: Mention this.
* tests: assume __NR_memfd_create is definedDmitry V. Levin2021-06-021-30/+22
| | | | | | | memfd_create syscall entries are present in syscallent files for all supported architectures. * tests/memfd_create.c: Assume __NR_memfd_create is defined.
* memfd_create: print the first argument as a stringDmitry V. Levin2021-03-161-4/+3
| | | | | | | | | | | | The first argument of memfd_create syscall is not a pathname but an arbitrary string. * src/memfd_create.c [!MFD_NAME_MAX_LEN] (MFD_NAME_MAX_LEN): New macro. (SYS_FUNC(memfd_create)): Print the first argument of syscall using printstr_ex instead of printpathn. * tests/gen_tests.in (memfd_create, memfd_create-Xabbrev, memfd_create-Xraw, memfd_create-Xverbose): Pass -s256. * tests/memfd_create.c (main): Update expected output.
* Switch to use bundled <linux/memfd.h> and <asm-generic/hugetlb_encode.h>Dmitry V. Levin2021-02-191-12/+1
| | | | | | | | | | | | | * bundled/linux/include/uapi/linux/memfd.h: New file, copied from headers_install'ed Linux kernel v5.11. * bundled/linux/include/uapi/asm-generic/hugetlb_encode.h: Likewise. * bundled/Makefile.am (EXTRA_DIST): Add them. * configure.ac (AC_CHECK_HEADERS): Remove linux/memfd.h. * src/memfd.c: Include <linux/memfd.h> unconditionally, assume it provides all necessary constants. * tests/memfd.c: Likewise. * src/xlat/memfd_create_flags.in: Add #unconditional, remove fallback definitions.
* Update copyright headersDmitry V. Levin2021-02-161-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Change my email addressDmitry V. Levin2020-12-311-1/+1
|
* Update copyright headersDmitry V. Levin2019-09-251-0/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Consistently define __NR_* constantsDmitry V. Levin2019-07-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include <asm/unistd.h> from "scno.h", include "scno.h" instead of <asm/unistd.h>, do not include <asm/unistd.h> where "scno.h" is already included. * scno.head: Include <asm/unistd.h>. * clone.c: Include "scno.h" instead of <asm/unistd.h>. * syscall.c: Likewise. * tests/_newselect.c: Likewise. * tests/accept.c: Likewise. * tests/accept_compat.h: Likewise. * tests/access.c: Likewise. * tests/acct.c: Likewise. * tests/aio.c: Likewise. * tests/alarm.c: Likewise. * tests/answer.c: Likewise. * tests/attach-f-p.c: Likewise. * tests/brk.c: Likewise. * tests/chmod.c: Likewise. * tests/chown.c: Likewise. * tests/chown32.c: Likewise. * tests/chroot.c: Likewise. * tests/clock_adjtime.c: Likewise. * tests/clock_nanosleep.c: Likewise. * tests/clock_xettime.c: Likewise. * tests/creat.c: Likewise. * tests/delay.c: Likewise. * tests/delete_module.c: Likewise. * tests/dev-yy.c: Likewise. * tests/dup2.c: Likewise. * tests/dup3.c: Likewise. * tests/epoll_create.c: Likewise. * tests/epoll_create1.c: Likewise. * tests/epoll_ctl.c: Likewise. * tests/epoll_pwait.c: Likewise. * tests/epoll_wait.c: Likewise. * tests/eventfd.c: Likewise. * tests/faccessat.c: Likewise. * tests/fadvise64.c: Likewise. * tests/fadvise64_64.c: Likewise. * tests/fallocate.c: Likewise. * tests/fanotify_init.c: Likewise. * tests/fanotify_mark.c: Likewise. * tests/fchdir.c: Likewise. * tests/fchmod.c: Likewise. * tests/fchmodat.c: Likewise. * tests/fchown.c: Likewise. * tests/fchown32.c: Likewise. * tests/fchownat.c: Likewise. * tests/fcntl.c: Likewise. * tests/fcntl64.c: Likewise. * tests/fdatasync.c: Likewise. * tests/file_handle.c: Likewise. * tests/flock.c: Likewise. * tests/fstat.c: Likewise. * tests/fstat64.c: Likewise. * tests/fstatat64.c: Likewise. * tests/fstatfs.c: Likewise. * tests/fstatfs64.c: Likewise. * tests/fsync.c: Likewise. * tests/ftruncate.c: Likewise. * tests/ftruncate64.c: Likewise. * tests/futex.c: Likewise. * tests/futimesat.c: Likewise. * tests/get_mempolicy.c: Likewise. * tests/get_sigset_size.c: Likewise. * tests/getcpu.c: Likewise. * tests/getcwd.c: Likewise. * tests/getdents.c: Likewise. * tests/getdents64.c: Likewise. * tests/getegid32.c: Likewise. * tests/geteuid32.c: Likewise. * tests/getgid.c: Likewise. * tests/getgid32.c: Likewise. * tests/getgroups.c: Likewise. * tests/getgroups32.c: Likewise. * tests/getpgrp.c: Likewise. * tests/getpid.c: Likewise. * tests/getrandom.c: Likewise. * tests/getresgid.c: Likewise. * tests/getresgid32.c: Likewise. * tests/getresuid.c: Likewise. * tests/getresuid32.c: Likewise. * tests/getrlimit.c: Likewise. * tests/getrusage.c: Likewise. * tests/gettid.c: Likewise. * tests/getuid.c: Likewise. * tests/getuid32.c: Likewise. * tests/getxxid.c: Likewise. * tests/init_module.c: Likewise. * tests/inject-nf.c: Likewise. * tests/inotify.c: Likewise. * tests/inotify_init1.c: Likewise. * tests/ioctl_inotify.c: Likewise. * tests/ioctl_loop.c: Likewise. * tests/ioctl_perf.c: Likewise. * tests/ioctl_uffdio.c: Likewise. * tests/ioperm.c: Likewise. * tests/iopl.c: Likewise. * tests/ioprio.c: Likewise. * tests/ipc.c: Likewise. * tests/ipc_msgbuf.c: Likewise. * tests/kexec_load.c: Likewise. * tests/keyctl.c: Likewise. * tests/kill.c: Likewise. * tests/ksysent.c: Likewise. * tests/lchown.c: Likewise. * tests/lchown32.c: Likewise. * tests/libmmsg.c: Likewise. * tests/libsocketcall.c: Likewise. * tests/link.c: Likewise. * tests/linkat.c: Likewise. * tests/llseek.c: Likewise. * tests/localtime.c: Likewise. * tests/lookup_dcookie.c: Likewise. * tests/lseek.c: Likewise. * tests/lstat.c: Likewise. * tests/lstat64.c: Likewise. * tests/madvise.c: Likewise. * tests/migrate_pages.c: Likewise. * tests/mkdir.c: Likewise. * tests/mkdirat.c: Likewise. * tests/mknod.c: Likewise. * tests/mknodat.c: Likewise. * tests/mlock.c: Likewise. * tests/modify_ldt.c: Likewise. * tests/move_pages.c: Likewise. * tests/mq_sendrecv.c: Likewise. * tests/newfstatat.c: Likewise. * tests/nsyscalls.c: Likewise. * tests/old_mmap.c: Likewise. * tests/oldfstat.c: Likewise. * tests/oldlstat.c: Likewise. * tests/oldselect-efault.c: Likewise. * tests/oldselect.c: Likewise. * tests/oldstat.c: Likewise. * tests/open.c: Likewise. * tests/openat.c: Likewise. * tests/osf_utimes.c: Likewise. * tests/pause.c: Likewise. * tests/perf_event_open.c: Likewise. * tests/perf_event_open_nonverbose.c: Likewise. * tests/pipe.c: Likewise. * tests/pipe2.c: Likewise. * tests/poll.c: Likewise. * tests/ppoll.c: Likewise. * tests/prctl-arg2-intptr.c: Likewise. * tests/prctl-dumpable.c: Likewise. * tests/prctl-no-args.c: Likewise. * tests/prctl-pdeathsig.c: Likewise. * tests/prctl-seccomp-filter-v.c: Likewise. * tests/prctl-seccomp-strict.c: Likewise. * tests/prctl-securebits.c: Likewise. * tests/prctl-spec-inject.c: Likewise. * tests/prctl-tid_address.c: Likewise. * tests/prctl-tsc.c: Likewise. * tests/prlimit64.c: Likewise. * tests/process_vm_readv.c: Likewise. * tests/process_vm_writev.c: Likewise. * tests/pselect6.c: Likewise. * tests/ptrace.c: Likewise. * tests/qual_inject-error-signal.c: Likewise. * tests/qual_inject-retval.c: Likewise. * tests/qual_inject-signal.c: Likewise. * tests/quotactl-xfs.c: Likewise. * tests/quotactl.c: Likewise. * tests/read-write.c: Likewise. * tests/readahead.c: Likewise. * tests/readdir.c: Likewise. * tests/readlink.c: Likewise. * tests/readlinkat.c: Likewise. * tests/reboot.c: Likewise. * tests/rename.c: Likewise. * tests/renameat.c: Likewise. * tests/request_key.c: Likewise. * tests/rmdir.c: Likewise. * tests/rt_sigpending.c: Likewise. * tests/rt_sigprocmask.c: Likewise. * tests/rt_sigsuspend.c: Likewise. * tests/rt_sigtimedwait.c: Likewise. * tests/rt_tgsigqueueinfo.c: Likewise. * tests/s390_guarded_storage.c: Likewise. * tests/s390_pci_mmio_read_write.c: Likewise. * tests/s390_runtime_instr.c: Likewise. * tests/s390_sthyi.c: Likewise. * tests/sched_get_priority_mxx.c: Likewise. * tests/sched_rr_get_interval.c: Likewise. * tests/sched_xetaffinity.c: Likewise. * tests/sched_xetattr.c: Likewise. * tests/sched_xetparam.c: Likewise. * tests/sched_xetscheduler.c: Likewise. * tests/sched_yield.c: Likewise. * tests/seccomp-filter-v.c: Likewise. * tests/seccomp-filter.c: Likewise. * tests/seccomp-strict.c: Likewise. * tests/seccomp_get_action_avail.c: Likewise. * tests/select.c: Likewise. * tests/sendfile.c: Likewise. * tests/sendfile64.c: Likewise. * tests/setdomainname.c: Likewise. * tests/setfsgid.c: Likewise. * tests/setfsgid32.c: Likewise. * tests/setfsuid.c: Likewise. * tests/setfsuid32.c: Likewise. * tests/setgid.c: Likewise. * tests/setgid32.c: Likewise. * tests/setgroups.c: Likewise. * tests/setgroups32.c: Likewise. * tests/sethostname.c: Likewise. * tests/setns.c: Likewise. * tests/setregid.c: Likewise. * tests/setregid32.c: Likewise. * tests/setresgid.c: Likewise. * tests/setresgid32.c: Likewise. * tests/setresuid.c: Likewise. * tests/setresuid32.c: Likewise. * tests/setreuid.c: Likewise. * tests/setreuid32.c: Likewise. * tests/setrlimit.c: Likewise. * tests/setuid.c: Likewise. * tests/setuid32.c: Likewise. * tests/sigaction.c: Likewise. * tests/signal.c: Likewise. * tests/signalfd4.c: Likewise. * tests/sigpending.c: Likewise. * tests/sigprocmask.c: Likewise. * tests/sigreturn.c: Likewise. * tests/sigsuspend.c: Likewise. * tests/socketcall.c: Likewise. * tests/splice.c: Likewise. * tests/stack-fcall-3.c: Likewise. * tests/stat.c: Likewise. * tests/stat64.c: Likewise. * tests/statfs.c: Likewise. * tests/statfs64.c: Likewise. * tests/status-none-threads.c: Likewise. * tests/status-unfinished-threads.c: Likewise. * tests/statx.c: Likewise. * tests/swap.c: Likewise. * tests/sxetmask.c: Likewise. * tests/symlink.c: Likewise. * tests/symlinkat.c: Likewise. * tests/sync.c: Likewise. * tests/sync_file_range.c: Likewise. * tests/sync_file_range2.c: Likewise. * tests/syslog.c: Likewise. * tests/tee.c: Likewise. * tests/threads-execve.c: Likewise. * tests/time.c: Likewise. * tests/timer_create.c: Likewise. * tests/timer_xettime.c: Likewise. * tests/timerfd_xettime.c: Likewise. * tests/times-fail.c: Likewise. * tests/times.c: Likewise. * tests/truncate.c: Likewise. * tests/truncate64.c: Likewise. * tests/ugetrlimit.c: Likewise. * tests/umount.c: Likewise. * tests/umount2.c: Likewise. * tests/umoven-illptr.c: Likewise. * tests/umovestr-illptr.c: Likewise. * tests/uname.c: Likewise. * tests/unix-pair-send-recv.c: Likewise. * tests/unlink.c: Likewise. * tests/unlinkat.c: Likewise. * tests/unshare.c: Likewise. * tests/ustat.c: Likewise. * tests/utime.c: Likewise. * tests/utimensat.c: Likewise. * tests/utimes.c: Likewise. * tests/vhangup.c: Likewise. * tests/vmsplice.c: Likewise. * tests/waitid.c: Likewise. * tests/waitpid.c: Likewise. * tests/xet_robust_list.c: Likewise. * tests/xet_thread_area_x86.c: Likewise. * tests/xetitimer.c: Likewise. * tests/xetpgid.c: Likewise. * tests/xetpriority.c: Likewise. * tests/xettimeofday.c: Likewise. * strace.c: Do not include <asm/unistd.h>. * ucopy.c: Likewise. * tests/add_key.c: Likewise. * tests/aio_pgetevents.c: Likewise. * tests/bpf-obj_get_info_by_fd.c: Likewise. * tests/bpf.c: Likewise. * tests/copy_file_range.c: Likewise. * tests/execveat.c: Likewise. * tests/finit_module.c: Likewise. * tests/fsconfig.c: Likewise. * tests/fsmount.c: Likewise. * tests/fsopen.c: Likewise. * tests/fspick.c: Likewise. * tests/getegid.c: Likewise. * tests/geteuid.c: Likewise. * tests/getppid.c: Likewise. * tests/inotify_init.c: Likewise. * tests/io_uring_enter.c: Likewise. * tests/io_uring_register.c: Likewise. * tests/io_uring_setup.c: Likewise. * tests/kcmp.c: Likewise. * tests/kern_features.c: Likewise. * tests/kernel_version.c: Likewise. * tests/kexec_file_load.c: Likewise. * tests/maybe_switch_current_tcp.c: Likewise. * tests/mbind.c: Likewise. * tests/membarrier.c: Likewise. * tests/memfd_create.c: Likewise. * tests/mlock2.c: Likewise. * tests/move_mount.c: Likewise. * tests/open_tree.c: Likewise. * tests/pidfd_send_signal.c: Likewise. * tests/pkey_alloc.c: Likewise. * tests/pkey_free.c: Likewise. * tests/pkey_mprotect.c: Likewise. * tests/preadv2-pwritev2.c: Likewise. * tests/ptrace_syscall_info.c: Likewise. * tests/remap_file_pages.c: Likewise. * tests/renameat2.c: Likewise. * tests/riscv_flush_icache.c: Likewise. * tests/set_mempolicy.c: Likewise. * tests/test_printstrn.c: Likewise. * tests/test_ucopy.c: Likewise. * tests/userfaultfd.c: Likewise.
* tests: change the license to GPL-2.0-or-laterDmitry V. Levin2018-12-101-21/+1
| | | | | strace test suite is now provided under the terms of the GNU General Public License version 2 or later, see tests/COPYING for more details.
* tests: add memfd_create test variants with different xlat verbosity levelsDmitry V. Levin2018-11-261-5/+38
| | | | | | | | | | | | * tests/memfd_create-Xabbrev.c: New file. * tests/memfd_create-Xraw.c: Likewise. * tests/memfd_create-Xverbose.c: Likewise. * tests/memfd_create.c: Add handling of XLAT_RAW and XLAT_VERBOSE flags. * tests/pure_executables.list: Add memfd_create-Xabbrev, memfd_create-Xraw, and memfd_create-Xverbose. * tests/.gitignore: Likewise. * tests/gen_tests.in (memfd_create-Xabbrev, memfd_create-Xraw, memfd_create-Xverbose): New tests.
* memfd_create: decode hugetlb page sizeDmitry V. Levin2017-11-181-4/+33
| | | | | | | | | | | | Decode alternative hugetlb page sizes introduced by kernel commit v4.14-rc1~126^2~17. * configure.ac (AC_CHECK_HEADERS): Add linux/memfd.h. * memfd_create.c [HAVE_LINUX_MEMFD_H]: Include it. [!MFD_HUGE_SHIFT] (MFD_HUGE_SHIFT): New macro. [!MFD_HUGE_MASK] (MFD_HUGE_MASK): Likewise. (SYS_FUNC(memfd_create)): Print hugetlb page size. * tests/memfd_create.c: Check it.
* Print the first argument of memfd_create syscall as a pathDmitry V. Levin2017-11-181-5/+50
| | | | | | | | | The limit imposed by the kernel on the length of memfd_create first argument is NAME_MAX - strlen("memfd:"). * memfd_create.c (SYS_FUNC(memfd_create)): Print the first argument using printpathn. * tests/memfd_create.c: Check it.
* Update MFD_* constantsDmitry V. Levin2017-09-171-3/+4
| | | | | | | * xlat/memfd_create_flags.in: Add MFD_HUGETLB introduced by kernel commit v4.14-rc1~126^2~17. * NEWS: Mention this. * tests/memfd_create.c (main): Update expected output.
* tests: use scno.h in tests of relatively new syscallsDmitry V. Levin2016-12-201-0/+1
| | | | | | | | | | | | | | | * tests/add_key.c: Include "scno.h" after <asm/unistd.h>. * tests/copy_file_range.c: Likewise. * tests/execveat.c: Likewise. * tests/kexec_file_load.c: Likewise. * tests/membarrier.c: Likewise. * tests/memfd_create.c: Likewise. * tests/mlock2.c: Likewise. * tests/pkey_alloc.c: Likewise. * tests/pkey_free.c: Likewise. * tests/pkey_mprotect.c: Likewise. * tests/preadv2-pwritev2.c: Likewise. * tests/userfaultfd.c: Likewise.
* Use <asm/unistd.h> instead of <sys/syscall.h>Dmitry V. Levin2016-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are no users of SYS_* macros provided by <sys/syscall.h>, and definitions of __NR_* macros could be obtained directly from <asm/unistd.h>. * defs.h: Include <asm/unistd.h> instead of <sys/syscall.h>. * test/seccomp.c: Likewise. * test/threaded_execve.c: Likewise. * test/x32_lseek.c: Likewise. * test/x32_mmap.c: Likewise. * tests/_newselect.c: Likewise. * tests/access.c: Likewise. * tests/acct.c: Likewise. * tests/aio.c: Likewise. * tests/alarm.c: Likewise. * tests/attach-f-p.c: Likewise. * tests/bpf.c: Likewise. * tests/brk.c: Likewise. * tests/chmod.c: Likewise. * tests/chown.c: Likewise. * tests/chown32.c: Likewise. * tests/chroot.c: Likewise. * tests/clock_adjtime.c: Likewise. * tests/clock_nanosleep.c: Likewise. * tests/clock_xettime.c: Likewise. * tests/copy_file_range.c: Likewise. * tests/creat.c: Likewise. * tests/dup2.c: Likewise. * tests/dup3.c: Likewise. * tests/epoll_create.c: Likewise. * tests/epoll_create1.c: Likewise. * tests/epoll_ctl.c: Likewise. * tests/epoll_pwait.c: Likewise. * tests/epoll_wait.c: Likewise. * tests/eventfd.c: Likewise. * tests/execveat.c: Likewise. * tests/faccessat.c: Likewise. * tests/fchdir.c: Likewise. * tests/fchmod.c: Likewise. * tests/fchmodat.c: Likewise. * tests/fchown.c: Likewise. * tests/fchown32.c: Likewise. * tests/fchownat.c: Likewise. * tests/fcntl.c: Likewise. * tests/fcntl64.c: Likewise. * tests/fdatasync.c: Likewise. * tests/flock.c: Likewise. * tests/fstat.c: Likewise. * tests/fstat64.c: Likewise. * tests/fstatat64.c: Likewise. * tests/fstatfs.c: Likewise. * tests/fstatfs64.c: Likewise. * tests/fsync.c: Likewise. * tests/ftruncate.c: Likewise. * tests/ftruncate64.c: Likewise. * tests/futimesat.c: Likewise. * tests/get_mempolicy.c: Likewise. * tests/getcwd.c: Likewise. * tests/getdents.c: Likewise. * tests/getdents64.c: Likewise. * tests/getegid.c: Likewise. * tests/getegid32.c: Likewise. * tests/geteuid.c: Likewise. * tests/geteuid32.c: Likewise. * tests/getgid.c: Likewise. * tests/getgid32.c: Likewise. * tests/getgroups.c: Likewise. * tests/getgroups32.c: Likewise. * tests/getpgrp.c: Likewise. * tests/getrandom.c: Likewise. * tests/getresgid.c: Likewise. * tests/getresgid32.c: Likewise. * tests/getresuid.c: Likewise. * tests/getresuid32.c: Likewise. * tests/getrlimit.c: Likewise. * tests/getrusage.c: Likewise. * tests/getuid.c: Likewise. * tests/getuid32.c: Likewise. * tests/getxxid.c: Likewise. * tests/ioctl_uffdio.c: Likewise. * tests/ioperm.c: Likewise. * tests/iopl.c: Likewise. * tests/ipc.c: Likewise. * tests/kill.c: Likewise. * tests/lchown.c: Likewise. * tests/lchown32.c: Likewise. * tests/libmmsg.c: Likewise. * tests/libsocketcall.c: Likewise. * tests/link.c: Likewise. * tests/linkat.c: Likewise. * tests/llseek.c: Likewise. * tests/lseek.c: Likewise. * tests/lstat.c: Likewise. * tests/lstat64.c: Likewise. * tests/mbind.c: Likewise. * tests/membarrier.c: Likewise. * tests/memfd_create.c: Likewise. * tests/migrate_pages.c: Likewise. * tests/mkdir.c: Likewise. * tests/mkdirat.c: Likewise. * tests/mknod.c: Likewise. * tests/mknodat.c: Likewise. * tests/mlock.c: Likewise. * tests/mlock2.c: Likewise. * tests/move_pages.c: Likewise. * tests/newfstatat.c: Likewise. * tests/nsyscalls.c: Likewise. * tests/old_mmap.c: Likewise. * tests/oldselect.c: Likewise. * tests/open.c: Likewise. * tests/openat.c: Likewise. * tests/pause.c: Likewise. * tests/poll.c: Likewise. * tests/prctl-seccomp-filter-v.c: Likewise. * tests/prctl-seccomp-strict.c: Likewise. * tests/preadv2-pwritev2.c: Likewise. * tests/prlimit64.c: Likewise. * tests/pselect6.c: Likewise. * tests/ptrace.c: Likewise. * tests/readdir.c: Likewise. * tests/readlink.c: Likewise. * tests/readlinkat.c: Likewise. * tests/reboot.c: Likewise. * tests/remap_file_pages.c: Likewise. * tests/rename.c: Likewise. * tests/renameat.c: Likewise. * tests/renameat2.c: Likewise. * tests/rmdir.c: Likewise. * tests/rt_sigpending.c: Likewise. * tests/rt_sigprocmask.c: Likewise. * tests/rt_sigsuspend.c: Likewise. * tests/rt_sigtimedwait.c: Likewise. * tests/rt_tgsigqueueinfo.c: Likewise. * tests/sched_get_priority_mxx.c: Likewise. * tests/sched_rr_get_interval.c: Likewise. * tests/sched_xetaffinity.c: Likewise. * tests/sched_xetattr.c: Likewise. * tests/sched_xetparam.c: Likewise. * tests/sched_xetscheduler.c: Likewise. * tests/sched_yield.c: Likewise. * tests/seccomp-filter-v.c: Likewise. * tests/seccomp-filter.c: Likewise. * tests/seccomp-strict.c: Likewise. * tests/select.c: Likewise. * tests/sendfile.c: Likewise. * tests/sendfile64.c: Likewise. * tests/set_mempolicy.c: Likewise. * tests/setdomainname.c: Likewise. * tests/setfsgid.c: Likewise. * tests/setfsgid32.c: Likewise. * tests/setfsuid.c: Likewise. * tests/setfsuid32.c: Likewise. * tests/setgid.c: Likewise. * tests/setgid32.c: Likewise. * tests/setgroups.c: Likewise. * tests/setgroups32.c: Likewise. * tests/sethostname.c: Likewise. * tests/setregid.c: Likewise. * tests/setregid32.c: Likewise. * tests/setresgid.c: Likewise. * tests/setresgid32.c: Likewise. * tests/setresuid.c: Likewise. * tests/setresuid32.c: Likewise. * tests/setreuid.c: Likewise. * tests/setreuid32.c: Likewise. * tests/setrlimit.c: Likewise. * tests/setuid.c: Likewise. * tests/setuid32.c: Likewise. * tests/signalfd4.c: Likewise. * tests/socketcall.c: Likewise. * tests/splice.c: Likewise. * tests/stat.c: Likewise. * tests/stat64.c: Likewise. * tests/statfs.c: Likewise. * tests/statfs64.c: Likewise. * tests/swap.c: Likewise. * tests/symlink.c: Likewise. * tests/symlinkat.c: Likewise. * tests/sync.c: Likewise. * tests/sync_file_range.c: Likewise. * tests/sync_file_range2.c: Likewise. * tests/syslog.c: Likewise. * tests/tee.c: Likewise. * tests/time.c: Likewise. * tests/timer_create.c: Likewise. * tests/timer_xettime.c: Likewise. * tests/timerfd_xettime.c: Likewise. * tests/times-fail.c: Likewise. * tests/times.c: Likewise. * tests/truncate.c: Likewise. * tests/truncate64.c: Likewise. * tests/ugetrlimit.c: Likewise. * tests/umount.c: Likewise. * tests/umount2.c: Likewise. * tests/uname.c: Likewise. * tests/unix-pair-send-recv.c: Likewise. * tests/unlink.c: Likewise. * tests/unlinkat.c: Likewise. * tests/userfaultfd.c: Likewise. * tests/utimes.c: Likewise. * tests/vhangup.c: Likewise. * tests/vmsplice.c: Likewise. * tests/waitid.c: Likewise. * tests/waitpid.c: Likewise. * tests/xet_robust_list.c: Likewise. * tests/xetpgid.c: Likewise. * tests/xetpriority.c: Likewise. * tests/xettimeofday.c: Likewise.
* memfd_create.test: rewrite from match_grep to match_diffDmitry V. Levin2016-07-301-2/+10
| | | | | | | * tests/memfd_create.c (main): Print expected output. * tests/memfd_create.test: Use run_strace_match_diff. * tests/memfd_create.expected: Remove. * tests/Makefile.am (EXTRA_DIST): Remove it.
* tests/memfd_create.c: use libtestsDmitry V. Levin2016-01-041-5/+1
| | | | * tests/memfd_create.c: Use SKIP_MAIN_UNDEFINED.
* tests: include tests.h instead of config.hDmitry V. Levin2016-01-051-4/+1
| | | | | | | | Automatically edit tests/*.c files using the following perl one-liner: perl -0777 -pi -e \ 's/#ifdef HAVE_CONFIG_H\n# include "config\.h"\n#endif\n*/#include "tests.h"\n/' \ tests/*.c
* Implement memfd_create syscall decodingDmitry V. Levin2015-07-291-0/+25
* memfd_create.c: New file. * Makefile.am (strace_SOURCES): Add it. * linux/dummy.h (sys_memfd_create): Remove. * pathtrace.c (pathtrace_match): Add SEN_memfd_create. * xlat/memfd_create_flags.in: New file. * tests/memfd_create.c: New file. * tests/memfd_create.expected: Likewise. * tests/memfd_create.test: New test. * tests/Makefile.am: (check_PROGRAMS): Add memfd_create. (TESTS): Add memfd_create.test. (EXTRA_DIST): Add memfd_create.expected. * tests/.gitignore: Add memfd_create.