1# Input for gen_tests.sh 2# 3# Copyright (c) 2017-2018 The strace developers. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: 9# 1. Redistributions of source code must retain the above copyright 10# notice, this list of conditions and the following disclaimer. 11# 2. Redistributions in binary form must reproduce the above copyright 12# notice, this list of conditions and the following disclaimer in the 13# documentation and/or other materials provided with the distribution. 14# 3. The name of the author may not be used to endorse or promote products 15# derived from this software without specific prior written permission. 16# 17# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28_newselect 29_newselect-P -e trace=_newselect -P /dev/full 9>>/dev/full 30accept -a22 31accept4 -a37 32access -a30 -P access_sample 33acct -a20 34add_key -a30 -s12 35adjtimex -a15 36aio -a14 -e trace=io_setup,io_submit,io_getevents,io_cancel,io_destroy 37aio_pgetevents -e trace=io_pgetevents 38alarm -a10 39bpf -a20 40bpf-v -a20 -v -e trace=bpf 41bpf-obj_get_info_by_fd -a20 -y -e trace=bpf 42bpf-obj_get_info_by_fd-v -a20 -y -v -e trace=bpf 43bpf-obj_get_info_by_fd-prog -a20 -y -e trace=bpf 44bpf-obj_get_info_by_fd-prog-v -a20 -y -v -e trace=bpf 45btrfs +ioctl.test 46chmod -a28 47chown -a28 48chown32 -a31 49chroot -a24 50clock test_trace_expr 'times|fcntl.*' -e/clock 51clock_adjtime -a37 52clock_nanosleep -e trace=clock_nanosleep,clock_gettime 53clock_xettime -a36 -e trace=clock_getres,clock_gettime,clock_settime 54copy_file_range 55creat -a20 56delete_module -a23 57dev-yy -a30 -e trace=openat,fsync -P "/dev/full" -P "/dev/zero" -P "/dev/sda" -yy 58dup -a8 59dup2 -a13 60dup3 -a24 61epoll_create -a17 62epoll_create1 -a28 63epoll_ctl 64epoll_pwait 65epoll_wait -a26 66erestartsys -a34 -e signal=none -e trace=recvfrom 67execveat 68execveat-v -v -e trace=execveat 69faccessat -P $NAME.sample 70fadvise64_64 +fadvise64.test 71fallocate -a18 72fanotify_init 73fanotify_mark -a32 74fanotify_mark-Xabbrev -a32 -Xabbrev -e trace=fanotify_mark 75fanotify_mark-Xraw -a32 -Xraw -e trace=fanotify_mark 76fanotify_mark-Xverbose -a32 -Xverbose -e trace=fanotify_mark 77fchdir -a11 78fchmod -a15 79fchmodat 80fchown -a16 81fchown32 -a18 82fchownat 83fcntl -a8 84fcntl64 -a8 85fdatasync -a14 86file_handle -e trace=name_to_handle_at,open_by_handle_at 87file_ioctl +ioctl.test 88finit_module -a25 89flock -a19 90fork-f -a26 -qq -f -e signal=none -e trace=chdir 91fstat -a15 -v -P stat.sample 92fstat64 -a17 -v -P stat.sample 93fstatat64 -a32 -v -P stat.sample -P /dev/full 94fstatfs -a18 95fstatfs64 -a24 96fsync -a10 97fsync-y -y -e trace=fsync 98ftruncate -a24 99ftruncate64 -a36 100futimesat -a28 101get_mempolicy -s3 -a38 102getcpu -a25 103getcwd -a18 104getdents -a22 -v 105getdents64 -a24 -v 106getegid +getuid.test 107getegid32 +getuid.test 108geteuid +getuid.test 109geteuid32 +getuid.test 110getgid +getuid.test 111getgid32 +getuid.test 112getgroups -a17 113getgroups32 -a19 114getpeername -a27 115getpgrp -a10 116getpid -a9 117getppid -a10 118getrandom -a32 -s3 119getresgid -a25 120getresgid32 -a27 121getresuid -a25 122getresuid32 -a27 123getrlimit -a27 124getrusage -v 125getsid -a10 126getsockname -a27 127gettid -a9 128getuid32 +getuid.test 129getxxid -a10 -e trace=getxpid,getxuid,getxgid 130group_req -e trace=setsockopt 131inet-cmsg -e trace=recvmsg 132init_module -a27 133inotify -a23 -e trace=inotify_add_watch,inotify_rm_watch 134inotify_init1 -a27 135int_0x80 -a11 -e trace=getgid32 136ioctl_block +ioctl.test 137ioctl_dm +ioctl.test -s9 138ioctl_dm-v +ioctl.test -v -s9 139ioctl_evdev +ioctl.test 140ioctl_evdev-v +ioctl.test -v 141ioctl_inotify +ioctl.test 142ioctl_kvm_run +ioctl.test -a36 -y 143ioctl_kvm_run-v +ioctl.test -v -a36 -y 144ioctl_kvm_run_auxstr_vcpu +ioctl.test -a36 -y -e kvm=vcpu 145ioctl_loop +ioctl.test 146ioctl_loop-nv +ioctl.test -a22 -e verbose=none 147ioctl_loop-v +ioctl.test -v 148ioctl_mtd +ioctl.test 149ioctl_nbd +ioctl.test -y 150ioctl_nsfs +ioctl.test -esignal=none 151ioctl_perf +ioctl.test 152ioctl_ptp +ioctl.test 153ioctl_rtc +ioctl.test 154ioctl_rtc-v +ioctl.test -v 155ioctl_scsi +ioctl.test 156ioctl_sg_io_v3 +ioctl.test 157ioctl_sg_io_v4 +ioctl.test 158ioctl_sock_gifconf +ioctl.test -a28 -s1 159ioctl_uffdio +ioctl.test 160ioctl_v4l2 +ioctl.test 161ioperm -a27 162iopl -a8 163ioprio -a18 -e trace=ioprio_get,ioprio_set 164ip_mreq -e trace=setsockopt 165ipc -a19 166ipc_msg +ipc.sh -a26 167ipc_msg-Xabbrev +ipc.sh -Xabbrev -a26 168ipc_msg-Xraw +ipc.sh -Xraw -a16 169ipc_msg-Xverbose +ipc.sh -Xverbose -a34 170ipc_msgbuf-Xabbrev +ipc_msgbuf.test -Xabbrev 171ipc_msgbuf-Xraw +ipc_msgbuf.test -Xraw -a22 172ipc_msgbuf-Xverbose +ipc_msgbuf.test -Xverbose 173ipc_sem +ipc.sh -a29 174ipc_sem-Xabbrev +ipc.sh -Xabbrev -a29 175ipc_sem-Xraw +ipc.sh -Xraw -a19 176ipc_sem-Xverbose +ipc.sh -Xverbose -a36 177ipc_shm +ipc.sh -a29 178ipc_shm-Xabbrev +ipc.sh -Xabbrev -a29 179ipc_shm-Xraw +ipc.sh -Xraw -a19 180ipc_shm-Xverbose +ipc.sh -Xverbose -a36 181kcmp -a22 182kcmp-y -a22 -y -e trace=kcmp 183kern_features -a16 184kexec_file_load -s9 185kexec_load -s9 186keyctl -a31 -s10 187keyctl-Xabbrev -a31 -s10 -e trace=keyctl -Xabbrev 188keyctl-Xraw -a13 -s10 -e trace=keyctl -Xraw 189keyctl-Xverbose -a41 -s10 -e trace=keyctl -Xverbose 190kill -a12 -esignal=none 191lchown -a30 192lchown32 -a32 193link 194linkat 195lookup_dcookie -a27 196lstat -a32 -v -P stat.sample -P /dev/full 197lstat64 -a32 -v -P stat.sample -P /dev/full 198madvise -a33 199mbind 200membarrier -a36 201memfd_create 202migrate_pages -a33 203mincore -a22 204mkdir -a20 205mkdirat -a28 206mknod -a18 207mknodat -a35 208mlock -a20 -e trace=mlock,munlock 209mlock2 210mlockall -a12 211mmap-Xabbrev +mmap.test abbrev 212mmap-Xraw +mmap.test raw 14 213mmap-Xverbose +mmap.test verbose 214mmap64 +mmap.test 215mmap64-Xabbrev +mmap.test abbrev 216mmap64-Xraw +mmap.test raw 14 217mmap64-Xverbose +mmap.test verbose 218mmsg -e read=0 -e write=1 -e trace=recvmmsg,sendmmsg 219mmsg-silent -a25 -e verbose=none -e trace=sendmmsg,recvmmsg 220mmsg_name -a25 -e trace=sendmmsg,recvmmsg 221mmsg_name-v -v -a25 -e trace=sendmmsg,recvmmsg 222modify_ldt -a23 223mount -a33 224mount-Xabbrev -a33 -e trace=mount -Xabbrev 225mount-Xraw -a33 -e trace=mount -Xraw 226mount-Xverbose -a33 -e trace=mount -Xverbose 227move_pages -s3 228mq -a32 -e trace=mq_getsetattr,mq_open,mq_unlink 229mq_sendrecv -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink 230mq_sendrecv-read -eread=0 -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink 231mq_sendrecv-write -ewrite=0 -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink 232msg_control -a21 -e trace=sendmsg 233msg_control-v -v -a21 -e trace=sendmsg 234msg_name -a20 -e trace=recvmsg 235munlockall -a13 236nanosleep -a20 237net-icmp_filter -e trace=getsockopt,setsockopt 238net-packet_mreq -e trace=setsockopt 239net-sockaddr -a24 -e trace=connect 240net-tpacket_req -e trace=setsockopt 241net-tpacket_stats -e trace=getsockopt 242net-yy-inet6 +net-yy-inet.test 243netlink_audit +netlink_sock_diag.test 244netlink_crypto +netlink_sock_diag.test 245netlink_generic +netlink_sock_diag.test 246netlink_kobject_uevent +netlink_sock_diag.test 247netlink_netfilter +netlink_sock_diag.test 248netlink_protocol -e trace=sendto 249netlink_route +netlink_sock_diag.test 250netlink_selinux +netlink_sock_diag.test 251netlink_xfrm +netlink_sock_diag.test 252newfstatat -a32 -v -P stat.sample -P /dev/full 253nlattr +netlink_sock_diag.test 254nfnetlink_acct +netlink_sock_diag.test 255nfnetlink_cthelper +netlink_sock_diag.test 256nfnetlink_ctnetlink +netlink_sock_diag.test 257nfnetlink_ctnetlink_exp +netlink_sock_diag.test 258nfnetlink_cttimeout +netlink_sock_diag.test 259nfnetlink_ipset +netlink_sock_diag.test 260nfnetlink_nft_compat +netlink_sock_diag.test 261nfnetlink_nftables +netlink_sock_diag.test 262nfnetlink_osf +netlink_sock_diag.test 263nfnetlink_queue +netlink_sock_diag.test 264nfnetlink_ulog +netlink_sock_diag.test 265nlattr_crypto_user_alg +netlink_sock_diag.test 266nlattr_br_port_msg +netlink_sock_diag.test 267nlattr_dcbmsg +netlink_sock_diag.test 268nlattr_fib_rule_hdr +netlink_sock_diag.test 269nlattr_ifaddrlblmsg +netlink_sock_diag.test 270nlattr_ifaddrmsg +netlink_sock_diag.test 271nlattr_ifinfomsg +netlink_sock_diag.test 272nlattr_ifla_af_spec +netlink_sock_diag.test 273nlattr_ifla_brport +netlink_sock_diag.test 274nlattr_ifla_linkinfo +netlink_sock_diag.test 275nlattr_ifla_port +netlink_sock_diag.test 276nlattr_ifla_xdp +netlink_sock_diag.test 277nlattr_inet_diag_msg +netlink_sock_diag.test 278nlattr_inet_diag_req_compat +netlink_sock_diag.test 279nlattr_inet_diag_req_v2 +netlink_sock_diag.test 280nlattr_mdba_mdb_entry +netlink_sock_diag.test 281nlattr_mdba_router_port +netlink_sock_diag.test 282nlattr_ndmsg +netlink_sock_diag.test 283nlattr_ndtmsg +netlink_sock_diag.test 284nlattr_netconfmsg +netlink_sock_diag.test 285nlattr_netlink_diag_msg +netlink_sock_diag.test 286nlattr_nlmsgerr +netlink_sock_diag.test 287nlattr_packet_diag_msg +netlink_sock_diag-v.sh 288nlattr_rtgenmsg +netlink_sock_diag.test 289nlattr_rtmsg +netlink_sock_diag.test 290nlattr_smc_diag_msg +netlink_sock_diag.test 291nlattr_tc_stats +netlink_sock_diag.test 292nlattr_tca_stab +netlink_sock_diag.test 293nlattr_tcamsg +netlink_sock_diag.test 294nlattr_tcmsg +netlink_sock_diag.test 295nlattr_unix_diag_msg +netlink_sock_diag.test 296old_mmap -a11 -e trace=mmap 297old_mmap-P -e trace=mmap -P "/dev/full" 9>>/dev/full 298old_mmap-v-none -a11 -e trace=mmap -e verbose=none 299old_mmap-Xabbrev -a11 -e trace=mmap -Xabbrev 300old_mmap-Xraw -a11 -e trace=mmap -Xraw 301old_mmap-Xverbose -a11 -e trace=mmap -Xverbose 302oldfstat -a18 -v -P stat.sample 303oldlstat -a32 -v -P stat.sample -P /dev/full 304oldselect -a13 -e trace=select 305oldselect-P -a13 -e trace=select -P /dev/full 9>>/dev/full 306oldselect-efault -a13 -e trace=select 307oldselect-efault-P -a13 -e trace=select -P /dev/full 9>>/dev/full 308oldstat -a32 -v -P stat.sample -P /dev/full 309open -a30 -P $NAME.sample 310openat -a36 -P $NAME.sample 311osf_utimes -a21 312pause -a8 -esignal=none 313perf_event_open -a1 314perf_event_open_nonverbose -a34 -e verbose=none -e trace=perf_event_open 315perf_event_open_unabbrev -a1 -v -e trace=perf_event_open 316personality-Xabbrev +personality.test -Xabbrev 317personality-Xraw +personality.test -a15 -Xraw 318personality-Xverbose +personality.test -Xverbose 319pipe2 -a15 320pkey_alloc -a17 321pkey_free -a13 322pkey_mprotect -a37 323ppoll -s2 324ppoll-P -s2 -e trace=ppoll -P /dev/full 9>>/dev/full 325ppoll-v -v -s2 -e trace=ppoll 326pread64-pwrite64 -a21 -eread=0 -ewrite=1 -e trace=pread64,pwrite64 -P pread64-pwrite64-tmpfile -P /dev/zero -P /dev/null 327preadv -a21 328preadv-pwritev -a19 -eread=0 -ewrite=1 -e trace=preadv,pwritev 329preadv2-pwritev2 -a22 -eread=0 -ewrite=1 -e trace=preadv2,pwritev2 330printstr -e trace=writev 331printpath-umovestr -a11 -e signal=none -e trace=chdir 332printpath-umovestr-peekdata -a11 -e signal=none -e trace=chdir 333printpath-umovestr-undumpable -a11 -e signal=none -e trace=chdir 334printstrn-umoven -s4096 -e signal=none -e trace=add_key 335printstrn-umoven-peekdata -e signal=none -e trace=add_key 336printstrn-umoven-undumpable -e signal=none -e trace=add_key 337prlimit64 338process_vm_readv -s5 -a37 339process_vm_writev -s5 -a38 340pselect6 341ptrace -a23 -e signal=none 342pwritev -a22 -s7 343quotactl 344quotactl-v -v -e trace=quotactl 345quotactl-xfs -e trace=quotactl 346quotactl-xfs-v -v -e trace=quotactl 347read-write -a15 -eread=0,5 -ewrite=1,4 -e trace=read,write -P read-write-tmpfile -P /dev/zero -P /dev/null 348readahead -a1 349readdir -a16 350readlink -xx 351readlinkat -xx 352reboot -s 256 353recvfrom -a35 354recvmmsg-timeout -a25 -e trace=recvmmsg 355recvmsg -eread=0 -ewrite=1 -e trace=recvmsg,sendmsg 356regex test_trace_expr '' -etrace='/^(.*_)?statv?fs' 357remap_file_pages 358rename -a35 359renameat 360renameat2 361request_key -a33 -s12 362riscv_flush_icache -a34 363rmdir -a22 364rt_sigpending -a20 365rt_sigprocmask 366rt_sigqueueinfo -esignal=none 367rt_sigreturn -esignal='!USR1' 368rt_sigsuspend -a20 -esignal=none 369rt_sigtimedwait -a38 370rt_tgsigqueueinfo -esignal=none 371s390_guarded_storage -a32 372s390_guarded_storage-v -e trace=s390_guarded_storage -a32 -v 373s390_pci_mmio_read_write -e trace=s390_pci_mmio_read,s390_pci_mmio_write -a30 374s390_runtime_instr -a44 375s390_sthyi -a47 376s390_sthyi-v -e trace=s390_sthyi -a47 -v 377sched test_trace_expr times -e/sched 378sched_get_priority_mxx -a33 -e trace=sched_get_priority_min,sched_get_priority_max 379sched_rr_get_interval -a31 380sched_xetaffinity -a28 -e trace=sched_getaffinity,sched_setaffinity 381sched_xetattr -a29 -e trace=sched_getattr,sched_setattr 382sched_xetparam -a23 -e trace=sched_getparam,sched_setparam 383sched_xetscheduler -a22 -e trace=sched_getscheduler,sched_setscheduler 384sched_yield -a14 385seccomp-filter -e trace=seccomp 386seccomp-filter-v -v -e trace=seccomp 387seccomp_get_action_avail -e trace=seccomp 388select -a36 389select-P -a36 -e trace=select -P /dev/full 9>>/dev/full 390semop -a32 -e trace=semop,semtimedop 391sendfile -a27 392sendfile64 -a29 393set_mempolicy -s3 -a35 394setdomainname -a24 395setfsgid -a12 396setfsgid32 -a14 397setfsuid -a12 398setfsuid32 -a14 399setgid -a10 400setgid32 -a12 401setgroups -s2 -a17 402setgroups32 -s2 -a19 403sethostname -a22 404setns -a21 405setregid -a15 406setregid32 -a17 407setresgid -a19 408setresgid32 -a21 409setresuid -a19 410setresuid32 -a21 411setreuid -a15 412setreuid32 -a17 413setrlimit -a27 414setuid -a10 415setuid32 -a12 416shmxt -a11 -e trace='/(osf_)?shmat,shmdt' 417shutdown -a24 418sigaction -a31 419siginfo -e trace=none 420signal -a25 -e signal=none -e trace='/^signal$' 421signal_receive -a16 -e trace=kill 422signalfd4 423sigpending -a15 424sigprocmask -a34 425sigreturn -esignal='!USR1' 426sigsuspend -a19 -esignal=none 427so_linger -e trace=getsockopt,setsockopt 428so_peercred -e trace=getsockopt 429so_peercred-Xabbrev -e trace=getsockopt -Xabbrev 430so_peercred-Xraw -e trace=getsockopt -Xraw -a39 431so_peercred-Xverbose -e trace=getsockopt -Xverbose 432sock_filter-v -v -e trace=getsockopt,setsockopt 433sock_filter-v-Xabbrev -v -e trace=getsockopt,setsockopt -X abbrev 434sock_filter-v-Xraw -a 37 -v -e trace=getsockopt,setsockopt -X raw 435sock_filter-v-Xverbose -v -e trace=getsockopt,setsockopt -X verbose 436socketcall -a20 437sockopt-sol_netlink -e trace=getsockopt,setsockopt 438splice 439stat -a32 -v -P stat.sample -P /dev/full 440stat64 -a32 -v -P stat.sample -P /dev/full 441statfs -a17 442statfs64 -a23 443statx -a32 -v -P stat.sample -P /dev/full 444swap -a23 -e trace=swapon,swapoff 445sxetmask -a11 -e trace=sgetmask,ssetmask 446symlink -a34 447symlinkat 448sync -a7 449sync_file_range 450sync_file_range2 451sysinfo -a14 452syslog -a36 453tee 454time -a10 455timer_create 456timer_xettime -e trace=timer_create,timer_settime,timer_gettime 457timerfd_xettime -e trace=timerfd_create,timerfd_settime,timerfd_gettime 458times -esignal=none 459times-fail -a12 -e trace=times 460trace_fstat test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full 461trace_fstatfs test_trace_expr '' -e%fstatfs 462trace_lstat test_trace_expr '' -e%lstat -v -P stat.sample -P /dev/full 463trace_personality_32 +qualify_personality.sh 32 'getcwd' 'fsync-y' 464trace_personality_64 +qualify_personality.sh 64 'getcwd' 'fsync-y' 465trace_personality_x32 +qualify_personality.sh x32 'getcwd' 'fsync-y' 466trace_personality_regex_32 +qualify_personality.sh 32 '/clock.*' 'times|fcntl.*' 467trace_personality_regex_64 +qualify_personality.sh 64 '/clock.*' 'times|fcntl.*' 468trace_personality_regex_x32 +qualify_personality.sh x32 '/clock.*' 'times|fcntl.*' 469trace_question test_trace_expr '' -e?osf_utimes,?/^pkey_.* 470trace_stat test_trace_expr '' -e%stat -v -P stat.sample -P /dev/full 471trace_stat_like test_trace_expr '' -e%%stat -v -P stat.sample -P /dev/full 472trace_statfs test_trace_expr '' -e%statfs 473trace_statfs_like test_trace_expr '' -e%%statfs 474truncate 475truncate64 476ugetrlimit -a28 477umask -a11 478umoven-illptr -a36 -e trace=nanosleep 479umovestr-illptr -a11 -e trace=chdir 480umovestr3 -a14 -e trace=chdir 481unlink -a24 482unlinkat -a35 483unshare -a11 484userfaultfd -a38 485ustat -a33 486utime -a16 487utimensat -a33 488utimensat-Xabbrev -a33 -Xabbrev -e trace=utimensat 489utimensat-Xraw -a29 -Xraw -e trace=utimensat 490utimensat-Xverbose -a44 -Xverbose -e trace=utimensat 491utimes -a17 492vfork-f -a26 -qq -f -e signal=none -e trace=chdir 493vhangup -a10 494vmsplice -ewrite=1 495wait4 -esignal=none 496wait4-v -v -e signal=none -e trace=wait4 497waitid -esignal=none 498waitid-v -v -e signal=none -e trace=waitid 499waitpid -a28 500xattr -a22 -e trace=getxattr,fgetxattr,lgetxattr,setxattr,fsetxattr,lsetxattr,listxattr,flistxattr,llistxattr,removexattr,fremovexattr,lremovexattr 501xattr-strings -a22 -s 4 -e trace=fsetxattr 502xet_robust_list -a24 -e trace=get_robust_list,set_robust_list 503xetitimer -a29 -e trace=setitimer,getitimer 504xetpgid -a11 -e trace=getpgid,setpgid 505xetpriority -a29 -e trace=getpriority,setpriority 506xettimeofday -a20 -e trace=gettimeofday,settimeofday 507