• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
37alarm	-a10
38bpf	-a20
39bpf-v	-a20 -v -e trace=bpf
40btrfs	+ioctl.test
41chmod	-a28
42chown	-a28
43chown32	-a31
44chroot	-a24
45clock	test_trace_expr 'times|fcntl.*' -e/clock
46clock_adjtime	-a37
47clock_nanosleep	-e trace=clock_nanosleep,clock_gettime
48clock_xettime	-a36 -e trace=clock_getres,clock_gettime,clock_settime
49copy_file_range
50creat	-a20
51delete_module	-a23
52dup	-a8
53dup2	-a13
54dup3	-a24
55epoll_create	-a17
56epoll_create1	-a28
57epoll_ctl
58epoll_pwait
59epoll_wait	-a26
60erestartsys	-a34 -e signal=none -e trace=recvfrom
61execveat
62execveat-v	-v -e trace=execveat
63faccessat	-P $NAME.sample
64fadvise64_64	+fadvise64.test
65fallocate	-a18
66fanotify_init
67fanotify_mark	-a32
68fchdir	-a11
69fchmod	-a15
70fchmodat
71fchown	-a16
72fchown32	-a18
73fchownat
74fcntl	-a8
75fcntl64	-a8
76fdatasync	-a14
77file_handle	-e trace=name_to_handle_at,open_by_handle_at
78file_ioctl	+ioctl.test
79finit_module	-a25
80flock	-a19
81fork-f	-a26 -qq -f -e signal=none -e trace=chdir
82fstat	-a15 -v -P stat.sample
83fstat64	-a17 -v -P stat.sample
84fstatat64	-a32 -v -P stat.sample -P /dev/full
85fstatfs	-a18
86fstatfs64	-a24
87fsync	-a10
88ftruncate	-a24
89ftruncate64	-a36
90futimesat	-a28
91get_mempolicy	-s3 -a38
92getcpu	-a25
93getcwd	-a18
94getdents	-a22 -v
95getdents64	-a24 -v
96getegid	+getuid.test
97getegid32	+getuid.test
98geteuid	+getuid.test
99geteuid32	+getuid.test
100getgid	+getuid.test
101getgid32	+getuid.test
102getgroups	-a17
103getgroups32	-a19
104getpeername	-a27
105getpgrp	-a10
106getpid	-a9
107getppid	-a10
108getrandom	-a32 -s3
109getresgid	-a25
110getresgid32	-a27
111getresuid	-a25
112getresuid32	-a27
113getrlimit	-a27
114getrusage	-v
115getsid	-a10
116getsockname	-a27
117gettid	-a9
118getuid32	+getuid.test
119getxxid	-a10 -e trace=getxpid,getxuid,getxgid
120group_req	-e trace=setsockopt
121inet-cmsg	-e trace=recvmsg
122init_module	-a27
123inotify	-a23 -e trace=inotify_add_watch,inotify_rm_watch
124inotify_init1	-a27
125int_0x80	-a11 -e trace=getgid32
126ioctl_block	+ioctl.test
127ioctl_dm	+ioctl.test -s9
128ioctl_dm-v	+ioctl.test -v -s9
129ioctl_evdev	+ioctl.test
130ioctl_evdev-v	+ioctl.test -v
131ioctl_kvm_run	+ioctl.test -a36 -y
132ioctl_loop	+ioctl.test
133ioctl_loop-nv	+ioctl.test -a22 -e verbose=none
134ioctl_loop-v	+ioctl.test -v
135ioctl_mtd	+ioctl.test
136ioctl_nsfs	+ioctl.test -esignal=none
137ioctl_rtc	+ioctl.test
138ioctl_rtc-v	+ioctl.test -v
139ioctl_scsi	+ioctl.test
140ioctl_sg_io_v3	+ioctl.test
141ioctl_sg_io_v4	+ioctl.test
142ioctl_sock_gifconf	+ioctl.test -a28 -s1
143ioctl_uffdio	+ioctl.test
144ioctl_v4l2	+ioctl.test
145ioperm	-a27
146iopl	-a8
147ioprio	-a18 -e trace=ioprio_get,ioprio_set
148ip_mreq	-e trace=setsockopt
149ipc	-a19
150ipc_msg	+ipc.sh
151ipc_sem	+ipc.sh
152ipc_shm	+ipc.sh
153kcmp	-a22
154kcmp-y	-a22 -y -e trace=kcmp
155kexec_file_load	-s9
156kexec_load	-s9
157keyctl	-a31 -s10
158kill	-a12 -esignal=none
159lchown	-a30
160lchown32	-a32
161link
162linkat
163lookup_dcookie	-a27
164lstat	-a32 -v -P stat.sample -P /dev/full
165lstat64	-a32 -v -P stat.sample -P /dev/full
166madvise	-a33
167mbind
168membarrier	-a36
169memfd_create
170migrate_pages	-a33
171mincore	-a22
172mkdir	-a20
173mkdirat	-a28
174mknod	-a18
175mknodat	-a35
176mlock	-a20 -e trace=mlock,munlock
177mlock2
178mlockall	-a12
179mmap64	+mmap.test
180mmsg	-e read=0 -e write=1 -e trace=recvmmsg,sendmmsg
181mmsg-silent	-a25 -e verbose=none -e trace=sendmmsg,recvmmsg
182mmsg_name	-a25 -e trace=sendmmsg,recvmmsg
183mmsg_name-v	-v -a25 -e trace=sendmmsg,recvmmsg
184modify_ldt	-a23
185mount
186move_pages	-s3
187mq	-a32 -e trace=mq_getsetattr,mq_open,mq_unlink
188mq_sendrecv	-a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink
189mq_sendrecv-read	-eread=0 -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink
190mq_sendrecv-write	-ewrite=0 -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink
191msg_control	-a21 -e trace=sendmsg
192msg_control-v	-v -a21 -e trace=sendmsg
193msg_name	-a20 -e trace=recvmsg
194munlockall	-a13
195nanosleep	-a20
196net-icmp_filter	-e trace=getsockopt,setsockopt
197net-sockaddr	-a24 -e trace=connect
198netlink_audit	+netlink_sock_diag.test
199netlink_crypto	+netlink_sock_diag.test
200netlink_generic	+netlink_sock_diag.test
201netlink_kobject_uevent	+netlink_sock_diag.test
202netlink_netfilter	+netlink_sock_diag.test
203netlink_protocol	-e trace=sendto
204netlink_route	+netlink_sock_diag.test
205netlink_selinux	+netlink_sock_diag.test
206netlink_xfrm	+netlink_sock_diag.test
207newfstatat	-a32 -v -P stat.sample -P /dev/full
208nlattr		+netlink_sock_diag.test
209nfnetlink_acct			+netlink_sock_diag.test
210nfnetlink_cthelper		+netlink_sock_diag.test
211nfnetlink_ctnetlink		+netlink_sock_diag.test
212nfnetlink_ctnetlink_exp		+netlink_sock_diag.test
213nfnetlink_cttimeout		+netlink_sock_diag.test
214nfnetlink_ipset			+netlink_sock_diag.test
215nfnetlink_nft_compat		+netlink_sock_diag.test
216nfnetlink_nftables		+netlink_sock_diag.test
217nfnetlink_osf			+netlink_sock_diag.test
218nfnetlink_queue			+netlink_sock_diag.test
219nfnetlink_ulog			+netlink_sock_diag.test
220nlattr_crypto_user_alg		+netlink_sock_diag.test
221nlattr_br_port_msg		+netlink_sock_diag.test
222nlattr_dcbmsg			+netlink_sock_diag.test
223nlattr_fib_rule_hdr		+netlink_sock_diag.test
224nlattr_ifaddrlblmsg		+netlink_sock_diag.test
225nlattr_ifaddrmsg		+netlink_sock_diag.test
226nlattr_ifinfomsg		+netlink_sock_diag.test
227nlattr_ifla_brport		+netlink_sock_diag.test
228nlattr_ifla_port		+netlink_sock_diag.test
229nlattr_ifla_xdp			+netlink_sock_diag.test
230nlattr_inet_diag_msg		+netlink_sock_diag.test
231nlattr_inet_diag_req_compat	+netlink_sock_diag.test
232nlattr_inet_diag_req_v2		+netlink_sock_diag.test
233nlattr_mdba_mdb_entry		+netlink_sock_diag.test
234nlattr_mdba_router_port		+netlink_sock_diag.test
235nlattr_ndmsg			+netlink_sock_diag.test
236nlattr_ndtmsg			+netlink_sock_diag.test
237nlattr_netconfmsg		+netlink_sock_diag.test
238nlattr_netlink_diag_msg		+netlink_sock_diag.test
239nlattr_nlmsgerr			+netlink_sock_diag.test
240nlattr_packet_diag_msg		+netlink_sock_diag-v.sh
241nlattr_rtgenmsg			+netlink_sock_diag.test
242nlattr_rtmsg			+netlink_sock_diag.test
243nlattr_smc_diag_msg		+netlink_sock_diag.test
244nlattr_tc_stats			+netlink_sock_diag.test
245nlattr_tca_stab			+netlink_sock_diag.test
246nlattr_tcamsg			+netlink_sock_diag.test
247nlattr_tcmsg			+netlink_sock_diag.test
248nlattr_unix_diag_msg		+netlink_sock_diag.test
249old_mmap	-a11 -e trace=mmap
250old_mmap-P	-e trace=mmap -P "/dev/full" 9>>/dev/full
251old_mmap-v-none	-a11 -e trace=mmap -e verbose=none
252oldfstat	-a18 -v -P stat.sample
253oldlstat	-a32 -v -P stat.sample -P /dev/full
254oldselect	-a13 -e trace=select
255oldselect-P	-a13 -e trace=select -P /dev/full 9>>/dev/full
256oldselect-efault	-a13 -e trace=select
257oldselect-efault-P	-a13 -e trace=select -P /dev/full 9>>/dev/full
258oldstat	-a32 -v -P stat.sample -P /dev/full
259open	-a30 -P $NAME.sample
260openat	-a36 -P $NAME.sample
261osf_utimes	-a21
262pause	-a8 -esignal=none
263perf_event_open	-a1
264perf_event_open_nonverbose	-a34 -e verbose=none -e trace=perf_event_open
265perf_event_open_unabbrev	-a1 -v -e trace=perf_event_open
266pipe2	-a15
267pkey_alloc	-a17
268pkey_free	-a13
269pkey_mprotect	-a37
270ppoll	-s2
271ppoll-P	-s2 -e trace=ppoll -P /dev/full 9>>/dev/full
272ppoll-v	-v -s2 -e trace=ppoll
273pread64-pwrite64	-a21 -eread=0 -ewrite=1 -e trace=pread64,pwrite64 -P pread64-pwrite64-tmpfile -P /dev/zero -P /dev/null
274preadv	-a21
275preadv-pwritev	-a19 -eread=0 -ewrite=1 -e trace=preadv,pwritev
276preadv2-pwritev2	-a22 -eread=0 -ewrite=1 -e trace=preadv2,pwritev2
277printstr	-e trace=writev
278printpath-umovestr	-a11 -e signal=none -e trace=chdir
279printpath-umovestr-peekdata	-a11 -e signal=none -e trace=chdir
280printpath-umovestr-undumpable	-a11 -e signal=none -e trace=chdir
281printstrn-umoven	-s4096 -e signal=none -e trace=add_key
282printstrn-umoven-peekdata	-e signal=none -e trace=add_key
283printstrn-umoven-undumpable	-e signal=none -e trace=add_key
284prlimit64
285process_vm_readv	-s5 -a37
286process_vm_writev	-s5 -a38
287pselect6
288ptrace	-a23 -e signal=none
289pwritev	-a22 -s7
290quotactl
291quotactl-v	-v -e trace=quotactl
292quotactl-xfs	-e trace=quotactl
293quotactl-xfs-v	-v -e trace=quotactl
294read-write	-a15 -eread=0 -ewrite=1 -e trace=read,write -P read-write-tmpfile -P /dev/zero -P /dev/null
295readahead	-a1
296readdir	-a16
297readlink	-xx
298readlinkat	-xx
299reboot		-s 256
300recvfrom	-a35
301recvmmsg-timeout	-a25 -e trace=recvmmsg
302recvmsg	-eread=0 -ewrite=1 -e trace=recvmsg,sendmsg
303regex	test_trace_expr '' -etrace='/^(.*_)?statv?fs'
304remap_file_pages
305rename	-a35
306renameat
307renameat2
308request_key	-a33 -s12
309riscv_flush_icache	-a34
310rmdir	-a22
311rt_sigpending	-a20
312rt_sigprocmask
313rt_sigqueueinfo	-esignal=none
314rt_sigreturn	-esignal='!USR1'
315rt_sigsuspend	-a20 -esignal=none
316rt_sigtimedwait	-a38
317rt_tgsigqueueinfo	-esignal=none
318s390_guarded_storage	-a32
319s390_guarded_storage-v	-e trace=s390_guarded_storage -a32 -v
320s390_pci_mmio_read_write	-e trace=s390_pci_mmio_read,s390_pci_mmio_write -a30
321s390_runtime_instr	-a50
322s390_sthyi	-a47
323s390_sthyi-v	-e trace=s390_sthyi -a47 -v
324sched	test_trace_expr times -e/sched
325sched_get_priority_mxx	-a33 -e trace=sched_get_priority_min,sched_get_priority_max
326sched_rr_get_interval	-a31
327sched_xetaffinity	-a28 -e trace=sched_getaffinity,sched_setaffinity
328sched_xetattr	-a29 -e trace=sched_getattr,sched_setattr
329sched_xetparam	-a23 -e trace=sched_getparam,sched_setparam
330sched_xetscheduler	-a22 -e trace=sched_getscheduler,sched_setscheduler
331sched_yield	-a14
332seccomp-filter	-e trace=seccomp
333seccomp-filter-v	-v -e trace=seccomp
334seccomp_get_action_avail	-e trace=seccomp
335select	-a36
336select-P	-a36 -e trace=select -P /dev/full 9>>/dev/full
337semop	-a32 -e trace=semop,semtimedop
338sendfile	-a27
339sendfile64	-a29
340set_mempolicy	-s3 -a35
341setdomainname	-a24
342setfsgid	-a12
343setfsgid32	-a14
344setfsuid	-a12
345setfsuid32	-a14
346setgid	-a10
347setgid32	-a12
348setgroups	-s2 -a17
349setgroups32	-s2 -a19
350sethostname	-a22
351setns	-a21
352setregid	-a15
353setregid32	-a17
354setresgid	-a19
355setresgid32	-a21
356setresuid	-a19
357setresuid32	-a21
358setreuid	-a15
359setreuid32	-a17
360setrlimit	-a27
361setuid	-a10
362setuid32	-a12
363shmxt	-a11 -e trace='/(osf_)?shmat,shmdt'
364shutdown	-a24
365sigaction	-a31
366siginfo	-e trace=none
367signal	-a25 -e signal=none -e trace='/^signal$'
368signal_receive	-a16 -e trace=kill
369signalfd4
370sigpending	-a15
371sigprocmask	-a34
372sigreturn	-esignal='!USR1'
373sigsuspend	-a19 -esignal=none
374so_linger	-e trace=getsockopt,setsockopt
375so_peercred	-e trace=getsockopt
376sock_filter-v	-v -e trace=getsockopt,setsockopt
377socketcall	-a20
378sockopt-sol_netlink	-e trace=getsockopt,setsockopt
379splice
380stat	-a32 -v -P stat.sample -P /dev/full
381stat64	-a32 -v -P stat.sample -P /dev/full
382statfs	-a17
383statfs64	-a23
384statx	-a32 -v -P stat.sample -P /dev/full
385swap	-a23 -e trace=swapon,swapoff
386sxetmask	-a11 -e trace=sgetmask,ssetmask
387symlink	-a34
388symlinkat
389sync	-a7
390sync_file_range
391sync_file_range2
392sysinfo	-a14
393syslog	-a36
394tee
395time	-a10
396timer_create
397timer_xettime	-e trace=timer_create,timer_settime,timer_gettime
398timerfd_xettime	-e trace=timerfd_create,timerfd_settime,timerfd_gettime
399times	-esignal=none
400times-fail	-a12 -e trace=times
401trace_fstat	test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full
402trace_fstatfs	test_trace_expr '' -e%fstatfs
403trace_lstat	test_trace_expr '' -e%lstat -v -P stat.sample -P /dev/full
404trace_question	test_trace_expr '' -e?osf_utimes,?/^pkey_.*
405trace_stat	test_trace_expr '' -e%stat -v -P stat.sample -P /dev/full
406trace_stat_like	test_trace_expr '' -e%%stat -v -P stat.sample -P /dev/full
407trace_statfs	test_trace_expr '' -e%statfs
408trace_statfs_like	test_trace_expr '' -e%%statfs
409truncate
410truncate64
411ugetrlimit	-a28
412umask	-a11
413umoven-illptr	-a36 -e trace=nanosleep
414umovestr-illptr	-a11 -e trace=chdir
415umovestr3	-a14 -e trace=chdir
416unlink	-a24
417unlinkat	-a35
418unshare	-a11
419userfaultfd	-a38
420ustat	-a33
421utime	-a16
422utimensat	-a33
423utimes	-a17
424vfork-f	-a26 -qq -f -e signal=none -e trace=chdir
425vhangup	-a10
426vmsplice	-ewrite=1
427wait4	-esignal=none
428wait4-v	-v -e signal=none -e trace=wait4
429waitid	-esignal=none
430waitid-v	-v -e signal=none -e trace=waitid
431waitpid	-a28
432xattr	-a22 -e trace=getxattr,fgetxattr,lgetxattr,setxattr,fsetxattr,lsetxattr,listxattr,flistxattr,llistxattr,removexattr,fremovexattr,lremovexattr
433xattr-strings	-a22 -s 4 -e trace=fsetxattr
434xet_robust_list	-a24 -e trace=get_robust_list,set_robust_list
435xetitimer	-a29 -e trace=setitimer,getitimer
436xetpgid	-a11 -e trace=getpgid,setpgid
437xetpriority	-a29 -e trace=getpriority,setpriority
438xettimeofday	-a20 -e trace=gettimeofday,settimeofday
439