sys/linux: add /dev/ptp descriptions

This commit is contained in:
Dmitry Vyukov 2019-12-01 19:07:51 +01:00
parent 9dfc7e00d5
commit 5d12311f3a
17 changed files with 1045 additions and 10 deletions

10
executor/defs.h generated
View File

@ -70,7 +70,7 @@
#if GOARCH_386
#define GOARCH "386"
#define SYZ_REVISION "31a79aa9906f8942aeb23a2998670755bc5f5927"
#define SYZ_REVISION "688f068cac4ec551a0741dbbf3b308b309ff1624"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -80,7 +80,7 @@
#if GOARCH_amd64
#define GOARCH "amd64"
#define SYZ_REVISION "f96766ba8831b4d50287990a3963d0f154340dbc"
#define SYZ_REVISION "5959da595aec270cc17af1e6981110716436fdf4"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -90,7 +90,7 @@
#if GOARCH_arm
#define GOARCH "arm"
#define SYZ_REVISION "168903bd36df9f3e7fb08c2b6a1bbda440635d25"
#define SYZ_REVISION "86060ba5185be2fa8a6ea934dc5b33bb99964e3e"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -100,7 +100,7 @@
#if GOARCH_arm64
#define GOARCH "arm64"
#define SYZ_REVISION "b9de0d508648f4a21f5d7cf30a2079158fd3d094"
#define SYZ_REVISION "6fe03afc4cef6d2f8973d0fb578dda14bd991330"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096
@ -110,7 +110,7 @@
#if GOARCH_ppc64le
#define GOARCH "ppc64le"
#define SYZ_REVISION "9570bda82e44e5c315cd3984fe252c0cb2eea802"
#define SYZ_REVISION "1c74478c1928bed0f19f446a6e31828907684f93"
#define SYZ_EXECUTOR_USES_FORK_SERVER 1
#define SYZ_EXECUTOR_USES_SHMEM 1
#define SYZ_PAGE_SIZE 4096

View File

@ -3055,6 +3055,19 @@ const call_t syscalls[] = {
{"ioctl$PPPIOCSPASS", 54},
{"ioctl$PPPOEIOCDFWD", 54},
{"ioctl$PPPOEIOCSFWD", 54},
{"ioctl$PTP_CLOCK_GETCAPS", 54},
{"ioctl$PTP_ENABLE_PPS", 54},
{"ioctl$PTP_EXTTS_REQUEST", 54},
{"ioctl$PTP_EXTTS_REQUEST2", 54},
{"ioctl$PTP_PEROUT_REQUEST", 54},
{"ioctl$PTP_PEROUT_REQUEST2", 54},
{"ioctl$PTP_PIN_GETFUNC", 54},
{"ioctl$PTP_PIN_GETFUNC2", 54},
{"ioctl$PTP_PIN_SETFUNC", 54},
{"ioctl$PTP_PIN_SETFUNC2", 54},
{"ioctl$PTP_SYS_OFFSET", 54},
{"ioctl$PTP_SYS_OFFSET_EXTENDED", 54},
{"ioctl$PTP_SYS_OFFSET_PRECISE", 54},
{"ioctl$READ_COUNTERS", 54},
{"ioctl$RFKILL_IOCTL_NOINPUT", 54},
{"ioctl$RNDADDENTROPY", 54},
@ -3897,6 +3910,8 @@ const call_t syscalls[] = {
{"openat$proc_capi20", 295},
{"openat$proc_capi20ncci", 295},
{"openat$ptmx", 295},
{"openat$ptp0", 295},
{"openat$ptp1", 295},
{"openat$qat_adf_ctl", 295},
{"openat$random", 295},
{"openat$rdma_cm", 295},
@ -4076,6 +4091,7 @@ const call_t syscalls[] = {
{"read$hiddev", 3},
{"read$hidraw", 3},
{"read$midi", 3},
{"read$ptp", 3},
{"read$rfkill", 3},
{"read$smackfs_access", 3},
{"read$smackfs_cipsonum", 3},
@ -6037,6 +6053,19 @@ const call_t syscalls[] = {
{"ioctl$PPPIOCSPASS", 16},
{"ioctl$PPPOEIOCDFWD", 16},
{"ioctl$PPPOEIOCSFWD", 16},
{"ioctl$PTP_CLOCK_GETCAPS", 16},
{"ioctl$PTP_ENABLE_PPS", 16},
{"ioctl$PTP_EXTTS_REQUEST", 16},
{"ioctl$PTP_EXTTS_REQUEST2", 16},
{"ioctl$PTP_PEROUT_REQUEST", 16},
{"ioctl$PTP_PEROUT_REQUEST2", 16},
{"ioctl$PTP_PIN_GETFUNC", 16},
{"ioctl$PTP_PIN_GETFUNC2", 16},
{"ioctl$PTP_PIN_SETFUNC", 16},
{"ioctl$PTP_PIN_SETFUNC2", 16},
{"ioctl$PTP_SYS_OFFSET", 16},
{"ioctl$PTP_SYS_OFFSET_EXTENDED", 16},
{"ioctl$PTP_SYS_OFFSET_PRECISE", 16},
{"ioctl$READ_COUNTERS", 16},
{"ioctl$RFKILL_IOCTL_NOINPUT", 16},
{"ioctl$RNDADDENTROPY", 16},
@ -6883,6 +6912,8 @@ const call_t syscalls[] = {
{"openat$proc_capi20", 257},
{"openat$proc_capi20ncci", 257},
{"openat$ptmx", 257},
{"openat$ptp0", 257},
{"openat$ptp1", 257},
{"openat$qat_adf_ctl", 257},
{"openat$random", 257},
{"openat$rdma_cm", 257},
@ -7062,6 +7093,7 @@ const call_t syscalls[] = {
{"read$hiddev", 0},
{"read$hidraw", 0},
{"read$midi", 0},
{"read$ptp", 0},
{"read$rfkill", 0},
{"read$smackfs_access", 0},
{"read$smackfs_cipsonum", 0},
@ -8988,6 +9020,19 @@ const call_t syscalls[] = {
{"ioctl$PPPIOCSPASS", 54},
{"ioctl$PPPOEIOCDFWD", 54},
{"ioctl$PPPOEIOCSFWD", 54},
{"ioctl$PTP_CLOCK_GETCAPS", 54},
{"ioctl$PTP_ENABLE_PPS", 54},
{"ioctl$PTP_EXTTS_REQUEST", 54},
{"ioctl$PTP_EXTTS_REQUEST2", 54},
{"ioctl$PTP_PEROUT_REQUEST", 54},
{"ioctl$PTP_PEROUT_REQUEST2", 54},
{"ioctl$PTP_PIN_GETFUNC", 54},
{"ioctl$PTP_PIN_GETFUNC2", 54},
{"ioctl$PTP_PIN_SETFUNC", 54},
{"ioctl$PTP_PIN_SETFUNC2", 54},
{"ioctl$PTP_SYS_OFFSET", 54},
{"ioctl$PTP_SYS_OFFSET_EXTENDED", 54},
{"ioctl$PTP_SYS_OFFSET_PRECISE", 54},
{"ioctl$READ_COUNTERS", 54},
{"ioctl$RFKILL_IOCTL_NOINPUT", 54},
{"ioctl$RNDADDENTROPY", 54},
@ -9824,6 +9869,8 @@ const call_t syscalls[] = {
{"openat$proc_capi20", 322},
{"openat$proc_capi20ncci", 322},
{"openat$ptmx", 322},
{"openat$ptp0", 322},
{"openat$ptp1", 322},
{"openat$qat_adf_ctl", 322},
{"openat$random", 322},
{"openat$rdma_cm", 322},
@ -10003,6 +10050,7 @@ const call_t syscalls[] = {
{"read$hiddev", 3},
{"read$hidraw", 3},
{"read$midi", 3},
{"read$ptp", 3},
{"read$rfkill", 3},
{"read$smackfs_access", 3},
{"read$smackfs_cipsonum", 3},
@ -11917,6 +11965,19 @@ const call_t syscalls[] = {
{"ioctl$PPPIOCSPASS", 29},
{"ioctl$PPPOEIOCDFWD", 29},
{"ioctl$PPPOEIOCSFWD", 29},
{"ioctl$PTP_CLOCK_GETCAPS", 29},
{"ioctl$PTP_ENABLE_PPS", 29},
{"ioctl$PTP_EXTTS_REQUEST", 29},
{"ioctl$PTP_EXTTS_REQUEST2", 29},
{"ioctl$PTP_PEROUT_REQUEST", 29},
{"ioctl$PTP_PEROUT_REQUEST2", 29},
{"ioctl$PTP_PIN_GETFUNC", 29},
{"ioctl$PTP_PIN_GETFUNC2", 29},
{"ioctl$PTP_PIN_SETFUNC", 29},
{"ioctl$PTP_PIN_SETFUNC2", 29},
{"ioctl$PTP_SYS_OFFSET", 29},
{"ioctl$PTP_SYS_OFFSET_EXTENDED", 29},
{"ioctl$PTP_SYS_OFFSET_PRECISE", 29},
{"ioctl$READ_COUNTERS", 29},
{"ioctl$RFKILL_IOCTL_NOINPUT", 29},
{"ioctl$RNDADDENTROPY", 29},
@ -12749,6 +12810,8 @@ const call_t syscalls[] = {
{"openat$proc_capi20", 56},
{"openat$proc_capi20ncci", 56},
{"openat$ptmx", 56},
{"openat$ptp0", 56},
{"openat$ptp1", 56},
{"openat$qat_adf_ctl", 56},
{"openat$random", 56},
{"openat$rdma_cm", 56},
@ -12925,6 +12988,7 @@ const call_t syscalls[] = {
{"read$hiddev", 63},
{"read$hidraw", 63},
{"read$midi", 63},
{"read$ptp", 63},
{"read$rfkill", 63},
{"read$smackfs_access", 63},
{"read$smackfs_cipsonum", 63},
@ -14834,6 +14898,19 @@ const call_t syscalls[] = {
{"ioctl$PPPIOCSPASS", 54},
{"ioctl$PPPOEIOCDFWD", 54},
{"ioctl$PPPOEIOCSFWD", 54},
{"ioctl$PTP_CLOCK_GETCAPS", 54},
{"ioctl$PTP_ENABLE_PPS", 54},
{"ioctl$PTP_EXTTS_REQUEST", 54},
{"ioctl$PTP_EXTTS_REQUEST2", 54},
{"ioctl$PTP_PEROUT_REQUEST", 54},
{"ioctl$PTP_PEROUT_REQUEST2", 54},
{"ioctl$PTP_PIN_GETFUNC", 54},
{"ioctl$PTP_PIN_GETFUNC2", 54},
{"ioctl$PTP_PIN_SETFUNC", 54},
{"ioctl$PTP_PIN_SETFUNC2", 54},
{"ioctl$PTP_SYS_OFFSET", 54},
{"ioctl$PTP_SYS_OFFSET_EXTENDED", 54},
{"ioctl$PTP_SYS_OFFSET_PRECISE", 54},
{"ioctl$READ_COUNTERS", 54},
{"ioctl$RFKILL_IOCTL_NOINPUT", 54},
{"ioctl$RNDADDENTROPY", 54},
@ -15669,6 +15746,8 @@ const call_t syscalls[] = {
{"openat$proc_capi20", 286},
{"openat$proc_capi20ncci", 286},
{"openat$ptmx", 286},
{"openat$ptp0", 286},
{"openat$ptp1", 286},
{"openat$qat_adf_ctl", 286},
{"openat$random", 286},
{"openat$rdma_cm", 286},
@ -15848,6 +15927,7 @@ const call_t syscalls[] = {
{"read$hiddev", 3},
{"read$hidraw", 3},
{"read$midi", 3},
{"read$ptp", 3},
{"read$rfkill", 3},
{"read$smackfs_access", 3},
{"read$smackfs_cipsonum", 3},

77
sys/linux/dev_ptp.txt Normal file
View File

@ -0,0 +1,77 @@
# Copyright 2019 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/asm/ioctl.h>
include <uapi/linux/fcntl.h>
include <uapi/linux/ptp_clock.h>
resource fd_ptp[fd]
type ptp_index int32
openat$ptp0(fd const[AT_FDCWD], file ptr[in, string["/dev/ptp0"]], flags flags[open_flags], mode const[0]) fd_ptp
openat$ptp1(fd const[AT_FDCWD], file ptr[in, string["/dev/ptp1"]], flags flags[open_flags], mode const[0]) fd_ptp
read$ptp(fd fd_ptp, data ptr[out, array[int8]], len bytesize[data])
ioctl$PTP_CLOCK_GETCAPS(fd fd_ptp, cmd const[PTP_CLOCK_GETCAPS], arg ptr[out, array[int8, PTP_CLOCK_CAPS_SIZE]])
ioctl$PTP_EXTTS_REQUEST(fd fd_ptp, cmd const[PTP_EXTTS_REQUEST], arg ptr[in, ptp_extts_request])
ioctl$PTP_EXTTS_REQUEST2(fd fd_ptp, cmd const[PTP_EXTTS_REQUEST2], arg ptr[in, ptp_extts_request])
ioctl$PTP_PEROUT_REQUEST(fd fd_ptp, cmd const[PTP_PEROUT_REQUEST], arg ptr[in, ptp_perout_request])
ioctl$PTP_PEROUT_REQUEST2(fd fd_ptp, cmd const[PTP_PEROUT_REQUEST2], arg ptr[in, ptp_perout_request])
ioctl$PTP_ENABLE_PPS(fd fd_ptp, cmd const[PTP_ENABLE_PPS], arg bool32)
ioctl$PTP_SYS_OFFSET(fd fd_ptp, cmd const[PTP_SYS_OFFSET], arg ptr[in, ptp_sys_offset])
ioctl$PTP_SYS_OFFSET_PRECISE(fd fd_ptp, cmd const[PTP_SYS_OFFSET_PRECISE], arg ptr[out, array[int8, PTP_SYS_OFFSET_PRECISE_SIZE]])
ioctl$PTP_SYS_OFFSET_EXTENDED(fd fd_ptp, cmd const[PTP_SYS_OFFSET_EXTENDED], arg ptr[in, ptp_sys_offset_extended])
ioctl$PTP_PIN_GETFUNC(fd fd_ptp, cmd const[PTP_PIN_GETFUNC], arg ptr[in, ptp_pin_desc])
ioctl$PTP_PIN_GETFUNC2(fd fd_ptp, cmd const[PTP_PIN_GETFUNC2], arg ptr[in, ptp_pin_desc])
ioctl$PTP_PIN_SETFUNC(fd fd_ptp, cmd const[PTP_PIN_SETFUNC], arg ptr[in, ptp_pin_desc])
ioctl$PTP_PIN_SETFUNC2(fd fd_ptp, cmd const[PTP_PIN_SETFUNC2], arg ptr[in, ptp_pin_desc])
ptp_extts_request {
index ptp_index
flags flags[ptp_extts_request_flags, int32]
rsv array[const[0, int32], 2]
}
ptp_perout_request {
start ptp_clock_time
period ptp_clock_time
index ptp_index
flags bool32
rsv array[const[0, int32], 4]
}
ptp_sys_offset {
n_samples int32[0:PTP_MAX_SAMPLES]
rsv array[const[0, int32], 3]
# Nothing interesting/input beyond this point.
} [size[PTP_SYS_OFFSET_SIZE]]
ptp_sys_offset_extended {
n_samples int32[0:PTP_MAX_SAMPLES]
rsv array[const[0, int32], 3]
# Nothing interesting/input beyond this point.
} [size[PTP_SYS_OFFSET_EXTENDED_SIZE]]
ptp_pin_desc {
name array[const[0, int8], 64]
index int32
func flags[ptp_pin_pf, int32]
chan ptp_index
rsv array[const[0, int32], 5]
}
ptp_clock_time {
desc int64
nsec int32
reserved const[0, int32]
}
ptp_extts_request_flags = PTP_ENABLE_FEATURE, PTP_RISING_EDGE, PTP_FALLING_EDGE, PTP_STRICT_FLAGS
ptp_pin_pf = PTP_PF_NONE, PTP_PF_EXTTS, PTP_PF_PEROUT, PTP_PF_PHYSYNC
define PTP_CLOCK_CAPS_SIZE sizeof(struct ptp_clock_caps)
define PTP_SYS_OFFSET_SIZE sizeof(struct ptp_sys_offset)
define PTP_SYS_OFFSET_PRECISE_SIZE sizeof(struct ptp_sys_offset_precise)
define PTP_SYS_OFFSET_EXTENDED_SIZE sizeof(struct ptp_sys_offset_extended)

View File

@ -0,0 +1,31 @@
# AUTOGENERATED FILE
AT_FDCWD = 18446744073709551516
PTP_CLOCK_CAPS_SIZE = 80
PTP_CLOCK_GETCAPS = 2152742145
PTP_ENABLE_FEATURE = 1
PTP_ENABLE_PPS = 1074019588
PTP_EXTTS_REQUEST = 1074806018
PTP_EXTTS_REQUEST2 = 1074806027
PTP_FALLING_EDGE = 4
PTP_MAX_SAMPLES = 25
PTP_PEROUT_REQUEST = 1077427459
PTP_PEROUT_REQUEST2 = 1077427468
PTP_PF_EXTTS = 1
PTP_PF_NONE = 0
PTP_PF_PEROUT = 2
PTP_PF_PHYSYNC = 3
PTP_PIN_GETFUNC = 3227532550
PTP_PIN_GETFUNC2 = 3227532559
PTP_PIN_SETFUNC = 1080048903
PTP_PIN_SETFUNC2 = 1080048912
PTP_RISING_EDGE = 2
PTP_STRICT_FLAGS = 8
PTP_SYS_OFFSET = 1128283397
PTP_SYS_OFFSET_EXTENDED = 3300932873
PTP_SYS_OFFSET_EXTENDED_SIZE = 1216
PTP_SYS_OFFSET_PRECISE = 3225435400
PTP_SYS_OFFSET_PRECISE_SIZE = 64
PTP_SYS_OFFSET_SIZE = 832
__NR_ioctl = 54
__NR_openat = 295
__NR_read = 3

View File

@ -0,0 +1,31 @@
# AUTOGENERATED FILE
AT_FDCWD = 18446744073709551516
PTP_CLOCK_CAPS_SIZE = 80
PTP_CLOCK_GETCAPS = 2152742145
PTP_ENABLE_FEATURE = 1
PTP_ENABLE_PPS = 1074019588
PTP_EXTTS_REQUEST = 1074806018
PTP_EXTTS_REQUEST2 = 1074806027
PTP_FALLING_EDGE = 4
PTP_MAX_SAMPLES = 25
PTP_PEROUT_REQUEST = 1077427459
PTP_PEROUT_REQUEST2 = 1077427468
PTP_PF_EXTTS = 1
PTP_PF_NONE = 0
PTP_PF_PEROUT = 2
PTP_PF_PHYSYNC = 3
PTP_PIN_GETFUNC = 3227532550
PTP_PIN_GETFUNC2 = 3227532559
PTP_PIN_SETFUNC = 1080048903
PTP_PIN_SETFUNC2 = 1080048912
PTP_RISING_EDGE = 2
PTP_STRICT_FLAGS = 8
PTP_SYS_OFFSET = 1128283397
PTP_SYS_OFFSET_EXTENDED = 3300932873
PTP_SYS_OFFSET_EXTENDED_SIZE = 1216
PTP_SYS_OFFSET_PRECISE = 3225435400
PTP_SYS_OFFSET_PRECISE_SIZE = 64
PTP_SYS_OFFSET_SIZE = 832
__NR_ioctl = 16
__NR_openat = 257
__NR_read = 0

View File

@ -0,0 +1,31 @@
# AUTOGENERATED FILE
AT_FDCWD = 18446744073709551516
PTP_CLOCK_CAPS_SIZE = 80
PTP_CLOCK_GETCAPS = 2152742145
PTP_ENABLE_FEATURE = 1
PTP_ENABLE_PPS = 1074019588
PTP_EXTTS_REQUEST = 1074806018
PTP_EXTTS_REQUEST2 = 1074806027
PTP_FALLING_EDGE = 4
PTP_MAX_SAMPLES = 25
PTP_PEROUT_REQUEST = 1077427459
PTP_PEROUT_REQUEST2 = 1077427468
PTP_PF_EXTTS = 1
PTP_PF_NONE = 0
PTP_PF_PEROUT = 2
PTP_PF_PHYSYNC = 3
PTP_PIN_GETFUNC = 3227532550
PTP_PIN_GETFUNC2 = 3227532559
PTP_PIN_SETFUNC = 1080048903
PTP_PIN_SETFUNC2 = 1080048912
PTP_RISING_EDGE = 2
PTP_STRICT_FLAGS = 8
PTP_SYS_OFFSET = 1128283397
PTP_SYS_OFFSET_EXTENDED = 3300932873
PTP_SYS_OFFSET_EXTENDED_SIZE = 1216
PTP_SYS_OFFSET_PRECISE = 3225435400
PTP_SYS_OFFSET_PRECISE_SIZE = 64
PTP_SYS_OFFSET_SIZE = 832
__NR_ioctl = 54
__NR_openat = 322
__NR_read = 3

View File

@ -0,0 +1,31 @@
# AUTOGENERATED FILE
AT_FDCWD = 18446744073709551516
PTP_CLOCK_CAPS_SIZE = 80
PTP_CLOCK_GETCAPS = 2152742145
PTP_ENABLE_FEATURE = 1
PTP_ENABLE_PPS = 1074019588
PTP_EXTTS_REQUEST = 1074806018
PTP_EXTTS_REQUEST2 = 1074806027
PTP_FALLING_EDGE = 4
PTP_MAX_SAMPLES = 25
PTP_PEROUT_REQUEST = 1077427459
PTP_PEROUT_REQUEST2 = 1077427468
PTP_PF_EXTTS = 1
PTP_PF_NONE = 0
PTP_PF_PEROUT = 2
PTP_PF_PHYSYNC = 3
PTP_PIN_GETFUNC = 3227532550
PTP_PIN_GETFUNC2 = 3227532559
PTP_PIN_SETFUNC = 1080048903
PTP_PIN_SETFUNC2 = 1080048912
PTP_RISING_EDGE = 2
PTP_STRICT_FLAGS = 8
PTP_SYS_OFFSET = 1128283397
PTP_SYS_OFFSET_EXTENDED = 3300932873
PTP_SYS_OFFSET_EXTENDED_SIZE = 1216
PTP_SYS_OFFSET_PRECISE = 3225435400
PTP_SYS_OFFSET_PRECISE_SIZE = 64
PTP_SYS_OFFSET_SIZE = 832
__NR_ioctl = 29
__NR_openat = 56
__NR_read = 63

View File

@ -0,0 +1,31 @@
# AUTOGENERATED FILE
AT_FDCWD = 18446744073709551516
PTP_CLOCK_CAPS_SIZE = 80
PTP_CLOCK_GETCAPS = 1079000321
PTP_ENABLE_FEATURE = 1
PTP_ENABLE_PPS = 2147761412
PTP_EXTTS_REQUEST = 2148547842
PTP_EXTTS_REQUEST2 = 2148547851
PTP_FALLING_EDGE = 4
PTP_MAX_SAMPLES = 25
PTP_PEROUT_REQUEST = 2151169283
PTP_PEROUT_REQUEST2 = 2151169292
PTP_PF_EXTTS = 1
PTP_PF_NONE = 0
PTP_PF_PEROUT = 2
PTP_PF_PHYSYNC = 3
PTP_PIN_GETFUNC = 3227532550
PTP_PIN_GETFUNC2 = 3227532559
PTP_PIN_SETFUNC = 2153790727
PTP_PIN_SETFUNC2 = 2153790736
PTP_RISING_EDGE = 2
PTP_STRICT_FLAGS = 8
PTP_SYS_OFFSET = 2202025221
PTP_SYS_OFFSET_EXTENDED = 3300932873
PTP_SYS_OFFSET_EXTENDED_SIZE = 1216
PTP_SYS_OFFSET_PRECISE = 3225435400
PTP_SYS_OFFSET_PRECISE_SIZE = 64
PTP_SYS_OFFSET_SIZE = 832
__NR_ioctl = 54
__NR_openat = 286
__NR_read = 3

View File

@ -12,3 +12,5 @@ SNDRV_RAWMIDI_STREAM_INPUT = 1
SNDRV_RAWMIDI_STREAM_LAST = 1
SNDRV_RAWMIDI_STREAM_OUTPUT = 0
__NR_ioctl = 54
__NR_read = 3
__NR_write = 4

View File

@ -12,3 +12,5 @@ SNDRV_RAWMIDI_STREAM_INPUT = 1
SNDRV_RAWMIDI_STREAM_LAST = 1
SNDRV_RAWMIDI_STREAM_OUTPUT = 0
__NR_ioctl = 16
__NR_read = 0
__NR_write = 1

View File

@ -12,3 +12,5 @@ SNDRV_RAWMIDI_STREAM_INPUT = 1
SNDRV_RAWMIDI_STREAM_LAST = 1
SNDRV_RAWMIDI_STREAM_OUTPUT = 0
__NR_ioctl = 29
__NR_read = 63
__NR_write = 64

View File

@ -12,3 +12,5 @@ SNDRV_RAWMIDI_STREAM_INPUT = 1
SNDRV_RAWMIDI_STREAM_LAST = 1
SNDRV_RAWMIDI_STREAM_OUTPUT = 0
__NR_ioctl = 54
__NR_read = 3
__NR_write = 4

145
sys/linux/gen/386.go generated
View File

@ -77,6 +77,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615}},
{Name: "fd_pidfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_pidfd"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ppp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ppp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ptp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ptp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rdma", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma"}, Values: []uint64{18446744073709551615}},
@ -21031,6 +21032,40 @@ var structDescs_386 = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptp_clock_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_clock_time", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "desc", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "nsec", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "reserved", TypeSize: 4}}},
}}},
{Key: StructKey{Name: "ptp_extts_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_extts_request", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_extts_request_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 2, RangeEnd: 2},
}}},
{Key: StructKey{Name: "ptp_perout_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_perout_request", TypeSize: 56}, Fields: []Type{
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "start"},
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "period"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
}}},
{Key: StructKey{Name: "ptp_pin_desc"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_pin_desc", TypeSize: 96}, Fields: []Type{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_pin_pf", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "chan", TypeSize: 4}}},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 20}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 5, RangeEnd: 5},
}}},
{Key: StructKey{Name: "ptp_sys_offset"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset", TypeSize: 832}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 816}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptp_sys_offset_extended"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset_extended", TypeSize: 1216}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1200}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true},
@ -37702,6 +37737,71 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074049280},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "sockaddr_pppoe"}}},
}},
{NR: 54, Name: "ioctl$PTP_CLOCK_GETCAPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2152742145},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 80, ArgDir: 1}, Kind: 1, RangeBegin: 80, RangeEnd: 80}},
}},
{NR: 54, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074019588},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
}},
{NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074806018},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074806027},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PEROUT_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1077427459},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PEROUT_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1077427468},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_GETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3227532550},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_GETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3227532559},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_SETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1080048903},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_SETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1080048912},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1128283397},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET_EXTENDED", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3300932873},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset_extended"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET_PRECISE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3225435400},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
}},
{NR: 54, Name: "ioctl$READ_COUNTERS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rdma", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222805249},
@ -42040,6 +42140,18 @@ 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_tty", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$ptp0", 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/ptp0\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$ptp1", 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/ptp1\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 295, Name: "openat$qat_adf_ctl", 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: 17}, Kind: 2, Values: []string{"/dev/qat_adf_ctl\x00"}}},
@ -42976,6 +43088,11 @@ var syscalls_386 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 3, Name: "read$ptp", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 3, Name: "read$rfkill", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}},
@ -52509,6 +52626,32 @@ var consts_386 = []ConstValue{
{Name: "PR_TSC_SIGSEGV", Value: 2},
{Name: "PR_UNALIGN_NOPRINT", Value: 1},
{Name: "PR_UNALIGN_SIGBUS", Value: 2},
{Name: "PTP_CLOCK_CAPS_SIZE", Value: 80},
{Name: "PTP_CLOCK_GETCAPS", Value: 2152742145},
{Name: "PTP_ENABLE_FEATURE", Value: 1},
{Name: "PTP_ENABLE_PPS", Value: 1074019588},
{Name: "PTP_EXTTS_REQUEST", Value: 1074806018},
{Name: "PTP_EXTTS_REQUEST2", Value: 1074806027},
{Name: "PTP_FALLING_EDGE", Value: 4},
{Name: "PTP_MAX_SAMPLES", Value: 25},
{Name: "PTP_PEROUT_REQUEST", Value: 1077427459},
{Name: "PTP_PEROUT_REQUEST2", Value: 1077427468},
{Name: "PTP_PF_EXTTS", Value: 1},
{Name: "PTP_PF_NONE"},
{Name: "PTP_PF_PEROUT", Value: 2},
{Name: "PTP_PF_PHYSYNC", Value: 3},
{Name: "PTP_PIN_GETFUNC", Value: 3227532550},
{Name: "PTP_PIN_GETFUNC2", Value: 3227532559},
{Name: "PTP_PIN_SETFUNC", Value: 1080048903},
{Name: "PTP_PIN_SETFUNC2", Value: 1080048912},
{Name: "PTP_RISING_EDGE", Value: 2},
{Name: "PTP_STRICT_FLAGS", Value: 8},
{Name: "PTP_SYS_OFFSET", Value: 1128283397},
{Name: "PTP_SYS_OFFSET_EXTENDED", Value: 3300932873},
{Name: "PTP_SYS_OFFSET_EXTENDED_SIZE", Value: 1216},
{Name: "PTP_SYS_OFFSET_PRECISE", Value: 3225435400},
{Name: "PTP_SYS_OFFSET_PRECISE_SIZE", Value: 64},
{Name: "PTP_SYS_OFFSET_SIZE", Value: 832},
{Name: "PTRACE_ATTACH", Value: 16},
{Name: "PTRACE_CONT", Value: 7},
{Name: "PTRACE_DETACH", Value: 17},
@ -56766,4 +56909,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_386 = "31a79aa9906f8942aeb23a2998670755bc5f5927"
const revision_386 = "688f068cac4ec551a0741dbbf3b308b309ff1624"

145
sys/linux/gen/amd64.go generated
View File

@ -77,6 +77,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615}},
{Name: "fd_pidfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_pidfd"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ppp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ppp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ptp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ptp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rdma", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma"}, Values: []uint64{18446744073709551615}},
@ -21337,6 +21338,40 @@ var structDescs_amd64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "auxv_size", TypeSize: 4}}, BitSize: 8, Path: []string{"auxv"}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}},
}}},
{Key: StructKey{Name: "ptp_clock_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_clock_time", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "desc", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "nsec", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "reserved", TypeSize: 4}}},
}}},
{Key: StructKey{Name: "ptp_extts_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_extts_request", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_extts_request_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 2, RangeEnd: 2},
}}},
{Key: StructKey{Name: "ptp_perout_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_perout_request", TypeSize: 56}, Fields: []Type{
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "start"},
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "period"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
}}},
{Key: StructKey{Name: "ptp_pin_desc"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_pin_desc", TypeSize: 96}, Fields: []Type{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_pin_pf", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "chan", TypeSize: 4}}},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 20}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 5, RangeEnd: 5},
}}},
{Key: StructKey{Name: "ptp_sys_offset"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset", TypeSize: 832}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 816}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptp_sys_offset_extended"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset_extended", TypeSize: 1216}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1200}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true},
@ -38221,6 +38256,71 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074311424},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sockaddr_pppoe"}}},
}},
{NR: 16, Name: "ioctl$PTP_CLOCK_GETCAPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2152742145},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 80, ArgDir: 1}, Kind: 1, RangeBegin: 80, RangeEnd: 80}},
}},
{NR: 16, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074019588},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
}},
{NR: 16, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074806018},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 16, Name: "ioctl$PTP_EXTTS_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074806027},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 16, Name: "ioctl$PTP_PEROUT_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077427459},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 16, Name: "ioctl$PTP_PEROUT_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077427468},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 16, Name: "ioctl$PTP_PIN_GETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3227532550},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 16, Name: "ioctl$PTP_PIN_GETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3227532559},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 16, Name: "ioctl$PTP_PIN_SETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1080048903},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 16, Name: "ioctl$PTP_PIN_SETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1080048912},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 16, Name: "ioctl$PTP_SYS_OFFSET", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1128283397},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset"}}},
}},
{NR: 16, Name: "ioctl$PTP_SYS_OFFSET_EXTENDED", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3300932873},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset_extended"}}},
}},
{NR: 16, Name: "ioctl$PTP_SYS_OFFSET_PRECISE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225435400},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
}},
{NR: 16, Name: "ioctl$READ_COUNTERS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rdma", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222805249},
@ -42579,6 +42679,18 @@ 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_tty", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$ptp0", 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/ptp0\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$ptp1", 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/ptp1\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$qat_adf_ctl", 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: 17}, Kind: 2, Values: []string{"/dev/qat_adf_ctl\x00"}}},
@ -43515,6 +43627,11 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}},
}},
{Name: "read$ptp", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}},
}},
{Name: "read$rfkill", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}},
@ -53053,6 +53170,32 @@ var consts_amd64 = []ConstValue{
{Name: "PR_TSC_SIGSEGV", Value: 2},
{Name: "PR_UNALIGN_NOPRINT", Value: 1},
{Name: "PR_UNALIGN_SIGBUS", Value: 2},
{Name: "PTP_CLOCK_CAPS_SIZE", Value: 80},
{Name: "PTP_CLOCK_GETCAPS", Value: 2152742145},
{Name: "PTP_ENABLE_FEATURE", Value: 1},
{Name: "PTP_ENABLE_PPS", Value: 1074019588},
{Name: "PTP_EXTTS_REQUEST", Value: 1074806018},
{Name: "PTP_EXTTS_REQUEST2", Value: 1074806027},
{Name: "PTP_FALLING_EDGE", Value: 4},
{Name: "PTP_MAX_SAMPLES", Value: 25},
{Name: "PTP_PEROUT_REQUEST", Value: 1077427459},
{Name: "PTP_PEROUT_REQUEST2", Value: 1077427468},
{Name: "PTP_PF_EXTTS", Value: 1},
{Name: "PTP_PF_NONE"},
{Name: "PTP_PF_PEROUT", Value: 2},
{Name: "PTP_PF_PHYSYNC", Value: 3},
{Name: "PTP_PIN_GETFUNC", Value: 3227532550},
{Name: "PTP_PIN_GETFUNC2", Value: 3227532559},
{Name: "PTP_PIN_SETFUNC", Value: 1080048903},
{Name: "PTP_PIN_SETFUNC2", Value: 1080048912},
{Name: "PTP_RISING_EDGE", Value: 2},
{Name: "PTP_STRICT_FLAGS", Value: 8},
{Name: "PTP_SYS_OFFSET", Value: 1128283397},
{Name: "PTP_SYS_OFFSET_EXTENDED", Value: 3300932873},
{Name: "PTP_SYS_OFFSET_EXTENDED_SIZE", Value: 1216},
{Name: "PTP_SYS_OFFSET_PRECISE", Value: 3225435400},
{Name: "PTP_SYS_OFFSET_PRECISE_SIZE", Value: 64},
{Name: "PTP_SYS_OFFSET_SIZE", Value: 832},
{Name: "PTRACE_ATTACH", Value: 16},
{Name: "PTRACE_CONT", Value: 7},
{Name: "PTRACE_DETACH", Value: 17},
@ -57325,4 +57468,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_amd64 = "f96766ba8831b4d50287990a3963d0f154340dbc"
const revision_amd64 = "5959da595aec270cc17af1e6981110716436fdf4"

145
sys/linux/gen/arm.go generated
View File

@ -77,6 +77,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615}},
{Name: "fd_pidfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_pidfd"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ppp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ppp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ptp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ptp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rdma", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma"}, Values: []uint64{18446744073709551615}},
@ -20848,6 +20849,40 @@ var structDescs_arm = []*KeyedStruct{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptp_clock_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_clock_time", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "desc", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "nsec", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "reserved", TypeSize: 4}}},
}}},
{Key: StructKey{Name: "ptp_extts_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_extts_request", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_extts_request_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 2, RangeEnd: 2},
}}},
{Key: StructKey{Name: "ptp_perout_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_perout_request", TypeSize: 56}, Fields: []Type{
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "start"},
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "period"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
}}},
{Key: StructKey{Name: "ptp_pin_desc"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_pin_desc", TypeSize: 96}, Fields: []Type{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_pin_pf", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "chan", TypeSize: 4}}},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 20}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 5, RangeEnd: 5},
}}},
{Key: StructKey{Name: "ptp_sys_offset"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset", TypeSize: 832}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 816}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptp_sys_offset_extended"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset_extended", TypeSize: 1216}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1200}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true},
@ -37391,6 +37426,71 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074049280},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "sockaddr_pppoe"}}},
}},
{NR: 54, Name: "ioctl$PTP_CLOCK_GETCAPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2152742145},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 80, ArgDir: 1}, Kind: 1, RangeBegin: 80, RangeEnd: 80}},
}},
{NR: 54, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074019588},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
}},
{NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074806018},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074806027},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PEROUT_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1077427459},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PEROUT_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1077427468},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_GETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3227532550},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_GETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3227532559},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_SETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1080048903},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_SETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1080048912},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1128283397},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET_EXTENDED", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3300932873},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset_extended"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET_PRECISE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3225435400},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
}},
{NR: 54, Name: "ioctl$READ_COUNTERS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rdma", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3222805249},
@ -41701,6 +41801,18 @@ 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_tty", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 322, Name: "openat$ptp0", 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/ptp0\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 322, Name: "openat$ptp1", 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/ptp1\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 322, Name: "openat$qat_adf_ctl", 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: 17}, Kind: 2, Values: []string{"/dev/qat_adf_ctl\x00"}}},
@ -42637,6 +42749,11 @@ var syscalls_arm = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 3, Name: "read$ptp", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 4}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 3, Name: "read$rfkill", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}},
@ -52098,6 +52215,32 @@ var consts_arm = []ConstValue{
{Name: "PR_TSC_SIGSEGV", Value: 2},
{Name: "PR_UNALIGN_NOPRINT", Value: 1},
{Name: "PR_UNALIGN_SIGBUS", Value: 2},
{Name: "PTP_CLOCK_CAPS_SIZE", Value: 80},
{Name: "PTP_CLOCK_GETCAPS", Value: 2152742145},
{Name: "PTP_ENABLE_FEATURE", Value: 1},
{Name: "PTP_ENABLE_PPS", Value: 1074019588},
{Name: "PTP_EXTTS_REQUEST", Value: 1074806018},
{Name: "PTP_EXTTS_REQUEST2", Value: 1074806027},
{Name: "PTP_FALLING_EDGE", Value: 4},
{Name: "PTP_MAX_SAMPLES", Value: 25},
{Name: "PTP_PEROUT_REQUEST", Value: 1077427459},
{Name: "PTP_PEROUT_REQUEST2", Value: 1077427468},
{Name: "PTP_PF_EXTTS", Value: 1},
{Name: "PTP_PF_NONE"},
{Name: "PTP_PF_PEROUT", Value: 2},
{Name: "PTP_PF_PHYSYNC", Value: 3},
{Name: "PTP_PIN_GETFUNC", Value: 3227532550},
{Name: "PTP_PIN_GETFUNC2", Value: 3227532559},
{Name: "PTP_PIN_SETFUNC", Value: 1080048903},
{Name: "PTP_PIN_SETFUNC2", Value: 1080048912},
{Name: "PTP_RISING_EDGE", Value: 2},
{Name: "PTP_STRICT_FLAGS", Value: 8},
{Name: "PTP_SYS_OFFSET", Value: 1128283397},
{Name: "PTP_SYS_OFFSET_EXTENDED", Value: 3300932873},
{Name: "PTP_SYS_OFFSET_EXTENDED_SIZE", Value: 1216},
{Name: "PTP_SYS_OFFSET_PRECISE", Value: 3225435400},
{Name: "PTP_SYS_OFFSET_PRECISE_SIZE", Value: 64},
{Name: "PTP_SYS_OFFSET_SIZE", Value: 832},
{Name: "PTRACE_ATTACH", Value: 16},
{Name: "PTRACE_CONT", Value: 7},
{Name: "PTRACE_DETACH", Value: 17},
@ -56343,4 +56486,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm = "168903bd36df9f3e7fb08c2b6a1bbda440635d25"
const revision_arm = "86060ba5185be2fa8a6ea934dc5b33bb99964e3e"

145
sys/linux/gen/arm64.go generated
View File

@ -77,6 +77,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615}},
{Name: "fd_pidfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_pidfd"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ppp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ppp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ptp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ptp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rdma", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma"}, Values: []uint64{18446744073709551615}},
@ -21154,6 +21155,40 @@ var structDescs_arm64 = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "auxv_size", TypeSize: 4}}, BitSize: 8, Path: []string{"auxv"}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}},
}}},
{Key: StructKey{Name: "ptp_clock_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_clock_time", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "desc", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "nsec", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "reserved", TypeSize: 4}}},
}}},
{Key: StructKey{Name: "ptp_extts_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_extts_request", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_extts_request_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 2, RangeEnd: 2},
}}},
{Key: StructKey{Name: "ptp_perout_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_perout_request", TypeSize: 56}, Fields: []Type{
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "start"},
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "period"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
}}},
{Key: StructKey{Name: "ptp_pin_desc"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_pin_desc", TypeSize: 96}, Fields: []Type{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_pin_pf", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "chan", TypeSize: 4}}},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 20}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 5, RangeEnd: 5},
}}},
{Key: StructKey{Name: "ptp_sys_offset"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset", TypeSize: 832}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 816}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptp_sys_offset_extended"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset_extended", TypeSize: 1216}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1200}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true},
@ -37818,6 +37853,71 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074311424},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sockaddr_pppoe"}}},
}},
{NR: 29, Name: "ioctl$PTP_CLOCK_GETCAPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2152742145},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 80, ArgDir: 1}, Kind: 1, RangeBegin: 80, RangeEnd: 80}},
}},
{NR: 29, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074019588},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
}},
{NR: 29, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074806018},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 29, Name: "ioctl$PTP_EXTTS_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074806027},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 29, Name: "ioctl$PTP_PEROUT_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077427459},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 29, Name: "ioctl$PTP_PEROUT_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1077427468},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 29, Name: "ioctl$PTP_PIN_GETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3227532550},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 29, Name: "ioctl$PTP_PIN_GETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3227532559},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 29, Name: "ioctl$PTP_PIN_SETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1080048903},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 29, Name: "ioctl$PTP_PIN_SETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1080048912},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 29, Name: "ioctl$PTP_SYS_OFFSET", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1128283397},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset"}}},
}},
{NR: 29, Name: "ioctl$PTP_SYS_OFFSET_EXTENDED", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3300932873},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset_extended"}}},
}},
{NR: 29, Name: "ioctl$PTP_SYS_OFFSET_PRECISE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225435400},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
}},
{NR: 29, Name: "ioctl$READ_COUNTERS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rdma", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222805249},
@ -42111,6 +42211,18 @@ 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_tty", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 56, Name: "openat$ptp0", 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/ptp0\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 56, Name: "openat$ptp1", 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/ptp1\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 56, Name: "openat$qat_adf_ctl", 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: 17}, Kind: 2, Values: []string{"/dev/qat_adf_ctl\x00"}}},
@ -43038,6 +43150,11 @@ var syscalls_arm64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 63, Name: "read$ptp", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 63, Name: "read$rfkill", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}},
@ -52450,6 +52567,32 @@ var consts_arm64 = []ConstValue{
{Name: "PR_TSC_SIGSEGV", Value: 2},
{Name: "PR_UNALIGN_NOPRINT", Value: 1},
{Name: "PR_UNALIGN_SIGBUS", Value: 2},
{Name: "PTP_CLOCK_CAPS_SIZE", Value: 80},
{Name: "PTP_CLOCK_GETCAPS", Value: 2152742145},
{Name: "PTP_ENABLE_FEATURE", Value: 1},
{Name: "PTP_ENABLE_PPS", Value: 1074019588},
{Name: "PTP_EXTTS_REQUEST", Value: 1074806018},
{Name: "PTP_EXTTS_REQUEST2", Value: 1074806027},
{Name: "PTP_FALLING_EDGE", Value: 4},
{Name: "PTP_MAX_SAMPLES", Value: 25},
{Name: "PTP_PEROUT_REQUEST", Value: 1077427459},
{Name: "PTP_PEROUT_REQUEST2", Value: 1077427468},
{Name: "PTP_PF_EXTTS", Value: 1},
{Name: "PTP_PF_NONE"},
{Name: "PTP_PF_PEROUT", Value: 2},
{Name: "PTP_PF_PHYSYNC", Value: 3},
{Name: "PTP_PIN_GETFUNC", Value: 3227532550},
{Name: "PTP_PIN_GETFUNC2", Value: 3227532559},
{Name: "PTP_PIN_SETFUNC", Value: 1080048903},
{Name: "PTP_PIN_SETFUNC2", Value: 1080048912},
{Name: "PTP_RISING_EDGE", Value: 2},
{Name: "PTP_STRICT_FLAGS", Value: 8},
{Name: "PTP_SYS_OFFSET", Value: 1128283397},
{Name: "PTP_SYS_OFFSET_EXTENDED", Value: 3300932873},
{Name: "PTP_SYS_OFFSET_EXTENDED_SIZE", Value: 1216},
{Name: "PTP_SYS_OFFSET_PRECISE", Value: 3225435400},
{Name: "PTP_SYS_OFFSET_PRECISE_SIZE", Value: 64},
{Name: "PTP_SYS_OFFSET_SIZE", Value: 832},
{Name: "PTRACE_ATTACH", Value: 16},
{Name: "PTRACE_CONT", Value: 7},
{Name: "PTRACE_DETACH", Value: 17},
@ -56677,4 +56820,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_arm64 = "b9de0d508648f4a21f5d7cf30a2079158fd3d094"
const revision_arm64 = "6fe03afc4cef6d2f8973d0fb578dda14bd991330"

145
sys/linux/gen/ppc64le.go generated
View File

@ -77,6 +77,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_perf_base", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base"}, Values: []uint64{18446744073709551615}},
{Name: "fd_pidfd", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_pidfd"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ppp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ppp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_ptp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_ptp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615}},
{Name: "fd_rdma", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma"}, Values: []uint64{18446744073709551615}},
@ -21106,6 +21107,40 @@ var structDescs_ppc64le = []*KeyedStruct{
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "auxv_size", TypeSize: 4}}, BitSize: 8, Path: []string{"auxv"}},
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "exe_fd", TypeSize: 4}},
}}},
{Key: StructKey{Name: "ptp_clock_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_clock_time", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "desc", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "nsec", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "reserved", TypeSize: 4}}},
}}},
{Key: StructKey{Name: "ptp_extts_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_extts_request", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_extts_request_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4, 8}, BitMask: true},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 8}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 2, RangeEnd: 2},
}}},
{Key: StructKey{Name: "ptp_perout_request"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_perout_request", TypeSize: 56}, Fields: []Type{
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "start"},
&StructType{Key: StructKey{Name: "ptp_clock_time"}, FldName: "period"},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "flags", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 16}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 4, RangeEnd: 4},
}}},
{Key: StructKey{Name: "ptp_pin_desc"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_pin_desc", TypeSize: 96}, Fields: []Type{
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptp_pin_pf", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 3}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "chan", TypeSize: 4}}},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 20}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 5, RangeEnd: 5},
}}},
{Key: StructKey{Name: "ptp_sys_offset"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset", TypeSize: 832}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 816}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptp_sys_offset_extended"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptp_sys_offset_extended", TypeSize: 1216}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "n_samples", TypeSize: 4}}, Kind: 1, RangeEnd: 25},
&ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "rsv", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 1200}}, IsPad: true},
}}},
{Key: StructKey{Name: "ptrace_peeksiginfo_args"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_args", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "off", TypeSize: 8}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "ptrace_peeksiginfo_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true},
@ -37739,6 +37774,71 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148053248},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sockaddr_pppoe"}}},
}},
{NR: 54, Name: "ioctl$PTP_CLOCK_GETCAPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1079000321},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 80, ArgDir: 1}, Kind: 1, RangeBegin: 80, RangeEnd: 80}},
}},
{NR: 54, Name: "ioctl$PTP_ENABLE_PPS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147761412},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "arg", TypeSize: 4}}, Kind: 1, RangeEnd: 1},
}},
{NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148547842},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_EXTTS_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148547851},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_extts_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PEROUT_REQUEST", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151169283},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PEROUT_REQUEST2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2151169292},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_perout_request"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_GETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3227532550},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_GETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3227532559},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_SETFUNC", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2153790727},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_PIN_SETFUNC2", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2153790736},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_pin_desc"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2202025221},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET_EXTENDED", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3300932873},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "ptp_sys_offset_extended"}}},
}},
{NR: 54, Name: "ioctl$PTP_SYS_OFFSET_PRECISE", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3225435400},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}},
}},
{NR: 54, Name: "ioctl$READ_COUNTERS", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rdma", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3222805249},
@ -42042,6 +42142,18 @@ 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_tty", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 286, Name: "openat$ptp0", 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/ptp0\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 286, Name: "openat$ptp1", 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/ptp1\x00"}}},
&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_ptp", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 286, Name: "openat$qat_adf_ctl", 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: 17}, Kind: 2, Values: []string{"/dev/qat_adf_ctl\x00"}}},
@ -42978,6 +43090,11 @@ var syscalls_ppc64le = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 3, Name: "read$ptp", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ptp", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Path: []string{"data"}},
}},
{NR: 3, Name: "read$rfkill", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}},
@ -52439,6 +52556,32 @@ var consts_ppc64le = []ConstValue{
{Name: "PR_TSC_SIGSEGV", Value: 2},
{Name: "PR_UNALIGN_NOPRINT", Value: 1},
{Name: "PR_UNALIGN_SIGBUS", Value: 2},
{Name: "PTP_CLOCK_CAPS_SIZE", Value: 80},
{Name: "PTP_CLOCK_GETCAPS", Value: 1079000321},
{Name: "PTP_ENABLE_FEATURE", Value: 1},
{Name: "PTP_ENABLE_PPS", Value: 2147761412},
{Name: "PTP_EXTTS_REQUEST", Value: 2148547842},
{Name: "PTP_EXTTS_REQUEST2", Value: 2148547851},
{Name: "PTP_FALLING_EDGE", Value: 4},
{Name: "PTP_MAX_SAMPLES", Value: 25},
{Name: "PTP_PEROUT_REQUEST", Value: 2151169283},
{Name: "PTP_PEROUT_REQUEST2", Value: 2151169292},
{Name: "PTP_PF_EXTTS", Value: 1},
{Name: "PTP_PF_NONE"},
{Name: "PTP_PF_PEROUT", Value: 2},
{Name: "PTP_PF_PHYSYNC", Value: 3},
{Name: "PTP_PIN_GETFUNC", Value: 3227532550},
{Name: "PTP_PIN_GETFUNC2", Value: 3227532559},
{Name: "PTP_PIN_SETFUNC", Value: 2153790727},
{Name: "PTP_PIN_SETFUNC2", Value: 2153790736},
{Name: "PTP_RISING_EDGE", Value: 2},
{Name: "PTP_STRICT_FLAGS", Value: 8},
{Name: "PTP_SYS_OFFSET", Value: 2202025221},
{Name: "PTP_SYS_OFFSET_EXTENDED", Value: 3300932873},
{Name: "PTP_SYS_OFFSET_EXTENDED_SIZE", Value: 1216},
{Name: "PTP_SYS_OFFSET_PRECISE", Value: 3225435400},
{Name: "PTP_SYS_OFFSET_PRECISE_SIZE", Value: 64},
{Name: "PTP_SYS_OFFSET_SIZE", Value: 832},
{Name: "PTRACE_ATTACH", Value: 16},
{Name: "PTRACE_CONT", Value: 7},
{Name: "PTRACE_DETACH", Value: 17},
@ -56642,4 +56785,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
const revision_ppc64le = "9570bda82e44e5c315cd3984fe252c0cb2eea802"
const revision_ppc64le = "1c74478c1928bed0f19f446a6e31828907684f93"