sys/linux: add udmabuf descriptions

This commit is contained in:
Dmitry Vyukov 2018-12-24 18:47:04 +01:00
parent a961943f02
commit 17c23ac162
14 changed files with 283 additions and 18 deletions

View File

@ -60,7 +60,7 @@
#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "2479c0e27733afee03ac9d652596f377e4ced3a9"
#define SYZ_REVISION "1a5633beb9d179c3fe82575d38abf1802a93c31b"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -70,7 +70,7 @@
#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "3480abfb18d1a0ec7fa7dc6491cec0fa6a2dee5f"
#define SYZ_REVISION "1f11f16d0677046755435f88af960871a50043da"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -80,7 +80,7 @@
#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "e0f1e6b3807009e404d6493bacb8e5b61a85681f"
#define SYZ_REVISION "52c9aca80103ffffdf15d3a707e6603a549a3275"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -90,7 +90,7 @@
#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "2f600a52df44b0b5feff1920910855924039dfdc"
#define SYZ_REVISION "9c188678f938e7c70759892d86e761b187776e38"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -100,7 +100,7 @@
#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "bc3a4f56b17c100440b23c0bf74c9af11be67c34"
#define SYZ_REVISION "c650d916aea7923240c938d126e8ec80491b27c8"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096

View File

@ -2451,6 +2451,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 54},
{"ioctl$TUNSETVNETHDRSZ", 54},
{"ioctl$TUNSETVNETLE", 54},
{"ioctl$UDMABUF_CREATE", 54},
{"ioctl$UDMABUF_CREATE_LIST", 54},
{"ioctl$UFFDIO_API", 54},
{"ioctl$UFFDIO_COPY", 54},
{"ioctl$UFFDIO_REGISTER", 54},
@ -2888,6 +2890,7 @@ const call_t syscalls[] = {
{"openat$sr", 295},
{"openat$sw_sync", 295},
{"openat$tun", 295},
{"openat$udambuf", 295},
{"openat$uhid", 295},
{"openat$uinput", 295},
{"openat$urandom", 295},
@ -4886,6 +4889,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 16},
{"ioctl$TUNSETVNETHDRSZ", 16},
{"ioctl$TUNSETVNETLE", 16},
{"ioctl$UDMABUF_CREATE", 16},
{"ioctl$UDMABUF_CREATE_LIST", 16},
{"ioctl$UFFDIO_API", 16},
{"ioctl$UFFDIO_COPY", 16},
{"ioctl$UFFDIO_REGISTER", 16},
@ -5333,6 +5338,7 @@ const call_t syscalls[] = {
{"openat$sr", 257},
{"openat$sw_sync", 257},
{"openat$tun", 257},
{"openat$udambuf", 257},
{"openat$uhid", 257},
{"openat$uinput", 257},
{"openat$urandom", 257},
@ -7320,6 +7326,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 54},
{"ioctl$TUNSETVNETHDRSZ", 54},
{"ioctl$TUNSETVNETLE", 54},
{"ioctl$UDMABUF_CREATE", 54},
{"ioctl$UDMABUF_CREATE_LIST", 54},
{"ioctl$UFFDIO_API", 54},
{"ioctl$UFFDIO_COPY", 54},
{"ioctl$UFFDIO_REGISTER", 54},
@ -7760,6 +7768,7 @@ const call_t syscalls[] = {
{"openat$sr", 322},
{"openat$sw_sync", 322},
{"openat$tun", 322},
{"openat$udambuf", 322},
{"openat$uhid", 322},
{"openat$uinput", 322},
{"openat$urandom", 322},
@ -9738,6 +9747,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 29},
{"ioctl$TUNSETVNETHDRSZ", 29},
{"ioctl$TUNSETVNETLE", 29},
{"ioctl$UDMABUF_CREATE", 29},
{"ioctl$UDMABUF_CREATE_LIST", 29},
{"ioctl$UFFDIO_API", 29},
{"ioctl$UFFDIO_COPY", 29},
{"ioctl$UFFDIO_REGISTER", 29},
@ -10171,6 +10182,7 @@ const call_t syscalls[] = {
{"openat$sr", 56},
{"openat$sw_sync", 56},
{"openat$tun", 56},
{"openat$udambuf", 56},
{"openat$uhid", 56},
{"openat$uinput", 56},
{"openat$urandom", 56},
@ -12128,6 +12140,8 @@ const call_t syscalls[] = {
{"ioctl$TUNSETVNETBE", 54},
{"ioctl$TUNSETVNETHDRSZ", 54},
{"ioctl$TUNSETVNETLE", 54},
{"ioctl$UDMABUF_CREATE", 54},
{"ioctl$UDMABUF_CREATE_LIST", 54},
{"ioctl$UFFDIO_API", 54},
{"ioctl$UFFDIO_COPY", 54},
{"ioctl$UFFDIO_REGISTER", 54},
@ -12464,6 +12478,7 @@ const call_t syscalls[] = {
{"openat$sr", 286},
{"openat$sw_sync", 286},
{"openat$tun", 286},
{"openat$udambuf", 286},
{"openat$uhid", 286},
{"openat$uinput", 286},
{"openat$urandom", 286},

View File

@ -56,6 +56,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_loop", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_loop"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_ctrl", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_loop_ctrl"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_num", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}, Kind: []string{"fd_loop_num"}, Values: []uint64{0, 1, 2, 10, 11, 12}},
{Name: "fd_memfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_memfd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_midi", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_midi"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -84,6 +85,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -21635,6 +21637,23 @@ var structDescs_386 = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4, ArgDir: 1}},
}}},
{Key: StructKey{Name: "udmabuf_create"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_item"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_item", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__pad", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_list"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_list", IsVarlen: true}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "list"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "list", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_item"}}},
}}},
{Key: StructKey{Name: "udp_extensions"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udp_extensions", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "guehdr"}, FldName: "guehdr"},
}}},
@ -30972,6 +30991,16 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025692},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075344706},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "udmabuf_create"}}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE_LIST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074296131},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_list"}}},
}},
{NR: 54, Name: "ioctl$UFFDIO_API", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uffd", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222841919},
@ -32570,7 +32599,7 @@ var syscalls_386 = []*Syscall{
{NR: 356, Name: "memfd_create", CallName: "memfd_create", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "memfd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 294, Name: "migrate_pages", CallName: "migrate_pages", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", TypeSize: 4}}},
@ -33294,6 +33323,11 @@ var syscalls_386 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$udambuf", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/udmabuf\x00"}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}, Val: 2},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$uhid", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/uhid\x00"}}},
@ -43457,6 +43491,8 @@ var consts_386 = []ConstValue{
{Name: "TX_RESET_MULTI_IDX", Value: 512},
{Name: "TX_SEND", Value: 4},
{Name: "TX_SETUP", Value: 1},
{Name: "UDMABUF_CREATE", Value: 1075344706},
{Name: "UDMABUF_CREATE_LIST", Value: 1074296131},
{Name: "UDPLITE_RECV_CSCOV", Value: 11},
{Name: "UDPLITE_SEND_CSCOV", Value: 10},
{Name: "UDP_CORK", Value: 1},
@ -45194,4 +45230,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_386 = "2479c0e27733afee03ac9d652596f377e4ced3a9"
const revision_386 = "1a5633beb9d179c3fe82575d38abf1802a93c31b"

View File

@ -56,6 +56,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_loop", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_loop"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_ctrl", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_loop_ctrl"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_num", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"fd_loop_num"}, Values: []uint64{0, 1, 2, 10, 11, 12}},
{Name: "fd_memfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_memfd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_midi", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_midi"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -84,6 +85,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -22052,6 +22054,23 @@ var structDescs_amd64 = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4, ArgDir: 1}},
}}},
{Key: StructKey{Name: "udmabuf_create"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_item"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_item", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__pad", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_list"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_list", IsVarlen: true}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "list"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "list", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_item"}}},
}}},
{Key: StructKey{Name: "udp_extensions"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udp_extensions", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "guehdr"}, FldName: "guehdr"},
}}},
@ -31534,6 +31553,16 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025692},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}},
}},
{NR: 16, Name: "ioctl$UDMABUF_CREATE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075344706},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "udmabuf_create"}}},
}},
{NR: 16, Name: "ioctl$UDMABUF_CREATE_LIST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074296131},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_list"}}},
}},
{NR: 16, Name: "ioctl$UFFDIO_API", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uffd", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222841919},
@ -33132,7 +33161,7 @@ var syscalls_amd64 = []*Syscall{
{NR: 319, Name: "memfd_create", CallName: "memfd_create", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "memfd_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2, 4}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 256, Name: "migrate_pages", CallName: "migrate_pages", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", TypeSize: 8}}},
@ -33906,6 +33935,11 @@ var syscalls_amd64 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$udambuf", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/udmabuf\x00"}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}, Val: 2},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$uhid", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/uhid\x00"}}},
@ -44232,6 +44266,8 @@ var consts_amd64 = []ConstValue{
{Name: "TX_RESET_MULTI_IDX", Value: 512},
{Name: "TX_SEND", Value: 4},
{Name: "TX_SETUP", Value: 1},
{Name: "UDMABUF_CREATE", Value: 1075344706},
{Name: "UDMABUF_CREATE_LIST", Value: 1074296131},
{Name: "UDPLITE_RECV_CSCOV", Value: 11},
{Name: "UDPLITE_SEND_CSCOV", Value: 10},
{Name: "UDP_CORK", Value: 1},
@ -45980,4 +46016,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_amd64 = "3480abfb18d1a0ec7fa7dc6491cec0fa6a2dee5f"
const revision_amd64 = "1f11f16d0677046755435f88af960871a50043da"

View File

@ -56,6 +56,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_loop", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_loop"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_ctrl", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_loop_ctrl"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_num", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4}}}, Kind: []string{"fd_loop_num"}, Values: []uint64{0, 1, 2, 10, 11, 12}},
{Name: "fd_memfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_memfd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_midi", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_midi"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -84,6 +85,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -21516,6 +21518,23 @@ var structDescs_arm = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4, ArgDir: 1}},
}}},
{Key: StructKey{Name: "udmabuf_create"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_item"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_item", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__pad", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_list"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_list", IsVarlen: true}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "list"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "list", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_item"}}},
}}},
{Key: StructKey{Name: "udp_extensions"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udp_extensions", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "guehdr"}, FldName: "guehdr"},
}}},
@ -30725,6 +30744,16 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074025692},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075344706},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "udmabuf_create"}}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE_LIST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074296131},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_list"}}},
}},
{NR: 54, Name: "ioctl$UFFDIO_API", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uffd", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222841919},
@ -32315,7 +32344,7 @@ var syscalls_arm = []*Syscall{
{NR: 385, Name: "memfd_create", CallName: "memfd_create", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "memfd_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 219, Name: "mincore", CallName: "mincore", Args: []Type{
&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 4}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 4}}, Buf: "addr"},
@ -33063,6 +33092,11 @@ var syscalls_arm = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 4}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 322, Name: "openat$udambuf", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/udmabuf\x00"}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}, Val: 2},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 322, Name: "openat$uhid", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 4}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/uhid\x00"}}},
@ -43297,6 +43331,8 @@ var consts_arm = []ConstValue{
{Name: "TX_RESET_MULTI_IDX", Value: 512},
{Name: "TX_SEND", Value: 4},
{Name: "TX_SETUP", Value: 1},
{Name: "UDMABUF_CREATE", Value: 1075344706},
{Name: "UDMABUF_CREATE_LIST", Value: 1074296131},
{Name: "UDPLITE_RECV_CSCOV", Value: 11},
{Name: "UDPLITE_SEND_CSCOV", Value: 10},
{Name: "UDP_CORK", Value: 1},
@ -45033,4 +45069,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm = "e0f1e6b3807009e404d6493bacb8e5b61a85681f"
const revision_arm = "52c9aca80103ffffdf15d3a707e6603a549a3275"

View File

@ -56,6 +56,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_loop", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_loop"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_ctrl", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_loop_ctrl"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_num", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"fd_loop_num"}, Values: []uint64{0, 1, 2, 10, 11, 12}},
{Name: "fd_memfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_memfd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_midi", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_midi"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -84,6 +85,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -21869,6 +21871,23 @@ var structDescs_arm64 = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4, ArgDir: 1}},
}}},
{Key: StructKey{Name: "udmabuf_create"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_item"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_item", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__pad", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_list"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_list", IsVarlen: true}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "list"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "list", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_item"}}},
}}},
{Key: StructKey{Name: "udp_extensions"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udp_extensions", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "guehdr"}, FldName: "guehdr"},
}}},
@ -31131,6 +31150,16 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074025692},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}},
}},
{NR: 29, Name: "ioctl$UDMABUF_CREATE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075344706},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "udmabuf_create"}}},
}},
{NR: 29, Name: "ioctl$UDMABUF_CREATE_LIST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074296131},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_list"}}},
}},
{NR: 29, Name: "ioctl$UFFDIO_API", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uffd", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222841919},
@ -32708,7 +32737,7 @@ var syscalls_arm64 = []*Syscall{
{NR: 279, Name: "memfd_create", CallName: "memfd_create", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "memfd_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2, 4}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 238, Name: "migrate_pages", CallName: "migrate_pages", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", TypeSize: 8}}},
@ -33438,6 +33467,11 @@ var syscalls_arm64 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 56, Name: "openat$udambuf", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/udmabuf\x00"}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}, Val: 2},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 56, Name: "openat$uhid", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/uhid\x00"}}},
@ -43631,6 +43665,8 @@ var consts_arm64 = []ConstValue{
{Name: "TX_RESET_MULTI_IDX", Value: 512},
{Name: "TX_SEND", Value: 4},
{Name: "TX_SETUP", Value: 1},
{Name: "UDMABUF_CREATE", Value: 1075344706},
{Name: "UDMABUF_CREATE_LIST", Value: 1074296131},
{Name: "UDPLITE_RECV_CSCOV", Value: 11},
{Name: "UDPLITE_SEND_CSCOV", Value: 10},
{Name: "UDP_CORK", Value: 1},
@ -45338,4 +45374,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm64 = "2f600a52df44b0b5feff1920910855924039dfdc"
const revision_arm64 = "9c188678f938e7c70759892d86e761b187776e38"

View File

@ -55,6 +55,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_loop", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_block_trace", "fd_block", "fd_loop"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_ctrl", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_loop_ctrl"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_loop_num", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: []string{"fd_loop_num"}, Values: []uint64{0, 1, 2, 10, 11, 12}},
{Name: "fd_memfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_memfd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_midi", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_midi"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_mq", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_mq"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_namespace", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_namespace"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -83,6 +84,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_tlk", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tlk"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tty", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tty"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_tun", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_tun"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_udambuf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_udambuf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uffd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uffd"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uhid", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uhid"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_uinput", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_uinput"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@ -21675,6 +21677,23 @@ var structDescs_ppc64le = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "uid", FldName: "uid", TypeSize: 4, ArgDir: 1}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "gid", FldName: "gid", TypeSize: 4, ArgDir: 1}},
}}},
{Key: StructKey{Name: "udmabuf_create"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_item"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_item", TypeSize: 24}, Fields: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "memfd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "__pad", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "offset", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "udmabuf_offset_size", FldName: "size", TypeSize: 8}}, Vals: []uint64{0, 4096, 8192, 16384, 32768, 65536, 16777216, 4294967296, 4294963200, 281474976710656, 18446744073709547520, 18446744073441116160}},
}}},
{Key: StructKey{Name: "udmabuf_create_list"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udmabuf_create_list", IsVarlen: true}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 2, RangeEnd: 1},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 4}}, Buf: "list"},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "list", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_item"}}},
}}},
{Key: StructKey{Name: "udp_extensions"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "udp_extensions", IsVarlen: true}, Fields: []Type{
&StructType{Key: StructKey{Name: "guehdr"}, FldName: "guehdr"},
}}},
@ -30103,6 +30122,16 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147767516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}, Kind: 2, RangeEnd: 1}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149086530},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "udmabuf_create"}}},
}},
{NR: 54, Name: "ioctl$UDMABUF_CREATE_LIST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148037955},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "udmabuf_create_list"}}},
}},
{NR: 54, Name: "ioctl$UFFDIO_API", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_uffd", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222841919},
@ -31196,7 +31225,7 @@ var syscalls_ppc64le = []*Syscall{
{NR: 360, Name: "memfd_create", CallName: "memfd_create", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "name", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", IsVarlen: true}, Kind: 2}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "memfd_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{1, 2, 4}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_memfd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 258, Name: "migrate_pages", CallName: "migrate_pages", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "maxnode", TypeSize: 8}}},
@ -31920,6 +31949,11 @@ var syscalls_ppc64le = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 131072, 16384, 128, 65536, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tun", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 286, Name: "openat$udambuf", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 13}, Kind: 2, Values: []string{"/dev/udmabuf\x00"}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}, Val: 2},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_udambuf", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 286, Name: "openat$uhid", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/uhid\x00"}}},
@ -41908,6 +41942,8 @@ var consts_ppc64le = []ConstValue{
{Name: "TX_RESET_MULTI_IDX", Value: 512},
{Name: "TX_SEND", Value: 4},
{Name: "TX_SETUP", Value: 1},
{Name: "UDMABUF_CREATE", Value: 2149086530},
{Name: "UDMABUF_CREATE_LIST", Value: 2148037955},
{Name: "UDPLITE_RECV_CSCOV", Value: 11},
{Name: "UDPLITE_SEND_CSCOV", Value: 10},
{Name: "UDP_CORK", Value: 1},
@ -42696,4 +42732,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_ppc64le = "bc3a4f56b17c100440b23c0bf74c9af11be67c34"
const revision_ppc64le = "c650d916aea7923240c938d126e8ec80491b27c8"

View File

@ -145,10 +145,14 @@ mlock2(addr vma, size len[addr], flags flags[mlock_flags])
munlock(addr vma, size len[addr])
mlockall(flags flags[mlockall_flags])
munlockall()
memfd_create(name ptr[in, string], flags flags[memfd_flags]) fd
kcmp(pid1 pid, pid2 pid, type flags[kcmp_flags], fd1 fd, fd2 fd)
kcmp$KCMP_EPOLL_TFD(pid1 pid, pid2 pid, type const[KCMP_EPOLL_TFD], fd1 fd, idx2 ptr[in, kcmp_epoll_slot])
resource fd_memfd[fd]
memfd_create(name ptr[in, string], flags flags[memfd_flags]) fd_memfd
memfd_flags = MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB
_ = MFD_HUGE_SHIFT, MFD_HUGE_MASK, MFD_HUGE_64KB, MFD_HUGE_512KB, MFD_HUGE_1MB, MFD_HUGE_2MB, MFD_HUGE_8MB, MFD_HUGE_16MB
resource pkey[int32]: -1
pkey_alloc(flags const[0], val flags[pkey_flags]) pkey
pkey_free(key pkey)
@ -849,8 +853,6 @@ mmap_flags = MAP_SHARED, MAP_PRIVATE, MAP_32BIT, MAP_ANONYMOUS, MAP_DENYWRITE, M
mremap_flags = MREMAP_MAYMOVE, MREMAP_FIXED
mbind_mode = MPOL_DEFAULT, MPOL_BIND, MPOL_INTERLEAVE, MPOL_PREFERRED, MPOL_F_STATIC_NODES, MPOL_F_RELATIVE_NODES
mbind_flags = MPOL_MF_STRICT, MPOL_MF_MOVE, MPOL_MF_MOVE_ALL
memfd_flags = MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB
_ = MFD_HUGE_SHIFT, MFD_HUGE_MASK, MFD_HUGE_64KB, MFD_HUGE_512KB, MFD_HUGE_1MB, MFD_HUGE_2MB, MFD_HUGE_8MB, MFD_HUGE_16MB
pipe_flags = O_NONBLOCK, O_CLOEXEC, O_DIRECT
mlock_flags = MLOCK_ONFAULT
mlockall_flags = MCL_CURRENT, MCL_FUTURE, MCL_ONFAULT

33
sys/linux/udmabuf.txt Normal file
View File

@ -0,0 +1,33 @@
# Copyright 2018 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.
include <uapi/linux/udmabuf.h>
resource fd_udambuf[fd]
openat$udambuf(fd const[AT_FDCWD], file ptr[in, string["/dev/udmabuf"]], flags const[O_RDWR]) fd_udambuf
ioctl$UDMABUF_CREATE(fd fd_udambuf, cmd const[UDMABUF_CREATE], arg ptr[in, udmabuf_create])
ioctl$UDMABUF_CREATE_LIST(fd fd_udambuf, cmd const[UDMABUF_CREATE_LIST], arg ptr[in, udmabuf_create_list])
udmabuf_create {
memfd fd_memfd
flags bool32
offset flags[udmabuf_offset_size, int64]
size flags[udmabuf_offset_size, int64]
}
udmabuf_create_list {
flags bool32
count len[list, int32]
list array[udmabuf_create_item]
}
udmabuf_create_item {
memfd fd_memfd
__pad const[0, int32]
offset flags[udmabuf_offset_size, int64]
size flags[udmabuf_offset_size, int64]
}
# TODO: this should be a page-aligned integer
udmabuf_offset_size = 0, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x1000000, 0x100000000, 0xfffff000, 0x1000000000000, 0xfffffffffffff000, 0xfffffffff0000000

View File

@ -0,0 +1,7 @@
# AUTOGENERATED FILE
# AT_FDCWD is not set
# O_RDWR is not set
UDMABUF_CREATE = 1075344706
UDMABUF_CREATE_LIST = 1074296131
__NR_ioctl = 54
__NR_openat = 295

View File

@ -0,0 +1,7 @@
# AUTOGENERATED FILE
# AT_FDCWD is not set
# O_RDWR is not set
UDMABUF_CREATE = 1075344706
UDMABUF_CREATE_LIST = 1074296131
__NR_ioctl = 16
__NR_openat = 257

View File

@ -0,0 +1,7 @@
# AUTOGENERATED FILE
# AT_FDCWD is not set
# O_RDWR is not set
UDMABUF_CREATE = 1075344706
UDMABUF_CREATE_LIST = 1074296131
__NR_ioctl = 54
__NR_openat = 322

View File

@ -0,0 +1,7 @@
# AUTOGENERATED FILE
# AT_FDCWD is not set
# O_RDWR is not set
UDMABUF_CREATE = 1075344706
UDMABUF_CREATE_LIST = 1074296131
__NR_ioctl = 29
__NR_openat = 56

View File

@ -0,0 +1,7 @@
# AUTOGENERATED FILE
# AT_FDCWD is not set
# O_RDWR is not set
UDMABUF_CREATE = 2149086530
UDMABUF_CREATE_LIST = 2148037955
__NR_ioctl = 54
__NR_openat = 286