]> granicus.if.org Git - strace/blob - tests/gen_tests.in
tests: check decoding of NETLINK_AUDIT message types
[strace] / tests / gen_tests.in
1 # Input for gen_tests.sh
2 #
3 # Copyright (c) 2017 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 accept  -a22
30 accept4 -a37
31 access  -a30 -P access_sample
32 acct    -a20
33 add_key -a30 -s12
34 adjtimex        -a15
35 aio     -a14 -e trace=io_setup,io_submit,io_getevents,io_cancel,io_destroy
36 alarm   -a10
37 bpf     -a20
38 btrfs   +ioctl.test
39 chmod   -a28
40 chown   -a28
41 chown32 -a31
42 chroot  -a24
43 clock   test_trace_expr 'times|fcntl.*' -e/clock
44 clock_adjtime   -a37
45 clock_nanosleep -e trace=clock_nanosleep,clock_gettime
46 clock_xettime   -a36 -e trace=clock_getres,clock_gettime,clock_settime
47 copy_file_range
48 creat   -a20
49 delete_module   -a23
50 dup     -a8
51 dup2    -a13
52 dup3    -a24
53 epoll_create    -a17
54 epoll_create1   -a28
55 epoll_ctl
56 epoll_pwait
57 epoll_wait      -a26
58 erestartsys     -a34 -e signal=none -e trace=recvfrom
59 execveat
60 execveat-v      -v -e trace=execveat
61 faccessat       -P $NAME.sample
62 fadvise64_64    +fadvise64.test
63 fallocate       -a18
64 fanotify_init
65 fanotify_mark   -a32
66 fchdir  -a11
67 fchmod  -a15
68 fchmodat
69 fchown  -a16
70 fchown32        -a18
71 fchownat
72 fcntl   -a8
73 fcntl64 -a8
74 fdatasync       -a14
75 file_handle     -e trace=name_to_handle_at,open_by_handle_at
76 file_ioctl      +ioctl.test
77 finit_module    -a25
78 flock   -a19
79 fork-f  -a26 -qq -f -e signal=none -e trace=chdir
80 fstat   -a15 -v -P stat.sample
81 fstat64 -a17 -v -P stat.sample
82 fstatat64       -a32 -v -P stat.sample -P /dev/full
83 fstatfs -a18
84 fstatfs64       -a24
85 fsync   -a10
86 ftruncate       -a24
87 ftruncate64     -a36
88 futimesat       -a28
89 get_mempolicy   -s3 -a38
90 getcpu  -a25
91 getcwd  -a18
92 getdents        -a22 -v
93 getdents64      -a24 -v
94 getegid +getuid.test
95 getegid32       +getuid.test
96 geteuid +getuid.test
97 geteuid32       +getuid.test
98 getgid  +getuid.test
99 getgid32        +getuid.test
100 getgroups       -a17
101 getgroups32     -a19
102 getpeername     -a27
103 getpgrp -a10
104 getpid  -a9
105 getppid -a10
106 getrandom       -a32 -s3
107 getresgid       -a25
108 getresgid32     -a27
109 getresuid       -a25
110 getresuid32     -a27
111 getrlimit       -a27
112 getrusage       -v
113 getsid  -a10
114 getsockname     -a27
115 gettid  -a9
116 getuid32        +getuid.test
117 getxxid -a10 -e trace=getxpid,getxuid,getxgid
118 inet-cmsg       -e trace=recvmsg
119 init_module     -a27
120 inotify -a23 -e trace=inotify_add_watch,inotify_rm_watch
121 inotify_init1   -a27
122 int_0x80        -a11 -e trace=getgid32
123 ioctl_block     +ioctl.test
124 ioctl_evdev     +ioctl.test
125 ioctl_evdev-v   +ioctl-v.sh
126 ioctl_loop      +ioctl.test
127 ioctl_loop-v    +ioctl-v.sh
128 ioctl_mtd       +ioctl.test
129 ioctl_rtc       +ioctl.test
130 ioctl_rtc-v     +ioctl-v.sh
131 ioctl_scsi      +ioctl.test
132 ioctl_sg_io_v3  +ioctl.test
133 ioctl_sg_io_v4  +ioctl.test
134 ioctl_uffdio    +ioctl.test
135 ioctl_v4l2      +ioctl.test
136 ioperm  -a27
137 iopl    -a8
138 ioprio  -a18 -e trace=ioprio_get,ioprio_set
139 ip_mreq -e trace=setsockopt
140 ipc     -a19
141 ipc_msg +ipc.sh
142 ipc_sem +ipc.sh
143 ipc_shm +ipc.sh
144 kcmp    -a27
145 kexec_file_load -s9
146 kexec_load      -s9
147 keyctl  -a31 -s10
148 kill    -a12 -esignal=none
149 lchown  -a30
150 lchown32        -a32
151 link
152 linkat
153 lookup_dcookie  -a27
154 lstat   -a32 -v -P stat.sample -P /dev/full
155 lstat64 -a32 -v -P stat.sample -P /dev/full
156 madvise -a33
157 mbind
158 membarrier      -a36
159 memfd_create
160 migrate_pages   -a33
161 mincore -a22
162 mkdir   -a20
163 mkdirat -a28
164 mknod   -a18
165 mknodat -a35
166 mlock   -a20 -e trace=mlock,munlock
167 mlock2
168 mlockall        -a12
169 mmap64  +mmap.test
170 mmsg    -e read=0 -e write=1 -e trace=recvmmsg,sendmmsg
171 mmsg-silent     -a25 -e verbose=none -e trace=sendmmsg,recvmmsg
172 mmsg_name       -a25 -e trace=sendmmsg,recvmmsg
173 mmsg_name-v     -v -a25 -e trace=sendmmsg,recvmmsg
174 mount
175 move_pages      -s3
176 mq      -a32 -e trace=mq_getsetattr,mq_open,mq_unlink
177 mq_sendrecv     -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink
178 mq_sendrecv-read        -eread=0 -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink
179 mq_sendrecv-write       -ewrite=0 -a14 -e trace=mq_open,mq_notify,mq_timedsend,mq_timedreceive,mq_unlink
180 msg_control     -a21 -e trace=sendmsg
181 msg_control-v   -v -a21 -e trace=sendmsg
182 msg_name        -a20 -e trace=recvmsg
183 munlockall      -a13
184 nanosleep       -a20
185 net-icmp_filter -e trace=getsockopt,setsockopt
186 net-sockaddr    -a24 -e trace=connect
187 netlink_audit   +netlink_sock_diag.test
188 netlink_protocol        -e trace=sendto
189 netlink_route   +netlink_sock_diag.test
190 newfstatat      -a32 -v -P stat.sample -P /dev/full
191 old_mmap        -a11 -e trace=mmap
192 oldfstat        -a18 -v -P stat.sample
193 oldlstat        -a32 -v -P stat.sample -P /dev/full
194 oldstat -a32 -v -P stat.sample -P /dev/full
195 open    -a30 -P $NAME.sample
196 openat  -P $NAME.sample
197 osf_utimes      -a21
198 pause   -a8 -esignal=none
199 perf_event_open -a1
200 perf_event_open_nonverbose      -a34 -e verbose=none -e trace=perf_event_open
201 perf_event_open_unabbrev        -a1 -v -e trace=perf_event_open
202 pipe2   -a15
203 pkey_alloc      -a17
204 pkey_free       -a13
205 pkey_mprotect   -a37
206 ppoll   -s2
207 ppoll-v -v -s2 -e trace=ppoll
208 pread64-pwrite64        -a21 -eread=0 -ewrite=1 -e trace=pread64,pwrite64 -P pread64-pwrite64-tmpfile -P /dev/zero -P /dev/null
209 preadv  -a21
210 preadv-pwritev  -a19 -eread=0 -ewrite=1 -e trace=preadv,pwritev
211 preadv2-pwritev2        -a22 -eread=0 -ewrite=1 -e trace=preadv2,pwritev2
212 printstr        -e trace=writev
213 prlimit64
214 process_vm_readv        -s5 -a37
215 process_vm_writev       -s5 -a38
216 pselect6
217 ptrace  -a23 -e signal=none
218 pwritev -a22 -s7
219 quotactl
220 quotactl-v      -v -e trace=quotactl
221 quotactl-xfs    -e trace=quotactl
222 quotactl-xfs-v  -v -e trace=quotactl
223 read-write      -a15 -eread=0 -ewrite=1 -e trace=read,write -P read-write-tmpfile -P /dev/zero -P /dev/null
224 readahead       -a1
225 readdir -a16
226 readlink        -xx
227 readlinkat      -xx
228 reboot
229 recvfrom        -a35
230 recvmmsg-timeout        -a25 -e trace=recvmmsg
231 recvmsg -eread=0 -ewrite=1 -e trace=recvmsg,sendmsg
232 regex   test_trace_expr '' -etrace='/^(.*_)?statv?fs'
233 remap_file_pages
234 rename  -a35
235 renameat
236 renameat2
237 request_key     -a33 -s12
238 rmdir   -a22
239 rt_sigpending   -a20
240 rt_sigprocmask
241 rt_sigqueueinfo -esignal=none
242 rt_sigreturn    -esignal='!USR1'
243 rt_sigsuspend   -a20 -esignal=none
244 rt_sigtimedwait -a38
245 rt_tgsigqueueinfo       -esignal=none
246 sched   test_trace_expr times -e/sched
247 sched_get_priority_mxx  -a33 -e trace=sched_get_priority_min,sched_get_priority_max
248 sched_rr_get_interval   -a31
249 sched_xetaffinity       -a28 -e trace=sched_getaffinity,sched_setaffinity
250 sched_xetattr   -a29 -e trace=sched_getattr,sched_setattr
251 sched_xetparam  -a23 -e trace=sched_getparam,sched_setparam
252 sched_xetscheduler      -a22 -e trace=sched_getscheduler,sched_setscheduler
253 sched_yield     -a14
254 seccomp-filter  -e trace=seccomp
255 seccomp-filter-v        -v -e trace=seccomp
256 select  -a36
257 semop   -a32 -e trace=semop,semtimedop
258 sendfile        -a27
259 sendfile64      -a29
260 set_mempolicy   -s3 -a35
261 setdomainname   -a24
262 setfsgid        -a12
263 setfsgid32      -a14
264 setfsuid        -a12
265 setfsuid32      -a14
266 setgid  -a10
267 setgid32        -a12
268 setgroups       -s2 -a17
269 setgroups32     -s2 -a19
270 sethostname     -a22
271 setns   -a21
272 setregid        -a15
273 setregid32      -a17
274 setresgid       -a19
275 setresgid32     -a21
276 setresuid       -a19
277 setresuid32     -a21
278 setreuid        -a15
279 setreuid32      -a17
280 setrlimit       -a27
281 setuid  -a10
282 setuid32        -a12
283 shmxt   -a11 -e trace='/(osf_)?shmat,shmdt'
284 shutdown        -a24
285 sigaction       -a31
286 siginfo -e trace=none
287 signal  -a25 -e signal=none -e trace='/^signal$'
288 signal_receive  -a16 -e trace=kill
289 signalfd4
290 sigpending      -a15
291 sigprocmask     -a34
292 sigreturn       -esignal='!USR1'
293 sigsuspend      -a19 -esignal=none
294 socketcall      -a20
295 splice
296 stat    -a32 -v -P stat.sample -P /dev/full
297 stat64  -a32 -v -P stat.sample -P /dev/full
298 statfs  -a17
299 statfs64        -a23
300 statx   -a32 -v -P stat.sample -P /dev/full
301 swap    -a23 -e trace=swapon,swapoff
302 sxetmask        -a11 -e trace=sgetmask,ssetmask
303 symlink -a34
304 symlinkat
305 sync    -a7
306 sync_file_range
307 sync_file_range2
308 sysinfo -a14
309 syslog  -a36
310 tee
311 time    -a10
312 timer_create
313 timer_xettime   -e trace=timer_create,timer_settime,timer_gettime
314 timerfd_xettime -e trace=timerfd_create,timerfd_settime,timerfd_gettime
315 times   -esignal=none
316 times-fail      -a12 -e trace=times
317 trace_fstat     test_trace_expr '' -e%fstat -v -P stat.sample -P /dev/full
318 trace_fstatfs   test_trace_expr '' -e%fstatfs
319 trace_lstat     test_trace_expr '' -e%lstat -v -P stat.sample -P /dev/full
320 trace_question  test_trace_expr '' -e?osf_utimes,?/^pkey_.*
321 trace_stat      test_trace_expr '' -e%stat -v -P stat.sample -P /dev/full
322 trace_stat_like test_trace_expr '' -e%%stat -v -P stat.sample -P /dev/full
323 trace_statfs    test_trace_expr '' -e%statfs
324 trace_statfs_like       test_trace_expr '' -e%%statfs
325 truncate
326 truncate64
327 ugetrlimit      -a28
328 umask   -a11
329 umoven-illptr   -a36 -e trace=nanosleep
330 umovestr-illptr -a11 -e trace=chdir
331 umovestr3       -a14 -e trace=chdir
332 unlink  -a24
333 unlinkat        -a35
334 unshare -a11
335 userfaultfd     -a38
336 ustat   -a33
337 utime   -a16
338 utimensat       -a33
339 utimes  -a17
340 vfork-f -a26 -qq -f -e signal=none -e trace=chdir
341 vhangup -a10
342 vmsplice        -ewrite=1
343 wait4   -esignal=none
344 wait4-v -v -e signal=none -e trace=wait4
345 waitid  -esignal=none
346 waitid-v        -v -e signal=none -e trace=waitid
347 waitpid -a28
348 xattr   -a22 -e trace=getxattr,fgetxattr,lgetxattr,setxattr,fsetxattr,lsetxattr,listxattr,flistxattr,llistxattr,removexattr,fremovexattr,lremovexattr
349 xattr-strings   -a22 -s 4 -e trace=fsetxattr
350 xet_robust_list -a24 -e trace=get_robust_list,set_robust_list
351 xetitimer       -a29 -e trace=setitimer,getitimer
352 xetpgid -a11 -e trace=getpgid,setpgid
353 xetpriority     -a29 -e trace=getpriority,setpriority
354 xettimeofday    -a20 -e trace=gettimeofday,settimeofday