diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go | 636 |
1 files changed, 477 insertions, 159 deletions
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go index aa52a43..6bba58e 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.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 | ||
@@ -711,7 +776,6 @@ type Sysinfo_t struct { | |||
711 | Freeswap uint64 | 776 | Freeswap uint64 |
712 | Procs uint16 | 777 | Procs uint16 |
713 | Pad uint16 | 778 | Pad uint16 |
714 | _ [4]byte | ||
715 | Totalhigh uint64 | 779 | Totalhigh uint64 |
716 | Freehigh uint64 | 780 | Freehigh uint64 |
717 | Unit uint32 | 781 | Unit uint32 |
@@ -730,7 +794,6 @@ type Utsname struct { | |||
730 | 794 | ||
731 | type Ustat_t struct { | 795 | type Ustat_t struct { |
732 | Tfree int32 | 796 | Tfree int32 |
733 | _ [4]byte | ||
734 | Tinode uint64 | 797 | Tinode uint64 |
735 | Fname [6]int8 | 798 | Fname [6]int8 |
736 | Fpack [6]int8 | 799 | Fpack [6]int8 |
@@ -779,7 +842,30 @@ type Sigset_t struct { | |||
779 | Val [16]uint64 | 842 | Val [16]uint64 |
780 | } | 843 | } |
781 | 844 | ||
782 | const RNDGETENTCNT = 0x80045200 | 845 | type SignalfdSiginfo struct { |
846 | Signo uint32 | ||
847 | Errno int32 | ||
848 | Code int32 | ||
849 | Pid uint32 | ||
850 | Uid uint32 | ||
851 | Fd int32 | ||
852 | Tid uint32 | ||
853 | Band uint32 | ||
854 | Overrun uint32 | ||
855 | Trapno uint32 | ||
856 | Status int32 | ||
857 | Int int32 | ||
858 | Ptr uint64 | ||
859 | Utime uint64 | ||
860 | Stime uint64 | ||
861 | Addr uint64 | ||
862 | Addr_lsb uint16 | ||
863 | _ uint16 | ||
864 | Syscall int32 | ||
865 | Call_addr uint64 | ||
866 | Arch uint32 | ||
867 | _ [28]uint8 | ||
868 | } | ||
783 | 869 | ||
784 | const PERF_IOC_FLAG_GROUP = 0x1 | 870 | const PERF_IOC_FLAG_GROUP = 0x1 |
785 | 871 | ||
@@ -803,11 +889,9 @@ type Winsize struct { | |||
803 | 889 | ||
804 | type Taskstats struct { | 890 | type Taskstats struct { |
805 | Version uint16 | 891 | Version uint16 |
806 | _ [2]byte | ||
807 | Ac_exitcode uint32 | 892 | Ac_exitcode uint32 |
808 | Ac_flag uint8 | 893 | Ac_flag uint8 |
809 | Ac_nice uint8 | 894 | Ac_nice uint8 |
810 | _ [6]byte | ||
811 | Cpu_count uint64 | 895 | Cpu_count uint64 |
812 | Cpu_delay_total uint64 | 896 | Cpu_delay_total uint64 |
813 | Blkio_count uint64 | 897 | Blkio_count uint64 |
@@ -825,7 +909,6 @@ type Taskstats struct { | |||
825 | Ac_pid uint32 | 909 | Ac_pid uint32 |
826 | Ac_ppid uint32 | 910 | Ac_ppid uint32 |
827 | Ac_btime uint32 | 911 | Ac_btime uint32 |
828 | _ [4]byte | ||
829 | Ac_etime uint64 | 912 | Ac_etime uint64 |
830 | Ac_utime uint64 | 913 | Ac_utime uint64 |
831 | Ac_stime uint64 | 914 | Ac_stime uint64 |
@@ -849,6 +932,8 @@ type Taskstats struct { | |||
849 | Cpu_scaled_run_real_total uint64 | 932 | Cpu_scaled_run_real_total uint64 |
850 | Freepages_count uint64 | 933 | Freepages_count uint64 |
851 | Freepages_delay_total uint64 | 934 | Freepages_delay_total uint64 |
935 | Thrashing_count uint64 | ||
936 | Thrashing_delay_total uint64 | ||
852 | } | 937 | } |
853 | 938 | ||
854 | const ( | 939 | const ( |
@@ -951,7 +1036,8 @@ type PerfEventAttr struct { | |||
951 | Clockid int32 | 1036 | Clockid int32 |
952 | Sample_regs_intr uint64 | 1037 | Sample_regs_intr uint64 |
953 | Aux_watermark uint32 | 1038 | Aux_watermark uint32 |
954 | _ uint32 | 1039 | Sample_max_stack uint16 |
1040 | _ uint16 | ||
955 | } | 1041 | } |
956 | 1042 | ||
957 | type PerfEventMmapPage struct { | 1043 | type PerfEventMmapPage struct { |
@@ -1054,6 +1140,7 @@ const ( | |||
1054 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 | 1140 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 |
1055 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 | 1141 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 |
1056 | PERF_COUNT_SW_DUMMY = 0x9 | 1142 | PERF_COUNT_SW_DUMMY = 0x9 |
1143 | PERF_COUNT_SW_BPF_OUTPUT = 0xa | ||
1057 | 1144 | ||
1058 | PERF_SAMPLE_IP = 0x1 | 1145 | PERF_SAMPLE_IP = 0x1 |
1059 | PERF_SAMPLE_TID = 0x2 | 1146 | PERF_SAMPLE_TID = 0x2 |
@@ -1075,21 +1162,38 @@ const ( | |||
1075 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 | 1162 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 |
1076 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 | 1163 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 |
1077 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 | 1164 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 |
1165 | PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 | ||
1166 | PERF_SAMPLE_BRANCH_IN_TX = 0x100 | ||
1167 | PERF_SAMPLE_BRANCH_NO_TX = 0x200 | ||
1168 | PERF_SAMPLE_BRANCH_COND = 0x400 | ||
1169 | PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 | ||
1170 | PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 | ||
1171 | PERF_SAMPLE_BRANCH_CALL = 0x2000 | ||
1172 | PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 | ||
1173 | PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 | ||
1174 | PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 | ||
1078 | 1175 | ||
1079 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 | 1176 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 |
1080 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 | 1177 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 |
1081 | PERF_FORMAT_ID = 0x4 | 1178 | PERF_FORMAT_ID = 0x4 |
1082 | PERF_FORMAT_GROUP = 0x8 | 1179 | PERF_FORMAT_GROUP = 0x8 |
1083 | 1180 | ||
1084 | PERF_RECORD_MMAP = 0x1 | 1181 | PERF_RECORD_MMAP = 0x1 |
1085 | PERF_RECORD_LOST = 0x2 | 1182 | PERF_RECORD_LOST = 0x2 |
1086 | PERF_RECORD_COMM = 0x3 | 1183 | PERF_RECORD_COMM = 0x3 |
1087 | PERF_RECORD_EXIT = 0x4 | 1184 | PERF_RECORD_EXIT = 0x4 |
1088 | PERF_RECORD_THROTTLE = 0x5 | 1185 | PERF_RECORD_THROTTLE = 0x5 |
1089 | PERF_RECORD_UNTHROTTLE = 0x6 | 1186 | PERF_RECORD_UNTHROTTLE = 0x6 |
1090 | PERF_RECORD_FORK = 0x7 | 1187 | PERF_RECORD_FORK = 0x7 |
1091 | PERF_RECORD_READ = 0x8 | 1188 | PERF_RECORD_READ = 0x8 |
1092 | PERF_RECORD_SAMPLE = 0x9 | 1189 | PERF_RECORD_SAMPLE = 0x9 |
1190 | PERF_RECORD_MMAP2 = 0xa | ||
1191 | PERF_RECORD_AUX = 0xb | ||
1192 | PERF_RECORD_ITRACE_START = 0xc | ||
1193 | PERF_RECORD_LOST_SAMPLES = 0xd | ||
1194 | PERF_RECORD_SWITCH = 0xe | ||
1195 | PERF_RECORD_SWITCH_CPU_WIDE = 0xf | ||
1196 | PERF_RECORD_NAMESPACES = 0x10 | ||
1093 | 1197 | ||
1094 | PERF_CONTEXT_HV = -0x20 | 1198 | PERF_CONTEXT_HV = -0x20 |
1095 | PERF_CONTEXT_KERNEL = -0x80 | 1199 | PERF_CONTEXT_KERNEL = -0x80 |
@@ -1102,6 +1206,7 @@ const ( | |||
1102 | PERF_FLAG_FD_NO_GROUP = 0x1 | 1206 | PERF_FLAG_FD_NO_GROUP = 0x1 |
1103 | PERF_FLAG_FD_OUTPUT = 0x2 | 1207 | PERF_FLAG_FD_OUTPUT = 0x2 |
1104 | PERF_FLAG_PID_CGROUP = 0x4 | 1208 | PERF_FLAG_PID_CGROUP = 0x4 |
1209 | PERF_FLAG_FD_CLOEXEC = 0x8 | ||
1105 | ) | 1210 | ) |
1106 | 1211 | ||
1107 | const ( | 1212 | const ( |
@@ -1197,7 +1302,6 @@ type HDGeometry struct { | |||
1197 | Heads uint8 | 1302 | Heads uint8 |
1198 | Sectors uint8 | 1303 | Sectors uint8 |
1199 | Cylinders uint16 | 1304 | Cylinders uint16 |
1200 | _ [4]byte | ||
1201 | Start uint64 | 1305 | Start uint64 |
1202 | } | 1306 | } |
1203 | 1307 | ||
@@ -1360,6 +1464,21 @@ type TpacketBlockDesc struct { | |||
1360 | Hdr [40]byte | 1464 | Hdr [40]byte |
1361 | } | 1465 | } |
1362 | 1466 | ||
1467 | type TpacketBDTS struct { | ||
1468 | Sec uint32 | ||
1469 | Usec uint32 | ||
1470 | } | ||
1471 | |||
1472 | type TpacketHdrV1 struct { | ||
1473 | Block_status uint32 | ||
1474 | Num_pkts uint32 | ||
1475 | Offset_to_first_pkt uint32 | ||
1476 | Blk_len uint32 | ||
1477 | Seq_num uint64 | ||
1478 | Ts_first_pkt TpacketBDTS | ||
1479 | Ts_last_pkt TpacketBDTS | ||
1480 | } | ||
1481 | |||
1363 | type TpacketReq struct { | 1482 | type TpacketReq struct { |
1364 | Block_size uint32 | 1483 | Block_size uint32 |
1365 | Block_nr uint32 | 1484 | Block_nr uint32 |
@@ -1408,6 +1527,9 @@ const ( | |||
1408 | SizeofTpacketHdr = 0x20 | 1527 | SizeofTpacketHdr = 0x20 |
1409 | SizeofTpacket2Hdr = 0x20 | 1528 | SizeofTpacket2Hdr = 0x20 |
1410 | SizeofTpacket3Hdr = 0x30 | 1529 | SizeofTpacket3Hdr = 0x30 |
1530 | |||
1531 | SizeofTpacketStats = 0x8 | ||
1532 | SizeofTpacketStatsV3 = 0xc | ||
1411 | ) | 1533 | ) |
1412 | 1534 | ||
1413 | const ( | 1535 | const ( |
@@ -1883,7 +2005,6 @@ type RTCTime struct { | |||
1883 | type RTCWkAlrm struct { | 2005 | type RTCWkAlrm struct { |
1884 | Enabled uint8 | 2006 | Enabled uint8 |
1885 | Pending uint8 | 2007 | Pending uint8 |
1886 | _ [2]byte | ||
1887 | Time RTCTime | 2008 | Time RTCTime |
1888 | } | 2009 | } |
1889 | 2010 | ||
@@ -1901,7 +2022,6 @@ type BlkpgIoctlArg struct { | |||
1901 | Op int32 | 2022 | Op int32 |
1902 | Flags int32 | 2023 | Flags int32 |
1903 | Datalen int32 | 2024 | Datalen int32 |
1904 | _ [4]byte | ||
1905 | Data *byte | 2025 | Data *byte |
1906 | } | 2026 | } |
1907 | 2027 | ||
@@ -1988,6 +2108,10 @@ const ( | |||
1988 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa | 2108 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa |
1989 | ) | 2109 | ) |
1990 | 2110 | ||
2111 | type ScmTimestamping struct { | ||
2112 | Ts [3]Timespec | ||
2113 | } | ||
2114 | |||
1991 | const ( | 2115 | const ( |
1992 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 | 2116 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 |
1993 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 | 2117 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 |
@@ -2007,4 +2131,198 @@ const ( | |||
2007 | 2131 | ||
2008 | SOF_TIMESTAMPING_LAST = 0x4000 | 2132 | SOF_TIMESTAMPING_LAST = 0x4000 |
2009 | SOF_TIMESTAMPING_MASK = 0x7fff | 2133 | SOF_TIMESTAMPING_MASK = 0x7fff |
2134 | |||
2135 | SCM_TSTAMP_SND = 0x0 | ||
2136 | SCM_TSTAMP_SCHED = 0x1 | ||
2137 | SCM_TSTAMP_ACK = 0x2 | ||
2138 | ) | ||
2139 | |||
2140 | type SockExtendedErr struct { | ||
2141 | Errno uint32 | ||
2142 | Origin uint8 | ||
2143 | Type uint8 | ||
2144 | Code uint8 | ||
2145 | Pad uint8 | ||
2146 | Info uint32 | ||
2147 | Data uint32 | ||
2148 | } | ||
2149 | |||
2150 | type FanotifyEventMetadata struct { | ||
2151 | Event_len uint32 | ||
2152 | Vers uint8 | ||
2153 | Reserved uint8 | ||
2154 | Metadata_len uint16 | ||
2155 | Mask uint64 | ||
2156 | Fd int32 | ||
2157 | Pid int32 | ||
2158 | } | ||
2159 | |||
2160 | type FanotifyResponse struct { | ||
2161 | Fd int32 | ||
2162 | Response uint32 | ||
2163 | } | ||
2164 | |||
2165 | const ( | ||
2166 | CRYPTO_MSG_BASE = 0x10 | ||
2167 | CRYPTO_MSG_NEWALG = 0x10 | ||
2168 | CRYPTO_MSG_DELALG = 0x11 | ||
2169 | CRYPTO_MSG_UPDATEALG = 0x12 | ||
2170 | CRYPTO_MSG_GETALG = 0x13 | ||
2171 | CRYPTO_MSG_DELRNG = 0x14 | ||
2172 | CRYPTO_MSG_GETSTAT = 0x15 | ||
2010 | ) | 2173 | ) |
2174 | |||
2175 | const ( | ||
2176 | CRYPTOCFGA_UNSPEC = 0x0 | ||
2177 | CRYPTOCFGA_PRIORITY_VAL = 0x1 | ||
2178 | CRYPTOCFGA_REPORT_LARVAL = 0x2 | ||
2179 | CRYPTOCFGA_REPORT_HASH = 0x3 | ||
2180 | CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 | ||
2181 | CRYPTOCFGA_REPORT_AEAD = 0x5 | ||
2182 | CRYPTOCFGA_REPORT_COMPRESS = 0x6 | ||
2183 | CRYPTOCFGA_REPORT_RNG = 0x7 | ||
2184 | CRYPTOCFGA_REPORT_CIPHER = 0x8 | ||
2185 | CRYPTOCFGA_REPORT_AKCIPHER = 0x9 | ||
2186 | CRYPTOCFGA_REPORT_KPP = 0xa | ||
2187 | CRYPTOCFGA_REPORT_ACOMP = 0xb | ||
2188 | CRYPTOCFGA_STAT_LARVAL = 0xc | ||
2189 | CRYPTOCFGA_STAT_HASH = 0xd | ||
2190 | CRYPTOCFGA_STAT_BLKCIPHER = 0xe | ||
2191 | CRYPTOCFGA_STAT_AEAD = 0xf | ||
2192 | CRYPTOCFGA_STAT_COMPRESS = 0x10 | ||
2193 | CRYPTOCFGA_STAT_RNG = 0x11 | ||
2194 | CRYPTOCFGA_STAT_CIPHER = 0x12 | ||
2195 | CRYPTOCFGA_STAT_AKCIPHER = 0x13 | ||
2196 | CRYPTOCFGA_STAT_KPP = 0x14 | ||
2197 | CRYPTOCFGA_STAT_ACOMP = 0x15 | ||
2198 | ) | ||
2199 | |||
2200 | type CryptoUserAlg struct { | ||
2201 | Name [64]int8 | ||
2202 | Driver_name [64]int8 | ||
2203 | Module_name [64]int8 | ||
2204 | Type uint32 | ||
2205 | Mask uint32 | ||
2206 | Refcnt uint32 | ||
2207 | Flags uint32 | ||
2208 | } | ||
2209 | |||
2210 | type CryptoStatAEAD struct { | ||
2211 | Type [64]int8 | ||
2212 | Encrypt_cnt uint64 | ||
2213 | Encrypt_tlen uint64 | ||
2214 | Decrypt_cnt uint64 | ||
2215 | Decrypt_tlen uint64 | ||
2216 | Err_cnt uint64 | ||
2217 | } | ||
2218 | |||
2219 | type CryptoStatAKCipher struct { | ||
2220 | Type [64]int8 | ||
2221 | Encrypt_cnt uint64 | ||
2222 | Encrypt_tlen uint64 | ||
2223 | Decrypt_cnt uint64 | ||
2224 | Decrypt_tlen uint64 | ||
2225 | Verify_cnt uint64 | ||
2226 | Sign_cnt uint64 | ||
2227 | Err_cnt uint64 | ||
2228 | } | ||
2229 | |||
2230 | type CryptoStatCipher struct { | ||
2231 | Type [64]int8 | ||
2232 | Encrypt_cnt uint64 | ||
2233 | Encrypt_tlen uint64 | ||
2234 | Decrypt_cnt uint64 | ||
2235 | Decrypt_tlen uint64 | ||
2236 | Err_cnt uint64 | ||
2237 | } | ||
2238 | |||
2239 | type CryptoStatCompress struct { | ||
2240 | Type [64]int8 | ||
2241 | Compress_cnt uint64 | ||
2242 | Compress_tlen uint64 | ||
2243 | Decompress_cnt uint64 | ||
2244 | Decompress_tlen uint64 | ||
2245 | Err_cnt uint64 | ||
2246 | } | ||
2247 | |||
2248 | type CryptoStatHash struct { | ||
2249 | Type [64]int8 | ||
2250 | Hash_cnt uint64 | ||
2251 | Hash_tlen uint64 | ||
2252 | Err_cnt uint64 | ||
2253 | } | ||
2254 | |||
2255 | type CryptoStatKPP struct { | ||
2256 | Type [64]int8 | ||
2257 | Setsecret_cnt uint64 | ||
2258 | Generate_public_key_cnt uint64 | ||
2259 | Compute_shared_secret_cnt uint64 | ||
2260 | Err_cnt uint64 | ||
2261 | } | ||
2262 | |||
2263 | type CryptoStatRNG struct { | ||
2264 | Type [64]int8 | ||
2265 | Generate_cnt uint64 | ||
2266 | Generate_tlen uint64 | ||
2267 | Seed_cnt uint64 | ||
2268 | Err_cnt uint64 | ||
2269 | } | ||
2270 | |||
2271 | type CryptoStatLarval struct { | ||
2272 | Type [64]int8 | ||
2273 | } | ||
2274 | |||
2275 | type CryptoReportLarval struct { | ||
2276 | Type [64]int8 | ||
2277 | } | ||
2278 | |||
2279 | type CryptoReportHash struct { | ||
2280 | Type [64]int8 | ||
2281 | Blocksize uint32 | ||
2282 | Digestsize uint32 | ||
2283 | } | ||
2284 | |||
2285 | type CryptoReportCipher struct { | ||
2286 | Type [64]int8 | ||
2287 | Blocksize uint32 | ||
2288 | Min_keysize uint32 | ||
2289 | Max_keysize uint32 | ||
2290 | } | ||
2291 | |||
2292 | type CryptoReportBlkCipher struct { | ||
2293 | Type [64]int8 | ||
2294 | Geniv [64]int8 | ||
2295 | Blocksize uint32 | ||
2296 | Min_keysize uint32 | ||
2297 | Max_keysize uint32 | ||
2298 | Ivsize uint32 | ||
2299 | } | ||
2300 | |||
2301 | type CryptoReportAEAD struct { | ||
2302 | Type [64]int8 | ||
2303 | Geniv [64]int8 | ||
2304 | Blocksize uint32 | ||
2305 | Maxauthsize uint32 | ||
2306 | Ivsize uint32 | ||
2307 | } | ||
2308 | |||
2309 | type CryptoReportComp struct { | ||
2310 | Type [64]int8 | ||
2311 | } | ||
2312 | |||
2313 | type CryptoReportRNG struct { | ||
2314 | Type [64]int8 | ||
2315 | Seedsize uint32 | ||
2316 | } | ||
2317 | |||
2318 | type CryptoReportAKCipher struct { | ||
2319 | Type [64]int8 | ||
2320 | } | ||
2321 | |||
2322 | type CryptoReportKPP struct { | ||
2323 | Type [64]int8 | ||
2324 | } | ||
2325 | |||
2326 | type CryptoReportAcomp struct { | ||
2327 | Type [64]int8 | ||
2328 | } | ||