|
|
|
@ -97,35 +97,34 @@ var syscalls_amd64 = []*Syscall{
|
|
|
|
|
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 8},
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 15, NR: 15, Name: "fork", CallName: "fork"},
|
|
|
|
|
{ID: 16, NR: 104, Name: "fstat", CallName: "fstat", Args: []Type{
|
|
|
|
|
{ID: 15, NR: 104, Name: "fstat", CallName: "fstat", Args: []Type{
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statbuf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1}}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 17, NR: 117, Name: "getcwd", CallName: "getcwd", Args: []Type{
|
|
|
|
|
{ID: 16, NR: 117, Name: "getcwd", CallName: "getcwd", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1}}},
|
|
|
|
|
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "size", TypeSize: 8}}, Buf: "buf"},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 18, NR: 112, Name: "link", CallName: "link", Args: []Type{
|
|
|
|
|
{ID: 17, NR: 112, Name: "link", CallName: "link", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 19, NR: 111, Name: "llseek", CallName: "llseek", Args: []Type{
|
|
|
|
|
{ID: 18, NR: 111, Name: "llseek", CallName: "llseek", Args: []Type{
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
|
|
|
|
|
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset_hi", TypeSize: 8}}},
|
|
|
|
|
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset_lo", TypeSize: 8}}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "result", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}},
|
|
|
|
|
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "seek_whence", FldName: "whence", TypeSize: 8}}, Vals: []uint64{0, 1, 2}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 20, NR: 106, Name: "lstat", CallName: "lstat", Args: []Type{
|
|
|
|
|
{ID: 19, NR: 106, Name: "lstat", CallName: "lstat", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statbuf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1}}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 21, NR: 118, Name: "mkdir", CallName: "mkdir", Args: []Type{
|
|
|
|
|
{ID: 20, NR: 118, Name: "mkdir", CallName: "mkdir", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_mode", FldName: "mode", TypeSize: 8}}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 22, NR: 18, Name: "mmap", CallName: "mmap", Args: []Type{
|
|
|
|
|
{ID: 21, NR: 18, Name: "mmap", CallName: "mmap", Args: []Type{
|
|
|
|
|
&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}},
|
|
|
|
|
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "addr"},
|
|
|
|
|
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, Vals: []uint64{4, 1, 2, 16777216, 33554432}},
|
|
|
|
@ -133,59 +132,59 @@ var syscalls_amd64 = []*Syscall{
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4, IsOptional: true}},
|
|
|
|
|
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "offset", TypeSize: 8}}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 23, NR: 20, Name: "mprotect", CallName: "mprotect", Args: []Type{
|
|
|
|
|
{ID: 22, NR: 20, Name: "mprotect", CallName: "mprotect", Args: []Type{
|
|
|
|
|
&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}},
|
|
|
|
|
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "addr"},
|
|
|
|
|
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "mmap_prot", FldName: "prot", TypeSize: 8}}, Vals: []uint64{4, 1, 2, 16777216, 33554432}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 24, NR: 19, Name: "munmap", CallName: "munmap", Args: []Type{
|
|
|
|
|
{ID: 23, NR: 19, Name: "munmap", CallName: "munmap", Args: []Type{
|
|
|
|
|
&VmaType{TypeCommon: TypeCommon{TypeName: "vma", FldName: "addr", TypeSize: 8}},
|
|
|
|
|
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "addr"},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 25, NR: 36, Name: "nanosleep", CallName: "nanosleep", Args: []Type{
|
|
|
|
|
{ID: 24, NR: 36, Name: "nanosleep", CallName: "nanosleep", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "req", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "timespec"}}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "rem", TypeSize: 8, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "timespec", Dir: 1}}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 26, NR: 102, Name: "openat", CallName: "openat", Args: []Type{
|
|
|
|
|
{ID: 25, NR: 102, Name: "openat", CallName: "openat", Args: []Type{
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 128, 256, 131072, 2048, 1052672, 512, 4259840}},
|
|
|
|
|
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_mode", FldName: "mode", TypeSize: 8}}, Vals: []uint64{256, 128, 64, 32, 16, 8, 4, 2, 1}},
|
|
|
|
|
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
|
|
|
|
|
{ID: 27, NR: 100, Name: "read", CallName: "read", Args: []Type{
|
|
|
|
|
{ID: 26, NR: 100, Name: "read", CallName: "read", Args: []Type{
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1}}},
|
|
|
|
|
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 8}}, Buf: "buf"},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 28, NR: 115, Name: "readlink", CallName: "readlink", Args: []Type{
|
|
|
|
|
{ID: 27, NR: 115, Name: "readlink", CallName: "readlink", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{ArgDir: 1}}},
|
|
|
|
|
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "siz", TypeSize: 8}}, Buf: "buf"},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 29, NR: 123, Name: "rename", CallName: "rename", Args: []Type{
|
|
|
|
|
{ID: 28, NR: 123, Name: "rename", CallName: "rename", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 30, NR: 119, Name: "rmdir", CallName: "rmdir", Args: []Type{
|
|
|
|
|
{ID: 29, NR: 119, Name: "rmdir", CallName: "rmdir", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 31, NR: 105, Name: "stat", CallName: "stat", Args: []Type{
|
|
|
|
|
{ID: 30, NR: 105, Name: "stat", CallName: "stat", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "statbuf", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1}}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 32, NR: 114, Name: "symlink", CallName: "symlink", Args: []Type{
|
|
|
|
|
{ID: 31, NR: 114, Name: "symlink", CallName: "symlink", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "old", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "new", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 33, NR: 113, Name: "unlink", CallName: "unlink", Args: []Type{
|
|
|
|
|
{ID: 32, NR: 113, Name: "unlink", CallName: "unlink", Args: []Type{
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "path", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "filename"}, Kind: 3}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 34, NR: 17, Name: "waitpid", CallName: "waitpid", Args: []Type{
|
|
|
|
|
{ID: 33, NR: 17, Name: "waitpid", CallName: "waitpid", Args: []Type{
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "pid", FldName: "pid", TypeSize: 4}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "status", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
|
|
|
|
|
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "wait_options", FldName: "options", TypeSize: 8}}, Vals: []uint64{1, 2}},
|
|
|
|
|
}},
|
|
|
|
|
{ID: 35, NR: 101, Name: "write", CallName: "write", Args: []Type{
|
|
|
|
|
{ID: 34, NR: 101, Name: "write", CallName: "write", Args: []Type{
|
|
|
|
|
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fd", TypeSize: 4}},
|
|
|
|
|
&PtrType{TypeCommon: TypeCommon{TypeName: "buffer", FldName: "buf", TypeSize: 8}, Type: &BufferType{}},
|
|
|
|
|
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "count", TypeSize: 8}}, Buf: "buf"},
|
|
|
|
@ -286,4 +285,4 @@ var consts_amd64 = []ConstValue{
|
|
|
|
|
{Name: "__O_TMPFILE", Value: 4259840},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const revision_amd64 = "77727415c41fde64d42084c526dfb8bf1f1abf05"
|
|
|
|
|
const revision_amd64 = "1caab53009bda97952c0c670cb9fc3e335e1d49d"
|
|
|
|
|