strace/tests/.gitignore

413 lines
4.3 KiB
Plaintext
Raw Normal View History

tests: run every test except ksysent.test in its own subdirectory Many test executables create temporary files in the current work directory for the duration of their execution. This level of test isolation allows more test executables to be invoked several times simultaneously. * tests/.gitignore: Add *.dir, remove *.log.*, *.tmp, *.tmp-*, and *.tmp.* patterns. * tests/Makefile.am (clean-local, clean-local-check): New rules. (.PHONY): Add clean-local-check. (CLEANFILES): Remove all but ksysent.h. * tests/init.sh: Strip test-specific prefix from LOG, OUT, and EXP variables. When invoked from a test, create a new test-specific directory, chdir into it, and add more ../ prefix to STRACE variable. (run_prog): Replace "./" with "../". * tests/attach-f-p.test: Replace "./" with "../". * tests/attach-p-cmd.test: Likewise. * tests/bexecve.test: Likewise. * tests/btrfs-v.test: Likewise. * tests/btrfs-vw.test: Likewise. * tests/btrfs-w.test: Likewise. * tests/count.test: Likewise. * tests/detach-running.test: Likewise. * tests/detach-sleeping.test: Likewise. * tests/detach-stopped.test: Likewise. * tests/mmap.test: Likewise. * tests/net-y-unix.test: Likewise. * tests/net-yy-inet.test: Likewise. * tests/net-yy-netlink.test: Likewise. * tests/net-yy-unix.test: Likewise. * tests/net.test: Likewise. * tests/opipe.test: Likewise. * tests/poll.test: Likewise. * tests/prctl-seccomp-strict.test: Likewise. * tests/qual_fault-exit_group.test: Likewise. * tests/qual_fault.test: Likewise. * tests/qual_inject-error-signal.test: Likewise. * tests/qual_inject-retval.test: Likewise. * tests/qual_inject-signal.test: Likewise. * tests/qual_signal.test: Likewise. * tests/qual_syscall.test: Likewise. * tests/readv.test: Likewise. * tests/redirect-fds.test: Likewise. * tests/sched.test: Likewise. * tests/scm_rights-fd.test: Likewise. * tests/seccomp-strict.test: Likewise. * tests/strace-C.test: Likewise. * tests/strace-E.expected: Likewise. * tests/strace-E.test: Likewise. * tests/strace-S.test: Likewise. * tests/strace-T.test: Likewise. * tests/strace-V.test: Likewise. * tests/strace-ff.test: Likewise. * tests/strace-k.test: Likewise. * tests/strace-r.expected: Likewise. * tests/strace-r.test: Likewise. * tests/strace-t.test: Likewise. * tests/strace-tt.test: Likewise. * tests/strace-ttt.test: Likewise. * tests/sun_path.test: Likewise. * tests/uname.test: Likewise. * tests/unix-pair-send-recv.test: Likewise. * tests/unix-pair-sendto-recvfrom.test: Likewise.
2017-04-02 04:03:24 +03:00
*.dir
tests: tabulate stereotypical test scripts Convert test scripts that follow simple testing patterns to a table. Generate all these scripts from gen_tests.in file using gen_tests.sh script at bootstrap time. The largest set of test scripts has been converted using the following command: grep -l ^run_strace_match_diff *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' || sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f" done The second largest set of test scripts has been converted using the following command: grep -l srcdir= *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Fvq srcdir= || sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f" done * tests/gen_tests.in: New file. * tests/gen_tests.sh: New file. * bootstrap: Invoke it. * tests/.gitignore: Add *.gen.test and gen_tests.am. * tests/_newselect.test: Remove. * tests/accept.test: Ditto. * tests/accept4.test: Ditto. * tests/access.test: Ditto. * tests/acct.test: Ditto. * tests/add_key.test: Ditto. * tests/adjtimex.test: Ditto. * tests/aio.test: Ditto. * tests/alarm.test: Ditto. * tests/bpf.test: Ditto. * tests/btrfs.test: Ditto. * tests/chmod.test: Ditto. * tests/chown.test: Ditto. * tests/chown32.test: Ditto. * tests/chroot.test: Ditto. * tests/clock_adjtime.test: Ditto. * tests/clock_nanosleep.test: Ditto. * tests/clock_xettime.test: Ditto. * tests/copy_file_range.test: Ditto. * tests/creat.test: Ditto. * tests/delete_module.test: Ditto. * tests/dup.test: Ditto. * tests/dup2.test: Ditto. * tests/dup3.test: Ditto. * tests/epoll_create.test: Ditto. * tests/epoll_create1.test: Ditto. * tests/epoll_ctl.test: Ditto. * tests/epoll_pwait.test: Ditto. * tests/epoll_wait.test: Ditto. * tests/erestartsys.test: Ditto. * tests/execveat-v.test: Ditto. * tests/execveat.test: Ditto. * tests/faccessat.test: Ditto. * tests/fadvise64_64.test: Ditto. * tests/fallocate.test: Ditto. * tests/fanotify_init.test: Ditto. * tests/fanotify_mark.test: Ditto. * tests/fchdir.test: Ditto. * tests/fchmod.test: Ditto. * tests/fchmodat.test: Ditto. * tests/fchown.test: Ditto. * tests/fchown32.test: Ditto. * tests/fchownat.test: Ditto. * tests/fcntl.test: Ditto. * tests/fcntl64.test: Ditto. * tests/fdatasync.test: Ditto. * tests/file_handle.test: Ditto. * tests/file_ioctl.test: Ditto. * tests/finit_module.test: Ditto. * tests/flock.test: Ditto. * tests/fork-f.test: Ditto. * tests/fstat64.test: Ditto. * tests/fstatat64.test: Ditto. * tests/fstatfs.test: Ditto. * tests/fstatfs64.test: Ditto. * tests/fsync.test: Ditto. * tests/ftruncate.test: Ditto. * tests/ftruncate64.test: Ditto. * tests/futimesat.test: Ditto. * tests/get_mempolicy.test: Ditto. * tests/getcpu.test: Ditto. * tests/getcwd.test: Ditto. * tests/getdents.test: Ditto. * tests/getdents64.test: Ditto. * tests/getegid.test: Ditto. * tests/getegid32.test: Ditto. * tests/geteuid.test: Ditto. * tests/geteuid32.test: Ditto. * tests/getgid.test: Ditto. * tests/getgid32.test: Ditto. * tests/getgroups.test: Ditto. * tests/getgroups32.test: Ditto. * tests/getpeername.test: Ditto. * tests/getpgrp.test: Ditto. * tests/getrandom.test: Ditto. * tests/getresgid.test: Ditto. * tests/getresgid32.test: Ditto. * tests/getresuid.test: Ditto. * tests/getresuid32.test: Ditto. * tests/getrlimit.test: Ditto. * tests/getrusage.test: Ditto. * tests/getsid.test: Ditto. * tests/getsockname.test: Ditto. * tests/getuid32.test: Ditto. * tests/getxxid.test: Ditto. * tests/inet-cmsg.test: Ditto. * tests/init_module.test: Ditto. * tests/inotify.test: Ditto. * tests/inotify_init1.test: Ditto. * tests/int_0x80.test: Ditto. * tests/ioctl_block.test: Ditto. * tests/ioctl_evdev.test: Ditto. * tests/ioctl_loop.test: Ditto. * tests/ioctl_mtd.test: Ditto. * tests/ioctl_rtc.test: Ditto. * tests/ioctl_scsi.test: Ditto. * tests/ioctl_sg_io_v3.test: Ditto. * tests/ioctl_sg_io_v4.test: Ditto. * tests/ioctl_uffdio.test: Ditto. * tests/ioctl_v4l2.test: Ditto. * tests/ioperm.test: Ditto. * tests/iopl.test: Ditto. * tests/ioprio.test: Ditto. * tests/ip_mreq.test: Ditto. * tests/ipc.test: Ditto. * tests/ipc_msg.test: Ditto. * tests/ipc_sem.test: Ditto. * tests/ipc_shm.test: Ditto. * tests/kcmp.test: Ditto. * tests/kexec_file_load.test: Ditto. * tests/kexec_load.test: Ditto. * tests/keyctl.test: Ditto. * tests/kill.test: Ditto. * tests/lchown.test: Ditto. * tests/lchown32.test: Ditto. * tests/link.test: Ditto. * tests/linkat.test: Ditto. * tests/lookup_dcookie.test: Ditto. * tests/lstat.test: Ditto. * tests/lstat64.test: Ditto. * tests/mbind.test: Ditto. * tests/membarrier.test: Ditto. * tests/memfd_create.test: Ditto. * tests/migrate_pages.test: Ditto. * tests/mincore.test: Ditto. * tests/mkdir.test: Ditto. * tests/mkdirat.test: Ditto. * tests/mknod.test: Ditto. * tests/mknodat.test: Ditto. * tests/mlock.test: Ditto. * tests/mlock2.test: Ditto. * tests/mlockall.test: Ditto. * tests/mmap64.test: Ditto. * tests/mmsg-silent.test: Ditto. * tests/mmsg.test: Ditto. * tests/mmsg_name-v.test: Ditto. * tests/mmsg_name.test: Ditto. * tests/mount.test: Ditto. * tests/move_pages.test: Ditto. * tests/mq.test: Ditto. * tests/mq_sendrecv-read.test: Ditto. * tests/mq_sendrecv-write.test: Ditto. * tests/mq_sendrecv.test: Ditto. * tests/msg_control-v.test: Ditto. * tests/msg_control.test: Ditto. * tests/msg_name.test: Ditto. * tests/munlockall.test: Ditto. * tests/nanosleep.test: Ditto. * tests/net-icmp_filter.test: Ditto. * tests/net-sockaddr.test: Ditto. * tests/newfstatat.test: Ditto. * tests/old_mmap.test: Ditto. * tests/oldfstat.test: Ditto. * tests/oldlstat.test: Ditto. * tests/oldstat.test: Ditto. * tests/open.test: Ditto. * tests/openat.test: Ditto. * tests/pause.test: Ditto. * tests/perf_event_open.test: Ditto. * tests/perf_event_open_nonverbose.test: Ditto. * tests/perf_event_open_unabbrev.test: Ditto. * tests/pipe2.test: Ditto. * tests/pkey_alloc.test: Ditto. * tests/pkey_free.test: Ditto. * tests/pkey_mprotect.test: Ditto. * tests/ppoll-v.test: Ditto. * tests/ppoll.test: Ditto. * tests/preadv-pwritev.test: Ditto. * tests/preadv.test: Ditto. * tests/preadv2-pwritev2.test: Ditto. * tests/printstr.test: Ditto. * tests/prlimit64.test: Ditto. * tests/process_vm_readv.test: Ditto. * tests/process_vm_writev.test: Ditto. * tests/pselect6.test: Ditto. * tests/ptrace.test: Ditto. * tests/pwritev.test: Ditto. * tests/quotactl-v.test: Ditto. * tests/quotactl-xfs-v.test: Ditto. * tests/quotactl-xfs.test: Ditto. * tests/quotactl.test: Ditto. * tests/readahead.test: Ditto. * tests/readdir.test: Ditto. * tests/readlink.test: Ditto. * tests/readlinkat.test: Ditto. * tests/reboot.test: Ditto. * tests/recvfrom.test: Ditto. * tests/recvmmsg-timeout.test: Ditto. * tests/recvmsg.test: Ditto. * tests/remap_file_pages.test: Ditto. * tests/rename.test: Ditto. * tests/renameat.test: Ditto. * tests/renameat2.test: Ditto. * tests/request_key.test: Ditto. * tests/rmdir.test: Ditto. * tests/rt_sigpending.test: Ditto. * tests/rt_sigprocmask.test: Ditto. * tests/rt_sigqueueinfo.test: Ditto. * tests/rt_sigreturn.test: Ditto. * tests/rt_sigsuspend.test: Ditto. * tests/rt_sigtimedwait.test: Ditto. * tests/rt_tgsigqueueinfo.test: Ditto. * tests/sched_get_priority_mxx.test: Ditto. * tests/sched_rr_get_interval.test: Ditto. * tests/sched_xetaffinity.test: Ditto. * tests/sched_xetattr.test: Ditto. * tests/sched_xetparam.test: Ditto. * tests/sched_xetscheduler.test: Ditto. * tests/sched_yield.test: Ditto. * tests/seccomp-filter-v.test: Ditto. * tests/seccomp-filter.test: Ditto. * tests/select.test: Ditto. * tests/semop.test: Ditto. * tests/sendfile.test: Ditto. * tests/sendfile64.test: Ditto. * tests/set_mempolicy.test: Ditto. * tests/setdomainname.test: Ditto. * tests/setfsgid.test: Ditto. * tests/setfsgid32.test: Ditto. * tests/setfsuid.test: Ditto. * tests/setfsuid32.test: Ditto. * tests/setgid.test: Ditto. * tests/setgid32.test: Ditto. * tests/setgroups.test: Ditto. * tests/setgroups32.test: Ditto. * tests/sethostname.test: Ditto. * tests/setns.test: Ditto. * tests/setregid.test: Ditto. * tests/setregid32.test: Ditto. * tests/setresgid.test: Ditto. * tests/setresgid32.test: Ditto. * tests/setresuid.test: Ditto. * tests/setresuid32.test: Ditto. * tests/setreuid.test: Ditto. * tests/setreuid32.test: Ditto. * tests/setrlimit.test: Ditto. * tests/setuid.test: Ditto. * tests/setuid32.test: Ditto. * tests/shutdown.test: Ditto. * tests/siginfo.test: Ditto. * tests/signal_receive.test: Ditto. * tests/signalfd4.test: Ditto. * tests/sigreturn.test: Ditto. * tests/socketcall.test: Ditto. * tests/splice.test: Ditto. * tests/stat.test: Ditto. * tests/stat64.test: Ditto. * tests/statfs64.test: Ditto. * tests/statx.sh: Ditto. * tests/statx.test: Ditto. * tests/swap.test: Ditto. * tests/symlink.test: Ditto. * tests/symlinkat.test: Ditto. * tests/sync.test: Ditto. * tests/sync_file_range.test: Ditto. * tests/sync_file_range2.test: Ditto. * tests/sysinfo.test: Ditto. * tests/syslog.test: Ditto. * tests/tee.test: Ditto. * tests/time.test: Ditto. * tests/timer_create.test: Ditto. * tests/timer_xettime.test: Ditto. * tests/timerfd_xettime.test: Ditto. * tests/times-fail.test: Ditto. * tests/times.test: Ditto. * tests/truncate.test: Ditto. * tests/truncate64.test: Ditto. * tests/ugetrlimit.test: Ditto. * tests/umask.test: Ditto. * tests/umoven-illptr.test: Ditto. * tests/umovestr-illptr.test: Ditto. * tests/umovestr3.test: Ditto. * tests/unlink.test: Ditto. * tests/unlinkat.test: Ditto. * tests/unshare.test: Ditto. * tests/userfaultfd.test: Ditto. * tests/ustat.test: Ditto. * tests/utime.test: Ditto. * tests/utimes.test: Ditto. * tests/vfork-f.test: Ditto. * tests/vhangup.test: Ditto. * tests/vmsplice.test: Ditto. * tests/wait4-v.test: Ditto. * tests/wait4.test: Ditto. * tests/waitid-v.test: Ditto. * tests/waitid.test: Ditto. * tests/waitpid.test: Ditto. * tests/xattr-strings.test: Ditto. * tests/xet_robust_list.test: Ditto. * tests/xetitimer.test: Ditto. * tests/xetpgid.test: Ditto. * tests/xetpriority.test: Ditto. * tests/xettimeofday.test: Ditto. * tests/Makefile.am (DECODER_TESTS, MISC_TESTS): Remove them. Include gen_tests.am. (TESTS): Add $(GEN_TESTS). (XFAIL_TESTS_x86_64, XFAIL_TESTS_x32): Rename int_0x80.test to int_0x80.gen.test. (EXTRA_DIST): Add gen_tests.in and gen_tests.sh, remove statx.sh. (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
2017-04-05 03:37:54 +03:00
*.gen.test
*.log
*.o
*.trs
_newselect
accept
accept4
access
acct
add_key
adjtimex
aio
alarm
answer
attach-f-p
attach-f-p-cmd
attach-p-cmd-cmd
attach-p-cmd-p
block_reset_raise_run
bpf
brk
btrfs
caps
caps-abbrev
chmod
chown
chown32
chroot
clock_adjtime
clock_nanosleep
clock_xettime
copy_file_range
count-f
creat
delete_module
dup
dup2
dup3
epoll_create
epoll_create1
epoll_ctl
epoll_pwait
epoll_wait
erestartsys
eventfd
execve
execve-v
execveat
execveat-v
faccessat
fadvise64
fadvise64_64
fallocate
fanotify_init
fanotify_mark
fchdir
fchmod
fchmodat
fchown
fchown32
fchownat
fcntl
fcntl64
fdatasync
file_handle
file_ioctl
filter-unavailable
finit_module
flock
fork-f
fstat
fstat64
fstatat64
fstatfs
fstatfs64
fsync
ftruncate
ftruncate64
futex
futimesat
tests: tabulate stereotypical test scripts Convert test scripts that follow simple testing patterns to a table. Generate all these scripts from gen_tests.in file using gen_tests.sh script at bootstrap time. The largest set of test scripts has been converted using the following command: grep -l ^run_strace_match_diff *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' || sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f" done The second largest set of test scripts has been converted using the following command: grep -l srcdir= *.test |while read f; do n="${f%.test}" grep '^[^#]' "$f" | grep -Fvq srcdir= || sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f" done * tests/gen_tests.in: New file. * tests/gen_tests.sh: New file. * bootstrap: Invoke it. * tests/.gitignore: Add *.gen.test and gen_tests.am. * tests/_newselect.test: Remove. * tests/accept.test: Ditto. * tests/accept4.test: Ditto. * tests/access.test: Ditto. * tests/acct.test: Ditto. * tests/add_key.test: Ditto. * tests/adjtimex.test: Ditto. * tests/aio.test: Ditto. * tests/alarm.test: Ditto. * tests/bpf.test: Ditto. * tests/btrfs.test: Ditto. * tests/chmod.test: Ditto. * tests/chown.test: Ditto. * tests/chown32.test: Ditto. * tests/chroot.test: Ditto. * tests/clock_adjtime.test: Ditto. * tests/clock_nanosleep.test: Ditto. * tests/clock_xettime.test: Ditto. * tests/copy_file_range.test: Ditto. * tests/creat.test: Ditto. * tests/delete_module.test: Ditto. * tests/dup.test: Ditto. * tests/dup2.test: Ditto. * tests/dup3.test: Ditto. * tests/epoll_create.test: Ditto. * tests/epoll_create1.test: Ditto. * tests/epoll_ctl.test: Ditto. * tests/epoll_pwait.test: Ditto. * tests/epoll_wait.test: Ditto. * tests/erestartsys.test: Ditto. * tests/execveat-v.test: Ditto. * tests/execveat.test: Ditto. * tests/faccessat.test: Ditto. * tests/fadvise64_64.test: Ditto. * tests/fallocate.test: Ditto. * tests/fanotify_init.test: Ditto. * tests/fanotify_mark.test: Ditto. * tests/fchdir.test: Ditto. * tests/fchmod.test: Ditto. * tests/fchmodat.test: Ditto. * tests/fchown.test: Ditto. * tests/fchown32.test: Ditto. * tests/fchownat.test: Ditto. * tests/fcntl.test: Ditto. * tests/fcntl64.test: Ditto. * tests/fdatasync.test: Ditto. * tests/file_handle.test: Ditto. * tests/file_ioctl.test: Ditto. * tests/finit_module.test: Ditto. * tests/flock.test: Ditto. * tests/fork-f.test: Ditto. * tests/fstat64.test: Ditto. * tests/fstatat64.test: Ditto. * tests/fstatfs.test: Ditto. * tests/fstatfs64.test: Ditto. * tests/fsync.test: Ditto. * tests/ftruncate.test: Ditto. * tests/ftruncate64.test: Ditto. * tests/futimesat.test: Ditto. * tests/get_mempolicy.test: Ditto. * tests/getcpu.test: Ditto. * tests/getcwd.test: Ditto. * tests/getdents.test: Ditto. * tests/getdents64.test: Ditto. * tests/getegid.test: Ditto. * tests/getegid32.test: Ditto. * tests/geteuid.test: Ditto. * tests/geteuid32.test: Ditto. * tests/getgid.test: Ditto. * tests/getgid32.test: Ditto. * tests/getgroups.test: Ditto. * tests/getgroups32.test: Ditto. * tests/getpeername.test: Ditto. * tests/getpgrp.test: Ditto. * tests/getrandom.test: Ditto. * tests/getresgid.test: Ditto. * tests/getresgid32.test: Ditto. * tests/getresuid.test: Ditto. * tests/getresuid32.test: Ditto. * tests/getrlimit.test: Ditto. * tests/getrusage.test: Ditto. * tests/getsid.test: Ditto. * tests/getsockname.test: Ditto. * tests/getuid32.test: Ditto. * tests/getxxid.test: Ditto. * tests/inet-cmsg.test: Ditto. * tests/init_module.test: Ditto. * tests/inotify.test: Ditto. * tests/inotify_init1.test: Ditto. * tests/int_0x80.test: Ditto. * tests/ioctl_block.test: Ditto. * tests/ioctl_evdev.test: Ditto. * tests/ioctl_loop.test: Ditto. * tests/ioctl_mtd.test: Ditto. * tests/ioctl_rtc.test: Ditto. * tests/ioctl_scsi.test: Ditto. * tests/ioctl_sg_io_v3.test: Ditto. * tests/ioctl_sg_io_v4.test: Ditto. * tests/ioctl_uffdio.test: Ditto. * tests/ioctl_v4l2.test: Ditto. * tests/ioperm.test: Ditto. * tests/iopl.test: Ditto. * tests/ioprio.test: Ditto. * tests/ip_mreq.test: Ditto. * tests/ipc.test: Ditto. * tests/ipc_msg.test: Ditto. * tests/ipc_sem.test: Ditto. * tests/ipc_shm.test: Ditto. * tests/kcmp.test: Ditto. * tests/kexec_file_load.test: Ditto. * tests/kexec_load.test: Ditto. * tests/keyctl.test: Ditto. * tests/kill.test: Ditto. * tests/lchown.test: Ditto. * tests/lchown32.test: Ditto. * tests/link.test: Ditto. * tests/linkat.test: Ditto. * tests/lookup_dcookie.test: Ditto. * tests/lstat.test: Ditto. * tests/lstat64.test: Ditto. * tests/mbind.test: Ditto. * tests/membarrier.test: Ditto. * tests/memfd_create.test: Ditto. * tests/migrate_pages.test: Ditto. * tests/mincore.test: Ditto. * tests/mkdir.test: Ditto. * tests/mkdirat.test: Ditto. * tests/mknod.test: Ditto. * tests/mknodat.test: Ditto. * tests/mlock.test: Ditto. * tests/mlock2.test: Ditto. * tests/mlockall.test: Ditto. * tests/mmap64.test: Ditto. * tests/mmsg-silent.test: Ditto. * tests/mmsg.test: Ditto. * tests/mmsg_name-v.test: Ditto. * tests/mmsg_name.test: Ditto. * tests/mount.test: Ditto. * tests/move_pages.test: Ditto. * tests/mq.test: Ditto. * tests/mq_sendrecv-read.test: Ditto. * tests/mq_sendrecv-write.test: Ditto. * tests/mq_sendrecv.test: Ditto. * tests/msg_control-v.test: Ditto. * tests/msg_control.test: Ditto. * tests/msg_name.test: Ditto. * tests/munlockall.test: Ditto. * tests/nanosleep.test: Ditto. * tests/net-icmp_filter.test: Ditto. * tests/net-sockaddr.test: Ditto. * tests/newfstatat.test: Ditto. * tests/old_mmap.test: Ditto. * tests/oldfstat.test: Ditto. * tests/oldlstat.test: Ditto. * tests/oldstat.test: Ditto. * tests/open.test: Ditto. * tests/openat.test: Ditto. * tests/pause.test: Ditto. * tests/perf_event_open.test: Ditto. * tests/perf_event_open_nonverbose.test: Ditto. * tests/perf_event_open_unabbrev.test: Ditto. * tests/pipe2.test: Ditto. * tests/pkey_alloc.test: Ditto. * tests/pkey_free.test: Ditto. * tests/pkey_mprotect.test: Ditto. * tests/ppoll-v.test: Ditto. * tests/ppoll.test: Ditto. * tests/preadv-pwritev.test: Ditto. * tests/preadv.test: Ditto. * tests/preadv2-pwritev2.test: Ditto. * tests/printstr.test: Ditto. * tests/prlimit64.test: Ditto. * tests/process_vm_readv.test: Ditto. * tests/process_vm_writev.test: Ditto. * tests/pselect6.test: Ditto. * tests/ptrace.test: Ditto. * tests/pwritev.test: Ditto. * tests/quotactl-v.test: Ditto. * tests/quotactl-xfs-v.test: Ditto. * tests/quotactl-xfs.test: Ditto. * tests/quotactl.test: Ditto. * tests/readahead.test: Ditto. * tests/readdir.test: Ditto. * tests/readlink.test: Ditto. * tests/readlinkat.test: Ditto. * tests/reboot.test: Ditto. * tests/recvfrom.test: Ditto. * tests/recvmmsg-timeout.test: Ditto. * tests/recvmsg.test: Ditto. * tests/remap_file_pages.test: Ditto. * tests/rename.test: Ditto. * tests/renameat.test: Ditto. * tests/renameat2.test: Ditto. * tests/request_key.test: Ditto. * tests/rmdir.test: Ditto. * tests/rt_sigpending.test: Ditto. * tests/rt_sigprocmask.test: Ditto. * tests/rt_sigqueueinfo.test: Ditto. * tests/rt_sigreturn.test: Ditto. * tests/rt_sigsuspend.test: Ditto. * tests/rt_sigtimedwait.test: Ditto. * tests/rt_tgsigqueueinfo.test: Ditto. * tests/sched_get_priority_mxx.test: Ditto. * tests/sched_rr_get_interval.test: Ditto. * tests/sched_xetaffinity.test: Ditto. * tests/sched_xetattr.test: Ditto. * tests/sched_xetparam.test: Ditto. * tests/sched_xetscheduler.test: Ditto. * tests/sched_yield.test: Ditto. * tests/seccomp-filter-v.test: Ditto. * tests/seccomp-filter.test: Ditto. * tests/select.test: Ditto. * tests/semop.test: Ditto. * tests/sendfile.test: Ditto. * tests/sendfile64.test: Ditto. * tests/set_mempolicy.test: Ditto. * tests/setdomainname.test: Ditto. * tests/setfsgid.test: Ditto. * tests/setfsgid32.test: Ditto. * tests/setfsuid.test: Ditto. * tests/setfsuid32.test: Ditto. * tests/setgid.test: Ditto. * tests/setgid32.test: Ditto. * tests/setgroups.test: Ditto. * tests/setgroups32.test: Ditto. * tests/sethostname.test: Ditto. * tests/setns.test: Ditto. * tests/setregid.test: Ditto. * tests/setregid32.test: Ditto. * tests/setresgid.test: Ditto. * tests/setresgid32.test: Ditto. * tests/setresuid.test: Ditto. * tests/setresuid32.test: Ditto. * tests/setreuid.test: Ditto. * tests/setreuid32.test: Ditto. * tests/setrlimit.test: Ditto. * tests/setuid.test: Ditto. * tests/setuid32.test: Ditto. * tests/shutdown.test: Ditto. * tests/siginfo.test: Ditto. * tests/signal_receive.test: Ditto. * tests/signalfd4.test: Ditto. * tests/sigreturn.test: Ditto. * tests/socketcall.test: Ditto. * tests/splice.test: Ditto. * tests/stat.test: Ditto. * tests/stat64.test: Ditto. * tests/statfs64.test: Ditto. * tests/statx.sh: Ditto. * tests/statx.test: Ditto. * tests/swap.test: Ditto. * tests/symlink.test: Ditto. * tests/symlinkat.test: Ditto. * tests/sync.test: Ditto. * tests/sync_file_range.test: Ditto. * tests/sync_file_range2.test: Ditto. * tests/sysinfo.test: Ditto. * tests/syslog.test: Ditto. * tests/tee.test: Ditto. * tests/time.test: Ditto. * tests/timer_create.test: Ditto. * tests/timer_xettime.test: Ditto. * tests/timerfd_xettime.test: Ditto. * tests/times-fail.test: Ditto. * tests/times.test: Ditto. * tests/truncate.test: Ditto. * tests/truncate64.test: Ditto. * tests/ugetrlimit.test: Ditto. * tests/umask.test: Ditto. * tests/umoven-illptr.test: Ditto. * tests/umovestr-illptr.test: Ditto. * tests/umovestr3.test: Ditto. * tests/unlink.test: Ditto. * tests/unlinkat.test: Ditto. * tests/unshare.test: Ditto. * tests/userfaultfd.test: Ditto. * tests/ustat.test: Ditto. * tests/utime.test: Ditto. * tests/utimes.test: Ditto. * tests/vfork-f.test: Ditto. * tests/vhangup.test: Ditto. * tests/vmsplice.test: Ditto. * tests/wait4-v.test: Ditto. * tests/wait4.test: Ditto. * tests/waitid-v.test: Ditto. * tests/waitid.test: Ditto. * tests/waitpid.test: Ditto. * tests/xattr-strings.test: Ditto. * tests/xet_robust_list.test: Ditto. * tests/xetitimer.test: Ditto. * tests/xetpgid.test: Ditto. * tests/xetpriority.test: Ditto. * tests/xettimeofday.test: Ditto. * tests/Makefile.am (DECODER_TESTS, MISC_TESTS): Remove them. Include gen_tests.am. (TESTS): Add $(GEN_TESTS). (XFAIL_TESTS_x86_64, XFAIL_TESTS_x32): Rename int_0x80.test to int_0x80.gen.test. (EXTRA_DIST): Add gen_tests.in and gen_tests.sh, remove statx.sh. (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
2017-04-05 03:37:54 +03:00
gen_tests.am
get_mempolicy
getcpu
getcwd
getdents
getdents64
getegid
getegid32
geteuid
geteuid32
getgid
getgid32
getgroups
getgroups32
getpeername
getpgrp
getpid
getppid
getrandom
getresgid
getresgid32
getresuid
getresuid32
getrlimit
getrusage
getsid
getsockname
gettid
getuid
getuid32
getxxid
inet-cmsg
init_module
inotify
inotify_init1
int_0x80
ioctl: take all 32 bits of ioctl commands into account Historically, only 16 bits (8-bit number and 8-bit type) of 32-bit ioctl commands were used for decoding, which was the source for numerous annoying collisions like this: ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, MGSL_IOCGPARAMS or MMTIMER_GETRES or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0x7fffd47f7338) = -1 ENOTTY (Inappropriate ioctl for device) The solution is to use all 32 bits for decoding, not just "number" and "type", but also "size" and "direction". As some architectures override defaults that come from asm-generic/ and provide alternative definitions for some ioctl commands, we support per-architecture ioctl definitions and merge them with common definitions at build time. During the merge, we used to keep both generic and architecture-specific definitions, now architecture-specific definitions have precedence over generic ones -- ioctlsort omits definitions from asm-generic/ for those ioctl names that have different definitions in asm/. Additional bits of "direction" are architecture specific -- the number of bits and their values differ between architectures. To reduce architecture differences in the source code, we keep "direction" in symbolic form and compile it in ioctlsort. Additional bits of "size" are also architecture specific -- not only the number of bits differ between architectures, but sizes of many types depend on sizeof(long). To reduce architecture differences in the source code, we keep 32-bit and 64-bit versions of common ioctl definitions, and use the appropriate version for each architecture and personality. To implement this, the tools for generating ioctl definitions from kernel headers have been rewritten, and the source format of ioctl definitions has been extended. The final ioctlent*.h files that are included by syscall.c are now generated from source ioctls_inc*.h and ioctls_arch*.h files at build time with ioctlsort. * ioctl.c (ioctl_lookup): Use all 32 bits of ioctl command code. * ioctlsort.c: Rewritten. * linux/32/ioctls_inc.h: New file. * linux/64/ioctls_inc.h: New file. * linux/aarch64/ioctls_arch0.h: New file. * linux/aarch64/ioctls_arch1.h: New file. * linux/aarch64/ioctls_inc0.h: New file. * linux/aarch64/ioctls_inc1.h: New file. * linux/alpha/ioctls_arch0.h: New file. * linux/alpha/ioctls_inc0.h: New file. * linux/arc/ioctls_arch0.h: New file. * linux/arc/ioctls_inc0.h: New file. * linux/arm/ioctls_arch0.h: New file. * linux/arm/ioctls_inc0.h: New file. * linux/avr32/ioctls_arch0.h: New file. * linux/avr32/ioctls_inc0.h: New file. * linux/bfin/ioctls_arch0.h: New file. * linux/bfin/ioctls_inc0.h: New file. * linux/hppa/ioctls_arch0.h: New file. * linux/hppa/ioctls_inc0.h: New file. * linux/i386/ioctls_arch0.h: New file. * linux/i386/ioctls_inc0.h: New file. * linux/ia64/ioctls_arch0.h: New file. * linux/ia64/ioctls_inc0.h: New file. * linux/m68k/ioctls_arch0.h: New file. * linux/m68k/ioctls_inc0.h: New file. * linux/metag/ioctls_arch0.h: New file. * linux/metag/ioctls_inc0.h: New file. * linux/microblaze/ioctls_arch0.h: New file. * linux/microblaze/ioctls_inc0.h: New file. * linux/mips/ioctls_arch0.h: New file. * linux/mips/ioctls_inc0.h: New file. * linux/or1k/ioctls_arch0.h: New file. * linux/or1k/ioctls_inc0.h: New file. * linux/powerpc/ioctls_arch0.h: New file. * linux/powerpc/ioctls_inc0.h: New file. * linux/powerpc64/ioctls_arch0.h: New file. * linux/powerpc64/ioctls_arch1.h: New file. * linux/powerpc64/ioctls_inc0.h: New file. * linux/powerpc64/ioctls_inc1.h: New file. * linux/s390/ioctls_arch0.h: New file. * linux/s390/ioctls_inc0.h: New file. * linux/s390x/ioctls_arch0.h: New file. * linux/s390x/ioctls_inc0.h: New file. * linux/sh/ioctls_arch0.h: New file. * linux/sh/ioctls_inc0.h: New file. * linux/sh64/ioctls_arch0.h: New file. * linux/sh64/ioctls_inc0.h: New file. * linux/sparc/ioctls_arch0.h: New file. * linux/sparc/ioctls_inc0.h: New file. * linux/sparc64/ioctls_arch0.h: New file. * linux/sparc64/ioctls_arch2.h: New file. * linux/sparc64/ioctls_inc0.h: New file. * linux/sparc64/ioctls_inc2.h: New file. * linux/tile/ioctls_arch0.h: New file. * linux/tile/ioctls_arch1.h: New file. * linux/tile/ioctls_inc0.h: New file. * linux/tile/ioctls_inc1.h: New file. * linux/x32/ioctls_arch0.h: New file. * linux/x32/ioctls_arch1.h: New file. * linux/x32/ioctls_inc0.h: New file. * linux/x32/ioctls_inc1.h: New file. * linux/x86_64/ioctls_arch0.h: New file. * linux/x86_64/ioctls_arch1.h: New file. * linux/x86_64/ioctls_inc0.h: New file. * linux/x86_64/ioctls_inc1.h: New file. * linux/xtensa/ioctls_arch0.h: New file. * linux/xtensa/ioctls_inc0.h: New file. * linux/aarch64/ioctlent.h.in: Remove. * linux/aarch64/ioctlent1.h: Remove. * linux/alpha/ioctlent.h.in: Remove. * linux/arc/ioctlent.h.in: Remove. * linux/arm/ioctlent.h.in: Remove. * linux/avr32/ioctlent.h.in: Remove. * linux/bfin/ioctlent.h.in: Remove. * linux/hppa/ioctlent.h.in: Remove. * linux/i386/ioctlent.h.in: Remove. * linux/ia64/ioctlent.h.in: Remove. * linux/ioctlent.h.in: Remove. * linux/ioctlent.sh: Remove. * linux/m68k/ioctlent.h.in: Remove. * linux/metag/ioctlent.h.in: Remove. * linux/microblaze/ioctlent.h.in: Remove. * linux/mips/ioctlent.h.in: Remove. * linux/mips/ioctlent.sh: Remove. * linux/or1k/ioctlent.h.in: Remove. * linux/powerpc/ioctlent.h.in: Remove. * linux/powerpc64/ioctlent.h: Remove. * linux/powerpc64/ioctlent1.h: Remove. * linux/s390/ioctlent.h.in: Remove. * linux/s390x/ioctlent.h.in: Remove. * linux/sh/ioctlent.h.in: Remove. * linux/sh64/ioctlent.h.in: Remove. * linux/sparc/ioctlent.h.in: Remove. * linux/sparc64/ioctlent.h.in: Remove. * linux/sparc64/ioctlent2.h: Remove. * linux/tile/ioctlent.h.in: Remove. * linux/tile/ioctlent1.h: Remove. * linux/x32/ioctlent.h.in: Remove. * linux/x32/ioctlent1.h: Remove. * linux/x86_64/ioctlent.h.in: Remove. * linux/x86_64/ioctlent1.h: Remove. * linux/xtensa/ioctlent.h.in: Remove. * linux/x86_64/ioctlent2.h: Include ioctlent0.h instead of ioctlent.h. * syscall.c (struct_ioctlent ioctlent0): Likewise. * Makefile.am: Remove all ioctlent-related definitions. Define the list of ioctlent*.h files that have to be generated by presence of $(srcdir)/$(OS)/$(ARCH)/ioctls_inc*.h files. Add rules for ioctlent*.h files generation. (EXTRA_DIST): Update. * maint/ioctls_gen.sh: New file. * maint/ioctls_hex.sh: New file. * maint/ioctls_sym.sh: New file. * maint/print_ioctlent.c: New file. * HACKING-scripts: Update for ioctlent.sh -> ioctls_gen.sh migration. * .gitignore: Add ioctlent[012].h and ioctls_all[012].h. * configure.ac (AC_CHECK_HEADERS): Add linux/hiddev.h and linux/mmtimer.h for tests. * tests/ioctl.c: New file. * tests/ioctl.test: New test. * tests/Makefile.am (check_PROGRAMS): Add ioctl. (TESTS): Add ioctl.test. * tests/.gitignore: Add ioctl.
2015-01-19 20:02:16 +03:00
ioctl
ioctl_block
ioctl_dm
ioctl_dm-v
ioctl_evdev
ioctl_evdev-v
ioctl_loop
ioctl_loop-nv
ioctl_loop-v
ioctl_mtd
ioctl_nsfs
ioctl_rtc
ioctl_rtc-v
ioctl_scsi
ioctl_sg_io_v3
ioctl_sg_io_v4
ioctl_sock_gifconf
ioctl_uffdio
ioctl_v4l2
ioperm
iopl
ioprio
ip_mreq
ipc
ipc_msg
ipc_msgbuf
ipc_sem
ipc_shm
kcmp
kexec_file_load
kexec_load
keyctl
kill
ksysent
ksysent.h
lchown
lchown32
libtests.a
link
linkat
llseek
lookup_dcookie
lseek
lstat
lstat64
madvise
mbind
membarrier
memfd_create
migrate_pages
mincore
mkdir
mkdirat
mknod
mknodat
mlock
mlock2
mlockall
mmap
mmap64
mmsg
mmsg-silent
mmsg_name
mmsg_name-v
mount
move_pages
mq
mq_sendrecv
mq_sendrecv-read
mq_sendrecv-write
msg_control
msg_control-v
msg_name
munlockall
nanosleep
net-accept-connect
net-icmp_filter
net-sockaddr
net-y-unix
net-yy-inet
net-yy-netlink
net-yy-unix
netlink_audit
netlink_generic
netlink_inet_diag
netlink_netfilter
netlink_netlink_diag
netlink_protocol
netlink_route
netlink_selinux
netlink_sock_diag
netlink_unix_diag
netlink_xfrm
newfstatat
nlattr
nsyscalls
old_mmap
oldfstat
oldlstat
oldselect
oldstat
open
openat
osf_utimes
pause
pc
perf_event_open
perf_event_open_nonverbose
perf_event_open_unabbrev
personality
pipe
pipe2
pkey_alloc
pkey_free
pkey_mprotect
poll
ppoll
ppoll-v
prctl-arg2-intptr
prctl-dumpable
prctl-name
prctl-no-args
prctl-pdeathsig
prctl-seccomp-filter-v
prctl-seccomp-strict
prctl-securebits
prctl-tid_address
prctl-tsc
pread64-pwrite64
preadv
preadv-pwritev
preadv2-pwritev2
print_maxfd
printstr
prlimit64
process_vm_readv
process_vm_writev
pselect6
ptrace
pure_executables.am
pwritev
qual_fault
qual_inject-error-signal
qual_inject-retval
qual_inject-signal
qual_signal
quotactl
quotactl-v
quotactl-xfs
quotactl-xfs-v
read-write
readahead
readdir
readlink
readlinkat
readv
reboot
recvfrom
recvmmsg-timeout
recvmsg
redirect-fds
remap_file_pages
rename
renameat
renameat2
request_key
restart_syscall
rmdir
rt_sigaction
rt_sigpending
rt_sigprocmask
rt_sigqueueinfo
rt_sigreturn
rt_sigsuspend
rt_sigtimedwait
rt_tgsigqueueinfo
run_expect_termsig
sched_get_priority_mxx
sched_rr_get_interval
sched_xetaffinity
sched_xetattr
sched_xetparam
sched_xetscheduler
sched_yield
scm_rights
scno.h
seccomp-filter
seccomp-filter-v
seccomp-strict
select
semop
sendfile
sendfile64
set_mempolicy
set_ptracer_any
setdomainname
setfsgid
setfsgid32
setfsuid
setfsuid32
setgid
setgid32
setgroups
setgroups32
sethostname
setns
setregid
setregid32
setresgid
setresgid32
setresuid
setresuid32
setreuid
setreuid32
setrlimit
setuid
setuid32
shmxt
shutdown
sigaction
sigaltstack
siginfo
signal
signal_receive
signalfd4
sigpending
sigprocmask
sigreturn
sigsuspend
sleep
socketcall
splice
stack-fcall
stat
stat64
statfs
statfs64
statx
swap
sxetmask
symlink
symlinkat
sync
sync_file_range
sync_file_range2
syscallent.i
sysinfo
syslog
tee
threads-execve
time
timer_create
timer_xettime
timerfd_xettime
times
times-fail
truncate
truncate64
ugetrlimit
uio
umask
umount
umount2
umoven-illptr
umovestr
umovestr-illptr
umovestr2
umovestr3
uname
unblock_reset_raise
unix-pair-send-recv
unix-pair-sendto-recvfrom
unlink
unlinkat
unshare
userfaultfd
ustat
utime
utimensat
utimes
vfork-f
vhangup
vmsplice
wait4
wait4-v
waitid
waitid-v
waitpid
xattr
xattr-strings
xet_robust_list
xetitimer
xetpgid
xetpriority
xettimeofday