aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-10-15 14:13:41 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-10-15 14:13:41 +0200
commitd4ea592f78feb8f04941a301b93e09880c3546a3 (patch)
tree2ed5c4ce87e6d76a95c690f4c00236a4d82bd16b /sys/linux/gen/amd64.go
parent2b7a4c5e693cbc6768ce5d72f41a6a52845e81f0 (diff)
sys/linux: add some new flags
Add a few new assorted things, some flags, etc.
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go36
1 files changed, 29 insertions, 7 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index b9444bbce..e2424e44a 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -8177,10 +8177,15 @@ var structDescs_amd64 = []*KeyedStruct{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "resv1", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "resv2", TypeSize: 8}}},
}}},
+ {Key: StructKey{Name: "io_uring_files_update"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "io_uring_files_update", TypeSize: 16}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "offset", TypeSize: 4}}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "fds", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", TypeSize: 4}}}},
+ }}},
{Key: StructKey{Name: "io_uring_params"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "io_uring_params", TypeSize: 120}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sq_entries", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cq_entries", TypeSize: 4}}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "io_uring_setup_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "io_uring_setup_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sq_thread_cpu", TypeSize: 4}}, Kind: 2, RangeEnd: 3},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sq_thread_idle", TypeSize: 4}}, Kind: 2, RangeEnd: 1000},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "resv", TypeSize: 20}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 5, RangeEnd: 5},
@@ -23102,28 +23107,28 @@ var structDescs_amd64 = []*KeyedStruct{
}}},
{Key: StructKey{Name: "sockaddr_xdp"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_xdp", TypeSize: 16}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sxdp_family", TypeSize: 2}}, Val: 44},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "sxdp_ifindex", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sxdp_queue_id", TypeSize: 4}}, Kind: 2, RangeEnd: 64},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sxdp_shared_umem_fd", TypeSize: 4}}},
}}},
{Key: StructKey{Name: "sockaddr_xdp", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_xdp", TypeSize: 16, ArgDir: 1}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sxdp_family", TypeSize: 2, ArgDir: 1}}, Val: 44},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2, ArgDir: 1}}, Vals: []uint64{1, 2, 4}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2, ArgDir: 1}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "sxdp_ifindex", TypeSize: 4, ArgDir: 1}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sxdp_queue_id", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 64},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sxdp_shared_umem_fd", TypeSize: 4, ArgDir: 1}}},
}}},
{Key: StructKey{Name: "sockaddr_xdp", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_xdp", TypeSize: 16, ArgDir: 2}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sxdp_family", TypeSize: 2, ArgDir: 2}}, Val: 44},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2, ArgDir: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2, ArgDir: 2}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "sxdp_ifindex", TypeSize: 4, ArgDir: 2}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sxdp_queue_id", TypeSize: 4, ArgDir: 2}}, Kind: 2, RangeEnd: 64},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sxdp_shared_umem_fd", TypeSize: 4, ArgDir: 2}}},
}}},
{Key: StructKey{Name: "sockaddr_xdp_bind"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "sockaddr_xdp_bind", TypeSize: 16}, Fields: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "sxdp_family", TypeSize: 2}}, Val: 44},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4}, BitMask: true},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sxdp_flags", FldName: "sxdp_flags", TypeSize: 2}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ResourceType{TypeCommon: TypeCommon{TypeName: "ifindex", FldName: "sxdp_ifindex", TypeSize: 4}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "sxdp_queue_id", TypeSize: 4}}, Kind: 2, RangeEnd: 64},
&ResourceType{TypeCommon: TypeCommon{TypeName: "sock_xdp", FldName: "sxdp_shared_umem_fd", TypeSize: 4, IsOptional: true}},
@@ -33578,6 +33583,12 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", TypeSize: 4}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr_args", TypeSize: 8}}, Path: []string{"arg"}},
}},
+ {NR: 427, Name: "io_uring_register$IORING_REGISTER_FILES_UPDATE", CallName: "io_uring_register", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opcode", TypeSize: 8}}, Val: 6},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "io_uring_files_update"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nr_args", TypeSize: 8}}, Path: []string{"arg", "fds"}},
+ }},
{NR: 427, Name: "io_uring_register$IORING_UNREGISTER_BUFFERS", CallName: "io_uring_register", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_io_uring", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "opcode", TypeSize: 8}}, Val: 1},
@@ -39303,7 +39314,7 @@ var syscalls_amd64 = []*Syscall{
{NR: 28, Name: "madvise", CallName: "madvise", Args: []Type{
&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Path: []string{"addr"}},
- &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "madvise_flags", FldName: "advice", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4, 9, 10, 11, 100, 101, 12, 13, 14, 15, 16, 17, 18, 19}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "madvise_flags", FldName: "advice", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 3, 4, 9, 10, 11, 100, 101, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21}},
}},
{NR: 237, Name: "mbind", CallName: "mbind", Args: []Type{
&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}},
@@ -45116,6 +45127,11 @@ var syscalls_amd64 = []*Syscall{
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "wait_options", FldName: "options", TypeSize: 8}}, Vals: []uint64{1, 2, 8, 4, 2, 8, 1, 16777216, 2147483648, 1073741824, 536870912}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "ru", TypeSize: 8, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "rusage", Dir: 1}}},
}},
+ {NR: 436, Name: "watch_devices", CallName: "watch_devices", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_watch_queue", FldName: "watch_fd", TypeSize: 4}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "watch_id", TypeSize: 8}}, Kind: 2, RangeBegin: 18446744073709551615, RangeEnd: 255},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 8}}},
+ }},
{NR: 1, Name: "write", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
@@ -48206,6 +48222,8 @@ var consts_amd64 = []ConstValue{
{Name: "IORING_REGISTER_BUFFERS"},
{Name: "IORING_REGISTER_EVENTFD", Value: 4},
{Name: "IORING_REGISTER_FILES", Value: 2},
+ {Name: "IORING_REGISTER_FILES_UPDATE", Value: 6},
+ {Name: "IORING_SETUP_CQSIZE", Value: 8},
{Name: "IORING_SETUP_IOPOLL", Value: 1},
{Name: "IORING_SETUP_SQPOLL", Value: 2},
{Name: "IORING_SETUP_SQ_AFF", Value: 4},
@@ -49013,6 +49031,7 @@ var consts_amd64 = []ConstValue{
{Name: "LWTUNNEL_ENCAP_NONE"},
{Name: "LWTUNNEL_ENCAP_SEG6", Value: 5},
{Name: "LWTUNNEL_ENCAP_SEG6_LOCAL", Value: 7},
+ {Name: "MADV_COLD", Value: 20},
{Name: "MADV_DODUMP", Value: 17},
{Name: "MADV_DOFORK", Value: 11},
{Name: "MADV_DONTDUMP", Value: 16},
@@ -49024,6 +49043,7 @@ var consts_amd64 = []ConstValue{
{Name: "MADV_MERGEABLE", Value: 12},
{Name: "MADV_NOHUGEPAGE", Value: 15},
{Name: "MADV_NORMAL"},
+ {Name: "MADV_PAGEOUT", Value: 21},
{Name: "MADV_RANDOM", Value: 1},
{Name: "MADV_REMOVE", Value: 9},
{Name: "MADV_SEQUENTIAL", Value: 2},
@@ -53426,6 +53446,7 @@ var consts_amd64 = []ConstValue{
{Name: "XDP_UMEM_PGOFF_COMPLETION_RING", Value: 6442450944},
{Name: "XDP_UMEM_PGOFF_FILL_RING", Value: 4294967296},
{Name: "XDP_UMEM_REG", Value: 4},
+ {Name: "XDP_USE_NEED_WAKEUP", Value: 8},
{Name: "XDP_ZEROCOPY", Value: 4},
{Name: "XFRMA_ADDRESS_FILTER", Value: 26},
{Name: "XFRMA_ALG_AEAD", Value: 18},
@@ -54040,6 +54061,7 @@ var consts_amd64 = []ConstValue{
{Name: "__NR_vmsplice", Value: 278},
{Name: "__NR_wait4", Value: 61},
{Name: "__NR_waitid", Value: 247},
+ {Name: "__NR_watch_devices", Value: 436},
{Name: "__NR_write", Value: 1},
{Name: "__NR_writev", Value: 20},
{Name: "__O_TMPFILE", Value: 4194304},
@@ -54051,4 +54073,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "fe0f7f6fb26f3d1f0d7d53ce70139ef8af9bec98"
+const revision_amd64 = "e68df44a75ffa2dbdc6ce78af81469d616c4deb6"