diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-08-26 21:36:08 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-08-27 11:51:40 +0200 |
| commit | a3857c4e90fa4a3fbe78bd4b53cdc77aa91533cf (patch) | |
| tree | 8bc28379a29112de7bc11c57f3d91d0baba84594 | |
| parent | 9ec49e082f811482ecdccc837c27961d68247d25 (diff) | |
pkg/compiler, sys/syz-sysgen: move const handling to pkg/compiler
Now pkg/compiler deals with consts.
| -rw-r--r-- | executor/syscalls.h | 275 | ||||
| -rw-r--r-- | pkg/ast/ast.go | 11 | ||||
| -rw-r--r-- | pkg/ast/clone.go | 196 | ||||
| -rw-r--r-- | pkg/ast/format.go | 48 | ||||
| -rw-r--r-- | pkg/ast/parser.go | 42 | ||||
| -rw-r--r-- | pkg/ast/parser_test.go | 41 | ||||
| -rw-r--r-- | pkg/ast/scanner.go | 10 | ||||
| -rw-r--r-- | pkg/ast/walk.go | 52 | ||||
| -rw-r--r-- | pkg/compiler/compiler.go | 182 | ||||
| -rw-r--r-- | pkg/compiler/compiler_test.go | 16 | ||||
| -rw-r--r-- | sys/sys_386.go | 61 | ||||
| -rw-r--r-- | sys/sys_amd64.go | 1 | ||||
| -rw-r--r-- | sys/sys_arm.go | 48 | ||||
| -rw-r--r-- | sys/sys_arm64.go | 73 | ||||
| -rw-r--r-- | sys/sys_ppc64le.go | 92 | ||||
| -rw-r--r-- | sys/syz-extract/extract.go | 10 | ||||
| -rw-r--r-- | sys/syz-extract/fetch.go | 7 | ||||
| -rw-r--r-- | sys/syz-sysgen/syscallnr.go | 49 | ||||
| -rw-r--r-- | sys/syz-sysgen/sysgen.go | 210 | ||||
| -rw-r--r-- | sys/test.txt | 4 | ||||
| -rw-r--r-- | sys/test_386.const | 3 | ||||
| -rw-r--r-- | sys/test_amd64.const | 3 | ||||
| -rw-r--r-- | sys/test_arm.const | 3 | ||||
| -rw-r--r-- | sys/test_arm64.const | 3 | ||||
| -rw-r--r-- | sys/test_ppc64le.const | 3 | ||||
| -rw-r--r-- | tools/syz-fmt/syz-fmt.go | 6 |
26 files changed, 626 insertions, 823 deletions
diff --git a/executor/syscalls.h b/executor/syscalls.h index 9a8129c61..ad577d1da 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -477,7 +477,6 @@ static call_t syscalls[] = { {"ioctl$KDSKBSENT", 16}, {"ioctl$KIOCSOUND", 16}, {"ioctl$KVM_ARM_SET_DEVICE_ADDR", 16}, - {"ioctl$KVM_ARM_VCPU_INIT", 16}, {"ioctl$KVM_ASSIGN_DEV_IRQ", 16}, {"ioctl$KVM_ASSIGN_PCI_DEVICE", 16}, {"ioctl$KVM_ASSIGN_SET_INTX_MASK", 16}, @@ -1537,16 +1536,6 @@ static call_t syscalls[] = { #if defined(__i386__) || 0 static call_t syscalls[] = { - {"accept", -1}, - {"accept$alg", -1}, - {"accept$ax25", -1}, - {"accept$inet", -1}, - {"accept$inet6", -1}, - {"accept$ipx", -1}, - {"accept$llc", -1}, - {"accept$netrom", -1}, - {"accept$nfc_llcp", -1}, - {"accept$unix", -1}, {"accept4", 364}, {"accept4$ax25", 364}, {"accept4$inet", 364}, @@ -1966,13 +1955,6 @@ static call_t syscalls[] = { {"ioctl$GIO_SCRNMAP", 54}, {"ioctl$GIO_UNIMAP", 54}, {"ioctl$GIO_UNISCRNMAP", 54}, - {"ioctl$ION_IOC_ALLOC", 54}, - {"ioctl$ION_IOC_CUSTOM", 54}, - {"ioctl$ION_IOC_FREE", 54}, - {"ioctl$ION_IOC_IMPORT", 54}, - {"ioctl$ION_IOC_MAP", 54}, - {"ioctl$ION_IOC_SHARE", 54}, - {"ioctl$ION_IOC_SYNC", 54}, {"ioctl$KDADDIO", 54}, {"ioctl$KDDELIO", 54}, {"ioctl$KDDISABIO", 54}, @@ -1998,7 +1980,6 @@ static call_t syscalls[] = { {"ioctl$KDSKBSENT", 54}, {"ioctl$KIOCSOUND", 54}, {"ioctl$KVM_ARM_SET_DEVICE_ADDR", 54}, - {"ioctl$KVM_ARM_VCPU_INIT", 54}, {"ioctl$KVM_ASSIGN_DEV_IRQ", 54}, {"ioctl$KVM_ASSIGN_PCI_DEVICE", 54}, {"ioctl$KVM_ASSIGN_SET_INTX_MASK", 54}, @@ -2214,10 +2195,6 @@ static call_t syscalls[] = { {"ioctl$TCSETSF", 54}, {"ioctl$TCSETSW", 54}, {"ioctl$TCXONC", 54}, - {"ioctl$TE_IOCTL_CLOSE_CLIENT_SESSION", 54}, - {"ioctl$TE_IOCTL_LAUNCH_OPERATION", 54}, - {"ioctl$TE_IOCTL_OPEN_CLIENT_SESSION", 54}, - {"ioctl$TE_IOCTL_SS_CMD", 54}, {"ioctl$TIOCCBRK", 54}, {"ioctl$TIOCCONS", 54}, {"ioctl$TIOCEXCL", 54}, @@ -2445,16 +2422,6 @@ static call_t syscalls[] = { {"mq_timedsend", 279}, {"mq_unlink", 278}, {"mremap", 163}, - {"msgctl$IPC_INFO", -1}, - {"msgctl$IPC_RMID", -1}, - {"msgctl$IPC_SET", -1}, - {"msgctl$IPC_STAT", -1}, - {"msgctl$MSG_INFO", -1}, - {"msgctl$MSG_STAT", -1}, - {"msgget", -1}, - {"msgget$private", -1}, - {"msgrcv", -1}, - {"msgsnd", -1}, {"msync", 144}, {"munlock", 151}, {"munlockall", 153}, @@ -2586,23 +2553,6 @@ static call_t syscalls[] = { {"sched_yield", 158}, {"seccomp", 354}, {"select", 82}, - {"semctl$GETALL", -1}, - {"semctl$GETNCNT", -1}, - {"semctl$GETPID", -1}, - {"semctl$GETVAL", -1}, - {"semctl$GETZCNT", -1}, - {"semctl$IPC_INFO", -1}, - {"semctl$IPC_RMID", -1}, - {"semctl$IPC_SET", -1}, - {"semctl$IPC_STAT", -1}, - {"semctl$SEM_INFO", -1}, - {"semctl$SEM_STAT", -1}, - {"semctl$SETALL", -1}, - {"semctl$SETVAL", -1}, - {"semget", -1}, - {"semget$private", -1}, - {"semop", -1}, - {"semtimedop", -1}, {"sendfile", 187}, {"sendmmsg", 345}, {"sendmmsg$alg", 345}, @@ -2824,18 +2774,6 @@ static call_t syscalls[] = { {"setsockopt$sock_void", 366}, {"setuid", 23}, {"setxattr", 226}, - {"shmat", -1}, - {"shmctl$IPC_INFO", -1}, - {"shmctl$IPC_RMID", -1}, - {"shmctl$IPC_SET", -1}, - {"shmctl$IPC_STAT", -1}, - {"shmctl$SHM_INFO", -1}, - {"shmctl$SHM_LOCK", -1}, - {"shmctl$SHM_STAT", -1}, - {"shmctl$SHM_UNLOCK", -1}, - {"shmdt", -1}, - {"shmget", -1}, - {"shmget$private", -1}, {"shutdown", 373}, {"sigaltstack", 186}, {"signalfd", 321}, @@ -3077,8 +3015,6 @@ static call_t syscalls[] = { {"accept4$unix", 242}, {"acct", 89}, {"add_key", 217}, - {"alarm", -1}, - {"arch_prctl", -1}, {"bind", 200}, {"bind$alg", 200}, {"bind$ax25", 200}, @@ -3109,8 +3045,6 @@ static call_t syscalls[] = { {"capget", 90}, {"capset", 91}, {"chdir", 49}, - {"chmod", -1}, - {"chown", -1}, {"chroot", 51}, {"clock_adjtime", 266}, {"clock_getres", 114}, @@ -3133,19 +3067,14 @@ static call_t syscalls[] = { {"connect$nfc_llcp", 203}, {"connect$nfc_raw", 203}, {"connect$unix", 203}, - {"creat", -1}, {"delete_module", 106}, {"dup", 23}, - {"dup2", -1}, {"dup3", 24}, - {"epoll_create", -1}, {"epoll_create1", 20}, {"epoll_ctl$EPOLL_CTL_ADD", 21}, {"epoll_ctl$EPOLL_CTL_DEL", 21}, {"epoll_ctl$EPOLL_CTL_MOD", 21}, {"epoll_pwait", 22}, - {"epoll_wait", -1}, - {"eventfd", -1}, {"eventfd2", 19}, {"execve", 221}, {"execveat", 281}, @@ -3187,13 +3116,9 @@ static call_t syscalls[] = { {"fsync", 82}, {"ftruncate", 46}, {"futex", 98}, - {"futimesat", -1}, - {"get_kernel_syms", -1}, {"get_mempolicy", 236}, {"get_robust_list", 100}, - {"get_thread_area", -1}, {"getcwd", 17}, - {"getdents", -1}, {"getdents64", 61}, {"getegid", 177}, {"geteuid", 175}, @@ -3210,7 +3135,6 @@ static call_t syscalls[] = { {"getpeername$netrom", 205}, {"getpeername$unix", 205}, {"getpgid", 155}, - {"getpgrp", -1}, {"getpid", 172}, {"getpriority", 141}, {"getrandom", 278}, @@ -3380,7 +3304,6 @@ static call_t syscalls[] = { {"getxattr", 8}, {"init_module", 105}, {"inotify_add_watch", 27}, - {"inotify_init", -1}, {"inotify_init1", 26}, {"inotify_rm_watch", 28}, {"io_cancel", 3}, @@ -3538,30 +3461,18 @@ static call_t syscalls[] = { {"ioctl$KVM_ENABLE_CAP", 29}, {"ioctl$KVM_ENABLE_CAP_CPU", 29}, {"ioctl$KVM_GET_CLOCK", 29}, - {"ioctl$KVM_GET_CPUID2", 29}, - {"ioctl$KVM_GET_DEBUGREGS", 29}, {"ioctl$KVM_GET_DEVICE_ATTR", 29}, {"ioctl$KVM_GET_DIRTY_LOG", 29}, - {"ioctl$KVM_GET_EMULATED_CPUID", 29}, {"ioctl$KVM_GET_FPU", 29}, {"ioctl$KVM_GET_IRQCHIP", 29}, - {"ioctl$KVM_GET_LAPIC", 29}, {"ioctl$KVM_GET_MP_STATE", 29}, - {"ioctl$KVM_GET_MSRS", 29}, - {"ioctl$KVM_GET_MSR_INDEX_LIST", 29}, {"ioctl$KVM_GET_NR_MMU_PAGES", 29}, {"ioctl$KVM_GET_ONE_REG", 29}, - {"ioctl$KVM_GET_PIT", 29}, - {"ioctl$KVM_GET_PIT2", 29}, {"ioctl$KVM_GET_REGS", 29}, {"ioctl$KVM_GET_REG_LIST", 29}, {"ioctl$KVM_GET_SREGS", 29}, - {"ioctl$KVM_GET_SUPPORTED_CPUID", 29}, {"ioctl$KVM_GET_TSC_KHZ", 29}, - {"ioctl$KVM_GET_VCPU_EVENTS", 29}, {"ioctl$KVM_GET_VCPU_MMAP_SIZE", 29}, - {"ioctl$KVM_GET_XCRS", 29}, - {"ioctl$KVM_GET_XSAVE", 29}, {"ioctl$KVM_HAS_DEVICE_ATTR", 29}, {"ioctl$KVM_INTERRUPT", 29}, {"ioctl$KVM_IOEVENTFD", 29}, @@ -3583,22 +3494,15 @@ static call_t syscalls[] = { {"ioctl$KVM_S390_VCPU_FAULT", 29}, {"ioctl$KVM_SET_BOOT_CPU_ID", 29}, {"ioctl$KVM_SET_CLOCK", 29}, - {"ioctl$KVM_SET_CPUID", 29}, - {"ioctl$KVM_SET_CPUID2", 29}, - {"ioctl$KVM_SET_DEBUGREGS", 29}, {"ioctl$KVM_SET_DEVICE_ATTR", 29}, {"ioctl$KVM_SET_FPU", 29}, {"ioctl$KVM_SET_GSI_ROUTING", 29}, {"ioctl$KVM_SET_GUEST_DEBUG", 29}, {"ioctl$KVM_SET_IDENTITY_MAP_ADDR", 29}, {"ioctl$KVM_SET_IRQCHIP", 29}, - {"ioctl$KVM_SET_LAPIC", 29}, {"ioctl$KVM_SET_MP_STATE", 29}, - {"ioctl$KVM_SET_MSRS", 29}, {"ioctl$KVM_SET_NR_MMU_PAGES", 29}, {"ioctl$KVM_SET_ONE_REG", 29}, - {"ioctl$KVM_SET_PIT", 29}, - {"ioctl$KVM_SET_PIT2", 29}, {"ioctl$KVM_SET_REGS", 29}, {"ioctl$KVM_SET_SIGNAL_MASK", 29}, {"ioctl$KVM_SET_SREGS", 29}, @@ -3606,9 +3510,6 @@ static call_t syscalls[] = { {"ioctl$KVM_SET_TSS_ADDR", 29}, {"ioctl$KVM_SET_USER_MEMORY_REGION", 29}, {"ioctl$KVM_SET_VAPIC_ADDR", 29}, - {"ioctl$KVM_SET_VCPU_EVENTS", 29}, - {"ioctl$KVM_SET_XCRS", 29}, - {"ioctl$KVM_SET_XSAVE", 29}, {"ioctl$KVM_SIGNAL_MSI", 29}, {"ioctl$KVM_SMI", 29}, {"ioctl$KVM_TPR_ACCESS_REPORTING", 29}, @@ -3616,8 +3517,6 @@ static call_t syscalls[] = { {"ioctl$KVM_UNREGISTER_COALESCED_MMIO", 29}, {"ioctl$KVM_X86_GET_MCE_CAP_SUPPORTED", 29}, {"ioctl$KVM_X86_SETUP_MCE", 29}, - {"ioctl$KVM_X86_SET_MCE", 29}, - {"ioctl$KVM_XEN_HVM_CONFIG", 29}, {"ioctl$LOOP_CHANGE_FD", 29}, {"ioctl$LOOP_CLR_FD", 29}, {"ioctl$LOOP_CTL_ADD", 29}, @@ -3893,8 +3792,6 @@ static call_t syscalls[] = { {"ioctl$sock_netrom_TIOCOUTQ", 29}, {"ioctl$sock_proto_private", 29}, {"ioctl$void", 29}, - {"ioperm", -1}, - {"iopl", -1}, {"ioprio_get$pid", 31}, {"ioprio_get$uid", 31}, {"ioprio_set$pid", 30}, @@ -3924,9 +3821,7 @@ static call_t syscalls[] = { {"keyctl$setperm", 219}, {"keyctl$unlink", 219}, {"keyctl$update", 219}, - {"lchown", -1}, {"lgetxattr", 9}, - {"link", -1}, {"linkat", 37}, {"listen", 201}, {"listen$netrom", 201}, @@ -3936,26 +3831,18 @@ static call_t syscalls[] = { {"lremovexattr", 15}, {"lseek", 62}, {"lsetxattr", 6}, - {"lstat", -1}, {"madvise", 233}, {"mbind", 235}, {"membarrier", 283}, {"memfd_create", 279}, {"migrate_pages", 238}, {"mincore", 232}, - {"mkdir", -1}, {"mkdirat", 34}, - {"mknod", -1}, - {"mknod$loop", -1}, {"mknodat", 33}, {"mlock", 228}, {"mlock2", 284}, {"mlockall", 230}, {"mmap", 222}, - {"modify_ldt$read", -1}, - {"modify_ldt$read_default", -1}, - {"modify_ldt$write", -1}, - {"modify_ldt$write2", -1}, {"mount", 40}, {"move_pages", 239}, {"mprotect", 226}, @@ -3982,8 +3869,6 @@ static call_t syscalls[] = { {"munmap", 215}, {"name_to_handle_at", 264}, {"nanosleep", 101}, - {"open", -1}, - {"open$dir", -1}, {"open_by_handle_at", 265}, {"openat", 56}, {"openat$audio", 56}, @@ -4019,16 +3904,13 @@ static call_t syscalls[] = { {"openat$vhci", 56}, {"openat$xenevtchn", 56}, {"openat$zygote", 56}, - {"pause", -1}, {"perf_event_open", 241}, {"personality", 92}, - {"pipe", -1}, {"pipe2", 59}, {"pivot_root", 41}, {"pkey_alloc", 289}, {"pkey_free", 290}, {"pkey_mprotect", 288}, - {"poll", -1}, {"ppoll", 73}, {"prctl$getname", 167}, {"prctl$getreaper", 167}, @@ -4065,7 +3947,6 @@ static call_t syscalls[] = { {"read", 63}, {"read$eventfd", 63}, {"readahead", 213}, - {"readlink", -1}, {"readlinkat", 78}, {"readv", 65}, {"recvfrom", 207}, @@ -4081,12 +3962,10 @@ static call_t syscalls[] = { {"recvmsg$netrom", 212}, {"remap_file_pages", 234}, {"removexattr", 14}, - {"rename", -1}, {"renameat", 38}, {"renameat2", 276}, {"request_key", 218}, {"restart_syscall", 128}, - {"rmdir", -1}, {"rt_sigaction", 134}, {"rt_sigpending", 136}, {"rt_sigprocmask", 135}, @@ -4106,7 +3985,6 @@ static call_t syscalls[] = { {"sched_setscheduler", 119}, {"sched_yield", 124}, {"seccomp", 277}, - {"select", -1}, {"semctl$GETALL", 191}, {"semctl$GETNCNT", 191}, {"semctl$GETPID", 191}, @@ -4147,7 +4025,6 @@ static call_t syscalls[] = { {"sendto$unix", 206}, {"set_mempolicy", 237}, {"set_robust_list", 99}, - {"set_thread_area", -1}, {"set_tid_address", 96}, {"setfsgid", 152}, {"setfsuid", 151}, @@ -4359,7 +4236,6 @@ static call_t syscalls[] = { {"shmget$private", 194}, {"shutdown", 210}, {"sigaltstack", 132}, - {"signalfd", -1}, {"signalfd4", 74}, {"socket", 198}, {"socket$alg", 198}, @@ -4413,17 +4289,12 @@ static call_t syscalls[] = { {"socketpair$llc", 199}, {"socketpair$unix", 199}, {"splice", 76}, - {"stat", -1}, {"statfs", 43}, {"statx", 291}, - {"symlink", -1}, {"symlinkat", 36}, {"sync", 81}, {"sync_file_range", 84}, {"syncfs", 267}, - {"sysfs$1", -1}, - {"sysfs$2", -1}, - {"sysfs$3", -1}, {"sysinfo", 179}, {"syslog", 116}, {"syz_emit_ethernet", 1000006}, @@ -4530,7 +4401,6 @@ static call_t syscalls[] = { {"syz_test$vma0", 1000001}, {"tee", 77}, {"tgkill", 131}, - {"time", -1}, {"timer_create", 107}, {"timer_delete", 111}, {"timer_getoverrun", 109}, @@ -4544,15 +4414,10 @@ static call_t syscalls[] = { {"truncate", 45}, {"umount2", 39}, {"uname", 160}, - {"unlink", -1}, {"unlinkat", 35}, {"unshare", 97}, - {"uselib", -1}, {"userfaultfd", 282}, - {"ustat", -1}, - {"utime", -1}, {"utimensat", 88}, - {"utimes", -1}, {"vmsplice", 75}, {"wait4", 260}, {"waitid", 95}, @@ -4599,7 +4464,6 @@ static call_t syscalls[] = { {"acct", 9437235}, {"add_key", 9437493}, {"alarm", 9437211}, - {"arch_prctl", -1}, {"bind", 9437466}, {"bind$alg", 9437466}, {"bind$ax25", 9437466}, @@ -4673,7 +4537,6 @@ static call_t syscalls[] = { {"exit", 9437185}, {"exit_group", 9437432}, {"faccessat", 9437518}, - {"fadvise64", -1}, {"fallocate", 9437536}, {"fanotify_init", 9437551}, {"fanotify_mark", 9437552}, @@ -4709,10 +4572,8 @@ static call_t syscalls[] = { {"ftruncate", 9437277}, {"futex", 9437424}, {"futimesat", 9437510}, - {"get_kernel_syms", -1}, {"get_mempolicy", 9437504}, {"get_robust_list", 9437523}, - {"get_thread_area", -1}, {"getcwd", 9437367}, {"getdents", 9437325}, {"getdents64", 9437401}, @@ -5008,13 +4869,6 @@ static call_t syscalls[] = { {"ioctl$GIO_SCRNMAP", 9437238}, {"ioctl$GIO_UNIMAP", 9437238}, {"ioctl$GIO_UNISCRNMAP", 9437238}, - {"ioctl$ION_IOC_ALLOC", 9437238}, - {"ioctl$ION_IOC_CUSTOM", 9437238}, - {"ioctl$ION_IOC_FREE", 9437238}, - {"ioctl$ION_IOC_IMPORT", 9437238}, - {"ioctl$ION_IOC_MAP", 9437238}, - {"ioctl$ION_IOC_SHARE", 9437238}, - {"ioctl$ION_IOC_SYNC", 9437238}, {"ioctl$KDADDIO", 9437238}, {"ioctl$KDDELIO", 9437238}, {"ioctl$KDDISABIO", 9437238}, @@ -5059,30 +4913,18 @@ static call_t syscalls[] = { {"ioctl$KVM_ENABLE_CAP", 9437238}, {"ioctl$KVM_ENABLE_CAP_CPU", 9437238}, {"ioctl$KVM_GET_CLOCK", 9437238}, - {"ioctl$KVM_GET_CPUID2", 9437238}, - {"ioctl$KVM_GET_DEBUGREGS", 9437238}, {"ioctl$KVM_GET_DEVICE_ATTR", 9437238}, {"ioctl$KVM_GET_DIRTY_LOG", 9437238}, - {"ioctl$KVM_GET_EMULATED_CPUID", 9437238}, {"ioctl$KVM_GET_FPU", 9437238}, {"ioctl$KVM_GET_IRQCHIP", 9437238}, - {"ioctl$KVM_GET_LAPIC", 9437238}, {"ioctl$KVM_GET_MP_STATE", 9437238}, - {"ioctl$KVM_GET_MSRS", 9437238}, - {"ioctl$KVM_GET_MSR_INDEX_LIST", 9437238}, {"ioctl$KVM_GET_NR_MMU_PAGES", 9437238}, {"ioctl$KVM_GET_ONE_REG", 9437238}, - {"ioctl$KVM_GET_PIT", 9437238}, - {"ioctl$KVM_GET_PIT2", 9437238}, {"ioctl$KVM_GET_REGS", 9437238}, {"ioctl$KVM_GET_REG_LIST", 9437238}, {"ioctl$KVM_GET_SREGS", 9437238}, - {"ioctl$KVM_GET_SUPPORTED_CPUID", 9437238}, {"ioctl$KVM_GET_TSC_KHZ", 9437238}, - {"ioctl$KVM_GET_VCPU_EVENTS", 9437238}, {"ioctl$KVM_GET_VCPU_MMAP_SIZE", 9437238}, - {"ioctl$KVM_GET_XCRS", 9437238}, - {"ioctl$KVM_GET_XSAVE", 9437238}, {"ioctl$KVM_HAS_DEVICE_ATTR", 9437238}, {"ioctl$KVM_INTERRUPT", 9437238}, {"ioctl$KVM_IOEVENTFD", 9437238}, @@ -5104,22 +4946,15 @@ static call_t syscalls[] = { {"ioctl$KVM_S390_VCPU_FAULT", 9437238}, {"ioctl$KVM_SET_BOOT_CPU_ID", 9437238}, {"ioctl$KVM_SET_CLOCK", 9437238}, - {"ioctl$KVM_SET_CPUID", 9437238}, - {"ioctl$KVM_SET_CPUID2", 9437238}, - {"ioctl$KVM_SET_DEBUGREGS", 9437238}, {"ioctl$KVM_SET_DEVICE_ATTR", 9437238}, {"ioctl$KVM_SET_FPU", 9437238}, {"ioctl$KVM_SET_GSI_ROUTING", 9437238}, {"ioctl$KVM_SET_GUEST_DEBUG", 9437238}, {"ioctl$KVM_SET_IDENTITY_MAP_ADDR", 9437238}, {"ioctl$KVM_SET_IRQCHIP", 9437238}, - {"ioctl$KVM_SET_LAPIC", 9437238}, {"ioctl$KVM_SET_MP_STATE", 9437238}, - {"ioctl$KVM_SET_MSRS", 9437238}, {"ioctl$KVM_SET_NR_MMU_PAGES", 9437238}, {"ioctl$KVM_SET_ONE_REG", 9437238}, - {"ioctl$KVM_SET_PIT", 9437238}, - {"ioctl$KVM_SET_PIT2", 9437238}, {"ioctl$KVM_SET_REGS", 9437238}, {"ioctl$KVM_SET_SIGNAL_MASK", 9437238}, {"ioctl$KVM_SET_SREGS", 9437238}, @@ -5127,9 +4962,6 @@ static call_t syscalls[] = { {"ioctl$KVM_SET_TSS_ADDR", 9437238}, {"ioctl$KVM_SET_USER_MEMORY_REGION", 9437238}, {"ioctl$KVM_SET_VAPIC_ADDR", 9437238}, - {"ioctl$KVM_SET_VCPU_EVENTS", 9437238}, - {"ioctl$KVM_SET_XCRS", 9437238}, - {"ioctl$KVM_SET_XSAVE", 9437238}, {"ioctl$KVM_SIGNAL_MSI", 9437238}, {"ioctl$KVM_SMI", 9437238}, {"ioctl$KVM_TPR_ACCESS_REPORTING", 9437238}, @@ -5137,8 +4969,6 @@ static call_t syscalls[] = { {"ioctl$KVM_UNREGISTER_COALESCED_MMIO", 9437238}, {"ioctl$KVM_X86_GET_MCE_CAP_SUPPORTED", 9437238}, {"ioctl$KVM_X86_SETUP_MCE", 9437238}, - {"ioctl$KVM_X86_SET_MCE", 9437238}, - {"ioctl$KVM_XEN_HVM_CONFIG", 9437238}, {"ioctl$LOOP_CHANGE_FD", 9437238}, {"ioctl$LOOP_CLR_FD", 9437238}, {"ioctl$LOOP_CTL_ADD", 9437238}, @@ -5256,10 +5086,6 @@ static call_t syscalls[] = { {"ioctl$TCSETSF", 9437238}, {"ioctl$TCSETSW", 9437238}, {"ioctl$TCXONC", 9437238}, - {"ioctl$TE_IOCTL_CLOSE_CLIENT_SESSION", 9437238}, - {"ioctl$TE_IOCTL_LAUNCH_OPERATION", 9437238}, - {"ioctl$TE_IOCTL_OPEN_CLIENT_SESSION", 9437238}, - {"ioctl$TE_IOCTL_SS_CMD", 9437238}, {"ioctl$TIOCCBRK", 9437238}, {"ioctl$TIOCCONS", 9437238}, {"ioctl$TIOCEXCL", 9437238}, @@ -5414,8 +5240,6 @@ static call_t syscalls[] = { {"ioctl$sock_netrom_TIOCOUTQ", 9437238}, {"ioctl$sock_proto_private", 9437238}, {"ioctl$void", 9437238}, - {"ioperm", -1}, - {"iopl", -1}, {"ioprio_get$pid", 9437499}, {"ioprio_get$uid", 9437499}, {"ioprio_set$pid", 9437498}, @@ -5462,7 +5286,6 @@ static call_t syscalls[] = { {"mbind", 9437503}, {"membarrier", 9437573}, {"memfd_create", 9437569}, - {"migrate_pages", -1}, {"mincore", 9437403}, {"mkdir", 9437223}, {"mkdirat", 9437507}, @@ -5473,10 +5296,6 @@ static call_t syscalls[] = { {"mlock2", 9437574}, {"mlockall", 9437336}, {"mmap", 9437274}, - {"modify_ldt$read", -1}, - {"modify_ldt$read_default", -1}, - {"modify_ldt$write", -1}, - {"modify_ldt$write2", -1}, {"mount", 9437205}, {"move_pages", 9437528}, {"mprotect", 9437309}, @@ -5668,7 +5487,6 @@ static call_t syscalls[] = { {"sendto$unix", 9437474}, {"set_mempolicy", 9437505}, {"set_robust_list", 9437522}, - {"set_thread_area", -1}, {"set_tid_address", 9437440}, {"setfsgid", 9437323}, {"setfsuid", 9437322}, @@ -5940,7 +5758,6 @@ static call_t syscalls[] = { {"symlink", 9437267}, {"symlinkat", 9437515}, {"sync", 9437220}, - {"sync_file_range", -1}, {"syncfs", 9437557}, {"sysfs$1", 9437319}, {"sysfs$2", 9437319}, @@ -6120,7 +5937,6 @@ static call_t syscalls[] = { {"acct", 51}, {"add_key", 269}, {"alarm", 27}, - {"arch_prctl", -1}, {"bind", 327}, {"bind$alg", 327}, {"bind$ax25", 327}, @@ -6233,7 +6049,6 @@ static call_t syscalls[] = { {"get_kernel_syms", 130}, {"get_mempolicy", 260}, {"get_robust_list", 299}, - {"get_thread_area", -1}, {"getcwd", 182}, {"getdents", 141}, {"getdents64", 202}, @@ -6529,13 +6344,6 @@ static call_t syscalls[] = { {"ioctl$GIO_SCRNMAP", 54}, {"ioctl$GIO_UNIMAP", 54}, {"ioctl$GIO_UNISCRNMAP", 54}, - {"ioctl$ION_IOC_ALLOC", 54}, - {"ioctl$ION_IOC_CUSTOM", 54}, - {"ioctl$ION_IOC_FREE", 54}, - {"ioctl$ION_IOC_IMPORT", 54}, - {"ioctl$ION_IOC_MAP", 54}, - {"ioctl$ION_IOC_SHARE", 54}, - {"ioctl$ION_IOC_SYNC", 54}, {"ioctl$KDADDIO", 54}, {"ioctl$KDDELIO", 54}, {"ioctl$KDDISABIO", 54}, @@ -6561,7 +6369,6 @@ static call_t syscalls[] = { {"ioctl$KDSKBSENT", 54}, {"ioctl$KIOCSOUND", 54}, {"ioctl$KVM_ARM_SET_DEVICE_ADDR", 54}, - {"ioctl$KVM_ARM_VCPU_INIT", 54}, {"ioctl$KVM_ASSIGN_DEV_IRQ", 54}, {"ioctl$KVM_ASSIGN_PCI_DEVICE", 54}, {"ioctl$KVM_ASSIGN_SET_INTX_MASK", 54}, @@ -6580,30 +6387,18 @@ static call_t syscalls[] = { {"ioctl$KVM_ENABLE_CAP", 54}, {"ioctl$KVM_ENABLE_CAP_CPU", 54}, {"ioctl$KVM_GET_CLOCK", 54}, - {"ioctl$KVM_GET_CPUID2", 54}, - {"ioctl$KVM_GET_DEBUGREGS", 54}, {"ioctl$KVM_GET_DEVICE_ATTR", 54}, {"ioctl$KVM_GET_DIRTY_LOG", 54}, - {"ioctl$KVM_GET_EMULATED_CPUID", 54}, {"ioctl$KVM_GET_FPU", 54}, {"ioctl$KVM_GET_IRQCHIP", 54}, - {"ioctl$KVM_GET_LAPIC", 54}, {"ioctl$KVM_GET_MP_STATE", 54}, - {"ioctl$KVM_GET_MSRS", 54}, - {"ioctl$KVM_GET_MSR_INDEX_LIST", 54}, {"ioctl$KVM_GET_NR_MMU_PAGES", 54}, {"ioctl$KVM_GET_ONE_REG", 54}, - {"ioctl$KVM_GET_PIT", 54}, - {"ioctl$KVM_GET_PIT2", 54}, {"ioctl$KVM_GET_REGS", 54}, {"ioctl$KVM_GET_REG_LIST", 54}, {"ioctl$KVM_GET_SREGS", 54}, - {"ioctl$KVM_GET_SUPPORTED_CPUID", 54}, {"ioctl$KVM_GET_TSC_KHZ", 54}, - {"ioctl$KVM_GET_VCPU_EVENTS", 54}, {"ioctl$KVM_GET_VCPU_MMAP_SIZE", 54}, - {"ioctl$KVM_GET_XCRS", 54}, - {"ioctl$KVM_GET_XSAVE", 54}, {"ioctl$KVM_HAS_DEVICE_ATTR", 54}, {"ioctl$KVM_INTERRUPT", 54}, {"ioctl$KVM_IOEVENTFD", 54}, @@ -6625,22 +6420,15 @@ static call_t syscalls[] = { {"ioctl$KVM_S390_VCPU_FAULT", 54}, {"ioctl$KVM_SET_BOOT_CPU_ID", 54}, {"ioctl$KVM_SET_CLOCK", 54}, - {"ioctl$KVM_SET_CPUID", 54}, - {"ioctl$KVM_SET_CPUID2", 54}, - {"ioctl$KVM_SET_DEBUGREGS", 54}, {"ioctl$KVM_SET_DEVICE_ATTR", 54}, {"ioctl$KVM_SET_FPU", 54}, {"ioctl$KVM_SET_GSI_ROUTING", 54}, {"ioctl$KVM_SET_GUEST_DEBUG", 54}, {"ioctl$KVM_SET_IDENTITY_MAP_ADDR", 54}, {"ioctl$KVM_SET_IRQCHIP", 54}, - {"ioctl$KVM_SET_LAPIC", 54}, {"ioctl$KVM_SET_MP_STATE", 54}, - {"ioctl$KVM_SET_MSRS", 54}, {"ioctl$KVM_SET_NR_MMU_PAGES", 54}, {"ioctl$KVM_SET_ONE_REG", 54}, - {"ioctl$KVM_SET_PIT", 54}, - {"ioctl$KVM_SET_PIT2", 54}, {"ioctl$KVM_SET_REGS", 54}, {"ioctl$KVM_SET_SIGNAL_MASK", 54}, {"ioctl$KVM_SET_SREGS", 54}, @@ -6648,9 +6436,6 @@ static call_t syscalls[] = { {"ioctl$KVM_SET_TSS_ADDR", 54}, {"ioctl$KVM_SET_USER_MEMORY_REGION", 54}, {"ioctl$KVM_SET_VAPIC_ADDR", 54}, - {"ioctl$KVM_SET_VCPU_EVENTS", 54}, - {"ioctl$KVM_SET_XCRS", 54}, - {"ioctl$KVM_SET_XSAVE", 54}, {"ioctl$KVM_SIGNAL_MSI", 54}, {"ioctl$KVM_SMI", 54}, {"ioctl$KVM_TPR_ACCESS_REPORTING", 54}, @@ -6658,8 +6443,6 @@ static call_t syscalls[] = { {"ioctl$KVM_UNREGISTER_COALESCED_MMIO", 54}, {"ioctl$KVM_X86_GET_MCE_CAP_SUPPORTED", 54}, {"ioctl$KVM_X86_SETUP_MCE", 54}, - {"ioctl$KVM_X86_SET_MCE", 54}, - {"ioctl$KVM_XEN_HVM_CONFIG", 54}, {"ioctl$LOOP_CHANGE_FD", 54}, {"ioctl$LOOP_CLR_FD", 54}, {"ioctl$LOOP_CTL_ADD", 54}, @@ -6766,21 +6549,9 @@ static call_t syscalls[] = { {"ioctl$SNDRV_TIMER_IOCTL_STOP", 54}, {"ioctl$SNDRV_TIMER_IOCTL_TREAD", 54}, {"ioctl$TCFLSH", 54}, - {"ioctl$TCGETA", 54}, - {"ioctl$TCGETS", 54}, {"ioctl$TCSBRK", 54}, {"ioctl$TCSBRKP", 54}, - {"ioctl$TCSETA", 54}, - {"ioctl$TCSETAF", 54}, - {"ioctl$TCSETAW", 54}, - {"ioctl$TCSETS", 54}, - {"ioctl$TCSETSF", 54}, - {"ioctl$TCSETSW", 54}, {"ioctl$TCXONC", 54}, - {"ioctl$TE_IOCTL_CLOSE_CLIENT_SESSION", 54}, - {"ioctl$TE_IOCTL_LAUNCH_OPERATION", 54}, - {"ioctl$TE_IOCTL_OPEN_CLIENT_SESSION", 54}, - {"ioctl$TE_IOCTL_SS_CMD", 54}, {"ioctl$TIOCCBRK", 54}, {"ioctl$TIOCCONS", 54}, {"ioctl$TIOCEXCL", 54}, @@ -6789,7 +6560,6 @@ static call_t syscalls[] = { {"ioctl$TIOCGPGRP", 54}, {"ioctl$TIOCGSID", 54}, {"ioctl$TIOCGSOFTCAR", 54}, - {"ioctl$TIOCGWINSZ", 54}, {"ioctl$TIOCLINUX2", 54}, {"ioctl$TIOCLINUX3", 54}, {"ioctl$TIOCLINUX4", 54}, @@ -6811,7 +6581,6 @@ static call_t syscalls[] = { {"ioctl$TIOCSPGRP", 54}, {"ioctl$TIOCSSOFTCAR", 54}, {"ioctl$TIOCSTI", 54}, - {"ioctl$TIOCSWINSZ", 54}, {"ioctl$TIOCTTYGSTRUCT", 54}, {"ioctl$TTUNGETFILTER", 54}, {"ioctl$TUNATTACHFILTER", 54}, @@ -7008,16 +6777,6 @@ static call_t syscalls[] = { {"mq_timedsend", 264}, {"mq_unlink", 263}, {"mremap", 163}, - {"msgctl$IPC_INFO", -1}, - {"msgctl$IPC_RMID", -1}, - {"msgctl$IPC_SET", -1}, - {"msgctl$IPC_STAT", -1}, - {"msgctl$MSG_INFO", -1}, - {"msgctl$MSG_STAT", -1}, - {"msgget", -1}, - {"msgget$private", -1}, - {"msgrcv", -1}, - {"msgsnd", -1}, {"msync", 144}, {"munlock", 151}, {"munlockall", 153}, @@ -7067,9 +6826,6 @@ static call_t syscalls[] = { {"pipe", 42}, {"pipe2", 317}, {"pivot_root", 203}, - {"pkey_alloc", -1}, - {"pkey_free", -1}, - {"pkey_mprotect", -1}, {"poll", 167}, {"ppoll", 281}, {"prctl$getname", 171}, @@ -7149,23 +6905,6 @@ static call_t syscalls[] = { {"sched_yield", 158}, {"seccomp", 358}, {"select", 82}, - {"semctl$GETALL", -1}, - {"semctl$GETNCNT", -1}, - {"semctl$GETPID", -1}, - {"semctl$GETVAL", -1}, - {"semctl$GETZCNT", -1}, - {"semctl$IPC_INFO", -1}, - {"semctl$IPC_RMID", -1}, - {"semctl$IPC_SET", -1}, - {"semctl$IPC_STAT", -1}, - {"semctl$SEM_INFO", -1}, - {"semctl$SEM_STAT", -1}, - {"semctl$SETALL", -1}, - {"semctl$SETVAL", -1}, - {"semget", -1}, - {"semget$private", -1}, - {"semop", -1}, - {"semtimedop", -1}, {"sendfile", 186}, {"sendmmsg", 349}, {"sendmmsg$alg", 349}, @@ -7189,7 +6928,6 @@ static call_t syscalls[] = { {"sendto$unix", 335}, {"set_mempolicy", 261}, {"set_robust_list", 300}, - {"set_thread_area", -1}, {"set_tid_address", 232}, {"setfsgid", 139}, {"setfsuid", 138}, @@ -7387,18 +7125,6 @@ static call_t syscalls[] = { {"setsockopt$sock_void", 339}, {"setuid", 23}, {"setxattr", 209}, - {"shmat", -1}, - {"shmctl$IPC_INFO", -1}, - {"shmctl$IPC_RMID", -1}, - {"shmctl$IPC_SET", -1}, - {"shmctl$IPC_STAT", -1}, - {"shmctl$SHM_INFO", -1}, - {"shmctl$SHM_LOCK", -1}, - {"shmctl$SHM_STAT", -1}, - {"shmctl$SHM_UNLOCK", -1}, - {"shmdt", -1}, - {"shmget", -1}, - {"shmget$private", -1}, {"shutdown", 338}, {"sigaltstack", 185}, {"signalfd", 305}, @@ -7461,7 +7187,6 @@ static call_t syscalls[] = { {"symlink", 83}, {"symlinkat", 295}, {"sync", 36}, - {"sync_file_range", -1}, {"syncfs", 348}, {"sysfs$1", 135}, {"sysfs$2", 135}, diff --git a/pkg/ast/ast.go b/pkg/ast/ast.go index e2ddc0224..b283ca5f8 100644 --- a/pkg/ast/ast.go +++ b/pkg/ast/ast.go @@ -12,6 +12,14 @@ type Pos struct { Col int // column number, starting at 1 (byte count) } +// Description contains top-level nodes of a parsed sys description. +type Description struct { + Nodes []Node +} + +// Node is AST node interface. +type Node interface{} + // Top-level AST nodes: type NewLine struct { @@ -50,6 +58,7 @@ type Call struct { Pos Pos Name *Ident CallName string + NR uint64 Args []*Field Ret *Type } @@ -104,6 +113,8 @@ type Type struct { Ident string String string // Part after COLON (for ranges and bitfields). + HasColon bool + Pos2 Pos Value2 uint64 Value2Hex bool Ident2 string diff --git a/pkg/ast/clone.go b/pkg/ast/clone.go new file mode 100644 index 000000000..5c2d773f7 --- /dev/null +++ b/pkg/ast/clone.go @@ -0,0 +1,196 @@ +// Copyright 2017 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +package ast + +import ( + "fmt" +) + +func Clone(desc *Description) *Description { + desc1 := &Description{} + for _, n := range desc.Nodes { + c, ok := n.(cloner) + if !ok { + panic(fmt.Sprintf("unknown top level decl: %#v", n)) + } + desc1.Nodes = append(desc1.Nodes, c.clone()) + } + return desc1 +} + +type cloner interface { + clone() Node +} + +func (n *NewLine) clone() Node { + return &NewLine{ + Pos: n.Pos, + } +} + +func (n *Comment) clone() Node { + return &Comment{ + Pos: n.Pos, + Text: n.Text, + } +} + +func (n *Include) clone() Node { + return &Include{ + Pos: n.Pos, + File: n.File.clone(), + } +} + +func (n *Incdir) clone() Node { + return &Incdir{ + Pos: n.Pos, + Dir: n.Dir.clone(), + } +} + +func (n *Define) clone() Node { + return &Define{ + Pos: n.Pos, + Name: n.Name.clone(), + Value: n.Value.clone(), + } +} + +func (n *Resource) clone() Node { + var values []*Int + for _, v := range n.Values { + values = append(values, v.clone()) + } + return &Resource{ + Pos: n.Pos, + Name: n.Name.clone(), + Base: n.Base.clone(), + Values: values, + } +} + +func (n *Call) clone() Node { + var args []*Field + for _, a := range n.Args { + args = append(args, a.clone()) + } + var ret *Type + if n.Ret != nil { + ret = n.Ret.clone() + } + return &Call{ + Pos: n.Pos, + Name: n.Name.clone(), + CallName: n.CallName, + NR: n.NR, + Args: args, + Ret: ret, + } +} + +func (n *Struct) clone() Node { + var fields []*Field + for _, f := range n.Fields { + fields = append(fields, f.clone()) + } + var attrs []*Ident + for _, a := range n.Attrs { + attrs = append(attrs, a.clone()) + } + var comments []*Comment + for _, c := range n.Comments { + comments = append(comments, c.clone().(*Comment)) + } + return &Struct{ + Pos: n.Pos, + Name: n.Name.clone(), + Fields: fields, + Attrs: attrs, + Comments: comments, + IsUnion: n.IsUnion, + } +} + +func (n *IntFlags) clone() Node { + var values []*Int + for _, v := range n.Values { + values = append(values, v.clone()) + } + return &IntFlags{ + Pos: n.Pos, + Name: n.Name.clone(), + Values: values, + } +} + +func (n *StrFlags) clone() Node { + var values []*String + for _, v := range n.Values { + values = append(values, v.clone()) + } + return &StrFlags{ + Pos: n.Pos, + Name: n.Name.clone(), + Values: values, + } +} + +func (n *Ident) clone() *Ident { + return &Ident{ + Pos: n.Pos, + Name: n.Name, + } +} + +func (n *String) clone() *String { + return &String{ + Pos: n.Pos, + Value: n.Value, + } +} + +func (n *Int) clone() *Int { + return &Int{ + Pos: n.Pos, + Value: n.Value, + ValueHex: n.ValueHex, + Ident: n.Ident, + CExpr: n.CExpr, + } +} + +func (n *Type) clone() *Type { + var args []*Type + for _, a := range n.Args { + args = append(args, a.clone()) + } + return &Type{ + Pos: n.Pos, + Value: n.Value, + ValueHex: n.ValueHex, + Ident: n.Ident, + String: n.String, + HasColon: n.HasColon, + Pos2: n.Pos2, + Value2: n.Value2, + Value2Hex: n.Value2Hex, + Ident2: n.Ident2, + Args: args, + } +} + +func (n *Field) clone() *Field { + var comments []*Comment + for _, c := range n.Comments { + comments = append(comments, c.clone().(*Comment)) + } + return &Field{ + Pos: n.Pos, + Name: n.Name.clone(), + Type: n.Type.clone(), + NewBlock: n.NewBlock, + Comments: comments, + } +} diff --git a/pkg/ast/format.go b/pkg/ast/format.go index 0eb9aa957..e7e21dcdd 100644 --- a/pkg/ast/format.go +++ b/pkg/ast/format.go @@ -9,47 +9,47 @@ import ( "io" ) -func Format(top []interface{}) []byte { +func Format(desc *Description) []byte { buf := new(bytes.Buffer) - FormatWriter(buf, top) + FormatWriter(buf, desc) return buf.Bytes() } -func FormatWriter(w io.Writer, top []interface{}) { - for _, decl := range top { - s, ok := decl.(serializer) +func FormatWriter(w io.Writer, desc *Description) { + for _, n := range desc.Nodes { + s, ok := n.(serializer) if !ok { - panic(fmt.Sprintf("unknown top level decl: %#v", decl)) + panic(fmt.Sprintf("unknown top level decl: %#v", n)) } - s.Serialize(w) + s.serialize(w) } } type serializer interface { - Serialize(w io.Writer) + serialize(w io.Writer) } -func (incl *NewLine) Serialize(w io.Writer) { +func (nl *NewLine) serialize(w io.Writer) { fmt.Fprintf(w, "\n") } -func (com *Comment) Serialize(w io.Writer) { +func (com *Comment) serialize(w io.Writer) { fmt.Fprintf(w, "#%v\n", com.Text) } -func (incl *Include) Serialize(w io.Writer) { +func (incl *Include) serialize(w io.Writer) { fmt.Fprintf(w, "include <%v>\n", incl.File.Value) } -func (inc *Incdir) Serialize(w io.Writer) { +func (inc *Incdir) serialize(w io.Writer) { fmt.Fprintf(w, "incdir <%v>\n", inc.Dir.Value) } -func (def *Define) Serialize(w io.Writer) { +func (def *Define) serialize(w io.Writer) { fmt.Fprintf(w, "define %v\t%v\n", def.Name.Name, fmtInt(def.Value)) } -func (res *Resource) Serialize(w io.Writer) { +func (res *Resource) serialize(w io.Writer) { fmt.Fprintf(w, "resource %v[%v]", res.Name.Name, res.Base.Name) for i, v := range res.Values { if i == 0 { @@ -62,7 +62,7 @@ func (res *Resource) Serialize(w io.Writer) { fmt.Fprintf(w, "\n") } -func (c *Call) Serialize(w io.Writer) { +func (c *Call) serialize(w io.Writer) { fmt.Fprintf(w, "%v(", c.Name.Name) for i, a := range c.Args { if i != 0 { @@ -77,7 +77,7 @@ func (c *Call) Serialize(w io.Writer) { fmt.Fprintf(w, "\n") } -func (str *Struct) Serialize(w io.Writer) { +func (str *Struct) serialize(w io.Writer) { opening, closing := '{', '}' if str.IsUnion { opening, closing = '[', ']' @@ -119,7 +119,7 @@ func (str *Struct) Serialize(w io.Writer) { fmt.Fprintf(w, "\n") } -func (flags *IntFlags) Serialize(w io.Writer) { +func (flags *IntFlags) serialize(w io.Writer) { fmt.Fprintf(w, "%v = ", flags.Name.Name) for i, v := range flags.Values { if i != 0 { @@ -130,7 +130,7 @@ func (flags *IntFlags) Serialize(w io.Writer) { fmt.Fprintf(w, "\n") } -func (flags *StrFlags) Serialize(w io.Writer) { +func (flags *StrFlags) serialize(w io.Writer) { fmt.Fprintf(w, "%v = ", flags.Name.Name) for i, v := range flags.Values { if i != 0 { @@ -155,11 +155,13 @@ func fmtType(t *Type) string { default: v = fmtIntValue(t.Value, t.ValueHex) } - switch { - case t.Ident2 != "": - v += fmt.Sprintf(":%v", t.Ident2) - case t.Value2 != 0: - v += fmt.Sprintf(":%v", fmtIntValue(t.Value2, t.Value2Hex)) + if t.HasColon { + switch { + case t.Ident2 != "": + v += fmt.Sprintf(":%v", t.Ident2) + default: + v += fmt.Sprintf(":%v", fmtIntValue(t.Value2, t.Value2Hex)) + } } v += fmtTypeList(t.Args) return v diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go index fc05378b2..ca2505e19 100644 --- a/pkg/ast/parser.go +++ b/pkg/ast/parser.go @@ -13,9 +13,11 @@ import ( ) // Parse parses sys description into AST and returns top-level nodes. -func Parse(data []byte, filename string, errorHandler func(pos Pos, msg string)) (top []interface{}, ok bool) { +// If any errors are encountered, returns nil. +func Parse(data []byte, filename string, errorHandler ErrorHandler) *Description { p := &parser{s: newScanner(data, filename, errorHandler)} prevNewLine, prevComment := false, false + var top []Node for p.next(); p.tok != tokEOF; { decl := p.parseTopRecover() if decl == nil { @@ -39,37 +41,41 @@ func Parse(data []byte, filename string, errorHandler func(pos Pos, msg string)) if prevNewLine { top = top[:len(top)-1] } - ok = p.s.Ok() - return + if !p.s.Ok() { + return nil + } + return &Description{top} } -func ParseGlob(glob string, errorHandler func(pos Pos, msg string)) (top []interface{}, ok bool) { +func ParseGlob(glob string, errorHandler ErrorHandler) *Description { if errorHandler == nil { - errorHandler = loggingHandler + errorHandler = LoggingHandler } files, err := filepath.Glob(glob) if err != nil { errorHandler(Pos{}, fmt.Sprintf("failed to find input files: %v", err)) - return nil, false + return nil } if len(files) == 0 { errorHandler(Pos{}, fmt.Sprintf("no files matched by glob %q", glob)) - return nil, false + return nil } - ok = true + desc := &Description{} for _, f := range files { data, err := ioutil.ReadFile(f) if err != nil { errorHandler(Pos{}, fmt.Sprintf("failed to read input file: %v", err)) - return nil, false + return nil + } + desc1 := Parse(data, filepath.Base(f), errorHandler) + if desc1 == nil { + desc = nil } - top1, ok1 := Parse(data, filepath.Base(f), errorHandler) - if !ok1 { - ok = false + if desc != nil { + desc.Nodes = append(desc.Nodes, desc1.Nodes...) } - top = append(top, top1...) } - return + return desc } type parser struct { @@ -84,7 +90,7 @@ type parser struct { // Skip parsing till the next NEWLINE, for error recovery. var skipLine = errors.New("") -func (p *parser) parseTopRecover() interface{} { +func (p *parser) parseTopRecover() Node { defer func() { switch err := recover(); err { case nil: @@ -106,7 +112,7 @@ func (p *parser) parseTopRecover() interface{} { return decl } -func (p *parser) parseTop() interface{} { +func (p *parser) parseTop() Node { switch p.tok { case tokNewLine: return &NewLine{Pos: p.pos} @@ -266,7 +272,7 @@ func callName(s string) string { return s[:pos] } -func (p *parser) parseFlags(name *Ident) interface{} { +func (p *parser) parseFlags(name *Ident) Node { p.consume(tokEq) switch p.tok { case tokInt, tokIdent: @@ -379,6 +385,8 @@ func (p *parser) parseType() *Type { } p.next() if allowColon && p.tryConsume(tokColon) { + arg.HasColon = true + arg.Pos2 = p.pos switch p.tok { case tokInt: arg.Value2, arg.Value2Hex = p.parseIntValue() diff --git a/pkg/ast/parser_test.go b/pkg/ast/parser_test.go index 43587d7a3..809a0beaf 100644 --- a/pkg/ast/parser_test.go +++ b/pkg/ast/parser_test.go @@ -30,23 +30,31 @@ func TestParseAll(t *testing.T) { errorHandler := func(pos Pos, msg string) { t.Fatalf("%v:%v:%v: %v", pos.File, pos.Line, pos.Col, msg) } - top, ok := Parse(data, file.Name(), errorHandler) - if !ok { + desc := Parse(data, file.Name(), errorHandler) + if desc == nil { t.Fatalf("parsing failed, but no error produced") } - data2 := Format(top) - top2, ok2 := Parse(data2, file.Name(), errorHandler) - if !ok2 { + data2 := Format(desc) + desc2 := Parse(data2, file.Name(), errorHandler) + if desc2 == nil { t.Fatalf("parsing failed, but no error produced") } - if len(top) != len(top2) { - t.Fatalf("formatting number of top level decls: %v/%v", len(top), len(top2)) + if len(desc.Nodes) != len(desc2.Nodes) { + t.Fatalf("formatting number of top level decls: %v/%v", + len(desc.Nodes), len(desc2.Nodes)) } - // While sys files are not formatted, formatting in fact changes it. - for i := range top { - if !reflect.DeepEqual(top[i], top2[i]) { - t.Fatalf("formatting changed code:\n%#v\nvs:\n%#v", top[i], top2[i]) + for i := range desc.Nodes { + n1, n2 := desc.Nodes[i], desc2.Nodes[i] + if n1 == nil { + t.Fatalf("got nil node") } + if !reflect.DeepEqual(n1, n2) { + t.Fatalf("formatting changed code:\n%#v\nvs:\n%#v", n1, n2) + } + } + data3 := Format(Clone(desc)) + if !bytes.Equal(data, data3) { + t.Fatalf("Clone lost data") } } } @@ -57,8 +65,7 @@ func TestParse(t *testing.T) { errorHandler := func(pos Pos, msg string) { t.Logf("%v:%v:%v: %v", pos.File, pos.Line, pos.Col, msg) } - toplev, ok := Parse([]byte(test.input), "foo", errorHandler) - _, _ = toplev, ok + Parse([]byte(test.input), "foo", errorHandler) }) } } @@ -134,17 +141,17 @@ func TestErrors(t *testing.T) { t.Fatalf("failed to scan input file: %v", err) } var got []*Error - top, ok := Parse(stripped, "test", func(pos Pos, msg string) { + desc := Parse(stripped, "test", func(pos Pos, msg string) { got = append(got, &Error{ Line: pos.Line, Col: pos.Col, Text: msg, }) }) - if ok && len(got) != 0 { + if desc != nil && len(got) != 0 { t.Fatalf("parsing succeed, but got errors: %v", got) } - if !ok && len(got) == 0 { + if desc == nil && len(got) == 0 { t.Fatalf("parsing failed, but got no errors") } nextErr: @@ -171,8 +178,6 @@ func TestErrors(t *testing.T) { } t.Errorf("not matched error: %v: %v", wantErr.Line, wantErr.Text) } - // Just to get more code coverage: - Format(top) }) } } diff --git a/pkg/ast/scanner.go b/pkg/ast/scanner.go index 372d2df3e..387a58529 100644 --- a/pkg/ast/scanner.go +++ b/pkg/ast/scanner.go @@ -88,7 +88,7 @@ func (tok token) String() string { type scanner struct { data []byte filename string - errorHandler func(pos Pos, msg string) + errorHandler ErrorHandler ch byte off int @@ -101,9 +101,9 @@ type scanner struct { errors int } -func newScanner(data []byte, filename string, errorHandler func(pos Pos, msg string)) *scanner { +func newScanner(data []byte, filename string, errorHandler ErrorHandler) *scanner { if errorHandler == nil { - errorHandler = loggingHandler + errorHandler = LoggingHandler } s := &scanner{ data: data, @@ -115,7 +115,9 @@ func newScanner(data []byte, filename string, errorHandler func(pos Pos, msg str return s } -func loggingHandler(pos Pos, msg string) { +type ErrorHandler func(pos Pos, msg string) + +func LoggingHandler(pos Pos, msg string) { fmt.Fprintf(os.Stderr, "%v:%v:%v: %v\n", pos.File, pos.Line, pos.Col, msg) } diff --git a/pkg/ast/walk.go b/pkg/ast/walk.go index f4daeaccd..90a92cf77 100644 --- a/pkg/ast/walk.go +++ b/pkg/ast/walk.go @@ -8,13 +8,13 @@ import ( ) // Walk calls callback cb for every node in AST. -func Walk(top []interface{}, cb func(n interface{})) { - for _, decl := range top { - walkNode(decl, cb) +func Walk(desc *Description, cb func(n Node)) { + for _, n := range desc.Nodes { + WalkNode(n, cb) } } -func walkNode(n0 interface{}, cb func(n interface{})) { +func WalkNode(n0 Node, cb func(n Node)) { switch n := n0.(type) { case *NewLine: cb(n) @@ -22,53 +22,53 @@ func walkNode(n0 interface{}, cb func(n interface{})) { cb(n) case *Include: cb(n) - walkNode(n.File, cb) + WalkNode(n.File, cb) case *Incdir: cb(n) - walkNode(n.Dir, cb) + WalkNode(n.Dir, cb) case *Define: cb(n) - walkNode(n.Name, cb) - walkNode(n.Value, cb) + WalkNode(n.Name, cb) + WalkNode(n.Value, cb) case *Resource: cb(n) - walkNode(n.Name, cb) - walkNode(n.Base, cb) + WalkNode(n.Name, cb) + WalkNode(n.Base, cb) for _, v := range n.Values { - walkNode(v, cb) + WalkNode(v, cb) } case *Call: cb(n) - walkNode(n.Name, cb) + WalkNode(n.Name, cb) for _, f := range n.Args { - walkNode(f, cb) + WalkNode(f, cb) } if n.Ret != nil { - walkNode(n.Ret, cb) + WalkNode(n.Ret, cb) } case *Struct: cb(n) - walkNode(n.Name, cb) + WalkNode(n.Name, cb) for _, f := range n.Fields { - walkNode(f, cb) + WalkNode(f, cb) } for _, a := range n.Attrs { - walkNode(a, cb) + WalkNode(a, cb) } for _, c := range n.Comments { - walkNode(c, cb) + WalkNode(c, cb) } case *IntFlags: cb(n) - walkNode(n.Name, cb) + WalkNode(n.Name, cb) for _, v := range n.Values { - walkNode(v, cb) + WalkNode(v, cb) } case *StrFlags: cb(n) - walkNode(n.Name, cb) + WalkNode(n.Name, cb) for _, v := range n.Values { - walkNode(v, cb) + WalkNode(v, cb) } case *Ident: cb(n) @@ -79,14 +79,14 @@ func walkNode(n0 interface{}, cb func(n interface{})) { case *Type: cb(n) for _, t := range n.Args { - walkNode(t, cb) + WalkNode(t, cb) } case *Field: cb(n) - walkNode(n.Name, cb) - walkNode(n.Type, cb) + WalkNode(n.Name, cb) + WalkNode(n.Type, cb) for _, c := range n.Comments { - walkNode(c, cb) + WalkNode(c, cb) } default: panic(fmt.Sprintf("unknown AST node: %#v", n)) diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go index 7892661fa..593d9e82c 100644 --- a/pkg/compiler/compiler.go +++ b/pkg/compiler/compiler.go @@ -9,14 +9,134 @@ import ( "strings" "github.com/google/syzkaller/pkg/ast" + "github.com/google/syzkaller/sys" ) +// Prog is description compilation result. +type Prog struct { + // Processed AST (temporal measure, remove later). + Desc *ast.Description + Resources []*sys.ResourceDesc + // Set of unsupported syscalls/flags. + Unsupported map[string]bool +} + +// Compile compiles sys description. +func Compile(desc0 *ast.Description, consts map[string]uint64, eh ast.ErrorHandler) *Prog { + if eh == nil { + eh = ast.LoggingHandler + } + + desc := ast.Clone(desc0) + unsup, ok := patchConsts(desc, consts, eh) + if !ok { + return nil + } + + return &Prog{ + Desc: desc, + Unsupported: unsup, + } +} + +// patchConsts replaces all symbolic consts with their numeric values taken from consts map. +// Updates desc and returns set of unsupported syscalls and flags. +// After this pass consts are not needed for compilation. +func patchConsts(desc *ast.Description, consts map[string]uint64, eh ast.ErrorHandler) (map[string]bool, bool) { + broken := false + unsup := make(map[string]bool) + var top []ast.Node + for _, decl := range desc.Nodes { + switch decl.(type) { + case *ast.IntFlags: + // Unsupported flag values are dropped. + n := decl.(*ast.IntFlags) + var values []*ast.Int + for _, v := range n.Values { + if patchIntConst(v.Pos, &v.Value, &v.Ident, consts, unsup, nil, eh) { + values = append(values, v) + } + } + n.Values = values + top = append(top, n) + case *ast.Resource, *ast.Struct, *ast.Call: + if c, ok := decl.(*ast.Call); ok { + // Extract syscall NR. + str := "__NR_" + c.CallName + nr, ok := consts[str] + if !ok { + if name := "syscall " + c.CallName; !unsup[name] { + unsup[name] = true + eh(c.Pos, fmt.Sprintf("unsupported syscall: %v due to missing const %v", + c.CallName, str)) + } + continue + } + c.NR = nr + } + // Walk whole tree and replace consts in Int's and Type's. + missing := "" + ast.WalkNode(decl, func(n0 ast.Node) { + switch n := n0.(type) { + case *ast.Int: + patchIntConst(n.Pos, &n.Value, &n.Ident, + consts, unsup, &missing, eh) + case *ast.Type: + if c := typeConstIdentifier(n); c != nil { + patchIntConst(c.Pos, &c.Value, &c.Ident, + consts, unsup, &missing, eh) + if c.HasColon { + patchIntConst(c.Pos2, &c.Value2, &c.Ident2, + consts, unsup, &missing, eh) + } + } + } + }) + if missing == "" { + top = append(top, decl) + } else { + // Produce a warning about unsupported syscall/resource/struct. + // Unsupported syscalls are discarded. + // Unsupported resource/struct lead to compilation error. + // Fixing that would require removing all uses of the resource/struct. + typ, pos, name, fatal := "", ast.Pos{}, "", false + switch n := decl.(type) { + case *ast.Call: + typ, pos, name, fatal = "syscall", n.Pos, n.Name.Name, false + case *ast.Resource: + typ, pos, name, fatal = "resource", n.Pos, n.Name.Name, true + case *ast.Struct: + typ, pos, name, fatal = "struct", n.Pos, n.Name.Name, true + default: + panic(fmt.Sprintf("unknown type: %#v", decl)) + } + if id := typ + " " + name; !unsup[id] { + unsup[id] = true + eh(pos, fmt.Sprintf("unsupported %v: %v due to missing const %v", + typ, name, missing)) + } + if fatal { + broken = true + } + } + case *ast.StrFlags: + top = append(top, decl) + case *ast.NewLine, *ast.Comment, *ast.Include, *ast.Incdir, *ast.Define: + // These are not needed anymore. + default: + panic(fmt.Sprintf("unknown node type: %#v", decl)) + } + } + desc.Nodes = top + return unsup, !broken +} + // ExtractConsts returns list of literal constants and other info required const value extraction. -func ExtractConsts(top []interface{}) (consts, includes, incdirs []string, defines map[string]string) { +func ExtractConsts(desc *ast.Description) (consts, includes, incdirs []string, defines map[string]string) { constMap := make(map[string]bool) defines = make(map[string]string) - ast.Walk(top, func(n1 interface{}) { + ast.Walk(desc, func(n1 ast.Node) { switch n := n1.(type) { case *ast.Include: includes = append(includes, n.File.Value) @@ -37,11 +157,9 @@ func ExtractConsts(top []interface{}) (consts, includes, incdirs []string, defin constMap["__NR_"+n.CallName] = true } case *ast.Type: - if n.Ident == "const" && len(n.Args) > 0 { - constMap[n.Args[0].Ident] = true - } - if n.Ident == "array" && len(n.Args) > 1 { - constMap[n.Args[1].Ident] = true + if c := typeConstIdentifier(n); c != nil { + constMap[c.Ident] = true + constMap[c.Ident2] = true } case *ast.Int: constMap[n.Ident] = true @@ -52,6 +170,56 @@ func ExtractConsts(top []interface{}) (consts, includes, incdirs []string, defin return } +func patchIntConst(pos ast.Pos, val *uint64, id *string, + consts map[string]uint64, unsup map[string]bool, missing *string, eh ast.ErrorHandler) bool { + if *id == "" { + return true + } + v, ok := consts[*id] + if !ok { + name := "const " + *id + if !unsup[name] { + unsup[name] = true + eh(pos, fmt.Sprintf("unsupported const: %v", *id)) + } + if missing != nil && *missing == "" { + *missing = *id + } + } + *val = v + *id = "" + return ok +} + +// typeConstIdentifier returns type arg that is an integer constant (subject for const patching), if any. +func typeConstIdentifier(n *ast.Type) *ast.Type { + if n.Ident == "const" && len(n.Args) > 0 { + return n.Args[0] + } + if n.Ident == "array" && len(n.Args) > 1 && n.Args[1].Ident != "opt" { + return n.Args[1] + } + if n.Ident == "vma" && len(n.Args) > 0 && n.Args[0].Ident != "opt" { + return n.Args[0] + } + if n.Ident == "vma" && len(n.Args) > 0 && n.Args[0].Ident != "opt" { + return n.Args[0] + } + if n.Ident == "string" && len(n.Args) > 1 && n.Args[1].Ident != "opt" { + return n.Args[1] + } + if n.Ident == "csum" && len(n.Args) > 2 && n.Args[1].Ident == "pseudo" { + return n.Args[2] + } + switch n.Ident { + case "int8", "int16", "int16be", "int32", "int32be", "int64", "int64be", "intptr": + if len(n.Args) > 0 && n.Args[0].Ident != "opt" { + return n.Args[0] + } + } + return nil +} + func toArray(m map[string]bool) []string { delete(m, "") var res []string diff --git a/pkg/compiler/compiler_test.go b/pkg/compiler/compiler_test.go index 13ed97b4c..e68d97d3e 100644 --- a/pkg/compiler/compiler_test.go +++ b/pkg/compiler/compiler_test.go @@ -11,13 +11,15 @@ import ( ) func TestExtractConsts(t *testing.T) { - top, ok := ast.Parse([]byte(extractConstsInput), "test", nil) - if !ok { + desc := ast.Parse([]byte(extractConstsInput), "test", nil) + if desc == nil { t.Fatalf("failed to parse input") } - consts, includes, incdirs, defines := ExtractConsts(top) - wantConsts := []string{"CONST1", "CONST2", "CONST3", "CONST4", "CONST5", - "CONST6", "CONST7", "__NR_bar", "__NR_foo"} + consts, includes, incdirs, defines := ExtractConsts(desc) + wantConsts := []string{"CONST1", "CONST10", "CONST11", "CONST12", "CONST13", + "CONST14", "CONST15", "CONST16", + "CONST2", "CONST3", "CONST4", "CONST5", + "CONST6", "CONST7", "CONST8", "CONST9", "__NR_bar", "__NR_foo"} if !reflect.DeepEqual(consts, wantConsts) { t.Fatalf("got consts:\n%q\nwant:\n%q", consts, wantConsts) } @@ -56,4 +58,8 @@ str { f1 const[CONST6, int32] f2 array[array[int8, CONST7]] } + +bar$BAZ(x vma[opt], y vma[CONST8], z vma[CONST9:CONST10]) +bar$QUX(s ptr[in, string["foo", CONST11]], x csum[s, pseudo, CONST12]) +bar$FOO(x int8[8:CONST13], y int16be[CONST14:10], z intptr[CONST15:CONST16]) ` diff --git a/sys/sys_386.go b/sys/sys_386.go index 47686a722..fed54e800 100644 --- a/sys/sys_386.go +++ b/sys/sys_386.go @@ -21578,16 +21578,6 @@ var structFields = []struct { }}, } var Calls = []*Call{ - &Call{Name: "accept", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_storage", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$alg", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_algconn", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_algconn")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_alg", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_alg")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_alg", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$ax25", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ax25", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_ax25")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ax25", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_ax25")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_ax25", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$inet", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_in", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_in")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_in", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_in")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_in", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$inet6", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_in6", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_in6")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_in6", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_in6")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_in6", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$ipx", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ipx", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_ipx")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ipx", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_ipx")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_ipx", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$llc", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_llc", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_llc")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_llc", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_llc")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_llc", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$netrom", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_netrom")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_netrom")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_netrom", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$nfc_llcp", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_nfc_llcp", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_nfc_llcp")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_nfc_llcp", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_nfc_llcp")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_nfc_llcp", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, - &Call{Name: "accept$unix", CallName: "accept", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_unix")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_unix")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_un", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: -1}, &Call{Name: "accept4", CallName: "accept4", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_storage", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 364}, &Call{Name: "accept4$ax25", CallName: "accept4", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ax25", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_ax25")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ax25", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_ax25")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_ax25", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 364}, &Call{Name: "accept4$inet", CallName: "accept4", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_in", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_in")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_in", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_in")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_in", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 364}, @@ -22007,13 +21997,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$GIO_SCRNMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19264)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$GIO_UNIMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19302)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"unimapdesc_out", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$GIO_UNISCRNMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19305)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_allocation_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_CUSTOM", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_custom_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_FREE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_handle_data", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_IMPORT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_MAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_SHARE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_SYNC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, &Call{Name: "ioctl$KDADDIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19252)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KDDELIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19253)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KDDISABIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19255)}}, NR: 54}, @@ -22039,7 +22022,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KDSKBSENT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19273)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$KIOCSOUND", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19247)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KVM_ARM_SET_DEVICE_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835115)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_arm_device_addr", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_ARM_VCPU_INIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_init", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_ASSIGN_DEV_IRQ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1077980784)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_irq", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_ASSIGN_PCI_DEVICE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2151722601)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_pci_dev", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_ASSIGN_SET_INTX_MASK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1077980836)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_pci_dev", "", DirIn})}}, NR: 54}, @@ -22255,10 +22237,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$TCSETSF", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21508)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$TCSETSW", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21506)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$TCXONC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21514)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_CLOSE_CLIENT_SESSION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_closesession", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_LAUNCH_OPERATION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_launchop", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_OPEN_CLIENT_SESSION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_opensession", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_SS_CMD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$TIOCCBRK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21544)}}, NR: 54}, &Call{Name: "ioctl$TIOCCONS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21533)}}, NR: 54}, &Call{Name: "ioctl$TIOCEXCL", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21516)}}, NR: 54}, @@ -22486,16 +22464,6 @@ var Calls = []*Call{ &Call{Name: "mq_timedsend", CallName: "mq_timedsend", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_mq", FldName: "mqd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_mq")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "msg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "msg", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "msglen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "msg", ByteSize: 0}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "prio", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timeout", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"timespec", "", DirIn})}}, NR: 279}, &Call{Name: "mq_unlink", CallName: "mq_unlink", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 278}, &Call{Name: "mremap", CallName: "mremap", Native: true, Ret: &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "ret", ArgDir: DirOut, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "newlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "newaddr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "newaddr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}}, NR: 163}, - &Call{Name: "msgctl$IPC_INFO", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgctl$IPC_RMID", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: -1}, - &Call{Name: "msgctl$IPC_SET", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msqid_ds", "", DirIn})}}, NR: -1}, - &Call{Name: "msgctl$IPC_STAT", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgctl$MSG_INFO", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(12)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgctl$MSG_STAT", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(11)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgget", CallName: "msgget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_msq")}, Args: []Type{&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, ValuesStart: 2039379027, ValuesPerProc: 4}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "msgget$private", CallName: "msgget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_msq")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "msgrcv", CallName: "msgrcv", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msgbuf", "", DirOut})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "msgp", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "typ", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 8192, 4096}}}, NR: -1}, - &Call{Name: "msgsnd", CallName: "msgsnd", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msgbuf", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "msgp", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048}}}, NR: -1}, &Call{Name: "msync", CallName: "msync", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 4, 2}}}, NR: 144}, &Call{Name: "munlock", CallName: "munlock", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 151}, &Call{Name: "munlockall", CallName: "munlockall", Native: true, Args: []Type{}, NR: 153}, @@ -22627,23 +22595,6 @@ var Calls = []*Call{ &Call{Name: "sched_yield", CallName: "sched_yield", Native: true, Args: []Type{}, NR: 158}, &Call{Name: "seccomp", CallName: "seccomp", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "prog", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sock_fprog", "", DirIn})}}, NR: 354}, &Call{Name: "select", CallName: "select", Native: true, Args: []Type{&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "n", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "inp", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "inp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "outp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "exp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tvp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timeval", "", DirInOut})}}, NR: 82}, - &Call{Name: "semctl$GETALL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(13)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETNCNT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(14)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETPID", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(11)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETVAL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(12)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETZCNT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(15)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$IPC_INFO", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$IPC_RMID", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: -1}, - &Call{Name: "semctl$IPC_SET", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"semid_ds", "", DirIn})}}, NR: -1}, - &Call{Name: "semctl$IPC_STAT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$SEM_INFO", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$SEM_STAT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(18)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$SETALL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(17)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 2, BigEndian: false, BitfieldLen: 0}}, Kind: ArrayRandLen}}}, NR: -1}, - &Call{Name: "semctl$SETVAL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(16)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: -1}, - &Call{Name: "semget", CallName: "semget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_sem")}, Args: []Type{&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, ValuesStart: 2039359027, ValuesPerProc: 4}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "nsems", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "semget$private", CallName: "semget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_sem")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "nsems", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "semop", CallName: "semop", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ops", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sembuf", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nops", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ops", ByteSize: 0}}, NR: -1}, - &Call{Name: "semtimedop", CallName: "semtimedop", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ops", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sembuf", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nops", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ops", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirIn})}}, NR: -1}, &Call{Name: "sendfile", CallName: "sendfile", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdout", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdin", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "off", ArgDir: DirIn, IsOptional: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 187}, &Call{Name: "sendmmsg", CallName: "sendmmsg", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mmsg", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"send_mmsghdr", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mmsg", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912}}}, NR: 345}, &Call{Name: "sendmmsg$alg", CallName: "sendmmsg", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_algconn", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_algconn")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mmsg", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msghdr_alg", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mmsg", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912}}}, NR: 345}, @@ -22865,18 +22816,6 @@ var Calls = []*Call{ &Call{Name: "setsockopt$sock_void", CallName: "setsockopt", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "optname", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{27, 36}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "optval", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "optlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 366}, &Call{Name: "setuid", CallName: "setuid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 23}, &Call{Name: "setxattr", CallName: "setxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 226}, - &Call{Name: "shmat", CallName: "shmat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("shmaddr")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{8192, 4096, 16384}}}, NR: -1}, - &Call{Name: "shmctl$IPC_INFO", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$IPC_RMID", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: -1}, - &Call{Name: "shmctl$IPC_SET", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"shmid_ds", "", DirIn})}}, NR: -1}, - &Call{Name: "shmctl$IPC_STAT", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$SHM_INFO", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(14)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$SHM_LOCK", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(11)}}, NR: -1}, - &Call{Name: "shmctl$SHM_STAT", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(13)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$SHM_UNLOCK", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(12)}}, NR: -1}, - &Call{Name: "shmdt", CallName: "shmdt", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Desc: resource("shmaddr")}}, NR: -1}, - &Call{Name: "shmget", CallName: "shmget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_shm")}, Args: []Type{&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, ValuesStart: 2039339027, ValuesPerProc: 4}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "unused", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}}, NR: -1}, - &Call{Name: "shmget$private", CallName: "shmget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_shm")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "unused", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}}, NR: -1}, &Call{Name: "shutdown", CallName: "shutdown", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "how", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}}, NR: 373}, &Call{Name: "sigaltstack", CallName: "sigaltstack", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "ss", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "oss", ArgDir: DirIn, IsOptional: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 186}, &Call{Name: "signalfd", CallName: "signalfd", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_signal", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_signal")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mask", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mask", ByteSize: 0}}, NR: 321}, diff --git a/sys/sys_amd64.go b/sys/sys_amd64.go index 2ab66f0cf..f8594caed 100644 --- a/sys/sys_amd64.go +++ b/sys/sys_amd64.go @@ -22039,7 +22039,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KDSKBSENT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19273)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 16}, &Call{Name: "ioctl$KIOCSOUND", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19247)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 16}, &Call{Name: "ioctl$KVM_ARM_SET_DEVICE_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835115)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_arm_device_addr", "", DirIn})}}, NR: 16}, - &Call{Name: "ioctl$KVM_ARM_VCPU_INIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_init", "", DirIn})}}, NR: 16}, &Call{Name: "ioctl$KVM_ASSIGN_DEV_IRQ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1077980784)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_irq", "", DirIn})}}, NR: 16}, &Call{Name: "ioctl$KVM_ASSIGN_PCI_DEVICE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2151722601)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_pci_dev", "", DirIn})}}, NR: 16}, &Call{Name: "ioctl$KVM_ASSIGN_SET_INTX_MASK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1077980836)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_pci_dev", "", DirIn})}}, NR: 16}, diff --git a/sys/sys_arm.go b/sys/sys_arm.go index 56964afb3..b6ec55c59 100644 --- a/sys/sys_arm.go +++ b/sys/sys_arm.go @@ -21598,7 +21598,6 @@ var Calls = []*Call{ &Call{Name: "acct", CallName: "acct", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "filename", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 9437235}, &Call{Name: "add_key", CallName: "add_key", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("key")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "key_type", Values: []string{"user\x00", "keyring\x00", "logon\x00", "trusted\x00", "big_key\x00", "dead\x00", ".request_key_auth\x00", "syzkaller\x00"}, Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "desc", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"key_desc", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "paylen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "payload", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "keyring", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{18446744073709551615, 18446744073709551614, 18446744073709551613, 18446744073709551612, 18446744073709551611, 18446744073709551610, 18446744073709551609, 18446744073709551608}}}, NR: 9437493}, &Call{Name: "alarm", CallName: "alarm", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "seconds", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437211}, - &Call{Name: "arch_prctl", CallName: "arch_prctl", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4098, 4099, 4097, 4100}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, &Call{Name: "bind", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_storage", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 9437466}, &Call{Name: "bind$alg", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_alg", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_alg")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_alg", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 9437466}, &Call{Name: "bind$ax25", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ax25", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_ax25")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_ax25", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 9437466}, @@ -21672,7 +21671,6 @@ var Calls = []*Call{ &Call{Name: "exit", CallName: "exit", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437185}, &Call{Name: "exit_group", CallName: "exit_group", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437432}, &Call{Name: "faccessat", CallName: "faccessat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "dirfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pathname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0x100, 0x200, 0x400, 0x800, 0x1000}}}, NR: 9437518}, - &Call{Name: "fadvise64", CallName: "fadvise64", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "offset", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "advice", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 2, 1, 5, 3, 4}}}, NR: -1}, &Call{Name: "fallocate", CallName: "fallocate", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437536}, &Call{Name: "fanotify_init", CallName: "fanotify_init", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fanotify", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_fanotify")}, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{8, 4, 0, 1, 2, 16, 32}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "events", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 131072, 524288, 1024, 4096, 262144, 2048, 1052672}}}, NR: 9437551}, &Call{Name: "fanotify_mark", CallName: "fanotify_mark", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_fanotify", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_fanotify")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 128, 4, 8, 16, 32, 64}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mask", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 8, 16, 32, 65536, 131072, 1073741824, 134217728}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fddir", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 9437552}, @@ -21708,10 +21706,8 @@ var Calls = []*Call{ &Call{Name: "ftruncate", CallName: "ftruncate", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437277}, &Call{Name: "futex", CallName: "futex", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 9, 1, 3, 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr2", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "val3", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437424}, &Call{Name: "futimesat", CallName: "futimesat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "dir", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pathname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "times", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"itimerval", "", DirIn})}}, NR: 9437510}, - &Call{Name: "get_kernel_syms", CallName: "get_kernel_syms", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "table", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "table", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, &Call{Name: "get_mempolicy", CallName: "get_mempolicy", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mode", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 4, 2, 1}}}, NR: 9437504}, &Call{Name: "get_robust_list", CallName: "get_robust_list", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "head", ArgDir: DirIn, IsOptional: false}, Type: &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"robust_list", "", DirOut})}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "head", ByteSize: 0}}}, NR: 9437523}, - &Call{Name: "get_thread_area", CallName: "get_thread_area", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "info", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}}, NR: -1}, &Call{Name: "getcwd", CallName: "getcwd", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: 9437367}, &Call{Name: "getdents", CallName: "getdents", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ent", ByteSize: 0}}, NR: 9437325}, &Call{Name: "getdents64", CallName: "getdents64", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ent", ByteSize: 0}}, NR: 9437401}, @@ -22007,13 +22003,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$GIO_SCRNMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19264)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437238}, &Call{Name: "ioctl$GIO_UNIMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19302)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"unimapdesc_out", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$GIO_UNISCRNMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19305)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437238}, - &Call{Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_allocation_data", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$ION_IOC_CUSTOM", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_custom_data", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$ION_IOC_FREE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_handle_data", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$ION_IOC_IMPORT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$ION_IOC_MAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$ION_IOC_SHARE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$ION_IOC_SYNC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 9437238}, &Call{Name: "ioctl$KDADDIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19252)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437238}, &Call{Name: "ioctl$KDDELIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19253)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437238}, &Call{Name: "ioctl$KDDISABIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19255)}}, NR: 9437238}, @@ -22058,30 +22047,18 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_ENABLE_CAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1080602275)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_enable_cap_vm", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_ENABLE_CAP_CPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1080602275)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_enable_cap_cpu", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_CLOCK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2150674044)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_clock_data", "", DirOut})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_CPUID2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid2", "", DirOut})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_DEBUGREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_debugregs", "", DirOut})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075359458)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_DIRTY_LOG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835010)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_dirty_log", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_EMULATED_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_FPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147528332)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_fpu", "", DirOut})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_IRQCHIP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3255348834)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_chip", "", DirOut})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_LAPIC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_lapic_state", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_MP_STATE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147790488)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_MSRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msrs", "", DirOut})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_MSR_INDEX_LIST", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msr_list", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_NR_MMU_PAGES", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44613)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_ONE_REG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835115)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_one_reg", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_PIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirOut})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_PIT2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirOut})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_REGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2157489793)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_regs", "", DirOut})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_REG_LIST", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3221794480)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_reg_list", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_SREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147528323)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_sregs", "", DirOut})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_SUPPORTED_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_TSC_KHZ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44707)}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_VCPU_EVENTS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_events", "", DirOut})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_GET_VCPU_MMAP_SIZE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44548)}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_XCRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xcrs", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_GET_XSAVE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xsave", "", DirOut})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_HAS_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075359459)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_INTERRUPT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048646)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_IOEVENTFD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1077980793)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_ioeventfd", "", DirIn})}}, NR: 9437238}, @@ -22103,22 +22080,15 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_S390_VCPU_FAULT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048594)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_BOOT_CPU_ID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44664)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntRange, RangeBegin: 0, RangeEnd: 2}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_CLOCK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1076932219)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_clock_data", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_CPUID2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid2", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_DEBUGREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_debugregs", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075359457)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_FPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1073786509)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_fpu", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_GSI_ROUTING", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310762)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_routing", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_GUEST_DEBUG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310811)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_guest_debug", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_IDENTITY_MAP_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310728)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 4, 0x1000, 0x2000, 0x3000, 0x4000, 0x5000, 0x6000, 0xd000, 0xf000, 0x100000, 0x10000}}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_IRQCHIP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2181607011)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_chip", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_LAPIC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_lapic_state", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_MP_STATE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048665)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8}}}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_MSRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msrs", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_NR_MMU_PAGES", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44612)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_ONE_REG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835116)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_one_reg", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_PIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_PIT2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_REGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1083747970)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_regs", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_SIGNAL_MASK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048651)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_signal_mask", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_SREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1073786500)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_sregs", "", DirIn})}}, NR: 9437238}, @@ -22126,9 +22096,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_SET_TSS_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44615)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0xd000}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_USER_MEMORY_REGION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075883590)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_userspace_memory_region", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SET_VAPIC_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310803)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 4, 0x1000, 0x2000, 0x3000, 0x4000, 0x5000, 0x6000, 0xd000, 0xf000, 0x100000, 0x10000}}}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_VCPU_EVENTS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_events", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_XCRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xcrs", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_SET_XSAVE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xsave", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SIGNAL_MSI", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075883685)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msi", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_SMI", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44727)}}, NR: 9437238}, &Call{Name: "ioctl$KVM_TPR_ACCESS_REPORTING", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3223891602)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_tpr_access_ctl", "", DirIn})}}, NR: 9437238}, @@ -22136,8 +22103,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_UNREGISTER_COALESCED_MMIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835048)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_coalesced_mmio_zone", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$KVM_X86_GET_MCE_CAP_SUPPORTED", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148052637)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437238}, &Call{Name: "ioctl$KVM_X86_SETUP_MCE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310812)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_mce_cap", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_X86_SET_MCE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_x86_mce", "", DirIn})}}, NR: 9437238}, - &Call{Name: "ioctl$KVM_XEN_HVM_CONFIG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xen_hvm_config", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$LOOP_CHANGE_FD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19456)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 9437238}, &Call{Name: "ioctl$LOOP_CLR_FD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19457)}}, NR: 9437238}, &Call{Name: "ioctl$LOOP_CTL_ADD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop_ctrl", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop_ctrl")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19584)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop_num", FldName: "num", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop_num")}}, NR: 9437238}, @@ -22255,10 +22220,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$TCSETSF", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21508)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$TCSETSW", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21506)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirIn})}}, NR: 9437238}, &Call{Name: "ioctl$TCXONC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21514)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437238}, - &Call{Name: "ioctl$TE_IOCTL_CLOSE_CLIENT_SESSION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_closesession", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$TE_IOCTL_LAUNCH_OPERATION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_launchop", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$TE_IOCTL_OPEN_CLIENT_SESSION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_opensession", "", DirInOut})}}, NR: 9437238}, - &Call{Name: "ioctl$TE_IOCTL_SS_CMD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437238}, &Call{Name: "ioctl$TIOCCBRK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21544)}}, NR: 9437238}, &Call{Name: "ioctl$TIOCCONS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21533)}}, NR: 9437238}, &Call{Name: "ioctl$TIOCEXCL", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21516)}}, NR: 9437238}, @@ -22413,8 +22374,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$sock_netrom_TIOCOUTQ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_netrom")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21521)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 9437238}, &Call{Name: "ioctl$sock_proto_private", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 2, BigEndian: false, BitfieldLen: 0}, Kind: IntRange, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437238}, &Call{Name: "ioctl$void", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{21585, 21584, 3221510263, 3221510264}}}, NR: 9437238}, - &Call{Name: "ioperm", CallName: "ioperm", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "from", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "num", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "on", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, - &Call{Name: "iopl", CallName: "iopl", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "level", ArgDir: DirIn, IsOptional: false}, TypeSize: 1, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, &Call{Name: "ioprio_get$pid", CallName: "ioprio_get", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "who", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}}, NR: 9437499}, &Call{Name: "ioprio_get$uid", CallName: "ioprio_get", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{3}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "who", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 9437499}, &Call{Name: "ioprio_set$pid", CallName: "ioprio_set", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "who", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "prio", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437498}, @@ -22461,7 +22420,6 @@ var Calls = []*Call{ &Call{Name: "mbind", CallName: "mbind", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 2, 3, 1, 32768, 16384}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4}}}, NR: 9437503}, &Call{Name: "membarrier", CallName: "membarrier", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 9437573}, &Call{Name: "memfd_create", CallName: "memfd_create", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 9437569}, - &Call{Name: "migrate_pages", CallName: "migrate_pages", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: -1}, &Call{Name: "mincore", CallName: "mincore", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "vec", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "vec", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437403}, &Call{Name: "mkdir", CallName: "mkdir", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: 9437223}, &Call{Name: "mkdirat", CallName: "mkdirat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: 9437507}, @@ -22472,10 +22430,6 @@ var Calls = []*Call{ &Call{Name: "mlock2", CallName: "mlock2", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1}}}, NR: 9437574}, &Call{Name: "mlockall", CallName: "mlockall", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 9437336}, &Call{Name: "mmap", CallName: "mmap", Native: true, Ret: &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "ret", ArgDir: DirOut, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4, 1, 2, 8, 16777216, 33554432}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 32, 2048, 4096, 0, 16, 256, 262144, 8192, 65536, 16384, 32768, 131072, 0}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "offset", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}}, NR: 9437274}, - &Call{Name: "modify_ldt$read", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, - &Call{Name: "modify_ldt$read_default", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, - &Call{Name: "modify_ldt$write", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, - &Call{Name: "modify_ldt$write2", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(17)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, &Call{Name: "mount", CallName: "mount", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "src", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dst", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "filesystem", Values: []string{"sysfs\x00", "rootfs\x00", "ramfs\x00", "tmpfs\x00", "devtmpfs\x00", "debugfs\x00", "securityfs\x00", "sockfs\x00", "pipefs\x00", "anon_inodefs\x00", "devpts\x00", "ext3\x00", "ext2\x00", "ext4\x00", "hugetlbfs\x00", "vfat\x00", "ecryptfs\x00", "fuseblk\x00", "fuse\x00", "rpc_pipefs\x00", "nfs\x00", "nfs4\x00", "nfsd\x00", "binfmt_misc\x00", "autofs\x00", "xfs\x00", "jfs\x00", "msdos\x00", "ntfs\x00", "minix\x00", "hfs\x00", "hfsplus\x00", "qnx4\x00", "ufs\x00", "btrfs\x00", "configfs\x00", "ncpfs\x00", "qnx6\x00", "exofs\x00", "befs\x00", "vxfs\x00", "gfs2\x00", "gfs2meta\x00", "fusectl\x00", "bfs\x00", "nsfs\x00", "efs\x00", "cifs\x00", "efivarfs\x00", "affs\x00", "tracefs\x00", "bdev\x00", "ocfs2\x00", "ocfs2_dlmfs\x00", "hpfs\x00", "proc\x00", "afs\x00", "reiserfs\x00", "jffs2\x00", "romfs\x00", "aio\x00", "sysv\x00", "v7\x00", "udf\x00", "ceph\x00", "pstore\x00", "adfs\x00", "9p\x00", "hostfs\x00", "squashfs\x00", "cramfs\x00", "iso9660\x00", "coda\x00", "nilfs2\x00", "logfs\x00", "overlay\x00", "f2fs\x00", "omfs\x00", "ubifs\x00", "openpromfs\x00", "bpf\x00", "cgroup\x00", "cgroup2\x00", "cpuset\x00", "mqueue\x00", "aufs\x00", "selinuxfs\x00"}, Length: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437205}, &Call{Name: "move_pages", CallName: "move_pages", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "pages", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pages", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, Kind: ArrayRandLen}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodes", ArgDir: DirIn, IsOptional: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}, Kind: ArrayRandLen}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "status", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirOut, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}, Kind: ArrayRandLen}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2, 4}}}, NR: 9437528}, &Call{Name: "mprotect", CallName: "mprotect", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4, 1, 2, 8, 16777216, 33554432}}}, NR: 9437309}, @@ -22667,7 +22621,6 @@ var Calls = []*Call{ &Call{Name: "sendto$unix", CallName: "sendto", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_unix")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_un", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 9437474}, &Call{Name: "set_mempolicy", CallName: "set_mempolicy", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 2, 3, 1, 32768, 16384}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 9437505}, &Call{Name: "set_robust_list", CallName: "set_robust_list", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "head", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"robust_list", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "head", ByteSize: 0}}, NR: 9437522}, - &Call{Name: "set_thread_area", CallName: "set_thread_area", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "info", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}}, NR: -1}, &Call{Name: "set_tid_address", CallName: "set_tid_address", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tidptr", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 9437440}, &Call{Name: "setfsgid", CallName: "setfsgid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "fsgid", ArgDir: DirIn, IsOptional: false}, Desc: resource("gid")}}, NR: 9437323}, &Call{Name: "setfsuid", CallName: "setfsuid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "fsuid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 9437322}, @@ -22939,7 +22892,6 @@ var Calls = []*Call{ &Call{Name: "symlink", CallName: "symlink", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 9437267}, &Call{Name: "symlinkat", CallName: "symlinkat", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 9437515}, &Call{Name: "sync", CallName: "sync", Native: true, Args: []Type{}, NR: 9437220}, - &Call{Name: "sync_file_range", CallName: "sync_file_range", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "nbytes", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4}}}, NR: -1}, &Call{Name: "syncfs", CallName: "syncfs", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 9437557}, &Call{Name: "sysfs$1", CallName: "sysfs", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fsname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 9437319}, &Call{Name: "sysfs$2", CallName: "sysfs", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "fsindex", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "fsname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "fsname", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 9437319}, diff --git a/sys/sys_arm64.go b/sys/sys_arm64.go index d4f496832..0a6377425 100644 --- a/sys/sys_arm64.go +++ b/sys/sys_arm64.go @@ -21597,8 +21597,6 @@ var Calls = []*Call{ &Call{Name: "accept4$unix", CallName: "accept4", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_unix")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_unix")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_un", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 242}, &Call{Name: "acct", CallName: "acct", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "filename", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 89}, &Call{Name: "add_key", CallName: "add_key", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("key")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "key_type", Values: []string{"user\x00", "keyring\x00", "logon\x00", "trusted\x00", "big_key\x00", "dead\x00", ".request_key_auth\x00", "syzkaller\x00"}, Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "desc", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"key_desc", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "paylen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "payload", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "keyring", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{18446744073709551615, 18446744073709551614, 18446744073709551613, 18446744073709551612, 18446744073709551611, 18446744073709551610, 18446744073709551609, 18446744073709551608}}}, NR: 217}, - &Call{Name: "alarm", CallName: "alarm", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "seconds", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, - &Call{Name: "arch_prctl", CallName: "arch_prctl", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4098, 4099, 4097, 4100}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, &Call{Name: "bind", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_storage", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 200}, &Call{Name: "bind$alg", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_alg", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_alg")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_alg", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 200}, &Call{Name: "bind$ax25", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ax25", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_ax25")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_ax25", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 200}, @@ -21629,8 +21627,6 @@ var Calls = []*Call{ &Call{Name: "capget", CallName: "capget", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "hdr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"cap_header", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"cap_data", "", DirIn})}}, NR: 90}, &Call{Name: "capset", CallName: "capset", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "hdr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"cap_header", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"cap_data", "", DirIn})}}, NR: 91}, &Call{Name: "chdir", CallName: "chdir", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dir", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 49}, - &Call{Name: "chmod", CallName: "chmod", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "chown", CallName: "chown", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", ArgDir: DirIn, IsOptional: false}, Desc: resource("gid")}}, NR: -1}, &Call{Name: "chroot", CallName: "chroot", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dir", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 51}, &Call{Name: "clock_adjtime", CallName: "clock_adjtime", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "id", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 5, 1, 6, 4, 7, 2, 3}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tx", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timex", "", DirIn})}}, NR: 266}, &Call{Name: "clock_getres", CallName: "clock_getres", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "id", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 5, 1, 6, 4, 7, 2, 3}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirOut})}}, NR: 114}, @@ -21653,19 +21649,14 @@ var Calls = []*Call{ &Call{Name: "connect$nfc_llcp", CallName: "connect", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_nfc_llcp", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_nfc_llcp")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_nfc_llcp", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 203}, &Call{Name: "connect$nfc_raw", CallName: "connect", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_nfc_raw", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_nfc_raw")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_nfc", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 203}, &Call{Name: "connect$unix", CallName: "connect", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_unix")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_un", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 203}, - &Call{Name: "creat", CallName: "creat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, &Call{Name: "delete_module", CallName: "delete_module", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 512}}}, NR: 106}, &Call{Name: "dup", CallName: "dup", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 23}, - &Call{Name: "dup2", CallName: "dup2", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: -1}, &Call{Name: "dup3", CallName: "dup3", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{524288}}}, NR: 24}, - &Call{Name: "epoll_create", CallName: "epoll_create", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_epoll", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_epoll")}, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, &Call{Name: "epoll_create1", CallName: "epoll_create1", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_epoll", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_epoll")}, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{524288}}}, NR: 20}, &Call{Name: "epoll_ctl$EPOLL_CTL_ADD", CallName: "epoll_ctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_epoll", FldName: "epfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_epoll")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ev", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"epoll_event", "", DirIn})}}, NR: 21}, &Call{Name: "epoll_ctl$EPOLL_CTL_DEL", CallName: "epoll_ctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_epoll", FldName: "epfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_epoll")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 21}, &Call{Name: "epoll_ctl$EPOLL_CTL_MOD", CallName: "epoll_ctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_epoll", FldName: "epfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_epoll")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ev", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"epoll_event", "", DirIn})}}, NR: 21}, &Call{Name: "epoll_pwait", CallName: "epoll_pwait", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_epoll", FldName: "epfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_epoll")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "events", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirOut, IsOptional: false}, Type: getStruct(structKey{"epoll_event", "", DirOut}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "maxevents", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "events", ByteSize: 0}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "sigmask", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "sigmask", ByteSize: 0}}, NR: 22}, - &Call{Name: "epoll_wait", CallName: "epoll_wait", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_epoll", FldName: "epfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_epoll")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "events", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirOut, IsOptional: false}, Type: getStruct(structKey{"epoll_event", "", DirOut}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "maxevents", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "events", ByteSize: 0}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, - &Call{Name: "eventfd", CallName: "eventfd", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_event", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_event")}, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "initval", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, &Call{Name: "eventfd2", CallName: "eventfd2", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_event", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_event")}, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "initval", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{524288, 2048, 1}}}, NR: 19}, &Call{Name: "execve", CallName: "execve", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "argv", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, Kind: ArrayRandLen}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "envp", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, Kind: ArrayRandLen}}}, NR: 221}, &Call{Name: "execveat", CallName: "execveat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "dirfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "argv", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, Kind: ArrayRandLen}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "envp", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, Kind: ArrayRandLen}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4096, 256, 1024, 2048, 4096}}}, NR: 281}, @@ -21707,13 +21698,9 @@ var Calls = []*Call{ &Call{Name: "fsync", CallName: "fsync", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 82}, &Call{Name: "ftruncate", CallName: "ftruncate", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 46}, &Call{Name: "futex", CallName: "futex", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 9, 1, 3, 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr2", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "val3", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 98}, - &Call{Name: "futimesat", CallName: "futimesat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "dir", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pathname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "times", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"itimerval", "", DirIn})}}, NR: -1}, - &Call{Name: "get_kernel_syms", CallName: "get_kernel_syms", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "table", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "table", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, &Call{Name: "get_mempolicy", CallName: "get_mempolicy", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mode", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 4, 2, 1}}}, NR: 236}, &Call{Name: "get_robust_list", CallName: "get_robust_list", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "head", ArgDir: DirIn, IsOptional: false}, Type: &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"robust_list", "", DirOut})}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "head", ByteSize: 0}}}, NR: 100}, - &Call{Name: "get_thread_area", CallName: "get_thread_area", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "info", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}}, NR: -1}, &Call{Name: "getcwd", CallName: "getcwd", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: 17}, - &Call{Name: "getdents", CallName: "getdents", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ent", ByteSize: 0}}, NR: -1}, &Call{Name: "getdents64", CallName: "getdents64", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ent", ByteSize: 0}}, NR: 61}, &Call{Name: "getegid", CallName: "getegid", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("gid")}, Args: []Type{}, NR: 177}, &Call{Name: "geteuid", CallName: "geteuid", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("uid")}, Args: []Type{}, NR: 175}, @@ -21730,7 +21717,6 @@ var Calls = []*Call{ &Call{Name: "getpeername$netrom", CallName: "getpeername", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_netrom")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_netrom", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: 205}, &Call{Name: "getpeername$unix", CallName: "getpeername", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_unix")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peer", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_un", "", DirOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "peerlen", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Buf: "peer", ByteSize: 0}}}, NR: 205}, &Call{Name: "getpgid", CallName: "getpgid", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("pid")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}}, NR: 155}, - &Call{Name: "getpgrp", CallName: "getpgrp", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("pid")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}}, NR: -1}, &Call{Name: "getpid", CallName: "getpid", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("pid")}, Args: []Type{}, NR: 172}, &Call{Name: "getpriority", CallName: "getpriority", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "who", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}}, NR: 141}, &Call{Name: "getrandom", CallName: "getrandom", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 278}, @@ -21900,7 +21886,6 @@ var Calls = []*Call{ &Call{Name: "getxattr", CallName: "getxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 8}, &Call{Name: "init_module", CallName: "init_module", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mod", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mod", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "args", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 105}, &Call{Name: "inotify_add_watch", CallName: "inotify_add_watch", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "inotifydesc", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("inotifydesc")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_inotify")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mask", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 4, 8, 16, 256, 512, 1024, 2, 2048, 64, 128, 32, 33554432, 67108864, 536870912, 2147483648, 16777216}}}, NR: 27}, - &Call{Name: "inotify_init", CallName: "inotify_init", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_inotify")}, Args: []Type{}, NR: -1}, &Call{Name: "inotify_init1", CallName: "inotify_init1", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_inotify")}, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 26}, &Call{Name: "inotify_rm_watch", CallName: "inotify_rm_watch", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_inotify", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_inotify")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "inotifydesc", FldName: "wd", ArgDir: DirIn, IsOptional: false}, Desc: resource("inotifydesc")}}, NR: 28}, &Call{Name: "io_cancel", CallName: "io_cancel", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "io_ctx", FldName: "ctx", ArgDir: DirIn, IsOptional: false}, Desc: resource("io_ctx")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "iocb", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"iocb", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "res", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"io_event", "", DirOut})}}, NR: 3}, @@ -22058,30 +22043,18 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_ENABLE_CAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1080602275)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_enable_cap_vm", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_ENABLE_CAP_CPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1080602275)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_enable_cap_cpu", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_CLOCK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2150674044)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_clock_data", "", DirOut})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_CPUID2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid2", "", DirOut})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_DEBUGREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_debugregs", "", DirOut})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075359458)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_DIRTY_LOG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835010)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_dirty_log", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_EMULATED_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_FPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147528332)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_fpu", "", DirOut})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_IRQCHIP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3255348834)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_chip", "", DirOut})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_LAPIC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_lapic_state", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_MP_STATE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147790488)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_MSRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msrs", "", DirOut})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_MSR_INDEX_LIST", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msr_list", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_NR_MMU_PAGES", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44613)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_ONE_REG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835115)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_one_reg", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_PIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirOut})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_PIT2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirOut})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_REGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2204151425)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_regs", "", DirOut})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_REG_LIST", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3221794480)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_reg_list", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_SREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147528323)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_sregs", "", DirOut})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_SUPPORTED_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_TSC_KHZ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44707)}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_VCPU_EVENTS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_events", "", DirOut})}}, NR: 29}, &Call{Name: "ioctl$KVM_GET_VCPU_MMAP_SIZE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44548)}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_XCRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xcrs", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_GET_XSAVE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xsave", "", DirOut})}}, NR: 29}, &Call{Name: "ioctl$KVM_HAS_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075359459)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_INTERRUPT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048646)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 29}, &Call{Name: "ioctl$KVM_IOEVENTFD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1077980793)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_ioeventfd", "", DirIn})}}, NR: 29}, @@ -22103,22 +22076,15 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_S390_VCPU_FAULT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310738)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_BOOT_CPU_ID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44664)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntRange, RangeBegin: 0, RangeEnd: 2}}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_CLOCK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1076932219)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_clock_data", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_CPUID2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid2", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_DEBUGREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_debugregs", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075359457)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_FPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1073786509)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_fpu", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_GSI_ROUTING", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310762)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_routing", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_GUEST_DEBUG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1107865243)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_guest_debug", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_IDENTITY_MAP_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310728)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 4, 0x1000, 0x2000, 0x3000, 0x4000, 0x5000, 0x6000, 0xd000, 0xf000, 0x100000, 0x10000}}}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_IRQCHIP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2181607011)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_chip", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_LAPIC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_lapic_state", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_MP_STATE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048665)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8}}}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_MSRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msrs", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_NR_MMU_PAGES", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44612)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_ONE_REG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835116)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_one_reg", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_PIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_PIT2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_REGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1130409602)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_regs", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_SIGNAL_MASK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048651)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_signal_mask", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_SREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1073786500)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_sregs", "", DirIn})}}, NR: 29}, @@ -22126,9 +22092,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_SET_TSS_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44615)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0xd000}}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_USER_MEMORY_REGION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075883590)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_userspace_memory_region", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SET_VAPIC_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310803)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 4, 0x1000, 0x2000, 0x3000, 0x4000, 0x5000, 0x6000, 0xd000, 0xf000, 0x100000, 0x10000}}}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_VCPU_EVENTS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_events", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_XCRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xcrs", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_SET_XSAVE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xsave", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SIGNAL_MSI", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1075883685)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msi", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_SMI", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(44727)}}, NR: 29}, &Call{Name: "ioctl$KVM_TPR_ACCESS_REPORTING", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3223891602)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_tpr_access_ctl", "", DirIn})}}, NR: 29}, @@ -22136,8 +22099,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_UNREGISTER_COALESCED_MMIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074835048)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_coalesced_mmio_zone", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$KVM_X86_GET_MCE_CAP_SUPPORTED", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148052637)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 29}, &Call{Name: "ioctl$KVM_X86_SETUP_MCE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310812)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_mce_cap", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_X86_SET_MCE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_x86_mce", "", DirIn})}}, NR: 29}, - &Call{Name: "ioctl$KVM_XEN_HVM_CONFIG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xen_hvm_config", "", DirIn})}}, NR: 29}, &Call{Name: "ioctl$LOOP_CHANGE_FD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19456)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 29}, &Call{Name: "ioctl$LOOP_CLR_FD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19457)}}, NR: 29}, &Call{Name: "ioctl$LOOP_CTL_ADD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop_ctrl", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop_ctrl")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19584)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop_num", FldName: "num", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop_num")}}, NR: 29}, @@ -22413,8 +22374,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$sock_netrom_TIOCOUTQ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_netrom")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21521)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 29}, &Call{Name: "ioctl$sock_proto_private", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 2, BigEndian: false, BitfieldLen: 0}, Kind: IntRange, RangeBegin: 35296, RangeEnd: 35311}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 29}, &Call{Name: "ioctl$void", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{21585, 21584, 3221510263, 3221510264}}}, NR: 29}, - &Call{Name: "ioperm", CallName: "ioperm", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "from", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "num", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "on", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, - &Call{Name: "iopl", CallName: "iopl", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "level", ArgDir: DirIn, IsOptional: false}, TypeSize: 1, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, &Call{Name: "ioprio_get$pid", CallName: "ioprio_get", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "who", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}}, NR: 31}, &Call{Name: "ioprio_get$uid", CallName: "ioprio_get", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{3}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "who", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 31}, &Call{Name: "ioprio_set$pid", CallName: "ioprio_set", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "who", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "prio", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 30}, @@ -22444,9 +22403,7 @@ var Calls = []*Call{ &Call{Name: "keyctl$setperm", CallName: "keyctl", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(5)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", ArgDir: DirIn, IsOptional: false}, Desc: resource("key")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "perm", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 65536, 131072, 262144, 524288, 1048576, 2097152, 256, 512, 1024, 2048, 4096, 8192, 1, 2, 4, 8, 16, 32, 4294967295}}}, NR: 219}, &Call{Name: "keyctl$unlink", CallName: "keyctl", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(9)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key1", ArgDir: DirIn, IsOptional: false}, Desc: resource("key")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key2", ArgDir: DirIn, IsOptional: false}, Desc: resource("key")}}, NR: 219}, &Call{Name: "keyctl$update", CallName: "keyctl", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "key", ArgDir: DirIn, IsOptional: false}, Desc: resource("key")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "paylen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "payload", ByteSize: 0}}, NR: 219}, - &Call{Name: "lchown", CallName: "lchown", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", ArgDir: DirIn, IsOptional: false}, Desc: resource("gid")}}, NR: -1}, &Call{Name: "lgetxattr", CallName: "lgetxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "val", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 9}, - &Call{Name: "link", CallName: "link", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: -1}, &Call{Name: "linkat", CallName: "linkat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4096, 1024}}}, NR: 37}, &Call{Name: "listen", CallName: "listen", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "backlog", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: 201}, &Call{Name: "listen$netrom", CallName: "listen", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_netrom")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "backlog", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: 201}, @@ -22456,26 +22413,18 @@ var Calls = []*Call{ &Call{Name: "lremovexattr", CallName: "lremovexattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}}, NR: 15}, &Call{Name: "lseek", CallName: "lseek", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "offset", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "whence", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}}, NR: 62}, &Call{Name: "lsetxattr", CallName: "lsetxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 6}, - &Call{Name: "lstat", CallName: "lstat", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statbuf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"stat", "", DirOut})}}, NR: -1}, &Call{Name: "madvise", CallName: "madvise", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "advice", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4, 9, 10, 11, 100, 101, 12, 13, 14, 15, 16, 17}}}, NR: 233}, &Call{Name: "mbind", CallName: "mbind", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 2, 3, 1, 32768, 16384}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4}}}, NR: 235}, &Call{Name: "membarrier", CallName: "membarrier", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 283}, &Call{Name: "memfd_create", CallName: "memfd_create", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 279}, &Call{Name: "migrate_pages", CallName: "migrate_pages", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 238}, &Call{Name: "mincore", CallName: "mincore", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "vec", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "vec", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 232}, - &Call{Name: "mkdir", CallName: "mkdir", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, &Call{Name: "mkdirat", CallName: "mkdirat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: 34}, - &Call{Name: "mknod", CallName: "mknod", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{32768, 8192, 24576, 4096, 49152, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, - &Call{Name: "mknod$loop", CallName: "mknod", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{32768, 8192, 24576, 4096, 49152, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "dev", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, ValuesStart: 1792, ValuesPerProc: 2}}, NR: -1}, &Call{Name: "mknodat", CallName: "mknodat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "dirfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{32768, 8192, 24576, 4096, 49152, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: 33}, &Call{Name: "mlock", CallName: "mlock", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 228}, &Call{Name: "mlock2", CallName: "mlock2", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1}}}, NR: 284}, &Call{Name: "mlockall", CallName: "mlockall", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 230}, &Call{Name: "mmap", CallName: "mmap", Native: true, Ret: &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "ret", ArgDir: DirOut, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4, 1, 2, 8, 16777216, 33554432}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 32, 2048, 4096, 0, 16, 256, 262144, 8192, 65536, 16384, 32768, 131072, 0}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "offset", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}}, NR: 222}, - &Call{Name: "modify_ldt$read", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, - &Call{Name: "modify_ldt$read_default", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, - &Call{Name: "modify_ldt$write", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, - &Call{Name: "modify_ldt$write2", CallName: "modify_ldt", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "func", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(17)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, &Call{Name: "mount", CallName: "mount", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "src", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dst", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "filesystem", Values: []string{"sysfs\x00", "rootfs\x00", "ramfs\x00", "tmpfs\x00", "devtmpfs\x00", "debugfs\x00", "securityfs\x00", "sockfs\x00", "pipefs\x00", "anon_inodefs\x00", "devpts\x00", "ext3\x00", "ext2\x00", "ext4\x00", "hugetlbfs\x00", "vfat\x00", "ecryptfs\x00", "fuseblk\x00", "fuse\x00", "rpc_pipefs\x00", "nfs\x00", "nfs4\x00", "nfsd\x00", "binfmt_misc\x00", "autofs\x00", "xfs\x00", "jfs\x00", "msdos\x00", "ntfs\x00", "minix\x00", "hfs\x00", "hfsplus\x00", "qnx4\x00", "ufs\x00", "btrfs\x00", "configfs\x00", "ncpfs\x00", "qnx6\x00", "exofs\x00", "befs\x00", "vxfs\x00", "gfs2\x00", "gfs2meta\x00", "fusectl\x00", "bfs\x00", "nsfs\x00", "efs\x00", "cifs\x00", "efivarfs\x00", "affs\x00", "tracefs\x00", "bdev\x00", "ocfs2\x00", "ocfs2_dlmfs\x00", "hpfs\x00", "proc\x00", "afs\x00", "reiserfs\x00", "jffs2\x00", "romfs\x00", "aio\x00", "sysv\x00", "v7\x00", "udf\x00", "ceph\x00", "pstore\x00", "adfs\x00", "9p\x00", "hostfs\x00", "squashfs\x00", "cramfs\x00", "iso9660\x00", "coda\x00", "nilfs2\x00", "logfs\x00", "overlay\x00", "f2fs\x00", "omfs\x00", "ubifs\x00", "openpromfs\x00", "bpf\x00", "cgroup\x00", "cgroup2\x00", "cpuset\x00", "mqueue\x00", "aufs\x00", "selinuxfs\x00"}, Length: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4096, 128, 64, 8192, 1024, 4, 2048, 8, 2, 1, 2097152, 32, 32768, 16777216, 16, 16384, 65536, 131072, 262144, 524288, 1048576, 8388608, 33554432}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "data", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 40}, &Call{Name: "move_pages", CallName: "move_pages", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "pages", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pages", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, Kind: ArrayRandLen}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodes", ArgDir: DirIn, IsOptional: true}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}, Kind: ArrayRandLen}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "status", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirOut, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}, Kind: ArrayRandLen}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2, 4}}}, NR: 239}, &Call{Name: "mprotect", CallName: "mprotect", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4, 1, 2, 8, 16777216, 33554432}}}, NR: 226}, @@ -22502,8 +22451,6 @@ var Calls = []*Call{ &Call{Name: "munmap", CallName: "munmap", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 215}, &Call{Name: "name_to_handle_at", CallName: "name_to_handle_at", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "handle", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"file_handle", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mnt", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4096, 1024}}}, NR: 264}, &Call{Name: "nanosleep", CallName: "nanosleep", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "req", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rem", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"timespec", "", DirOut})}}, NR: 101}, - &Call{Name: "open", CallName: "open", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "open$dir", CallName: "open", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_dir")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, &Call{Name: "open_by_handle_at", CallName: "open_by_handle_at", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "mountdirfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "handle", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"file_handle", "", DirIn})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}}, NR: 265}, &Call{Name: "openat", CallName: "openat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: 56}, &Call{Name: "openat$audio", CallName: "openat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(18446744073709551516)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string{"/dev/audio\x00"}, Length: 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 56}, @@ -22539,16 +22486,13 @@ var Calls = []*Call{ &Call{Name: "openat$vhci", CallName: "openat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(18446744073709551516)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string{"/dev/vhci\x00"}, Length: 10}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 56}, &Call{Name: "openat$xenevtchn", CallName: "openat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(18446744073709551516)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string{"/dev/xen/evtchn\x00"}, Length: 16}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 56}, &Call{Name: "openat$zygote", CallName: "openat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(18446744073709551516)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string{"/dev/socket/zygote\x00"}, Length: 19}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 56}, - &Call{Name: "pause", CallName: "pause", Native: true, Args: []Type{}, NR: -1}, &Call{Name: "perf_event_open", CallName: "perf_event_open", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_perf")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "attr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"perf_event_attr", "", DirIn})}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "cpu", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_perf", FldName: "group", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_perf")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4, 8}}}, NR: 241}, &Call{Name: "personality", CallName: "personality", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "persona", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 68157441, 83886082, 100663299, 83886084, 67108869, 6, 83886087, 8, 67108873, 67108874, 67108875, 12, 67108877, 68157454, 15, 16, 262144, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728}}}, NR: 92}, - &Call{Name: "pipe", CallName: "pipe", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pipefd", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pipefd", "", DirOut})}}, NR: -1}, &Call{Name: "pipe2", CallName: "pipe2", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pipefd", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pipefd", "", DirOut})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 59}, &Call{Name: "pivot_root", CallName: "pivot_root", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new_root", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "put_old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 41}, &Call{Name: "pkey_alloc", CallName: "pkey_alloc", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "pkey", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("pkey")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "val", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 289}, &Call{Name: "pkey_free", CallName: "pkey_free", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pkey", FldName: "key", ArgDir: DirIn, IsOptional: false}, Desc: resource("pkey")}}, NR: 290}, &Call{Name: "pkey_mprotect", CallName: "pkey_mprotect", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4, 1, 2, 8, 16777216, 33554432}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pkey", FldName: "key", ArgDir: DirIn, IsOptional: false}, Desc: resource("pkey")}}, NR: 288}, - &Call{Name: "poll", CallName: "poll", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fds", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pollfd", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nfds", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "fds", ByteSize: 0}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: -1}, &Call{Name: "ppoll", CallName: "ppoll", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fds", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pollfd", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nfds", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "fds", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tsp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "sigmask", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "sigmask", ByteSize: 0}}, NR: 73}, &Call{Name: "prctl$getname", CallName: "prctl", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(16)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "name", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 167}, &Call{Name: "prctl$getreaper", CallName: "prctl", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{37, 19, 9, 11, 2, 40, 25, 5}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 167}, @@ -22585,7 +22529,6 @@ var Calls = []*Call{ &Call{Name: "read", CallName: "read", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: 63}, &Call{Name: "read$eventfd", CallName: "read", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_event", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_event")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}}, NR: 63}, &Call{Name: "readahead", CallName: "readahead", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 213}, - &Call{Name: "readlink", CallName: "readlink", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "siz", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: -1}, &Call{Name: "readlinkat", CallName: "readlinkat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "siz", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: 78}, &Call{Name: "readv", CallName: "readv", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "vec", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"iovec_out", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "vec", ByteSize: 0}}, NR: 65}, &Call{Name: "recvfrom", CallName: "recvfrom", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1073741824, 64, 8192, 1, 2, 32, 256, 65536}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_storage", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 207}, @@ -22601,12 +22544,10 @@ var Calls = []*Call{ &Call{Name: "recvmsg$netrom", CallName: "recvmsg", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_netrom", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_netrom")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msghdr_netrom", "", DirIn})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1073741824, 64, 8192, 1, 2, 32, 256, 65536}}}, NR: 212}, &Call{Name: "remap_file_pages", CallName: "remap_file_pages", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4, 1, 2, 8, 16777216, 33554432}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pgoff", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 32, 2048, 4096, 0, 16, 256, 262144, 8192, 65536, 16384, 32768, 131072, 0}}}, NR: 234}, &Call{Name: "removexattr", CallName: "removexattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}}, NR: 14}, - &Call{Name: "rename", CallName: "rename", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: -1}, &Call{Name: "renameat", CallName: "renameat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 38}, &Call{Name: "renameat2", CallName: "renameat2", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "oldfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2, 1, 4}}}, NR: 276}, &Call{Name: "request_key", CallName: "request_key", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("key")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "key_type", Values: []string{"user\x00", "keyring\x00", "logon\x00", "trusted\x00", "big_key\x00", "dead\x00", ".request_key_auth\x00", "syzkaller\x00"}, Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "desc", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"key_desc", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "callout", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "keyring", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{18446744073709551615, 18446744073709551614, 18446744073709551613, 18446744073709551612, 18446744073709551611, 18446744073709551610, 18446744073709551609, 18446744073709551608}}}, NR: 218}, &Call{Name: "restart_syscall", CallName: "restart_syscall", Native: true, Args: []Type{}, NR: 128}, - &Call{Name: "rmdir", CallName: "rmdir", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: -1}, &Call{Name: "rt_sigaction", CallName: "rt_sigaction", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "signalno", FldName: "sig", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Kind: IntSignalno}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "act", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigaction", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "oact", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sigaction", "", DirOut})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sigsetsize", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "fake", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fake", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirOut})}}, NR: 134}, &Call{Name: "rt_sigpending", CallName: "rt_sigpending", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "set", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirOut})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sigsetsize", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "set", ByteSize: 0}}, NR: 136}, &Call{Name: "rt_sigprocmask", CallName: "rt_sigprocmask", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "how", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nset", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "oset", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sigset", "", DirOut})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sigsetsize", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "nset", ByteSize: 0}}, NR: 135}, @@ -22626,7 +22567,6 @@ var Calls = []*Call{ &Call{Name: "sched_setscheduler", CallName: "sched_setscheduler", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "policy", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 3, 5, 1, 2, 6}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "prio", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 119}, &Call{Name: "sched_yield", CallName: "sched_yield", Native: true, Args: []Type{}, NR: 124}, &Call{Name: "seccomp", CallName: "seccomp", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "prog", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sock_fprog", "", DirIn})}}, NR: 277}, - &Call{Name: "select", CallName: "select", Native: true, Args: []Type{&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "n", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "inp", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "inp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "outp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "exp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tvp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timeval", "", DirInOut})}}, NR: -1}, &Call{Name: "semctl$GETALL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(13)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 191}, &Call{Name: "semctl$GETNCNT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(14)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 191}, &Call{Name: "semctl$GETPID", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(11)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 191}, @@ -22667,7 +22607,6 @@ var Calls = []*Call{ &Call{Name: "sendto$unix", CallName: "sendto", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_unix")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_un", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 206}, &Call{Name: "set_mempolicy", CallName: "set_mempolicy", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 2, 3, 1, 32768, 16384}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 237}, &Call{Name: "set_robust_list", CallName: "set_robust_list", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "head", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"robust_list", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "head", ByteSize: 0}}, NR: 99}, - &Call{Name: "set_thread_area", CallName: "set_thread_area", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "info", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}}, NR: -1}, &Call{Name: "set_tid_address", CallName: "set_tid_address", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tidptr", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 96}, &Call{Name: "setfsgid", CallName: "setfsgid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "fsgid", ArgDir: DirIn, IsOptional: false}, Desc: resource("gid")}}, NR: 152}, &Call{Name: "setfsuid", CallName: "setfsuid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "fsuid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 151}, @@ -22879,7 +22818,6 @@ var Calls = []*Call{ &Call{Name: "shmget$private", CallName: "shmget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_shm")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "unused", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}}, NR: 194}, &Call{Name: "shutdown", CallName: "shutdown", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "how", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}}, NR: 210}, &Call{Name: "sigaltstack", CallName: "sigaltstack", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "ss", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "oss", ArgDir: DirIn, IsOptional: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 132}, - &Call{Name: "signalfd", CallName: "signalfd", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_signal", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_signal")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mask", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mask", ByteSize: 0}}, NR: -1}, &Call{Name: "signalfd4", CallName: "signalfd4", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_signal", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_signal")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mask", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mask", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 74}, &Call{Name: "socket", CallName: "socket", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock")}, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "domain", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 10, 4, 16, 9, 3, 8, 5, 17}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "type", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 3, 4, 5, 6, 10, 2048, 524288}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "proto", ArgDir: DirIn, IsOptional: false}, TypeSize: 1, BigEndian: false, BitfieldLen: 0}}}, NR: 198}, &Call{Name: "socket$alg", CallName: "socket", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_alg", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("sock_alg")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(38)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "type", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(5)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "proto", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 198}, @@ -22933,17 +22871,12 @@ var Calls = []*Call{ &Call{Name: "socketpair$llc", CallName: "socketpair", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(26)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "type", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2, 1}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "proto", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fds", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"llc_pair", "", DirOut})}}, NR: 199}, &Call{Name: "socketpair$unix", CallName: "socketpair", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "domain", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "type", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 5}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "proto", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fds", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"unix_pair", "", DirOut})}}, NR: 199}, &Call{Name: "splice", CallName: "splice", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdin", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "offin", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdout", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "offout", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4, 8}}}, NR: 76}, - &Call{Name: "stat", CallName: "stat", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statbuf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"stat", "", DirOut})}}, NR: -1}, &Call{Name: "statfs", CallName: "statfs", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 43}, &Call{Name: "statx", CallName: "statx", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "dfd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 1024, 2048, 4096, 24576, 0, 8192, 16384}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mask", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2047, 2048, 4095}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statxbuf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"statx", "", DirOut})}}, NR: 291}, - &Call{Name: "symlink", CallName: "symlink", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: -1}, &Call{Name: "symlinkat", CallName: "symlinkat", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 36}, &Call{Name: "sync", CallName: "sync", Native: true, Args: []Type{}, NR: 81}, &Call{Name: "sync_file_range", CallName: "sync_file_range", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "nbytes", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4}}}, NR: 84}, &Call{Name: "syncfs", CallName: "syncfs", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 267}, - &Call{Name: "sysfs$1", CallName: "sysfs", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fsname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: -1}, - &Call{Name: "sysfs$2", CallName: "sysfs", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "fsindex", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "fsname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "fsname", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "sysfs$3", CallName: "sysfs", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}}, NR: -1}, &Call{Name: "sysinfo", CallName: "sysinfo", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "info", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "info", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 179}, &Call{Name: "syslog", CallName: "syslog", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4, 5, 7, 6, 9, 10}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: 116}, &Call{Name: "syz_emit_ethernet", CallName: "syz_emit_ethernet", Native: false, Args: []Type{&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "packet", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "packet", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"eth_packet", "", DirIn})}}, NR: 1000006}, @@ -23050,7 +22983,6 @@ var Calls = []*Call{ &Call{Name: "syz_test$vma0", CallName: "syz_test", Native: false, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "v0", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "l0", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "v0", ByteSize: 0}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "v1", ArgDir: DirIn, IsOptional: false}, RangeBegin: 5, RangeEnd: 5}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "l1", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "v1", ByteSize: 0}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "v2", ArgDir: DirIn, IsOptional: false}, RangeBegin: 7, RangeEnd: 9}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "l2", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "v2", ByteSize: 0}}, NR: 1000001}, &Call{Name: "tee", CallName: "tee", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdin", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdout", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4, 8}}}, NR: 77}, &Call{Name: "tgkill", CallName: "tgkill", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "gid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "tid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "signalno", FldName: "sig", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Kind: IntSignalno}}, NR: 131}, - &Call{Name: "time", CallName: "time", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "t", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: -1}, &Call{Name: "timer_create", CallName: "timer_create", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "id", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 5, 1, 6, 4, 7, 2, 3}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ev", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigevent", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timerid", ArgDir: DirIn, IsOptional: false}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "timerid", FldName: "", ArgDir: DirOut, IsOptional: false}, Desc: resource("timerid")}}}, NR: 107}, &Call{Name: "timer_delete", CallName: "timer_delete", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "timerid", FldName: "timerid", ArgDir: DirIn, IsOptional: false}, Desc: resource("timerid")}}, NR: 111}, &Call{Name: "timer_getoverrun", CallName: "timer_getoverrun", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "timerid", FldName: "timerid", ArgDir: DirIn, IsOptional: false}, Desc: resource("timerid")}}, NR: 109}, @@ -23064,15 +22996,10 @@ var Calls = []*Call{ &Call{Name: "truncate", CallName: "truncate", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 45}, &Call{Name: "umount2", CallName: "umount2", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4, 8}}}, NR: 39}, &Call{Name: "uname", CallName: "uname", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 160}, - &Call{Name: "unlink", CallName: "unlink", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: -1}, &Call{Name: "unlinkat", CallName: "unlinkat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 512}}}, NR: 35}, &Call{Name: "unshare", CallName: "unshare", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{256, 512, 1024, 2048, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}}}, NR: 97}, - &Call{Name: "uselib", CallName: "uselib", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "lib", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: -1}, &Call{Name: "userfaultfd", CallName: "userfaultfd", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uffd", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_uffd")}, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 282}, - &Call{Name: "ustat", CallName: "ustat", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "dev", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ustat", "", DirOut})}}, NR: -1}, - &Call{Name: "utime", CallName: "utime", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "filename", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "times", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"utimbuf", "", DirIn})}}, NR: -1}, &Call{Name: "utimensat", CallName: "utimensat", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "dir", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pathname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "times", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"itimerval", "", DirIn})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 256}}}, NR: 88}, - &Call{Name: "utimes", CallName: "utimes", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "filename", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "times", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"itimerval", "", DirIn})}}, NR: -1}, &Call{Name: "vmsplice", CallName: "vmsplice", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "vec", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"iovec_in", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "vec", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4, 8}}}, NR: 75}, &Call{Name: "wait4", CallName: "wait4", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "status", ArgDir: DirIn, IsOptional: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "options", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 8, 4, 2, 8, 1, 16777216, 2147483648, 1073741824, 536870912}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ru", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"rusage", "", DirOut})}}, NR: 260}, &Call{Name: "waitid", CallName: "waitid", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "which", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 0}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "infop", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"siginfo", "", DirOut})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "options", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 8, 4, 2, 8, 1, 16777216, 2147483648, 1073741824, 536870912}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ru", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"rusage", "", DirOut})}}, NR: 95}, diff --git a/sys/sys_ppc64le.go b/sys/sys_ppc64le.go index 66ece5b5f..9c5cca695 100644 --- a/sys/sys_ppc64le.go +++ b/sys/sys_ppc64le.go @@ -21598,7 +21598,6 @@ var Calls = []*Call{ &Call{Name: "acct", CallName: "acct", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "filename", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 51}, &Call{Name: "add_key", CallName: "add_key", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "key", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("key")}, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "type", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "key_type", Values: []string{"user\x00", "keyring\x00", "logon\x00", "trusted\x00", "big_key\x00", "dead\x00", ".request_key_auth\x00", "syzkaller\x00"}, Length: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "desc", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"key_desc", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: true}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "payload", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "paylen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "payload", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "keyring", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{18446744073709551615, 18446744073709551614, 18446744073709551613, 18446744073709551612, 18446744073709551611, 18446744073709551610, 18446744073709551609, 18446744073709551608}}}, NR: 269}, &Call{Name: "alarm", CallName: "alarm", Native: true, Args: []Type{&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "seconds", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 27}, - &Call{Name: "arch_prctl", CallName: "arch_prctl", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "code", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4098, 4099, 4097, 4100}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, &Call{Name: "bind", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_storage", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 327}, &Call{Name: "bind$alg", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_alg", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_alg")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_alg", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 327}, &Call{Name: "bind$ax25", CallName: "bind", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_ax25", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_ax25")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sockaddr_ax25", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 327}, @@ -21711,7 +21710,6 @@ var Calls = []*Call{ &Call{Name: "get_kernel_syms", CallName: "get_kernel_syms", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "table", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "table", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 130}, &Call{Name: "get_mempolicy", CallName: "get_mempolicy", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mode", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 4, 2, 1}}}, NR: 260}, &Call{Name: "get_robust_list", CallName: "get_robust_list", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "head", ArgDir: DirIn, IsOptional: false}, Type: &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"robust_list", "", DirOut})}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "len", ArgDir: DirIn, IsOptional: false}, Type: &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "head", ByteSize: 0}}}, NR: 299}, - &Call{Name: "get_thread_area", CallName: "get_thread_area", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "info", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}}, NR: -1}, &Call{Name: "getcwd", CallName: "getcwd", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}}, NR: 182}, &Call{Name: "getdents", CallName: "getdents", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ent", ByteSize: 0}}, NR: 141}, &Call{Name: "getdents64", CallName: "getdents64", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "ent", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ent", ByteSize: 0}}, NR: 202}, @@ -22007,13 +22005,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$GIO_SCRNMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19264)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$GIO_UNIMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19302)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"unimapdesc_out", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$GIO_UNISCRNMAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19305)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_ALLOC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_allocation_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_CUSTOM", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_custom_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_FREE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_handle_data", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_IMPORT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_MAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_SHARE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$ION_IOC_SYNC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ion", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_ion")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"ion_fd_data", "", DirInOut})}}, NR: 54}, &Call{Name: "ioctl$KDADDIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19252)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KDDELIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19253)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KDDISABIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19255)}}, NR: 54}, @@ -22039,7 +22030,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KDSKBSENT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19273)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$KIOCSOUND", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19247)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KVM_ARM_SET_DEVICE_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148576939)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_arm_device_addr", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_ARM_VCPU_INIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_init", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_ASSIGN_DEV_IRQ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2151722608)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_irq", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_ASSIGN_PCI_DEVICE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1077980777)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_pci_dev", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_ASSIGN_SET_INTX_MASK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2151722660)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_assigned_pci_dev", "", DirIn})}}, NR: 54}, @@ -22058,30 +22048,18 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_ENABLE_CAP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2154344099)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_enable_cap_vm", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_ENABLE_CAP_CPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2154344099)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_enable_cap_cpu", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_CLOCK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1076932220)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_clock_data", "", DirOut})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_CPUID2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid2", "", DirOut})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_DEBUGREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_debugregs", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2149101282)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_DIRTY_LOG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148576834)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_dirty_log", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_EMULATED_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_FPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1090563724)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_fpu", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_IRQCHIP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3255348834)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_chip", "", DirOut})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_LAPIC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_lapic_state", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_MP_STATE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074048664)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_MSRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msrs", "", DirOut})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_MSR_INDEX_LIST", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msr_list", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_NR_MMU_PAGES", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536915525)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_ONE_REG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148576939)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_one_reg", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_PIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirOut})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_PIT2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_REGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1099476609)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_regs", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_REG_LIST", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3221794480)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_reg_list", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_SREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1154526851)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_sregs", "", DirOut})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_SUPPORTED_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_TSC_KHZ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536915619)}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_VCPU_EVENTS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_events", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$KVM_GET_VCPU_MMAP_SIZE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536915460)}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_XCRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xcrs", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_GET_XSAVE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xsave", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$KVM_HAS_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2149101283)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_INTERRUPT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147790470)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 54}, &Call{Name: "ioctl$KVM_IOEVENTFD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2151722617)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_ioeventfd", "", DirIn})}}, NR: 54}, @@ -22103,22 +22081,15 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_S390_VCPU_FAULT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148052562)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_BOOT_CPU_ID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536915576)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntRange, RangeBegin: 0, RangeEnd: 2}}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_CLOCK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2150674043)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_clock_data", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_CPUID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_CPUID2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_cpuid2", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_DEBUGREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_debugregs", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_DEVICE_ATTR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2149101281)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_device_attr", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_FPU", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2164305549)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_fpu", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_GSI_ROUTING", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148052586)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_routing", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_GUEST_DEBUG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2164829851)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_guest_debug", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_IDENTITY_MAP_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148052552)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 4, 0x1000, 0x2000, 0x3000, 0x4000, 0x5000, 0x6000, 0xd000, 0xf000, 0x100000, 0x10000}}}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_IRQCHIP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1107865187)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_irq_chip", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_LAPIC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_lapic_state", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_MP_STATE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147790489)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8}}}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_MSRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msrs", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_NR_MMU_PAGES", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536915524)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_ONE_REG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148576940)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_one_reg", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_PIT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_PIT2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_pit_state2", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_REGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2173218434)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_regs", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_SIGNAL_MASK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147790475)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_signal_mask", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_SREGS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2228268676)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_sregs", "", DirIn})}}, NR: 54}, @@ -22126,9 +22097,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_SET_TSS_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536915527)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0xd000}}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_USER_MEMORY_REGION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2149625414)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_userspace_memory_region", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SET_VAPIC_ADDR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148052627)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 4, 0x1000, 0x2000, 0x3000, 0x4000, 0x5000, 0x6000, 0xd000, 0xf000, 0x100000, 0x10000}}}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_VCPU_EVENTS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_vcpu_events", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_XCRS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xcrs", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_SET_XSAVE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xsave", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SIGNAL_MSI", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2149625509)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_msi", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_SMI", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536915639)}}, NR: 54}, &Call{Name: "ioctl$KVM_TPR_ACCESS_REPORTING", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3223891602)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_tpr_access_ctl", "", DirIn})}}, NR: 54}, @@ -22136,8 +22104,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$KVM_UNREGISTER_COALESCED_MMIO", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148576872)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_coalesced_mmio_zone", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$KVM_X86_GET_MCE_CAP_SUPPORTED", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074310813)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$KVM_X86_SETUP_MCE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148052636)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_mce_cap", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_X86_SET_MCE", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmcpu", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmcpu")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_x86_mce", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$KVM_XEN_HVM_CONFIG", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_kvmvm", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_kvmvm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"kvm_xen_hvm_config", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$LOOP_CHANGE_FD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19456)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 54}, &Call{Name: "ioctl$LOOP_CLR_FD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19457)}}, NR: 54}, &Call{Name: "ioctl$LOOP_CTL_ADD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop_ctrl", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop_ctrl")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19584)}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_loop_num", FldName: "num", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_loop_num")}}, NR: 54}, @@ -22244,21 +22210,9 @@ var Calls = []*Call{ &Call{Name: "ioctl$SNDRV_TIMER_IOCTL_STOP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sndtimer", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_sndtimer")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536892577)}}, NR: 54}, &Call{Name: "ioctl$SNDRV_TIMER_IOCTL_TREAD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sndtimer", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_sndtimer")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2147767298)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}, Kind: IntRange, RangeBegin: 0, RangeEnd: 1}}}, NR: 54}, &Call{Name: "ioctl$TCFLSH", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536900639)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, - &Call{Name: "ioctl$TCGETA", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termio", "", DirOut})}}, NR: 54}, - &Call{Name: "ioctl$TCGETS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$TCSBRK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536900637)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$TCSBRKP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21541)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, - &Call{Name: "ioctl$TCSETA", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termio", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$TCSETAF", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termio", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$TCSETAW", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termio", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$TCSETS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$TCSETSF", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirIn})}}, NR: 54}, - &Call{Name: "ioctl$TCSETSW", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"termios", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$TCXONC", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(536900638)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_CLOSE_CLIENT_SESSION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_closesession", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_LAUNCH_OPERATION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_launchop", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_OPEN_CLIENT_SESSION", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"te_opensession", "", DirInOut})}}, NR: 54}, - &Call{Name: "ioctl$TE_IOCTL_SS_CMD", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tlk", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tlk")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, &Call{Name: "ioctl$TIOCCBRK", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21544)}}, NR: 54}, &Call{Name: "ioctl$TIOCCONS", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21533)}}, NR: 54}, &Call{Name: "ioctl$TIOCEXCL", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21516)}}, NR: 54}, @@ -22267,7 +22221,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$TIOCGPGRP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074033783)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "", ArgDir: DirOut, IsOptional: false}, Desc: resource("pid")}}}, NR: 54}, &Call{Name: "ioctl$TIOCGSID", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074033783)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "", ArgDir: DirOut, IsOptional: false}, Desc: resource("pid")}}}, NR: 54}, &Call{Name: "ioctl$TIOCGSOFTCAR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21529)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 54}, - &Call{Name: "ioctl$TIOCGWINSZ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"winsize", "", DirOut})}}, NR: 54}, &Call{Name: "ioctl$TIOCLINUX2", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21532)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"tiocl_selection", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$TIOCLINUX3", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21532)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 1, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}}}, NR: 54}, &Call{Name: "ioctl$TIOCLINUX4", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21532)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 1, BigEndian: false, BitfieldLen: 0}, Val: uint64(4)}}}, NR: 54}, @@ -22289,7 +22242,6 @@ var Calls = []*Call{ &Call{Name: "ioctl$TIOCSPGRP", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074033783)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "", ArgDir: DirIn, IsOptional: false}, Desc: resource("pid")}}}, NR: 54}, &Call{Name: "ioctl$TIOCSSOFTCAR", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21530)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 54}, &Call{Name: "ioctl$TIOCSTI", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21522)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 54}, - &Call{Name: "ioctl$TIOCSWINSZ", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"winsize", "", DirIn})}}, NR: 54}, &Call{Name: "ioctl$TIOCTTYGSTRUCT", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tty")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(21530)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$TTUNGETFILTER", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tun")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1074812123)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 54}, &Call{Name: "ioctl$TUNATTACHFILTER", CallName: "ioctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_tun")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2148553941)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sock_fprog", "", DirIn})}}, NR: 54}, @@ -22486,16 +22438,6 @@ var Calls = []*Call{ &Call{Name: "mq_timedsend", CallName: "mq_timedsend", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_mq", FldName: "mqd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_mq")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "msg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "msg", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "msglen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "msg", ByteSize: 0}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "prio", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timeout", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"timespec", "", DirIn})}}, NR: 264}, &Call{Name: "mq_unlink", CallName: "mq_unlink", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 263}, &Call{Name: "mremap", CallName: "mremap", Native: true, Ret: &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "ret", ArgDir: DirOut, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "newlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "newaddr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "newaddr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}}, NR: 163}, - &Call{Name: "msgctl$IPC_INFO", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgctl$IPC_RMID", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: -1}, - &Call{Name: "msgctl$IPC_SET", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msqid_ds", "", DirIn})}}, NR: -1}, - &Call{Name: "msgctl$IPC_STAT", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgctl$MSG_INFO", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(12)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgctl$MSG_STAT", CallName: "msgctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(11)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "msgget", CallName: "msgget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_msq")}, Args: []Type{&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, ValuesStart: 2039379027, ValuesPerProc: 4}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "msgget$private", CallName: "msgget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_msq")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "msgrcv", CallName: "msgrcv", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msgbuf", "", DirOut})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "msgp", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "typ", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 8192, 4096}}}, NR: -1}, - &Call{Name: "msgsnd", CallName: "msgsnd", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_msq", FldName: "msqid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_msq")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msgp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msgbuf", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "sz", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "msgp", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048}}}, NR: -1}, &Call{Name: "msync", CallName: "msync", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 4, 2}}}, NR: 144}, &Call{Name: "munlock", CallName: "munlock", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 151}, &Call{Name: "munlockall", CallName: "munlockall", Native: true, Args: []Type{}, NR: 153}, @@ -22545,9 +22487,6 @@ var Calls = []*Call{ &Call{Name: "pipe", CallName: "pipe", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pipefd", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pipefd", "", DirOut})}}, NR: 42}, &Call{Name: "pipe2", CallName: "pipe2", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "pipefd", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pipefd", "", DirOut})}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 524288}}}, NR: 317}, &Call{Name: "pivot_root", CallName: "pivot_root", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new_root", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "put_old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 203}, - &Call{Name: "pkey_alloc", CallName: "pkey_alloc", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "pkey", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("pkey")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "val", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: -1}, - &Call{Name: "pkey_free", CallName: "pkey_free", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "pkey", FldName: "key", ArgDir: DirIn, IsOptional: false}, Desc: resource("pkey")}}, NR: -1}, - &Call{Name: "pkey_mprotect", CallName: "pkey_mprotect", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "prot", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{4, 1, 2, 8, 16777216, 33554432}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "pkey", FldName: "key", ArgDir: DirIn, IsOptional: false}, Desc: resource("pkey")}}, NR: -1}, &Call{Name: "poll", CallName: "poll", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fds", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pollfd", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nfds", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "fds", ByteSize: 0}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}, NR: 167}, &Call{Name: "ppoll", CallName: "ppoll", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fds", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"pollfd", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nfds", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "fds", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tsp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "sigmask", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "sigmask", ByteSize: 0}}, NR: 281}, &Call{Name: "prctl$getname", CallName: "prctl", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(16)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "name", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 171}, @@ -22627,23 +22566,6 @@ var Calls = []*Call{ &Call{Name: "sched_yield", CallName: "sched_yield", Native: true, Args: []Type{}, NR: 158}, &Call{Name: "seccomp", CallName: "seccomp", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "op", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "prog", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sock_fprog", "", DirIn})}}, NR: 358}, &Call{Name: "select", CallName: "select", Native: true, Args: []Type{&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "n", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "inp", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "inp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "outp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "exp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"fd_set", "", DirInOut})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tvp", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timeval", "", DirInOut})}}, NR: 82}, - &Call{Name: "semctl$GETALL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(13)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETNCNT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(14)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETPID", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(11)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETVAL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(12)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$GETZCNT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(15)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$IPC_INFO", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$IPC_RMID", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: -1}, - &Call{Name: "semctl$IPC_SET", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"semid_ds", "", DirIn})}}, NR: -1}, - &Call{Name: "semctl$IPC_STAT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$SEM_INFO", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(19)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$SEM_STAT", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(18)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "arg", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "semctl$SETALL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(17)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 2, BigEndian: false, BitfieldLen: 0}}, Kind: ArrayRandLen}}}, NR: -1}, - &Call{Name: "semctl$SETVAL", CallName: "semctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "semnum", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(16)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: -1}, - &Call{Name: "semget", CallName: "semget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_sem")}, Args: []Type{&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, ValuesStart: 2039359027, ValuesPerProc: 4}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "nsems", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "semget$private", CallName: "semget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_sem")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "nsems", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1, 2, 3, 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 256, 128, 64, 32, 16, 8, 4, 2, 1}}}, NR: -1}, - &Call{Name: "semop", CallName: "semop", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ops", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sembuf", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nops", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ops", ByteSize: 0}}, NR: -1}, - &Call{Name: "semtimedop", CallName: "semtimedop", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_sem", FldName: "semid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_sem")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ops", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sembuf", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nops", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "ops", ByteSize: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "timeout", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"timespec", "", DirIn})}}, NR: -1}, &Call{Name: "sendfile", CallName: "sendfile", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdout", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdin", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "off", ArgDir: DirIn, IsOptional: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "fileoff", FldName: "", ArgDir: DirInOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Kind: IntFileoff}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "count", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 186}, &Call{Name: "sendmmsg", CallName: "sendmmsg", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mmsg", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"send_mmsghdr", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mmsg", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912}}}, NR: 349}, &Call{Name: "sendmmsg$alg", CallName: "sendmmsg", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_algconn", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_algconn")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mmsg", ArgDir: DirIn, IsOptional: false}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"msghdr_alg", "", DirIn}), Kind: ArrayRandLen}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "vlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mmsg", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912}}}, NR: 349}, @@ -22667,7 +22589,6 @@ var Calls = []*Call{ &Call{Name: "sendto$unix", CallName: "sendto", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_unix", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock_unix")}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Kind: BufferBlobRand}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "buf", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "f", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{2048, 4, 64, 128, 32768, 16384, 1, 16, 262144, 536870912}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "addr", ArgDir: DirIn, IsOptional: true}, Type: getStruct(structKey{"sockaddr_un", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "addrlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "addr", ByteSize: 0}}, NR: 335}, &Call{Name: "set_mempolicy", CallName: "set_mempolicy", Native: true, Args: []Type{&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "mode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 2, 3, 1, 32768, 16384}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "nodemask", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}, NR: 261}, &Call{Name: "set_robust_list", CallName: "set_robust_list", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "head", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"robust_list", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "head", ByteSize: 0}}, NR: 300}, - &Call{Name: "set_thread_area", CallName: "set_thread_area", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "info", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"user_desc", "", DirIn})}}, NR: -1}, &Call{Name: "set_tid_address", CallName: "set_tid_address", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "tidptr", ArgDir: DirIn, IsOptional: false}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 4, BigEndian: false, BitfieldLen: 0}}}}, NR: 232}, &Call{Name: "setfsgid", CallName: "setfsgid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "fsgid", ArgDir: DirIn, IsOptional: false}, Desc: resource("gid")}}, NR: 139}, &Call{Name: "setfsuid", CallName: "setfsuid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "fsuid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 138}, @@ -22865,18 +22786,6 @@ var Calls = []*Call{ &Call{Name: "setsockopt$sock_void", CallName: "setsockopt", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "optname", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{27, 36}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "optval", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "optlen", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: 339}, &Call{Name: "setuid", CallName: "setuid", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", ArgDir: DirIn, IsOptional: false}, Desc: resource("uid")}}, NR: 23}, &Call{Name: "setxattr", CallName: "setxattr", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"xattr_name", "", DirIn})}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "val", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2}}}, NR: 209}, - &Call{Name: "shmat", CallName: "shmat", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("shmaddr")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{8192, 4096, 16384}}}, NR: -1}, - &Call{Name: "shmctl$IPC_INFO", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(3)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$IPC_RMID", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}}, NR: -1}, - &Call{Name: "shmctl$IPC_SET", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"shmid_ds", "", DirIn})}}, NR: -1}, - &Call{Name: "shmctl$IPC_STAT", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$SHM_INFO", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(14)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$SHM_LOCK", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(11)}}, NR: -1}, - &Call{Name: "shmctl$SHM_STAT", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(13)}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: -1}, - &Call{Name: "shmctl$SHM_UNLOCK", CallName: "shmctl", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "shmid", ArgDir: DirIn, IsOptional: false}, Desc: resource("ipc_shm")}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(12)}}, NR: -1}, - &Call{Name: "shmdt", CallName: "shmdt", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "shmaddr", FldName: "addr", ArgDir: DirIn, IsOptional: false}, Desc: resource("shmaddr")}}, NR: -1}, - &Call{Name: "shmget", CallName: "shmget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_shm")}, Args: []Type{&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, ValuesStart: 2039339027, ValuesPerProc: 4}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "unused", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}}, NR: -1}, - &Call{Name: "shmget$private", CallName: "shmget", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "ipc_shm", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("ipc_shm")}, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "key", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(0)}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "unused", ByteSize: 0}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{512, 1024, 2048, 1409286144, 2013265920, 4096, 256, 128, 64, 32, 16, 8, 4, 2, 1}}, &VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "unused", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}}, NR: -1}, &Call{Name: "shutdown", CallName: "shutdown", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("sock")}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "how", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{0, 1}}}, NR: 338}, &Call{Name: "sigaltstack", CallName: "sigaltstack", Native: true, Args: []Type{&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "ss", ArgDir: DirIn, IsOptional: false}, RangeBegin: 0, RangeEnd: 0}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "oss", ArgDir: DirIn, IsOptional: true}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "", ArgDir: DirOut, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}}}, NR: 185}, &Call{Name: "signalfd", CallName: "signalfd", Native: true, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_signal", FldName: "ret", ArgDir: DirOut, IsOptional: false}, Desc: resource("fd_signal")}, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "mask", ArgDir: DirIn, IsOptional: false}, Type: getStruct(structKey{"sigset", "", DirIn})}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Buf: "mask", ByteSize: 0}}, NR: 305}, @@ -22939,7 +22848,6 @@ var Calls = []*Call{ &Call{Name: "symlink", CallName: "symlink", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 83}, &Call{Name: "symlinkat", CallName: "symlinkat", Native: true, Args: []Type{&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_dir", FldName: "newfd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd_dir")}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferFilename}}}, NR: 295}, &Call{Name: "sync", CallName: "sync", Native: true, Args: []Type{}, NR: 36}, - &Call{Name: "sync_file_range", CallName: "sync_file_range", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "off", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "nbytes", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "flags", FldName: "flags", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Vals: []uint64{1, 2, 4}}}, NR: -1}, &Call{Name: "syncfs", CallName: "syncfs", Native: true, Args: []Type{&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", ArgDir: DirIn, IsOptional: false}, Desc: resource("fd")}}, NR: 348}, &Call{Name: "sysfs$1", CallName: "sysfs", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(1)}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fsname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", FldName: "", ArgDir: DirIn, IsOptional: false}, Kind: BufferString, SubKind: "", Values: []string(nil), Length: 0}}}, NR: 135}, &Call{Name: "sysfs$2", CallName: "sysfs", Native: true, Args: []Type{&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "option", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}, Val: uint64(2)}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "fsindex", ArgDir: DirIn, IsOptional: false}, TypeSize: 8, BigEndian: false, BitfieldLen: 0}}, &PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "fsname", ArgDir: DirIn, IsOptional: false}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "fsname", ArgDir: DirOut, IsOptional: false}, Kind: BufferBlobRand}}}, NR: 135}, diff --git a/sys/syz-extract/extract.go b/sys/syz-extract/extract.go index d3547dbcb..5f978a37e 100644 --- a/sys/syz-extract/extract.go +++ b/sys/syz-extract/extract.go @@ -68,12 +68,12 @@ func main() { failf("failed to read input file: %v", err) } - top, ok := ast.Parse(indata, filepath.Dir(inname), nil) - if !ok { + desc := ast.Parse(indata, filepath.Dir(inname), nil) + if desc == nil { os.Exit(1) } - consts := compileConsts(archs[*flagArch], top) + consts := compileConsts(archs[*flagArch], desc) out := new(bytes.Buffer) generateConsts(*flagArch, consts, out) @@ -95,8 +95,8 @@ func generateConsts(arch string, consts map[string]uint64, out io.Writer) { } } -func compileConsts(arch *Arch, top []interface{}) map[string]uint64 { - valArr, includes, incdirs, defines := compiler.ExtractConsts(top) +func compileConsts(arch *Arch, desc *ast.Description) map[string]uint64 { + valArr, includes, incdirs, defines := compiler.ExtractConsts(desc) if len(valArr) == 0 { return nil } diff --git a/sys/syz-extract/fetch.go b/sys/syz-extract/fetch.go index c480b8563..2340395cc 100644 --- a/sys/syz-extract/fetch.go +++ b/sys/syz-extract/fetch.go @@ -58,8 +58,13 @@ func fetchValues(arch string, vals []string, includes []string, incdirs []string } flagVals := strings.Split(string(out), " ") + if len(out) == 0 { + flagVals = nil + } if len(flagVals) != len(vals)-len(undeclared) { - failf("fetched wrong number of values %v != %v - %v", len(flagVals), len(vals), len(undeclared)) + failf("fetched wrong number of values %v != %v - %v\nflagVals: %q\nvals: %q\nundeclared: %q", + len(flagVals), len(vals), len(undeclared), + flagVals, vals, undeclared) } res := make(map[string]uint64) j := 0 diff --git a/sys/syz-sysgen/syscallnr.go b/sys/syz-sysgen/syscallnr.go index d3138bc32..8a04719b3 100644 --- a/sys/syz-sysgen/syscallnr.go +++ b/sys/syz-sysgen/syscallnr.go @@ -33,21 +33,27 @@ var syzkalls = map[string]uint64{ "syz_extract_tcp_res": 1000008, } -func generateExecutorSyscalls(syscalls []Syscall, consts map[string]map[string]uint64) { - var data SyscallsData - for _, arch := range archs { - var calls []SyscallData - for _, c := range syscalls { - syscallNR := -1 - if nr, ok := consts[arch.Name]["__NR_"+c.CallName]; ok { - syscallNR = int(nr) - } - calls = append(calls, SyscallData{c.Name, syscallNR}) - } - data.Archs = append(data.Archs, ArchData{arch.CARCH, calls}) +func generateExecutorSyscalls(arch *Arch, syscalls []Syscall) []byte { + data := ArchData{ + CARCH: arch.CARCH, + } + for _, c := range syscalls { + data.Calls = append(data.Calls, SyscallData{c.Name, c.NR}) + } + sort.Sort(SyscallArray(data.Calls)) + buf := new(bytes.Buffer) + if err := archTempl.Execute(buf, data); err != nil { + failf("failed to execute arch template: %v", err) + } + return buf.Bytes() +} + +func writeExecutorSyscalls(archs [][]byte) { + data := SyscallsData{ + Archs: archs, } for name, nr := range syzkalls { - data.FakeCalls = append(data.FakeCalls, SyscallData{name, int(nr)}) + data.FakeCalls = append(data.FakeCalls, SyscallData{name, nr}) } sort.Sort(SyscallArray(data.FakeCalls)) @@ -61,8 +67,8 @@ func generateExecutorSyscalls(syscalls []Syscall, consts map[string]map[string]u } type SyscallsData struct { - Archs []ArchData FakeCalls []SyscallData + Archs [][]byte } type ArchData struct { @@ -72,7 +78,7 @@ type ArchData struct { type SyscallData struct { Name string - NR int + NR uint64 } type SyscallArray []SyscallData @@ -93,11 +99,14 @@ struct call_t { }; {{range $arch := $.Archs}} -#if {{range $cdef := $arch.CARCH}}defined({{$cdef}}) || {{end}}0 +{{printf "%s" $arch}} +{{end}} +`)) + +var archTempl = template.Must(template.New("").Parse( + `#if {{range $cdef := $.CARCH}}defined({{$cdef}}) || {{end}}0 static call_t syscalls[] = { -{{range $c := $arch.Calls}} {"{{$c.Name}}", {{$c.NR}}}, +{{range $c := $.Calls}} {"{{$c.Name}}", {{$c.NR}}}, {{end}} }; -#endif -{{end}} -`)) +#endif`)) diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go index 623667daa..a197dffee 100644 --- a/sys/syz-sysgen/sysgen.go +++ b/sys/syz-sysgen/sysgen.go @@ -21,6 +21,7 @@ import ( "strings" "github.com/google/syzkaller/pkg/ast" + "github.com/google/syzkaller/pkg/compiler" ) var ( @@ -37,57 +38,44 @@ const ( func main() { flag.Parse() - top, ok := ast.ParseGlob("sys/*\\.txt", nil) - if !ok { + top := ast.ParseGlob("sys/*\\.txt", nil) + if top == nil { os.Exit(1) } - desc := astToDesc(top) - unsupportedFlags := make(map[string]int) - consts := make(map[string]map[string]uint64) + var syscallArchs [][]byte + unsupported := make(map[string]int) for _, arch := range archs { logf(0, "generating %v...", arch.Name) - consts[arch.Name] = readConsts(arch.Name) - - unsupported := make(map[string]bool) - archFlags := make(map[string][]string) - for f, vals := range desc.Flags { - var archVals []string - for _, val := range vals { - if isIdentifier(val) { - if v, ok := consts[arch.Name][val]; ok { - archVals = append(archVals, fmt.Sprint(v)) - } else { - if !unsupported[val] { - unsupported[val] = true - unsupportedFlags[val]++ - logf(0, "unsupported flag: %v", val) - } - } - } else { - archVals = append(archVals, val) - } - } - archFlags[f] = archVals + consts := readConsts(arch.Name) + + prog := compiler.Compile(top, consts, nil) + if prog == nil { + os.Exit(1) + } + for u := range prog.Unsupported { + unsupported[u]++ } + desc := astToDesc(prog.Desc) sysFile := filepath.Join("sys", "sys_"+arch.Name+".go") logf(1, "Generate code to init system call data in %v", sysFile) out := new(bytes.Buffer) - archDesc := *desc - archDesc.Flags = archFlags - generate(arch.Name, &archDesc, consts[arch.Name], out) + generate(arch.Name, desc, consts, out) writeSource(sysFile, out.Bytes()) logf(0, "") + + archData := generateExecutorSyscalls(arch, desc.Syscalls) + syscallArchs = append(syscallArchs, archData) } - for flag, count := range unsupportedFlags { + for what, count := range unsupported { if count == len(archs) { - failf("flag %v is unsupported on all arches (typo?)", flag) + failf("%v is unsupported on all arches (typo?)", what) } } - generateExecutorSyscalls(desc.Syscalls, consts) + writeExecutorSyscalls(syscallArchs) if *flagMemProfile != "" { f, err := os.Create(*flagMemProfile) @@ -114,6 +102,7 @@ type Description struct { type Syscall struct { Name string CallName string + NR uint64 Args [][]string Ret []string } @@ -139,7 +128,7 @@ func (a syscallArray) Len() int { return len(a) } func (a syscallArray) Less(i, j int) bool { return a[i].Name < a[j].Name } func (a syscallArray) Swap(i, j int) { a[i], a[j] = a[j], a[i] } -func astToDesc(top []interface{}) *Description { +func astToDesc(top *ast.Description) *Description { // As a temporal measure we just convert the new representation to the old one. // TODO: check for duplicate defines, structs, resources. // TODO: check for duplicate syscall argument names. @@ -151,20 +140,15 @@ func astToDesc(top []interface{}) *Description { Resources: make(map[string]Resource), } unnamedSeq := 0 - for _, decl := range top { + for _, decl := range top.Nodes { switch n := decl.(type) { case *ast.Resource: var vals []string for _, v := range n.Values { - switch { - case v.Ident != "": - vals = append(vals, v.Ident) - default: - if v.ValueHex { - vals = append(vals, fmt.Sprintf("0x%x", uintptr(v.Value))) - } else { - vals = append(vals, fmt.Sprint(uintptr(v.Value))) - } + if v.ValueHex { + vals = append(vals, fmt.Sprintf("0x%x", uintptr(v.Value))) + } else { + vals = append(vals, fmt.Sprint(uintptr(v.Value))) } } desc.Resources[n.Name.Name] = Resource{ @@ -176,6 +160,7 @@ func astToDesc(top []interface{}) *Description { call := Syscall{ Name: n.Name.Name, CallName: n.CallName, + NR: n.NR, } for _, a := range n.Args { call.Args = append(call.Args, astToDescField(a, desc.Unnamed, &unnamedSeq)) @@ -239,15 +224,10 @@ func astToDesc(top []interface{}) *Description { case *ast.IntFlags: var vals []string for _, v := range n.Values { - switch { - case v.Ident != "": - vals = append(vals, v.Ident) - default: - if v.ValueHex { - vals = append(vals, fmt.Sprintf("0x%x", uintptr(v.Value))) - } else { - vals = append(vals, fmt.Sprint(uintptr(v.Value))) - } + if v.ValueHex { + vals = append(vals, fmt.Sprintf("0x%x", uintptr(v.Value))) + } else { + vals = append(vals, fmt.Sprint(uintptr(v.Value))) } } desc.Flags[n.Name.Name] = vals @@ -350,36 +330,16 @@ func readConsts(arch string) map[string]uint64 { return consts } -var skipCurrentSyscall string - -func skipSyscall(why string) { - if skipCurrentSyscall != "" { - skipCurrentSyscall = why - } -} - func generate(arch string, desc *Description, consts map[string]uint64, out io.Writer) { - unsupported := make(map[string]bool) - fmt.Fprintf(out, "// AUTOGENERATED FILE\n") fmt.Fprintf(out, "package sys\n\n") - generateResources(desc, consts, out) - generateStructs(desc, consts, out) + generateResources(desc, out) + generateStructs(desc, out) fmt.Fprintf(out, "var Calls = []*Call{\n") for _, s := range desc.Syscalls { logf(4, " generate population code for %v", s.Name) - skipCurrentSyscall = "" - syscallNR := -1 - if nr, ok := consts["__NR_"+s.CallName]; ok { - syscallNR = int(nr) - } else { - if !unsupported[s.CallName] { - unsupported[s.CallName] = true - logf(0, "unsupported syscall: %v", s.CallName) - } - } native := true if _, ok := syzkalls[s.CallName]; ok { native = false @@ -387,7 +347,7 @@ func generate(arch string, desc *Description, consts map[string]uint64, out io.W fmt.Fprintf(out, "&Call{Name: \"%v\", CallName: \"%v\", Native: %v", s.Name, s.CallName, native) if len(s.Ret) != 0 { fmt.Fprintf(out, ", Ret: ") - generateArg("", "ret", s.Ret[0], "out", s.Ret[1:], desc, consts, true, false, out) + generateArg("", "ret", s.Ret[0], "out", s.Ret[1:], desc, true, false, out) } fmt.Fprintf(out, ", Args: []Type{") for i, a := range s.Args { @@ -395,13 +355,9 @@ func generate(arch string, desc *Description, consts map[string]uint64, out io.W fmt.Fprintf(out, ", ") } logf(5, " generate description for arg %v", i) - generateArg("", a[0], a[1], "in", a[2:], desc, consts, true, false, out) - } - if skipCurrentSyscall != "" { - logf(0, "unsupported syscall: %v due to %v", s.Name, skipCurrentSyscall) - syscallNR = -1 + generateArg("", a[0], a[1], "in", a[2:], desc, true, false, out) } - fmt.Fprintf(out, "}, NR: %v},\n", syscallNR) + fmt.Fprintf(out, "}, NR: %v},\n", s.NR) } fmt.Fprintf(out, "}\n\n") @@ -418,7 +374,7 @@ func generate(arch string, desc *Description, consts map[string]uint64, out io.W fmt.Fprintf(out, ")\n") } -func generateResources(desc *Description, consts map[string]uint64, out io.Writer) { +func generateResources(desc *Description, out io.Writer) { var resArray ResourceArray for _, res := range desc.Resources { resArray = append(resArray, res) @@ -433,15 +389,7 @@ func generateResources(desc *Description, consts map[string]uint64, out io.Write var values []string loop: for { - var values1 []string - for _, v := range res.Values { - if v1, ok := consts[v]; ok { - values1 = append(values1, fmt.Sprint(v1)) - } else if !isIdentifier(v) { - values1 = append(values1, v) - } - } - values = append(values1, values...) + values = append(append([]string{}, res.Values...), values...) switch res.Base { case "int8", "int16", "int32", "int64", "intptr": underlying = res.Base @@ -455,7 +403,7 @@ func generateResources(desc *Description, consts map[string]uint64, out io.Write } } fmt.Fprintf(out, "&ResourceDesc{Name: \"%v\", Type: ", name) - generateArg("", "resource-type", underlying, "inout", nil, desc, consts, true, true, out) + generateArg("", "resource-type", underlying, "inout", nil, desc, true, true, out) fmt.Fprintf(out, ", Kind: []string{") for i, k := range kind { if i != 0 { @@ -505,17 +453,17 @@ func generateStructEntry(str *Struct, out io.Writer) { typ, str.Name, false, packed, align, varlen) } -func generateStructFields(str *Struct, key structKey, desc *Description, consts map[string]uint64, out io.Writer) { +func generateStructFields(str *Struct, key structKey, desc *Description, out io.Writer) { fmt.Fprintf(out, "{structKey{\"%v\", \"%v\", %v}, []Type{\n", key.name, key.field, fmtDir(key.dir)) for _, a := range str.Flds { - generateArg(str.Name, a[0], a[1], key.dir, a[2:], desc, consts, false, true, out) + generateArg(str.Name, a[0], a[1], key.dir, a[2:], desc, false, true, out) fmt.Fprintf(out, ",\n") } fmt.Fprintf(out, "}},\n") } -func generateStructs(desc *Description, consts map[string]uint64, out io.Writer) { +func generateStructs(desc *Description, out io.Writer) { // Struct fields can refer to other structs. Go compiler won't like if // we refer to Structs during Structs initialization. So we do // it in 2 passes: on the first pass create struct types without fields, @@ -557,26 +505,18 @@ func generateStructs(desc *Description, consts map[string]uint64, out io.Writer) } sort.Sort(structKeySorter(sortedKeys)) for _, key := range sortedKeys { - generateStructFields(structMap[key], key, desc, consts, out) + generateStructFields(structMap[key], key, desc, out) } fmt.Fprintf(out, "}\n") } -func parseRange(buffer string, consts map[string]uint64) (string, string) { - lookupConst := func(name string) string { - if v, ok := consts[name]; ok { - return fmt.Sprint(v) - } - return name - } - +func parseRange(buffer string) (string, string) { parts := strings.Split(buffer, ":") switch len(parts) { case 1: - v := lookupConst(buffer) - return v, v + return buffer, buffer case 2: - return lookupConst(parts[0]), lookupConst(parts[1]) + return parts[0], parts[1] default: failf("bad range: %v", buffer) return "", "" @@ -587,7 +527,6 @@ func generateArg( parent, name, typ, dir string, a []string, desc *Description, - consts map[string]uint64, isArg, isField bool, out io.Writer) { origName := name @@ -659,15 +598,11 @@ func generateArg( } var size uint64 if len(a) >= 2 { - if v, ok := consts[a[1]]; ok { - size = v - } else { - v, err := strconv.ParseUint(a[1], 10, 64) - if err != nil { - failf("failed to parse string length for %v", name, a[1]) - } - size = v + v, err := strconv.ParseUint(a[1], 10, 64) + if err != nil { + failf("failed to parse string length for %v", name, a[1]) } + size = v for i, s := range vals { if uint64(len(s)) > size { failf("string value %q exceeds buffer length %v for arg %v", s, size, name) @@ -703,7 +638,7 @@ func generateArg( switch len(a) { case 0: case 1: - begin, end = parseRange(a[0], consts) + begin, end = parseRange(a[0]) default: failf("wrong number of arguments for %v arg %v, want 0 or 1, got %v", typ, name, len(a)) } @@ -744,15 +679,11 @@ func generateArg( case "pseudo": kind = "CsumPseudo" size, bigEndian, bitfieldLen = decodeIntType(a[3]) - if v, ok := consts[a[2]]; ok { - protocol = v - } else { - v, err := strconv.ParseUint(a[2], 10, 64) - if err != nil { - failf("failed to parse protocol %v", a[2]) - } - protocol = v + v, err := strconv.ParseUint(a[2], 10, 64) + if err != nil { + failf("failed to parse protocol %v", a[2]) } + protocol = v default: failf("unknown checksum kind '%v'", a[0]) } @@ -796,16 +727,7 @@ func generateArg( failf("wrong number of arguments for %v arg %v, want %v, got %v", typ, name, want, len(a)) } } - val := a[0] - if v, ok := consts[a[0]]; ok { - val = fmt.Sprint(v) - } else if isIdentifier(a[0]) { - // This is an identifier for which we don't have a value for this arch. - // Skip this syscall on this arch. - val = "0" - skipSyscall(fmt.Sprintf("missing const %v", a[0])) - } - fmt.Fprintf(out, "&ConstType{%v, Val: uint64(%v)}", intCommon(size, bigEndian, bitfieldLen), val) + fmt.Fprintf(out, "&ConstType{%v, Val: uint64(%v)}", intCommon(size, bigEndian, bitfieldLen), a[0]) case "proc": canBeArg = true size := uint64(ptrSize) @@ -877,14 +799,14 @@ func generateArg( if a[0] == "int8" { fmt.Fprintf(out, "&BufferType{%v, Kind: BufferBlobRand}", common()) } else { - fmt.Fprintf(out, "&ArrayType{%v, Type: %v, Kind: ArrayRandLen}", common(), generateType(a[0], dir, desc, consts)) + fmt.Fprintf(out, "&ArrayType{%v, Type: %v, Kind: ArrayRandLen}", common(), generateType(a[0], dir, desc)) } } else { - begin, end := parseRange(a[1], consts) + begin, end := parseRange(a[1]) if a[0] == "int8" { fmt.Fprintf(out, "&BufferType{%v, Kind: BufferBlobRange, RangeBegin: %v, RangeEnd: %v}", common(), begin, end) } else { - fmt.Fprintf(out, "&ArrayType{%v, Type: %v, Kind: ArrayRangeLen, RangeBegin: %v, RangeEnd: %v}", common(), generateType(a[0], dir, desc, consts), begin, end) + fmt.Fprintf(out, "&ArrayType{%v, Type: %v, Kind: ArrayRangeLen, RangeBegin: %v, RangeEnd: %v}", common(), generateType(a[0], dir, desc), begin, end) } } case "ptr": @@ -893,7 +815,7 @@ func generateArg( failf("wrong number of arguments for %v arg %v, want %v, got %v", typ, name, want, len(a)) } dir = "in" - fmt.Fprintf(out, "&PtrType{%v, Type: %v}", common(), generateType(a[1], a[0], desc, consts)) + fmt.Fprintf(out, "&PtrType{%v, Type: %v}", common(), generateType(a[1], a[0], desc)) default: if intRegExp.MatchString(typ) { canBeArg = true @@ -902,7 +824,7 @@ func generateArg( case 0: fmt.Fprintf(out, "&IntType{%v}", intCommon(size, bigEndian, bitfieldLen)) case 1: - begin, end := parseRange(a[0], consts) + begin, end := parseRange(a[0]) fmt.Fprintf(out, "&IntType{%v, Kind: IntRange, RangeBegin: %v, RangeEnd: %v}", intCommon(size, bigEndian, bitfieldLen), begin, end) default: @@ -910,7 +832,7 @@ func generateArg( } } else if strings.HasPrefix(typ, "unnamed") { if inner, ok := desc.Unnamed[typ]; ok { - generateArg("", "", inner[0], dir, inner[1:], desc, consts, false, isField, out) + generateArg("", "", inner[0], dir, inner[1:], desc, false, isField, out) } else { failf("unknown unnamed type '%v'", typ) } @@ -934,9 +856,9 @@ func generateArg( } } -func generateType(typ, dir string, desc *Description, consts map[string]uint64) string { +func generateType(typ, dir string, desc *Description) string { buf := new(bytes.Buffer) - generateArg("", "", typ, dir, nil, desc, consts, false, true, buf) + generateArg("", "", typ, dir, nil, desc, false, true, buf) return buf.String() } diff --git a/sys/test.txt b/sys/test.txt index 18ecdeb88..ded19ae0b 100644 --- a/sys/test.txt +++ b/sys/test.txt @@ -3,6 +3,10 @@ # Syscalls used in syzkaller tests. +# For IPPROTO_* consts. +include <linux/in.h> +include <linux/in6.h> + syz_test() # Integer types. diff --git a/sys/test_386.const b/sys/test_386.const index c9328ca7e..0581cbde3 100644 --- a/sys/test_386.const +++ b/sys/test_386.const @@ -1 +1,4 @@ # AUTOGENERATED FILE +IPPROTO_ICMPV6 = 58 +IPPROTO_TCP = 6 +IPPROTO_UDP = 17 diff --git a/sys/test_amd64.const b/sys/test_amd64.const index c9328ca7e..0581cbde3 100644 --- a/sys/test_amd64.const +++ b/sys/test_amd64.const @@ -1 +1,4 @@ # AUTOGENERATED FILE +IPPROTO_ICMPV6 = 58 +IPPROTO_TCP = 6 +IPPROTO_UDP = 17 diff --git a/sys/test_arm.const b/sys/test_arm.const index c9328ca7e..0581cbde3 100644 --- a/sys/test_arm.const +++ b/sys/test_arm.const @@ -1 +1,4 @@ # AUTOGENERATED FILE +IPPROTO_ICMPV6 = 58 +IPPROTO_TCP = 6 +IPPROTO_UDP = 17 diff --git a/sys/test_arm64.const b/sys/test_arm64.const index c9328ca7e..0581cbde3 100644 --- a/sys/test_arm64.const +++ b/sys/test_arm64.const @@ -1 +1,4 @@ # AUTOGENERATED FILE +IPPROTO_ICMPV6 = 58 +IPPROTO_TCP = 6 +IPPROTO_UDP = 17 diff --git a/sys/test_ppc64le.const b/sys/test_ppc64le.const index c9328ca7e..0581cbde3 100644 --- a/sys/test_ppc64le.const +++ b/sys/test_ppc64le.const @@ -1 +1,4 @@ # AUTOGENERATED FILE +IPPROTO_ICMPV6 = 58 +IPPROTO_TCP = 6 +IPPROTO_UDP = 17 diff --git a/tools/syz-fmt/syz-fmt.go b/tools/syz-fmt/syz-fmt.go index e6f14dcbe..83d211782 100644 --- a/tools/syz-fmt/syz-fmt.go +++ b/tools/syz-fmt/syz-fmt.go @@ -53,11 +53,11 @@ func processFile(file string, mode os.FileMode) { errorHandler := func(pos ast.Pos, msg string) { fmt.Fprintf(os.Stderr, "%v:%v:%v: %v", pos.File, pos.Line, pos.Col, msg) } - top, ok := ast.Parse(data, filepath.Base(file), errorHandler) - if !ok { + desc := ast.Parse(data, filepath.Base(file), errorHandler) + if desc == nil { os.Exit(1) } - formatted := ast.Format(top) + formatted := ast.Format(desc) if bytes.Equal(data, formatted) { return } |
