diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go | 641 |
1 files changed, 478 insertions, 163 deletions
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go index dea88f7..3b7747e 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go | |||
@@ -33,13 +33,11 @@ type Timeval struct { | |||
33 | 33 | ||
34 | type Timex struct { | 34 | type Timex struct { |
35 | Modes uint32 | 35 | Modes uint32 |
36 | _ [4]byte | ||
37 | Offset int64 | 36 | Offset int64 |
38 | Freq int64 | 37 | Freq int64 |
39 | Maxerror int64 | 38 | Maxerror int64 |
40 | Esterror int64 | 39 | Esterror int64 |
41 | Status int32 | 40 | Status int32 |
42 | _ [4]byte | ||
43 | Constant int64 | 41 | Constant int64 |
44 | Precision int64 | 42 | Precision int64 |
45 | Tolerance int64 | 43 | Tolerance int64 |
@@ -48,7 +46,6 @@ type Timex struct { | |||
48 | Ppsfreq int64 | 46 | Ppsfreq int64 |
49 | Jitter int64 | 47 | Jitter int64 |
50 | Shift int32 | 48 | Shift int32 |
51 | _ [4]byte | ||
52 | Stabil int64 | 49 | Stabil int64 |
53 | Jitcnt int64 | 50 | Jitcnt int64 |
54 | Calcnt int64 | 51 | Calcnt int64 |
@@ -162,7 +159,6 @@ type Fsid struct { | |||
162 | type Flock_t struct { | 159 | type Flock_t struct { |
163 | Type int16 | 160 | Type int16 |
164 | Whence int16 | 161 | Whence int16 |
165 | _ [4]byte | ||
166 | Start int64 | 162 | Start int64 |
167 | Len int64 | 163 | Len int64 |
168 | Pid int32 | 164 | Pid int32 |
@@ -259,7 +255,6 @@ type RawSockaddrRFCOMM struct { | |||
259 | 255 | ||
260 | type RawSockaddrCAN struct { | 256 | type RawSockaddrCAN struct { |
261 | Family uint16 | 257 | Family uint16 |
262 | _ [2]byte | ||
263 | Ifindex int32 | 258 | Ifindex int32 |
264 | Addr [8]byte | 259 | Addr [8]byte |
265 | } | 260 | } |
@@ -288,6 +283,8 @@ type RawSockaddrXDP struct { | |||
288 | Shared_umem_fd uint32 | 283 | Shared_umem_fd uint32 |
289 | } | 284 | } |
290 | 285 | ||
286 | type RawSockaddrPPPoX [0x1e]byte | ||
287 | |||
291 | type RawSockaddr struct { | 288 | type RawSockaddr struct { |
292 | Family uint16 | 289 | Family uint16 |
293 | Data [14]int8 | 290 | Data [14]int8 |
@@ -336,7 +333,6 @@ type PacketMreq struct { | |||
336 | type Msghdr struct { | 333 | type Msghdr struct { |
337 | Name *byte | 334 | Name *byte |
338 | Namelen uint32 | 335 | Namelen uint32 |
339 | _ [4]byte | ||
340 | Iov *Iovec | 336 | Iov *Iovec |
341 | Iovlen uint64 | 337 | Iovlen uint64 |
342 | Control *byte | 338 | Control *byte |
@@ -384,7 +380,6 @@ type TCPInfo struct { | |||
384 | Probes uint8 | 380 | Probes uint8 |
385 | Backoff uint8 | 381 | Backoff uint8 |
386 | Options uint8 | 382 | Options uint8 |
387 | _ [2]byte | ||
388 | Rto uint32 | 383 | Rto uint32 |
389 | Ato uint32 | 384 | Ato uint32 |
390 | Snd_mss uint32 | 385 | Snd_mss uint32 |
@@ -411,6 +406,11 @@ type TCPInfo struct { | |||
411 | Total_retrans uint32 | 406 | Total_retrans uint32 |
412 | } | 407 | } |
413 | 408 | ||
409 | type CanFilter struct { | ||
410 | Id uint32 | ||
411 | Mask uint32 | ||
412 | } | ||
413 | |||
414 | const ( | 414 | const ( |
415 | SizeofSockaddrInet4 = 0x10 | 415 | SizeofSockaddrInet4 = 0x10 |
416 | SizeofSockaddrInet6 = 0x1c | 416 | SizeofSockaddrInet6 = 0x1c |
@@ -425,6 +425,7 @@ const ( | |||
425 | SizeofSockaddrALG = 0x58 | 425 | SizeofSockaddrALG = 0x58 |
426 | SizeofSockaddrVM = 0x10 | 426 | SizeofSockaddrVM = 0x10 |
427 | SizeofSockaddrXDP = 0x10 | 427 | SizeofSockaddrXDP = 0x10 |
428 | SizeofSockaddrPPPoX = 0x1e | ||
428 | SizeofLinger = 0x8 | 429 | SizeofLinger = 0x8 |
429 | SizeofIovec = 0x10 | 430 | SizeofIovec = 0x10 |
430 | SizeofIPMreq = 0x8 | 431 | SizeofIPMreq = 0x8 |
@@ -439,141 +440,185 @@ const ( | |||
439 | SizeofICMPv6Filter = 0x20 | 440 | SizeofICMPv6Filter = 0x20 |
440 | SizeofUcred = 0xc | 441 | SizeofUcred = 0xc |
441 | SizeofTCPInfo = 0x68 | 442 | SizeofTCPInfo = 0x68 |
443 | SizeofCanFilter = 0x8 | ||
442 | ) | 444 | ) |
443 | 445 | ||
444 | const ( | 446 | const ( |
445 | IFA_UNSPEC = 0x0 | 447 | NDA_UNSPEC = 0x0 |
446 | IFA_ADDRESS = 0x1 | 448 | NDA_DST = 0x1 |
447 | IFA_LOCAL = 0x2 | 449 | NDA_LLADDR = 0x2 |
448 | IFA_LABEL = 0x3 | 450 | NDA_CACHEINFO = 0x3 |
449 | IFA_BROADCAST = 0x4 | 451 | NDA_PROBES = 0x4 |
450 | IFA_ANYCAST = 0x5 | 452 | NDA_VLAN = 0x5 |
451 | IFA_CACHEINFO = 0x6 | 453 | NDA_PORT = 0x6 |
452 | IFA_MULTICAST = 0x7 | 454 | NDA_VNI = 0x7 |
453 | IFLA_UNSPEC = 0x0 | 455 | NDA_IFINDEX = 0x8 |
454 | IFLA_ADDRESS = 0x1 | 456 | NDA_MASTER = 0x9 |
455 | IFLA_BROADCAST = 0x2 | 457 | NDA_LINK_NETNSID = 0xa |
456 | IFLA_IFNAME = 0x3 | 458 | NDA_SRC_VNI = 0xb |
457 | IFLA_INFO_KIND = 0x1 | 459 | NTF_USE = 0x1 |
458 | IFLA_MTU = 0x4 | 460 | NTF_SELF = 0x2 |
459 | IFLA_LINK = 0x5 | 461 | NTF_MASTER = 0x4 |
460 | IFLA_QDISC = 0x6 | 462 | NTF_PROXY = 0x8 |
461 | IFLA_STATS = 0x7 | 463 | NTF_EXT_LEARNED = 0x10 |
462 | IFLA_COST = 0x8 | 464 | NTF_OFFLOADED = 0x20 |
463 | IFLA_PRIORITY = 0x9 | 465 | NTF_ROUTER = 0x80 |
464 | IFLA_MASTER = 0xa | 466 | NUD_INCOMPLETE = 0x1 |
465 | IFLA_WIRELESS = 0xb | 467 | NUD_REACHABLE = 0x2 |
466 | IFLA_PROTINFO = 0xc | 468 | NUD_STALE = 0x4 |
467 | IFLA_TXQLEN = 0xd | 469 | NUD_DELAY = 0x8 |
468 | IFLA_MAP = 0xe | 470 | NUD_PROBE = 0x10 |
469 | IFLA_WEIGHT = 0xf | 471 | NUD_FAILED = 0x20 |
470 | IFLA_OPERSTATE = 0x10 | 472 | NUD_NOARP = 0x40 |
471 | IFLA_LINKMODE = 0x11 | 473 | NUD_PERMANENT = 0x80 |
472 | IFLA_LINKINFO = 0x12 | 474 | NUD_NONE = 0x0 |
473 | IFLA_NET_NS_PID = 0x13 | 475 | IFA_UNSPEC = 0x0 |
474 | IFLA_IFALIAS = 0x14 | 476 | IFA_ADDRESS = 0x1 |
475 | IFLA_NUM_VF = 0x15 | 477 | IFA_LOCAL = 0x2 |
476 | IFLA_VFINFO_LIST = 0x16 | 478 | IFA_LABEL = 0x3 |
477 | IFLA_STATS64 = 0x17 | 479 | IFA_BROADCAST = 0x4 |
478 | IFLA_VF_PORTS = 0x18 | 480 | IFA_ANYCAST = 0x5 |
479 | IFLA_PORT_SELF = 0x19 | 481 | IFA_CACHEINFO = 0x6 |
480 | IFLA_AF_SPEC = 0x1a | 482 | IFA_MULTICAST = 0x7 |
481 | IFLA_GROUP = 0x1b | 483 | IFA_FLAGS = 0x8 |
482 | IFLA_NET_NS_FD = 0x1c | 484 | IFA_RT_PRIORITY = 0x9 |
483 | IFLA_EXT_MASK = 0x1d | 485 | IFA_TARGET_NETNSID = 0xa |
484 | IFLA_PROMISCUITY = 0x1e | 486 | IFLA_UNSPEC = 0x0 |
485 | IFLA_NUM_TX_QUEUES = 0x1f | 487 | IFLA_ADDRESS = 0x1 |
486 | IFLA_NUM_RX_QUEUES = 0x20 | 488 | IFLA_BROADCAST = 0x2 |
487 | IFLA_CARRIER = 0x21 | 489 | IFLA_IFNAME = 0x3 |
488 | IFLA_PHYS_PORT_ID = 0x22 | 490 | IFLA_MTU = 0x4 |
489 | IFLA_CARRIER_CHANGES = 0x23 | 491 | IFLA_LINK = 0x5 |
490 | IFLA_PHYS_SWITCH_ID = 0x24 | 492 | IFLA_QDISC = 0x6 |
491 | IFLA_LINK_NETNSID = 0x25 | 493 | IFLA_STATS = 0x7 |
492 | IFLA_PHYS_PORT_NAME = 0x26 | 494 | IFLA_COST = 0x8 |
493 | IFLA_PROTO_DOWN = 0x27 | 495 | IFLA_PRIORITY = 0x9 |
494 | IFLA_GSO_MAX_SEGS = 0x28 | 496 | IFLA_MASTER = 0xa |
495 | IFLA_GSO_MAX_SIZE = 0x29 | 497 | IFLA_WIRELESS = 0xb |
496 | IFLA_PAD = 0x2a | 498 | IFLA_PROTINFO = 0xc |
497 | IFLA_XDP = 0x2b | 499 | IFLA_TXQLEN = 0xd |
498 | IFLA_EVENT = 0x2c | 500 | IFLA_MAP = 0xe |
499 | IFLA_NEW_NETNSID = 0x2d | 501 | IFLA_WEIGHT = 0xf |
500 | IFLA_IF_NETNSID = 0x2e | 502 | IFLA_OPERSTATE = 0x10 |
501 | IFLA_MAX = 0x33 | 503 | IFLA_LINKMODE = 0x11 |
502 | RT_SCOPE_UNIVERSE = 0x0 | 504 | IFLA_LINKINFO = 0x12 |
503 | RT_SCOPE_SITE = 0xc8 | 505 | IFLA_NET_NS_PID = 0x13 |
504 | RT_SCOPE_LINK = 0xfd | 506 | IFLA_IFALIAS = 0x14 |
505 | RT_SCOPE_HOST = 0xfe | 507 | IFLA_NUM_VF = 0x15 |
506 | RT_SCOPE_NOWHERE = 0xff | 508 | IFLA_VFINFO_LIST = 0x16 |
507 | RT_TABLE_UNSPEC = 0x0 | 509 | IFLA_STATS64 = 0x17 |
508 | RT_TABLE_COMPAT = 0xfc | 510 | IFLA_VF_PORTS = 0x18 |
509 | RT_TABLE_DEFAULT = 0xfd | 511 | IFLA_PORT_SELF = 0x19 |
510 | RT_TABLE_MAIN = 0xfe | 512 | IFLA_AF_SPEC = 0x1a |
511 | RT_TABLE_LOCAL = 0xff | 513 | IFLA_GROUP = 0x1b |
512 | RT_TABLE_MAX = 0xffffffff | 514 | IFLA_NET_NS_FD = 0x1c |
513 | RTA_UNSPEC = 0x0 | 515 | IFLA_EXT_MASK = 0x1d |
514 | RTA_DST = 0x1 | 516 | IFLA_PROMISCUITY = 0x1e |
515 | RTA_SRC = 0x2 | 517 | IFLA_NUM_TX_QUEUES = 0x1f |
516 | RTA_IIF = 0x3 | 518 | IFLA_NUM_RX_QUEUES = 0x20 |
517 | RTA_OIF = 0x4 | 519 | IFLA_CARRIER = 0x21 |
518 | RTA_GATEWAY = 0x5 | 520 | IFLA_PHYS_PORT_ID = 0x22 |
519 | RTA_PRIORITY = 0x6 | 521 | IFLA_CARRIER_CHANGES = 0x23 |
520 | RTA_PREFSRC = 0x7 | 522 | IFLA_PHYS_SWITCH_ID = 0x24 |
521 | RTA_METRICS = 0x8 | 523 | IFLA_LINK_NETNSID = 0x25 |
522 | RTA_MULTIPATH = 0x9 | 524 | IFLA_PHYS_PORT_NAME = 0x26 |
523 | RTA_FLOW = 0xb | 525 | IFLA_PROTO_DOWN = 0x27 |
524 | RTA_CACHEINFO = 0xc | 526 | IFLA_GSO_MAX_SEGS = 0x28 |
525 | RTA_TABLE = 0xf | 527 | IFLA_GSO_MAX_SIZE = 0x29 |
526 | RTA_MARK = 0x10 | 528 | IFLA_PAD = 0x2a |
527 | RTA_MFC_STATS = 0x11 | 529 | IFLA_XDP = 0x2b |
528 | RTA_VIA = 0x12 | 530 | IFLA_EVENT = 0x2c |
529 | RTA_NEWDST = 0x13 | 531 | IFLA_NEW_NETNSID = 0x2d |
530 | RTA_PREF = 0x14 | 532 | IFLA_IF_NETNSID = 0x2e |
531 | RTA_ENCAP_TYPE = 0x15 | 533 | IFLA_TARGET_NETNSID = 0x2e |
532 | RTA_ENCAP = 0x16 | 534 | IFLA_CARRIER_UP_COUNT = 0x2f |
533 | RTA_EXPIRES = 0x17 | 535 | IFLA_CARRIER_DOWN_COUNT = 0x30 |
534 | RTA_PAD = 0x18 | 536 | IFLA_NEW_IFINDEX = 0x31 |
535 | RTA_UID = 0x19 | 537 | IFLA_MIN_MTU = 0x32 |
536 | RTA_TTL_PROPAGATE = 0x1a | 538 | IFLA_MAX_MTU = 0x33 |
537 | RTA_IP_PROTO = 0x1b | 539 | IFLA_MAX = 0x33 |
538 | RTA_SPORT = 0x1c | 540 | IFLA_INFO_KIND = 0x1 |
539 | RTA_DPORT = 0x1d | 541 | IFLA_INFO_DATA = 0x2 |
540 | RTN_UNSPEC = 0x0 | 542 | IFLA_INFO_XSTATS = 0x3 |
541 | RTN_UNICAST = 0x1 | 543 | IFLA_INFO_SLAVE_KIND = 0x4 |
542 | RTN_LOCAL = 0x2 | 544 | IFLA_INFO_SLAVE_DATA = 0x5 |
543 | RTN_BROADCAST = 0x3 | 545 | RT_SCOPE_UNIVERSE = 0x0 |
544 | RTN_ANYCAST = 0x4 | 546 | RT_SCOPE_SITE = 0xc8 |
545 | RTN_MULTICAST = 0x5 | 547 | RT_SCOPE_LINK = 0xfd |
546 | RTN_BLACKHOLE = 0x6 | 548 | RT_SCOPE_HOST = 0xfe |
547 | RTN_UNREACHABLE = 0x7 | 549 | RT_SCOPE_NOWHERE = 0xff |
548 | RTN_PROHIBIT = 0x8 | 550 | RT_TABLE_UNSPEC = 0x0 |
549 | RTN_THROW = 0x9 | 551 | RT_TABLE_COMPAT = 0xfc |
550 | RTN_NAT = 0xa | 552 | RT_TABLE_DEFAULT = 0xfd |
551 | RTN_XRESOLVE = 0xb | 553 | RT_TABLE_MAIN = 0xfe |
552 | RTNLGRP_NONE = 0x0 | 554 | RT_TABLE_LOCAL = 0xff |
553 | RTNLGRP_LINK = 0x1 | 555 | RT_TABLE_MAX = 0xffffffff |
554 | RTNLGRP_NOTIFY = 0x2 | 556 | RTA_UNSPEC = 0x0 |
555 | RTNLGRP_NEIGH = 0x3 | 557 | RTA_DST = 0x1 |
556 | RTNLGRP_TC = 0x4 | 558 | RTA_SRC = 0x2 |
557 | RTNLGRP_IPV4_IFADDR = 0x5 | 559 | RTA_IIF = 0x3 |
558 | RTNLGRP_IPV4_MROUTE = 0x6 | 560 | RTA_OIF = 0x4 |
559 | RTNLGRP_IPV4_ROUTE = 0x7 | 561 | RTA_GATEWAY = 0x5 |
560 | RTNLGRP_IPV4_RULE = 0x8 | 562 | RTA_PRIORITY = 0x6 |
561 | RTNLGRP_IPV6_IFADDR = 0x9 | 563 | RTA_PREFSRC = 0x7 |
562 | RTNLGRP_IPV6_MROUTE = 0xa | 564 | RTA_METRICS = 0x8 |
563 | RTNLGRP_IPV6_ROUTE = 0xb | 565 | RTA_MULTIPATH = 0x9 |
564 | RTNLGRP_IPV6_IFINFO = 0xc | 566 | RTA_FLOW = 0xb |
565 | RTNLGRP_IPV6_PREFIX = 0x12 | 567 | RTA_CACHEINFO = 0xc |
566 | RTNLGRP_IPV6_RULE = 0x13 | 568 | RTA_TABLE = 0xf |
567 | RTNLGRP_ND_USEROPT = 0x14 | 569 | RTA_MARK = 0x10 |
568 | SizeofNlMsghdr = 0x10 | 570 | RTA_MFC_STATS = 0x11 |
569 | SizeofNlMsgerr = 0x14 | 571 | RTA_VIA = 0x12 |
570 | SizeofRtGenmsg = 0x1 | 572 | RTA_NEWDST = 0x13 |
571 | SizeofNlAttr = 0x4 | 573 | RTA_PREF = 0x14 |
572 | SizeofRtAttr = 0x4 | 574 | RTA_ENCAP_TYPE = 0x15 |
573 | SizeofIfInfomsg = 0x10 | 575 | RTA_ENCAP = 0x16 |
574 | SizeofIfAddrmsg = 0x8 | 576 | RTA_EXPIRES = 0x17 |
575 | SizeofRtMsg = 0xc | 577 | RTA_PAD = 0x18 |
576 | SizeofRtNexthop = 0x8 | 578 | RTA_UID = 0x19 |
579 | RTA_TTL_PROPAGATE = 0x1a | ||
580 | RTA_IP_PROTO = 0x1b | ||
581 | RTA_SPORT = 0x1c | ||
582 | RTA_DPORT = 0x1d | ||
583 | RTN_UNSPEC = 0x0 | ||
584 | RTN_UNICAST = 0x1 | ||
585 | RTN_LOCAL = 0x2 | ||
586 | RTN_BROADCAST = 0x3 | ||
587 | RTN_ANYCAST = 0x4 | ||
588 | RTN_MULTICAST = 0x5 | ||
589 | RTN_BLACKHOLE = 0x6 | ||
590 | RTN_UNREACHABLE = 0x7 | ||
591 | RTN_PROHIBIT = 0x8 | ||
592 | RTN_THROW = 0x9 | ||
593 | RTN_NAT = 0xa | ||
594 | RTN_XRESOLVE = 0xb | ||
595 | RTNLGRP_NONE = 0x0 | ||
596 | RTNLGRP_LINK = 0x1 | ||
597 | RTNLGRP_NOTIFY = 0x2 | ||
598 | RTNLGRP_NEIGH = 0x3 | ||
599 | RTNLGRP_TC = 0x4 | ||
600 | RTNLGRP_IPV4_IFADDR = 0x5 | ||
601 | RTNLGRP_IPV4_MROUTE = 0x6 | ||
602 | RTNLGRP_IPV4_ROUTE = 0x7 | ||
603 | RTNLGRP_IPV4_RULE = 0x8 | ||
604 | RTNLGRP_IPV6_IFADDR = 0x9 | ||
605 | RTNLGRP_IPV6_MROUTE = 0xa | ||
606 | RTNLGRP_IPV6_ROUTE = 0xb | ||
607 | RTNLGRP_IPV6_IFINFO = 0xc | ||
608 | RTNLGRP_IPV6_PREFIX = 0x12 | ||
609 | RTNLGRP_IPV6_RULE = 0x13 | ||
610 | RTNLGRP_ND_USEROPT = 0x14 | ||
611 | SizeofNlMsghdr = 0x10 | ||
612 | SizeofNlMsgerr = 0x14 | ||
613 | SizeofRtGenmsg = 0x1 | ||
614 | SizeofNlAttr = 0x4 | ||
615 | SizeofRtAttr = 0x4 | ||
616 | SizeofIfInfomsg = 0x10 | ||
617 | SizeofIfAddrmsg = 0x8 | ||
618 | SizeofRtMsg = 0xc | ||
619 | SizeofRtNexthop = 0x8 | ||
620 | SizeofNdUseroptmsg = 0x10 | ||
621 | SizeofNdMsg = 0xc | ||
577 | ) | 622 | ) |
578 | 623 | ||
579 | type NlMsghdr struct { | 624 | type NlMsghdr struct { |
@@ -639,6 +684,27 @@ type RtNexthop struct { | |||
639 | Ifindex int32 | 684 | Ifindex int32 |
640 | } | 685 | } |
641 | 686 | ||
687 | type NdUseroptmsg struct { | ||
688 | Family uint8 | ||
689 | Pad1 uint8 | ||
690 | Opts_len uint16 | ||
691 | Ifindex int32 | ||
692 | Icmp_type uint8 | ||
693 | Icmp_code uint8 | ||
694 | Pad2 uint16 | ||
695 | Pad3 uint32 | ||
696 | } | ||
697 | |||
698 | type NdMsg struct { | ||
699 | Family uint8 | ||
700 | Pad1 uint8 | ||
701 | Pad2 uint16 | ||
702 | Ifindex int32 | ||
703 | State uint16 | ||
704 | Flags uint8 | ||
705 | Type uint8 | ||
706 | } | ||
707 | |||
642 | const ( | 708 | const ( |
643 | SizeofSockFilter = 0x8 | 709 | SizeofSockFilter = 0x8 |
644 | SizeofSockFprog = 0x10 | 710 | SizeofSockFprog = 0x10 |
@@ -653,7 +719,6 @@ type SockFilter struct { | |||
653 | 719 | ||
654 | type SockFprog struct { | 720 | type SockFprog struct { |
655 | Len uint16 | 721 | Len uint16 |
656 | _ [6]byte | ||
657 | Filter *SockFilter | 722 | Filter *SockFilter |
658 | } | 723 | } |
659 | 724 | ||
@@ -683,18 +748,15 @@ type PtracePsw struct { | |||
683 | 748 | ||
684 | type PtraceFpregs struct { | 749 | type PtraceFpregs struct { |
685 | Fpc uint32 | 750 | Fpc uint32 |
686 | _ [4]byte | ||
687 | Fprs [16]float64 | 751 | Fprs [16]float64 |
688 | } | 752 | } |
689 | 753 | ||
690 | type PtracePer struct { | 754 | type PtracePer struct { |
691 | _ [0]uint64 | 755 | _ [0]uint64 |
692 | _ [24]byte | 756 | _ [32]byte |
693 | _ [8]byte | ||
694 | Starting_addr uint64 | 757 | Starting_addr uint64 |
695 | Ending_addr uint64 | 758 | Ending_addr uint64 |
696 | Perc_atmid uint16 | 759 | Perc_atmid uint16 |
697 | _ [6]byte | ||
698 | Address uint64 | 760 | Address uint64 |
699 | Access_id uint8 | 761 | Access_id uint8 |
700 | _ [7]byte | 762 | _ [7]byte |
@@ -715,7 +777,6 @@ type Sysinfo_t struct { | |||
715 | Freeswap uint64 | 777 | Freeswap uint64 |
716 | Procs uint16 | 778 | Procs uint16 |
717 | Pad uint16 | 779 | Pad uint16 |
718 | _ [4]byte | ||
719 | Totalhigh uint64 | 780 | Totalhigh uint64 |
720 | Freehigh uint64 | 781 | Freehigh uint64 |
721 | Unit uint32 | 782 | Unit uint32 |
@@ -734,7 +795,6 @@ type Utsname struct { | |||
734 | 795 | ||
735 | type Ustat_t struct { | 796 | type Ustat_t struct { |
736 | Tfree int32 | 797 | Tfree int32 |
737 | _ [4]byte | ||
738 | Tinode uint64 | 798 | Tinode uint64 |
739 | Fname [6]int8 | 799 | Fname [6]int8 |
740 | Fpack [6]int8 | 800 | Fpack [6]int8 |
@@ -784,7 +844,30 @@ type Sigset_t struct { | |||
784 | Val [16]uint64 | 844 | Val [16]uint64 |
785 | } | 845 | } |
786 | 846 | ||
787 | const RNDGETENTCNT = 0x80045200 | 847 | type SignalfdSiginfo struct { |
848 | Signo uint32 | ||
849 | Errno int32 | ||
850 | Code int32 | ||
851 | Pid uint32 | ||
852 | Uid uint32 | ||
853 | Fd int32 | ||
854 | Tid uint32 | ||
855 | Band uint32 | ||
856 | Overrun uint32 | ||
857 | Trapno uint32 | ||
858 | Status int32 | ||
859 | Int int32 | ||
860 | Ptr uint64 | ||
861 | Utime uint64 | ||
862 | Stime uint64 | ||
863 | Addr uint64 | ||
864 | Addr_lsb uint16 | ||
865 | _ uint16 | ||
866 | Syscall int32 | ||
867 | Call_addr uint64 | ||
868 | Arch uint32 | ||
869 | _ [28]uint8 | ||
870 | } | ||
788 | 871 | ||
789 | const PERF_IOC_FLAG_GROUP = 0x1 | 872 | const PERF_IOC_FLAG_GROUP = 0x1 |
790 | 873 | ||
@@ -808,11 +891,9 @@ type Winsize struct { | |||
808 | 891 | ||
809 | type Taskstats struct { | 892 | type Taskstats struct { |
810 | Version uint16 | 893 | Version uint16 |
811 | _ [2]byte | ||
812 | Ac_exitcode uint32 | 894 | Ac_exitcode uint32 |
813 | Ac_flag uint8 | 895 | Ac_flag uint8 |
814 | Ac_nice uint8 | 896 | Ac_nice uint8 |
815 | _ [6]byte | ||
816 | Cpu_count uint64 | 897 | Cpu_count uint64 |
817 | Cpu_delay_total uint64 | 898 | Cpu_delay_total uint64 |
818 | Blkio_count uint64 | 899 | Blkio_count uint64 |
@@ -830,7 +911,6 @@ type Taskstats struct { | |||
830 | Ac_pid uint32 | 911 | Ac_pid uint32 |
831 | Ac_ppid uint32 | 912 | Ac_ppid uint32 |
832 | Ac_btime uint32 | 913 | Ac_btime uint32 |
833 | _ [4]byte | ||
834 | Ac_etime uint64 | 914 | Ac_etime uint64 |
835 | Ac_utime uint64 | 915 | Ac_utime uint64 |
836 | Ac_stime uint64 | 916 | Ac_stime uint64 |
@@ -854,6 +934,8 @@ type Taskstats struct { | |||
854 | Cpu_scaled_run_real_total uint64 | 934 | Cpu_scaled_run_real_total uint64 |
855 | Freepages_count uint64 | 935 | Freepages_count uint64 |
856 | Freepages_delay_total uint64 | 936 | Freepages_delay_total uint64 |
937 | Thrashing_count uint64 | ||
938 | Thrashing_delay_total uint64 | ||
857 | } | 939 | } |
858 | 940 | ||
859 | const ( | 941 | const ( |
@@ -956,7 +1038,8 @@ type PerfEventAttr struct { | |||
956 | Clockid int32 | 1038 | Clockid int32 |
957 | Sample_regs_intr uint64 | 1039 | Sample_regs_intr uint64 |
958 | Aux_watermark uint32 | 1040 | Aux_watermark uint32 |
959 | _ uint32 | 1041 | Sample_max_stack uint16 |
1042 | _ uint16 | ||
960 | } | 1043 | } |
961 | 1044 | ||
962 | type PerfEventMmapPage struct { | 1045 | type PerfEventMmapPage struct { |
@@ -1059,6 +1142,7 @@ const ( | |||
1059 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 | 1142 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 |
1060 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 | 1143 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 |
1061 | PERF_COUNT_SW_DUMMY = 0x9 | 1144 | PERF_COUNT_SW_DUMMY = 0x9 |
1145 | PERF_COUNT_SW_BPF_OUTPUT = 0xa | ||
1062 | 1146 | ||
1063 | PERF_SAMPLE_IP = 0x1 | 1147 | PERF_SAMPLE_IP = 0x1 |
1064 | PERF_SAMPLE_TID = 0x2 | 1148 | PERF_SAMPLE_TID = 0x2 |
@@ -1080,21 +1164,38 @@ const ( | |||
1080 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 | 1164 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 |
1081 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 | 1165 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 |
1082 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 | 1166 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 |
1167 | PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 | ||
1168 | PERF_SAMPLE_BRANCH_IN_TX = 0x100 | ||
1169 | PERF_SAMPLE_BRANCH_NO_TX = 0x200 | ||
1170 | PERF_SAMPLE_BRANCH_COND = 0x400 | ||
1171 | PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 | ||
1172 | PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 | ||
1173 | PERF_SAMPLE_BRANCH_CALL = 0x2000 | ||
1174 | PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 | ||
1175 | PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 | ||
1176 | PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 | ||
1083 | 1177 | ||
1084 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 | 1178 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 |
1085 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 | 1179 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 |
1086 | PERF_FORMAT_ID = 0x4 | 1180 | PERF_FORMAT_ID = 0x4 |
1087 | PERF_FORMAT_GROUP = 0x8 | 1181 | PERF_FORMAT_GROUP = 0x8 |
1088 | 1182 | ||
1089 | PERF_RECORD_MMAP = 0x1 | 1183 | PERF_RECORD_MMAP = 0x1 |
1090 | PERF_RECORD_LOST = 0x2 | 1184 | PERF_RECORD_LOST = 0x2 |
1091 | PERF_RECORD_COMM = 0x3 | 1185 | PERF_RECORD_COMM = 0x3 |
1092 | PERF_RECORD_EXIT = 0x4 | 1186 | PERF_RECORD_EXIT = 0x4 |
1093 | PERF_RECORD_THROTTLE = 0x5 | 1187 | PERF_RECORD_THROTTLE = 0x5 |
1094 | PERF_RECORD_UNTHROTTLE = 0x6 | 1188 | PERF_RECORD_UNTHROTTLE = 0x6 |
1095 | PERF_RECORD_FORK = 0x7 | 1189 | PERF_RECORD_FORK = 0x7 |
1096 | PERF_RECORD_READ = 0x8 | 1190 | PERF_RECORD_READ = 0x8 |
1097 | PERF_RECORD_SAMPLE = 0x9 | 1191 | PERF_RECORD_SAMPLE = 0x9 |
1192 | PERF_RECORD_MMAP2 = 0xa | ||
1193 | PERF_RECORD_AUX = 0xb | ||
1194 | PERF_RECORD_ITRACE_START = 0xc | ||
1195 | PERF_RECORD_LOST_SAMPLES = 0xd | ||
1196 | PERF_RECORD_SWITCH = 0xe | ||
1197 | PERF_RECORD_SWITCH_CPU_WIDE = 0xf | ||
1198 | PERF_RECORD_NAMESPACES = 0x10 | ||
1098 | 1199 | ||
1099 | PERF_CONTEXT_HV = -0x20 | 1200 | PERF_CONTEXT_HV = -0x20 |
1100 | PERF_CONTEXT_KERNEL = -0x80 | 1201 | PERF_CONTEXT_KERNEL = -0x80 |
@@ -1107,6 +1208,7 @@ const ( | |||
1107 | PERF_FLAG_FD_NO_GROUP = 0x1 | 1208 | PERF_FLAG_FD_NO_GROUP = 0x1 |
1108 | PERF_FLAG_FD_OUTPUT = 0x2 | 1209 | PERF_FLAG_FD_OUTPUT = 0x2 |
1109 | PERF_FLAG_PID_CGROUP = 0x4 | 1210 | PERF_FLAG_PID_CGROUP = 0x4 |
1211 | PERF_FLAG_FD_CLOEXEC = 0x8 | ||
1110 | ) | 1212 | ) |
1111 | 1213 | ||
1112 | const ( | 1214 | const ( |
@@ -1202,7 +1304,6 @@ type HDGeometry struct { | |||
1202 | Heads uint8 | 1304 | Heads uint8 |
1203 | Sectors uint8 | 1305 | Sectors uint8 |
1204 | Cylinders uint16 | 1306 | Cylinders uint16 |
1205 | _ [4]byte | ||
1206 | Start uint64 | 1307 | Start uint64 |
1207 | } | 1308 | } |
1208 | 1309 | ||
@@ -1366,6 +1467,21 @@ type TpacketBlockDesc struct { | |||
1366 | Hdr [40]byte | 1467 | Hdr [40]byte |
1367 | } | 1468 | } |
1368 | 1469 | ||
1470 | type TpacketBDTS struct { | ||
1471 | Sec uint32 | ||
1472 | Usec uint32 | ||
1473 | } | ||
1474 | |||
1475 | type TpacketHdrV1 struct { | ||
1476 | Block_status uint32 | ||
1477 | Num_pkts uint32 | ||
1478 | Offset_to_first_pkt uint32 | ||
1479 | Blk_len uint32 | ||
1480 | Seq_num uint64 | ||
1481 | Ts_first_pkt TpacketBDTS | ||
1482 | Ts_last_pkt TpacketBDTS | ||
1483 | } | ||
1484 | |||
1369 | type TpacketReq struct { | 1485 | type TpacketReq struct { |
1370 | Block_size uint32 | 1486 | Block_size uint32 |
1371 | Block_nr uint32 | 1487 | Block_nr uint32 |
@@ -1414,6 +1530,9 @@ const ( | |||
1414 | SizeofTpacketHdr = 0x20 | 1530 | SizeofTpacketHdr = 0x20 |
1415 | SizeofTpacket2Hdr = 0x20 | 1531 | SizeofTpacket2Hdr = 0x20 |
1416 | SizeofTpacket3Hdr = 0x30 | 1532 | SizeofTpacket3Hdr = 0x30 |
1533 | |||
1534 | SizeofTpacketStats = 0x8 | ||
1535 | SizeofTpacketStatsV3 = 0xc | ||
1417 | ) | 1536 | ) |
1418 | 1537 | ||
1419 | const ( | 1538 | const ( |
@@ -1889,7 +2008,6 @@ type RTCTime struct { | |||
1889 | type RTCWkAlrm struct { | 2008 | type RTCWkAlrm struct { |
1890 | Enabled uint8 | 2009 | Enabled uint8 |
1891 | Pending uint8 | 2010 | Pending uint8 |
1892 | _ [2]byte | ||
1893 | Time RTCTime | 2011 | Time RTCTime |
1894 | } | 2012 | } |
1895 | 2013 | ||
@@ -1907,7 +2025,6 @@ type BlkpgIoctlArg struct { | |||
1907 | Op int32 | 2025 | Op int32 |
1908 | Flags int32 | 2026 | Flags int32 |
1909 | Datalen int32 | 2027 | Datalen int32 |
1910 | _ [4]byte | ||
1911 | Data *byte | 2028 | Data *byte |
1912 | } | 2029 | } |
1913 | 2030 | ||
@@ -1994,6 +2111,10 @@ const ( | |||
1994 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa | 2111 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa |
1995 | ) | 2112 | ) |
1996 | 2113 | ||
2114 | type ScmTimestamping struct { | ||
2115 | Ts [3]Timespec | ||
2116 | } | ||
2117 | |||
1997 | const ( | 2118 | const ( |
1998 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 | 2119 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 |
1999 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 | 2120 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 |
@@ -2013,4 +2134,198 @@ const ( | |||
2013 | 2134 | ||
2014 | SOF_TIMESTAMPING_LAST = 0x4000 | 2135 | SOF_TIMESTAMPING_LAST = 0x4000 |
2015 | SOF_TIMESTAMPING_MASK = 0x7fff | 2136 | SOF_TIMESTAMPING_MASK = 0x7fff |
2137 | |||
2138 | SCM_TSTAMP_SND = 0x0 | ||
2139 | SCM_TSTAMP_SCHED = 0x1 | ||
2140 | SCM_TSTAMP_ACK = 0x2 | ||
2141 | ) | ||
2142 | |||
2143 | type SockExtendedErr struct { | ||
2144 | Errno uint32 | ||
2145 | Origin uint8 | ||
2146 | Type uint8 | ||
2147 | Code uint8 | ||
2148 | Pad uint8 | ||
2149 | Info uint32 | ||
2150 | Data uint32 | ||
2151 | } | ||
2152 | |||
2153 | type FanotifyEventMetadata struct { | ||
2154 | Event_len uint32 | ||
2155 | Vers uint8 | ||
2156 | Reserved uint8 | ||
2157 | Metadata_len uint16 | ||
2158 | Mask uint64 | ||
2159 | Fd int32 | ||
2160 | Pid int32 | ||
2161 | } | ||
2162 | |||
2163 | type FanotifyResponse struct { | ||
2164 | Fd int32 | ||
2165 | Response uint32 | ||
2166 | } | ||
2167 | |||
2168 | const ( | ||
2169 | CRYPTO_MSG_BASE = 0x10 | ||
2170 | CRYPTO_MSG_NEWALG = 0x10 | ||
2171 | CRYPTO_MSG_DELALG = 0x11 | ||
2172 | CRYPTO_MSG_UPDATEALG = 0x12 | ||
2173 | CRYPTO_MSG_GETALG = 0x13 | ||
2174 | CRYPTO_MSG_DELRNG = 0x14 | ||
2175 | CRYPTO_MSG_GETSTAT = 0x15 | ||
2016 | ) | 2176 | ) |
2177 | |||
2178 | const ( | ||
2179 | CRYPTOCFGA_UNSPEC = 0x0 | ||
2180 | CRYPTOCFGA_PRIORITY_VAL = 0x1 | ||
2181 | CRYPTOCFGA_REPORT_LARVAL = 0x2 | ||
2182 | CRYPTOCFGA_REPORT_HASH = 0x3 | ||
2183 | CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 | ||
2184 | CRYPTOCFGA_REPORT_AEAD = 0x5 | ||
2185 | CRYPTOCFGA_REPORT_COMPRESS = 0x6 | ||
2186 | CRYPTOCFGA_REPORT_RNG = 0x7 | ||
2187 | CRYPTOCFGA_REPORT_CIPHER = 0x8 | ||
2188 | CRYPTOCFGA_REPORT_AKCIPHER = 0x9 | ||
2189 | CRYPTOCFGA_REPORT_KPP = 0xa | ||
2190 | CRYPTOCFGA_REPORT_ACOMP = 0xb | ||
2191 | CRYPTOCFGA_STAT_LARVAL = 0xc | ||
2192 | CRYPTOCFGA_STAT_HASH = 0xd | ||
2193 | CRYPTOCFGA_STAT_BLKCIPHER = 0xe | ||
2194 | CRYPTOCFGA_STAT_AEAD = 0xf | ||
2195 | CRYPTOCFGA_STAT_COMPRESS = 0x10 | ||
2196 | CRYPTOCFGA_STAT_RNG = 0x11 | ||
2197 | CRYPTOCFGA_STAT_CIPHER = 0x12 | ||
2198 | CRYPTOCFGA_STAT_AKCIPHER = 0x13 | ||
2199 | CRYPTOCFGA_STAT_KPP = 0x14 | ||
2200 | CRYPTOCFGA_STAT_ACOMP = 0x15 | ||
2201 | ) | ||
2202 | |||
2203 | type CryptoUserAlg struct { | ||
2204 | Name [64]int8 | ||
2205 | Driver_name [64]int8 | ||
2206 | Module_name [64]int8 | ||
2207 | Type uint32 | ||
2208 | Mask uint32 | ||
2209 | Refcnt uint32 | ||
2210 | Flags uint32 | ||
2211 | } | ||
2212 | |||
2213 | type CryptoStatAEAD struct { | ||
2214 | Type [64]int8 | ||
2215 | Encrypt_cnt uint64 | ||
2216 | Encrypt_tlen uint64 | ||
2217 | Decrypt_cnt uint64 | ||
2218 | Decrypt_tlen uint64 | ||
2219 | Err_cnt uint64 | ||
2220 | } | ||
2221 | |||
2222 | type CryptoStatAKCipher struct { | ||
2223 | Type [64]int8 | ||
2224 | Encrypt_cnt uint64 | ||
2225 | Encrypt_tlen uint64 | ||
2226 | Decrypt_cnt uint64 | ||
2227 | Decrypt_tlen uint64 | ||
2228 | Verify_cnt uint64 | ||
2229 | Sign_cnt uint64 | ||
2230 | Err_cnt uint64 | ||
2231 | } | ||
2232 | |||
2233 | type CryptoStatCipher struct { | ||
2234 | Type [64]int8 | ||
2235 | Encrypt_cnt uint64 | ||
2236 | Encrypt_tlen uint64 | ||
2237 | Decrypt_cnt uint64 | ||
2238 | Decrypt_tlen uint64 | ||
2239 | Err_cnt uint64 | ||
2240 | } | ||
2241 | |||
2242 | type CryptoStatCompress struct { | ||
2243 | Type [64]int8 | ||
2244 | Compress_cnt uint64 | ||
2245 | Compress_tlen uint64 | ||
2246 | Decompress_cnt uint64 | ||
2247 | Decompress_tlen uint64 | ||
2248 | Err_cnt uint64 | ||
2249 | } | ||
2250 | |||
2251 | type CryptoStatHash struct { | ||
2252 | Type [64]int8 | ||
2253 | Hash_cnt uint64 | ||
2254 | Hash_tlen uint64 | ||
2255 | Err_cnt uint64 | ||
2256 | } | ||
2257 | |||
2258 | type CryptoStatKPP struct { | ||
2259 | Type [64]int8 | ||
2260 | Setsecret_cnt uint64 | ||
2261 | Generate_public_key_cnt uint64 | ||
2262 | Compute_shared_secret_cnt uint64 | ||
2263 | Err_cnt uint64 | ||
2264 | } | ||
2265 | |||
2266 | type CryptoStatRNG struct { | ||
2267 | Type [64]int8 | ||
2268 | Generate_cnt uint64 | ||
2269 | Generate_tlen uint64 | ||
2270 | Seed_cnt uint64 | ||
2271 | Err_cnt uint64 | ||
2272 | } | ||
2273 | |||
2274 | type CryptoStatLarval struct { | ||
2275 | Type [64]int8 | ||
2276 | } | ||
2277 | |||
2278 | type CryptoReportLarval struct { | ||
2279 | Type [64]int8 | ||
2280 | } | ||
2281 | |||
2282 | type CryptoReportHash struct { | ||
2283 | Type [64]int8 | ||
2284 | Blocksize uint32 | ||
2285 | Digestsize uint32 | ||
2286 | } | ||
2287 | |||
2288 | type CryptoReportCipher struct { | ||
2289 | Type [64]int8 | ||
2290 | Blocksize uint32 | ||
2291 | Min_keysize uint32 | ||
2292 | Max_keysize uint32 | ||
2293 | } | ||
2294 | |||
2295 | type CryptoReportBlkCipher struct { | ||
2296 | Type [64]int8 | ||
2297 | Geniv [64]int8 | ||
2298 | Blocksize uint32 | ||
2299 | Min_keysize uint32 | ||
2300 | Max_keysize uint32 | ||
2301 | Ivsize uint32 | ||
2302 | } | ||
2303 | |||
2304 | type CryptoReportAEAD struct { | ||
2305 | Type [64]int8 | ||
2306 | Geniv [64]int8 | ||
2307 | Blocksize uint32 | ||
2308 | Maxauthsize uint32 | ||
2309 | Ivsize uint32 | ||
2310 | } | ||
2311 | |||
2312 | type CryptoReportComp struct { | ||
2313 | Type [64]int8 | ||
2314 | } | ||
2315 | |||
2316 | type CryptoReportRNG struct { | ||
2317 | Type [64]int8 | ||
2318 | Seedsize uint32 | ||
2319 | } | ||
2320 | |||
2321 | type CryptoReportAKCipher struct { | ||
2322 | Type [64]int8 | ||
2323 | } | ||
2324 | |||
2325 | type CryptoReportKPP struct { | ||
2326 | Type [64]int8 | ||
2327 | } | ||
2328 | |||
2329 | type CryptoReportAcomp struct { | ||
2330 | Type [64]int8 | ||
2331 | } | ||