diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go | 627 |
1 files changed, 478 insertions, 149 deletions
diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go index 210de76..9d4953d 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go | |||
@@ -258,7 +258,6 @@ type RawSockaddrRFCOMM struct { | |||
258 | 258 | ||
259 | type RawSockaddrCAN struct { | 259 | type RawSockaddrCAN struct { |
260 | Family uint16 | 260 | Family uint16 |
261 | _ [2]byte | ||
262 | Ifindex int32 | 261 | Ifindex int32 |
263 | Addr [8]byte | 262 | Addr [8]byte |
264 | } | 263 | } |
@@ -287,6 +286,8 @@ type RawSockaddrXDP struct { | |||
287 | Shared_umem_fd uint32 | 286 | Shared_umem_fd uint32 |
288 | } | 287 | } |
289 | 288 | ||
289 | type RawSockaddrPPPoX [0x1e]byte | ||
290 | |||
290 | type RawSockaddr struct { | 291 | type RawSockaddr struct { |
291 | Family uint16 | 292 | Family uint16 |
292 | Data [14]int8 | 293 | Data [14]int8 |
@@ -381,7 +382,6 @@ type TCPInfo struct { | |||
381 | Probes uint8 | 382 | Probes uint8 |
382 | Backoff uint8 | 383 | Backoff uint8 |
383 | Options uint8 | 384 | Options uint8 |
384 | _ [2]byte | ||
385 | Rto uint32 | 385 | Rto uint32 |
386 | Ato uint32 | 386 | Ato uint32 |
387 | Snd_mss uint32 | 387 | Snd_mss uint32 |
@@ -408,6 +408,11 @@ type TCPInfo struct { | |||
408 | Total_retrans uint32 | 408 | Total_retrans uint32 |
409 | } | 409 | } |
410 | 410 | ||
411 | type CanFilter struct { | ||
412 | Id uint32 | ||
413 | Mask uint32 | ||
414 | } | ||
415 | |||
411 | const ( | 416 | const ( |
412 | SizeofSockaddrInet4 = 0x10 | 417 | SizeofSockaddrInet4 = 0x10 |
413 | SizeofSockaddrInet6 = 0x1c | 418 | SizeofSockaddrInet6 = 0x1c |
@@ -422,6 +427,7 @@ const ( | |||
422 | SizeofSockaddrALG = 0x58 | 427 | SizeofSockaddrALG = 0x58 |
423 | SizeofSockaddrVM = 0x10 | 428 | SizeofSockaddrVM = 0x10 |
424 | SizeofSockaddrXDP = 0x10 | 429 | SizeofSockaddrXDP = 0x10 |
430 | SizeofSockaddrPPPoX = 0x1e | ||
425 | SizeofLinger = 0x8 | 431 | SizeofLinger = 0x8 |
426 | SizeofIovec = 0x8 | 432 | SizeofIovec = 0x8 |
427 | SizeofIPMreq = 0x8 | 433 | SizeofIPMreq = 0x8 |
@@ -436,141 +442,185 @@ const ( | |||
436 | SizeofICMPv6Filter = 0x20 | 442 | SizeofICMPv6Filter = 0x20 |
437 | SizeofUcred = 0xc | 443 | SizeofUcred = 0xc |
438 | SizeofTCPInfo = 0x68 | 444 | SizeofTCPInfo = 0x68 |
445 | SizeofCanFilter = 0x8 | ||
439 | ) | 446 | ) |
440 | 447 | ||
441 | const ( | 448 | const ( |
442 | IFA_UNSPEC = 0x0 | 449 | NDA_UNSPEC = 0x0 |
443 | IFA_ADDRESS = 0x1 | 450 | NDA_DST = 0x1 |
444 | IFA_LOCAL = 0x2 | 451 | NDA_LLADDR = 0x2 |
445 | IFA_LABEL = 0x3 | 452 | NDA_CACHEINFO = 0x3 |
446 | IFA_BROADCAST = 0x4 | 453 | NDA_PROBES = 0x4 |
447 | IFA_ANYCAST = 0x5 | 454 | NDA_VLAN = 0x5 |
448 | IFA_CACHEINFO = 0x6 | 455 | NDA_PORT = 0x6 |
449 | IFA_MULTICAST = 0x7 | 456 | NDA_VNI = 0x7 |
450 | IFLA_UNSPEC = 0x0 | 457 | NDA_IFINDEX = 0x8 |
451 | IFLA_ADDRESS = 0x1 | 458 | NDA_MASTER = 0x9 |
452 | IFLA_BROADCAST = 0x2 | 459 | NDA_LINK_NETNSID = 0xa |
453 | IFLA_IFNAME = 0x3 | 460 | NDA_SRC_VNI = 0xb |
454 | IFLA_INFO_KIND = 0x1 | 461 | NTF_USE = 0x1 |
455 | IFLA_MTU = 0x4 | 462 | NTF_SELF = 0x2 |
456 | IFLA_LINK = 0x5 | 463 | NTF_MASTER = 0x4 |
457 | IFLA_QDISC = 0x6 | 464 | NTF_PROXY = 0x8 |
458 | IFLA_STATS = 0x7 | 465 | NTF_EXT_LEARNED = 0x10 |
459 | IFLA_COST = 0x8 | 466 | NTF_OFFLOADED = 0x20 |
460 | IFLA_PRIORITY = 0x9 | 467 | NTF_ROUTER = 0x80 |
461 | IFLA_MASTER = 0xa | 468 | NUD_INCOMPLETE = 0x1 |
462 | IFLA_WIRELESS = 0xb | 469 | NUD_REACHABLE = 0x2 |
463 | IFLA_PROTINFO = 0xc | 470 | NUD_STALE = 0x4 |
464 | IFLA_TXQLEN = 0xd | 471 | NUD_DELAY = 0x8 |
465 | IFLA_MAP = 0xe | 472 | NUD_PROBE = 0x10 |
466 | IFLA_WEIGHT = 0xf | 473 | NUD_FAILED = 0x20 |
467 | IFLA_OPERSTATE = 0x10 | 474 | NUD_NOARP = 0x40 |
468 | IFLA_LINKMODE = 0x11 | 475 | NUD_PERMANENT = 0x80 |
469 | IFLA_LINKINFO = 0x12 | 476 | NUD_NONE = 0x0 |
470 | IFLA_NET_NS_PID = 0x13 | 477 | IFA_UNSPEC = 0x0 |
471 | IFLA_IFALIAS = 0x14 | 478 | IFA_ADDRESS = 0x1 |
472 | IFLA_NUM_VF = 0x15 | 479 | IFA_LOCAL = 0x2 |
473 | IFLA_VFINFO_LIST = 0x16 | 480 | IFA_LABEL = 0x3 |
474 | IFLA_STATS64 = 0x17 | 481 | IFA_BROADCAST = 0x4 |
475 | IFLA_VF_PORTS = 0x18 | 482 | IFA_ANYCAST = 0x5 |
476 | IFLA_PORT_SELF = 0x19 | 483 | IFA_CACHEINFO = 0x6 |
477 | IFLA_AF_SPEC = 0x1a | 484 | IFA_MULTICAST = 0x7 |
478 | IFLA_GROUP = 0x1b | 485 | IFA_FLAGS = 0x8 |
479 | IFLA_NET_NS_FD = 0x1c | 486 | IFA_RT_PRIORITY = 0x9 |
480 | IFLA_EXT_MASK = 0x1d | 487 | IFA_TARGET_NETNSID = 0xa |
481 | IFLA_PROMISCUITY = 0x1e | 488 | IFLA_UNSPEC = 0x0 |
482 | IFLA_NUM_TX_QUEUES = 0x1f | 489 | IFLA_ADDRESS = 0x1 |
483 | IFLA_NUM_RX_QUEUES = 0x20 | 490 | IFLA_BROADCAST = 0x2 |
484 | IFLA_CARRIER = 0x21 | 491 | IFLA_IFNAME = 0x3 |
485 | IFLA_PHYS_PORT_ID = 0x22 | 492 | IFLA_MTU = 0x4 |
486 | IFLA_CARRIER_CHANGES = 0x23 | 493 | IFLA_LINK = 0x5 |
487 | IFLA_PHYS_SWITCH_ID = 0x24 | 494 | IFLA_QDISC = 0x6 |
488 | IFLA_LINK_NETNSID = 0x25 | 495 | IFLA_STATS = 0x7 |
489 | IFLA_PHYS_PORT_NAME = 0x26 | 496 | IFLA_COST = 0x8 |
490 | IFLA_PROTO_DOWN = 0x27 | 497 | IFLA_PRIORITY = 0x9 |
491 | IFLA_GSO_MAX_SEGS = 0x28 | 498 | IFLA_MASTER = 0xa |
492 | IFLA_GSO_MAX_SIZE = 0x29 | 499 | IFLA_WIRELESS = 0xb |
493 | IFLA_PAD = 0x2a | 500 | IFLA_PROTINFO = 0xc |
494 | IFLA_XDP = 0x2b | 501 | IFLA_TXQLEN = 0xd |
495 | IFLA_EVENT = 0x2c | 502 | IFLA_MAP = 0xe |
496 | IFLA_NEW_NETNSID = 0x2d | 503 | IFLA_WEIGHT = 0xf |
497 | IFLA_IF_NETNSID = 0x2e | 504 | IFLA_OPERSTATE = 0x10 |
498 | IFLA_MAX = 0x33 | 505 | IFLA_LINKMODE = 0x11 |
499 | RT_SCOPE_UNIVERSE = 0x0 | 506 | IFLA_LINKINFO = 0x12 |
500 | RT_SCOPE_SITE = 0xc8 | 507 | IFLA_NET_NS_PID = 0x13 |
501 | RT_SCOPE_LINK = 0xfd | 508 | IFLA_IFALIAS = 0x14 |
502 | RT_SCOPE_HOST = 0xfe | 509 | IFLA_NUM_VF = 0x15 |
503 | RT_SCOPE_NOWHERE = 0xff | 510 | IFLA_VFINFO_LIST = 0x16 |
504 | RT_TABLE_UNSPEC = 0x0 | 511 | IFLA_STATS64 = 0x17 |
505 | RT_TABLE_COMPAT = 0xfc | 512 | IFLA_VF_PORTS = 0x18 |
506 | RT_TABLE_DEFAULT = 0xfd | 513 | IFLA_PORT_SELF = 0x19 |
507 | RT_TABLE_MAIN = 0xfe | 514 | IFLA_AF_SPEC = 0x1a |
508 | RT_TABLE_LOCAL = 0xff | 515 | IFLA_GROUP = 0x1b |
509 | RT_TABLE_MAX = 0xffffffff | 516 | IFLA_NET_NS_FD = 0x1c |
510 | RTA_UNSPEC = 0x0 | 517 | IFLA_EXT_MASK = 0x1d |
511 | RTA_DST = 0x1 | 518 | IFLA_PROMISCUITY = 0x1e |
512 | RTA_SRC = 0x2 | 519 | IFLA_NUM_TX_QUEUES = 0x1f |
513 | RTA_IIF = 0x3 | 520 | IFLA_NUM_RX_QUEUES = 0x20 |
514 | RTA_OIF = 0x4 | 521 | IFLA_CARRIER = 0x21 |
515 | RTA_GATEWAY = 0x5 | 522 | IFLA_PHYS_PORT_ID = 0x22 |
516 | RTA_PRIORITY = 0x6 | 523 | IFLA_CARRIER_CHANGES = 0x23 |
517 | RTA_PREFSRC = 0x7 | 524 | IFLA_PHYS_SWITCH_ID = 0x24 |
518 | RTA_METRICS = 0x8 | 525 | IFLA_LINK_NETNSID = 0x25 |
519 | RTA_MULTIPATH = 0x9 | 526 | IFLA_PHYS_PORT_NAME = 0x26 |
520 | RTA_FLOW = 0xb | 527 | IFLA_PROTO_DOWN = 0x27 |
521 | RTA_CACHEINFO = 0xc | 528 | IFLA_GSO_MAX_SEGS = 0x28 |
522 | RTA_TABLE = 0xf | 529 | IFLA_GSO_MAX_SIZE = 0x29 |
523 | RTA_MARK = 0x10 | 530 | IFLA_PAD = 0x2a |
524 | RTA_MFC_STATS = 0x11 | 531 | IFLA_XDP = 0x2b |
525 | RTA_VIA = 0x12 | 532 | IFLA_EVENT = 0x2c |
526 | RTA_NEWDST = 0x13 | 533 | IFLA_NEW_NETNSID = 0x2d |
527 | RTA_PREF = 0x14 | 534 | IFLA_IF_NETNSID = 0x2e |
528 | RTA_ENCAP_TYPE = 0x15 | 535 | IFLA_TARGET_NETNSID = 0x2e |
529 | RTA_ENCAP = 0x16 | 536 | IFLA_CARRIER_UP_COUNT = 0x2f |
530 | RTA_EXPIRES = 0x17 | 537 | IFLA_CARRIER_DOWN_COUNT = 0x30 |
531 | RTA_PAD = 0x18 | 538 | IFLA_NEW_IFINDEX = 0x31 |
532 | RTA_UID = 0x19 | 539 | IFLA_MIN_MTU = 0x32 |
533 | RTA_TTL_PROPAGATE = 0x1a | 540 | IFLA_MAX_MTU = 0x33 |
534 | RTA_IP_PROTO = 0x1b | 541 | IFLA_MAX = 0x33 |
535 | RTA_SPORT = 0x1c | 542 | IFLA_INFO_KIND = 0x1 |
536 | RTA_DPORT = 0x1d | 543 | IFLA_INFO_DATA = 0x2 |
537 | RTN_UNSPEC = 0x0 | 544 | IFLA_INFO_XSTATS = 0x3 |
538 | RTN_UNICAST = 0x1 | 545 | IFLA_INFO_SLAVE_KIND = 0x4 |
539 | RTN_LOCAL = 0x2 | 546 | IFLA_INFO_SLAVE_DATA = 0x5 |
540 | RTN_BROADCAST = 0x3 | 547 | RT_SCOPE_UNIVERSE = 0x0 |
541 | RTN_ANYCAST = 0x4 | 548 | RT_SCOPE_SITE = 0xc8 |
542 | RTN_MULTICAST = 0x5 | 549 | RT_SCOPE_LINK = 0xfd |
543 | RTN_BLACKHOLE = 0x6 | 550 | RT_SCOPE_HOST = 0xfe |
544 | RTN_UNREACHABLE = 0x7 | 551 | RT_SCOPE_NOWHERE = 0xff |
545 | RTN_PROHIBIT = 0x8 | 552 | RT_TABLE_UNSPEC = 0x0 |
546 | RTN_THROW = 0x9 | 553 | RT_TABLE_COMPAT = 0xfc |
547 | RTN_NAT = 0xa | 554 | RT_TABLE_DEFAULT = 0xfd |
548 | RTN_XRESOLVE = 0xb | 555 | RT_TABLE_MAIN = 0xfe |
549 | RTNLGRP_NONE = 0x0 | 556 | RT_TABLE_LOCAL = 0xff |
550 | RTNLGRP_LINK = 0x1 | 557 | RT_TABLE_MAX = 0xffffffff |
551 | RTNLGRP_NOTIFY = 0x2 | 558 | RTA_UNSPEC = 0x0 |
552 | RTNLGRP_NEIGH = 0x3 | 559 | RTA_DST = 0x1 |
553 | RTNLGRP_TC = 0x4 | 560 | RTA_SRC = 0x2 |
554 | RTNLGRP_IPV4_IFADDR = 0x5 | 561 | RTA_IIF = 0x3 |
555 | RTNLGRP_IPV4_MROUTE = 0x6 | 562 | RTA_OIF = 0x4 |
556 | RTNLGRP_IPV4_ROUTE = 0x7 | 563 | RTA_GATEWAY = 0x5 |
557 | RTNLGRP_IPV4_RULE = 0x8 | 564 | RTA_PRIORITY = 0x6 |
558 | RTNLGRP_IPV6_IFADDR = 0x9 | 565 | RTA_PREFSRC = 0x7 |
559 | RTNLGRP_IPV6_MROUTE = 0xa | 566 | RTA_METRICS = 0x8 |
560 | RTNLGRP_IPV6_ROUTE = 0xb | 567 | RTA_MULTIPATH = 0x9 |
561 | RTNLGRP_IPV6_IFINFO = 0xc | 568 | RTA_FLOW = 0xb |
562 | RTNLGRP_IPV6_PREFIX = 0x12 | 569 | RTA_CACHEINFO = 0xc |
563 | RTNLGRP_IPV6_RULE = 0x13 | 570 | RTA_TABLE = 0xf |
564 | RTNLGRP_ND_USEROPT = 0x14 | 571 | RTA_MARK = 0x10 |
565 | SizeofNlMsghdr = 0x10 | 572 | RTA_MFC_STATS = 0x11 |
566 | SizeofNlMsgerr = 0x14 | 573 | RTA_VIA = 0x12 |
567 | SizeofRtGenmsg = 0x1 | 574 | RTA_NEWDST = 0x13 |
568 | SizeofNlAttr = 0x4 | 575 | RTA_PREF = 0x14 |
569 | SizeofRtAttr = 0x4 | 576 | RTA_ENCAP_TYPE = 0x15 |
570 | SizeofIfInfomsg = 0x10 | 577 | RTA_ENCAP = 0x16 |
571 | SizeofIfAddrmsg = 0x8 | 578 | RTA_EXPIRES = 0x17 |
572 | SizeofRtMsg = 0xc | 579 | RTA_PAD = 0x18 |
573 | SizeofRtNexthop = 0x8 | 580 | RTA_UID = 0x19 |
581 | RTA_TTL_PROPAGATE = 0x1a | ||
582 | RTA_IP_PROTO = 0x1b | ||
583 | RTA_SPORT = 0x1c | ||
584 | RTA_DPORT = 0x1d | ||
585 | RTN_UNSPEC = 0x0 | ||
586 | RTN_UNICAST = 0x1 | ||
587 | RTN_LOCAL = 0x2 | ||
588 | RTN_BROADCAST = 0x3 | ||
589 | RTN_ANYCAST = 0x4 | ||
590 | RTN_MULTICAST = 0x5 | ||
591 | RTN_BLACKHOLE = 0x6 | ||
592 | RTN_UNREACHABLE = 0x7 | ||
593 | RTN_PROHIBIT = 0x8 | ||
594 | RTN_THROW = 0x9 | ||
595 | RTN_NAT = 0xa | ||
596 | RTN_XRESOLVE = 0xb | ||
597 | RTNLGRP_NONE = 0x0 | ||
598 | RTNLGRP_LINK = 0x1 | ||
599 | RTNLGRP_NOTIFY = 0x2 | ||
600 | RTNLGRP_NEIGH = 0x3 | ||
601 | RTNLGRP_TC = 0x4 | ||
602 | RTNLGRP_IPV4_IFADDR = 0x5 | ||
603 | RTNLGRP_IPV4_MROUTE = 0x6 | ||
604 | RTNLGRP_IPV4_ROUTE = 0x7 | ||
605 | RTNLGRP_IPV4_RULE = 0x8 | ||
606 | RTNLGRP_IPV6_IFADDR = 0x9 | ||
607 | RTNLGRP_IPV6_MROUTE = 0xa | ||
608 | RTNLGRP_IPV6_ROUTE = 0xb | ||
609 | RTNLGRP_IPV6_IFINFO = 0xc | ||
610 | RTNLGRP_IPV6_PREFIX = 0x12 | ||
611 | RTNLGRP_IPV6_RULE = 0x13 | ||
612 | RTNLGRP_ND_USEROPT = 0x14 | ||
613 | SizeofNlMsghdr = 0x10 | ||
614 | SizeofNlMsgerr = 0x14 | ||
615 | SizeofRtGenmsg = 0x1 | ||
616 | SizeofNlAttr = 0x4 | ||
617 | SizeofRtAttr = 0x4 | ||
618 | SizeofIfInfomsg = 0x10 | ||
619 | SizeofIfAddrmsg = 0x8 | ||
620 | SizeofRtMsg = 0xc | ||
621 | SizeofRtNexthop = 0x8 | ||
622 | SizeofNdUseroptmsg = 0x10 | ||
623 | SizeofNdMsg = 0xc | ||
574 | ) | 624 | ) |
575 | 625 | ||
576 | type NlMsghdr struct { | 626 | type NlMsghdr struct { |
@@ -636,6 +686,27 @@ type RtNexthop struct { | |||
636 | Ifindex int32 | 686 | Ifindex int32 |
637 | } | 687 | } |
638 | 688 | ||
689 | type NdUseroptmsg struct { | ||
690 | Family uint8 | ||
691 | Pad1 uint8 | ||
692 | Opts_len uint16 | ||
693 | Ifindex int32 | ||
694 | Icmp_type uint8 | ||
695 | Icmp_code uint8 | ||
696 | Pad2 uint16 | ||
697 | Pad3 uint32 | ||
698 | } | ||
699 | |||
700 | type NdMsg struct { | ||
701 | Family uint8 | ||
702 | Pad1 uint8 | ||
703 | Pad2 uint16 | ||
704 | Ifindex int32 | ||
705 | State uint16 | ||
706 | Flags uint8 | ||
707 | Type uint8 | ||
708 | } | ||
709 | |||
639 | const ( | 710 | const ( |
640 | SizeofSockFilter = 0x8 | 711 | SizeofSockFilter = 0x8 |
641 | SizeofSockFprog = 0x8 | 712 | SizeofSockFprog = 0x8 |
@@ -650,7 +721,6 @@ type SockFilter struct { | |||
650 | 721 | ||
651 | type SockFprog struct { | 722 | type SockFprog struct { |
652 | Len uint16 | 723 | Len uint16 |
653 | _ [2]byte | ||
654 | Filter *SockFilter | 724 | Filter *SockFilter |
655 | } | 725 | } |
656 | 726 | ||
@@ -753,7 +823,30 @@ type Sigset_t struct { | |||
753 | Val [32]uint32 | 823 | Val [32]uint32 |
754 | } | 824 | } |
755 | 825 | ||
756 | const RNDGETENTCNT = 0x40045200 | 826 | type SignalfdSiginfo struct { |
827 | Signo uint32 | ||
828 | Errno int32 | ||
829 | Code int32 | ||
830 | Pid uint32 | ||
831 | Uid uint32 | ||
832 | Fd int32 | ||
833 | Tid uint32 | ||
834 | Band uint32 | ||
835 | Overrun uint32 | ||
836 | Trapno uint32 | ||
837 | Status int32 | ||
838 | Int int32 | ||
839 | Ptr uint64 | ||
840 | Utime uint64 | ||
841 | Stime uint64 | ||
842 | Addr uint64 | ||
843 | Addr_lsb uint16 | ||
844 | _ uint16 | ||
845 | Syscall int32 | ||
846 | Call_addr uint64 | ||
847 | Arch uint32 | ||
848 | _ [28]uint8 | ||
849 | } | ||
757 | 850 | ||
758 | const PERF_IOC_FLAG_GROUP = 0x1 | 851 | const PERF_IOC_FLAG_GROUP = 0x1 |
759 | 852 | ||
@@ -777,11 +870,10 @@ type Winsize struct { | |||
777 | 870 | ||
778 | type Taskstats struct { | 871 | type Taskstats struct { |
779 | Version uint16 | 872 | Version uint16 |
780 | _ [2]byte | ||
781 | Ac_exitcode uint32 | 873 | Ac_exitcode uint32 |
782 | Ac_flag uint8 | 874 | Ac_flag uint8 |
783 | Ac_nice uint8 | 875 | Ac_nice uint8 |
784 | _ [6]byte | 876 | _ [4]byte |
785 | Cpu_count uint64 | 877 | Cpu_count uint64 |
786 | Cpu_delay_total uint64 | 878 | Cpu_delay_total uint64 |
787 | Blkio_count uint64 | 879 | Blkio_count uint64 |
@@ -823,6 +915,8 @@ type Taskstats struct { | |||
823 | Cpu_scaled_run_real_total uint64 | 915 | Cpu_scaled_run_real_total uint64 |
824 | Freepages_count uint64 | 916 | Freepages_count uint64 |
825 | Freepages_delay_total uint64 | 917 | Freepages_delay_total uint64 |
918 | Thrashing_count uint64 | ||
919 | Thrashing_delay_total uint64 | ||
826 | } | 920 | } |
827 | 921 | ||
828 | const ( | 922 | const ( |
@@ -925,7 +1019,8 @@ type PerfEventAttr struct { | |||
925 | Clockid int32 | 1019 | Clockid int32 |
926 | Sample_regs_intr uint64 | 1020 | Sample_regs_intr uint64 |
927 | Aux_watermark uint32 | 1021 | Aux_watermark uint32 |
928 | _ uint32 | 1022 | Sample_max_stack uint16 |
1023 | _ uint16 | ||
929 | } | 1024 | } |
930 | 1025 | ||
931 | type PerfEventMmapPage struct { | 1026 | type PerfEventMmapPage struct { |
@@ -1028,6 +1123,7 @@ const ( | |||
1028 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 | 1123 | PERF_COUNT_SW_ALIGNMENT_FAULTS = 0x7 |
1029 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 | 1124 | PERF_COUNT_SW_EMULATION_FAULTS = 0x8 |
1030 | PERF_COUNT_SW_DUMMY = 0x9 | 1125 | PERF_COUNT_SW_DUMMY = 0x9 |
1126 | PERF_COUNT_SW_BPF_OUTPUT = 0xa | ||
1031 | 1127 | ||
1032 | PERF_SAMPLE_IP = 0x1 | 1128 | PERF_SAMPLE_IP = 0x1 |
1033 | PERF_SAMPLE_TID = 0x2 | 1129 | PERF_SAMPLE_TID = 0x2 |
@@ -1049,21 +1145,38 @@ const ( | |||
1049 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 | 1145 | PERF_SAMPLE_BRANCH_ANY_CALL = 0x10 |
1050 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 | 1146 | PERF_SAMPLE_BRANCH_ANY_RETURN = 0x20 |
1051 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 | 1147 | PERF_SAMPLE_BRANCH_IND_CALL = 0x40 |
1148 | PERF_SAMPLE_BRANCH_ABORT_TX = 0x80 | ||
1149 | PERF_SAMPLE_BRANCH_IN_TX = 0x100 | ||
1150 | PERF_SAMPLE_BRANCH_NO_TX = 0x200 | ||
1151 | PERF_SAMPLE_BRANCH_COND = 0x400 | ||
1152 | PERF_SAMPLE_BRANCH_CALL_STACK = 0x800 | ||
1153 | PERF_SAMPLE_BRANCH_IND_JUMP = 0x1000 | ||
1154 | PERF_SAMPLE_BRANCH_CALL = 0x2000 | ||
1155 | PERF_SAMPLE_BRANCH_NO_FLAGS = 0x4000 | ||
1156 | PERF_SAMPLE_BRANCH_NO_CYCLES = 0x8000 | ||
1157 | PERF_SAMPLE_BRANCH_TYPE_SAVE = 0x10000 | ||
1052 | 1158 | ||
1053 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 | 1159 | PERF_FORMAT_TOTAL_TIME_ENABLED = 0x1 |
1054 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 | 1160 | PERF_FORMAT_TOTAL_TIME_RUNNING = 0x2 |
1055 | PERF_FORMAT_ID = 0x4 | 1161 | PERF_FORMAT_ID = 0x4 |
1056 | PERF_FORMAT_GROUP = 0x8 | 1162 | PERF_FORMAT_GROUP = 0x8 |
1057 | 1163 | ||
1058 | PERF_RECORD_MMAP = 0x1 | 1164 | PERF_RECORD_MMAP = 0x1 |
1059 | PERF_RECORD_LOST = 0x2 | 1165 | PERF_RECORD_LOST = 0x2 |
1060 | PERF_RECORD_COMM = 0x3 | 1166 | PERF_RECORD_COMM = 0x3 |
1061 | PERF_RECORD_EXIT = 0x4 | 1167 | PERF_RECORD_EXIT = 0x4 |
1062 | PERF_RECORD_THROTTLE = 0x5 | 1168 | PERF_RECORD_THROTTLE = 0x5 |
1063 | PERF_RECORD_UNTHROTTLE = 0x6 | 1169 | PERF_RECORD_UNTHROTTLE = 0x6 |
1064 | PERF_RECORD_FORK = 0x7 | 1170 | PERF_RECORD_FORK = 0x7 |
1065 | PERF_RECORD_READ = 0x8 | 1171 | PERF_RECORD_READ = 0x8 |
1066 | PERF_RECORD_SAMPLE = 0x9 | 1172 | PERF_RECORD_SAMPLE = 0x9 |
1173 | PERF_RECORD_MMAP2 = 0xa | ||
1174 | PERF_RECORD_AUX = 0xb | ||
1175 | PERF_RECORD_ITRACE_START = 0xc | ||
1176 | PERF_RECORD_LOST_SAMPLES = 0xd | ||
1177 | PERF_RECORD_SWITCH = 0xe | ||
1178 | PERF_RECORD_SWITCH_CPU_WIDE = 0xf | ||
1179 | PERF_RECORD_NAMESPACES = 0x10 | ||
1067 | 1180 | ||
1068 | PERF_CONTEXT_HV = -0x20 | 1181 | PERF_CONTEXT_HV = -0x20 |
1069 | PERF_CONTEXT_KERNEL = -0x80 | 1182 | PERF_CONTEXT_KERNEL = -0x80 |
@@ -1076,6 +1189,7 @@ const ( | |||
1076 | PERF_FLAG_FD_NO_GROUP = 0x1 | 1189 | PERF_FLAG_FD_NO_GROUP = 0x1 |
1077 | PERF_FLAG_FD_OUTPUT = 0x2 | 1190 | PERF_FLAG_FD_OUTPUT = 0x2 |
1078 | PERF_FLAG_PID_CGROUP = 0x4 | 1191 | PERF_FLAG_PID_CGROUP = 0x4 |
1192 | PERF_FLAG_FD_CLOEXEC = 0x8 | ||
1079 | ) | 1193 | ) |
1080 | 1194 | ||
1081 | const ( | 1195 | const ( |
@@ -1334,6 +1448,21 @@ type TpacketBlockDesc struct { | |||
1334 | Hdr [40]byte | 1448 | Hdr [40]byte |
1335 | } | 1449 | } |
1336 | 1450 | ||
1451 | type TpacketBDTS struct { | ||
1452 | Sec uint32 | ||
1453 | Usec uint32 | ||
1454 | } | ||
1455 | |||
1456 | type TpacketHdrV1 struct { | ||
1457 | Block_status uint32 | ||
1458 | Num_pkts uint32 | ||
1459 | Offset_to_first_pkt uint32 | ||
1460 | Blk_len uint32 | ||
1461 | Seq_num uint64 | ||
1462 | Ts_first_pkt TpacketBDTS | ||
1463 | Ts_last_pkt TpacketBDTS | ||
1464 | } | ||
1465 | |||
1337 | type TpacketReq struct { | 1466 | type TpacketReq struct { |
1338 | Block_size uint32 | 1467 | Block_size uint32 |
1339 | Block_nr uint32 | 1468 | Block_nr uint32 |
@@ -1382,6 +1511,9 @@ const ( | |||
1382 | SizeofTpacketHdr = 0x18 | 1511 | SizeofTpacketHdr = 0x18 |
1383 | SizeofTpacket2Hdr = 0x20 | 1512 | SizeofTpacket2Hdr = 0x20 |
1384 | SizeofTpacket3Hdr = 0x30 | 1513 | SizeofTpacket3Hdr = 0x30 |
1514 | |||
1515 | SizeofTpacketStats = 0x8 | ||
1516 | SizeofTpacketStatsV3 = 0xc | ||
1385 | ) | 1517 | ) |
1386 | 1518 | ||
1387 | const ( | 1519 | const ( |
@@ -1857,7 +1989,6 @@ type RTCTime struct { | |||
1857 | type RTCWkAlrm struct { | 1989 | type RTCWkAlrm struct { |
1858 | Enabled uint8 | 1990 | Enabled uint8 |
1859 | Pending uint8 | 1991 | Pending uint8 |
1860 | _ [2]byte | ||
1861 | Time RTCTime | 1992 | Time RTCTime |
1862 | } | 1993 | } |
1863 | 1994 | ||
@@ -1961,6 +2092,10 @@ const ( | |||
1961 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa | 2092 | NCSI_CHANNEL_ATTR_VLAN_ID = 0xa |
1962 | ) | 2093 | ) |
1963 | 2094 | ||
2095 | type ScmTimestamping struct { | ||
2096 | Ts [3]Timespec | ||
2097 | } | ||
2098 | |||
1964 | const ( | 2099 | const ( |
1965 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 | 2100 | SOF_TIMESTAMPING_TX_HARDWARE = 0x1 |
1966 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 | 2101 | SOF_TIMESTAMPING_TX_SOFTWARE = 0x2 |
@@ -1980,4 +2115,198 @@ const ( | |||
1980 | 2115 | ||
1981 | SOF_TIMESTAMPING_LAST = 0x4000 | 2116 | SOF_TIMESTAMPING_LAST = 0x4000 |
1982 | SOF_TIMESTAMPING_MASK = 0x7fff | 2117 | SOF_TIMESTAMPING_MASK = 0x7fff |
2118 | |||
2119 | SCM_TSTAMP_SND = 0x0 | ||
2120 | SCM_TSTAMP_SCHED = 0x1 | ||
2121 | SCM_TSTAMP_ACK = 0x2 | ||
2122 | ) | ||
2123 | |||
2124 | type SockExtendedErr struct { | ||
2125 | Errno uint32 | ||
2126 | Origin uint8 | ||
2127 | Type uint8 | ||
2128 | Code uint8 | ||
2129 | Pad uint8 | ||
2130 | Info uint32 | ||
2131 | Data uint32 | ||
2132 | } | ||
2133 | |||
2134 | type FanotifyEventMetadata struct { | ||
2135 | Event_len uint32 | ||
2136 | Vers uint8 | ||
2137 | Reserved uint8 | ||
2138 | Metadata_len uint16 | ||
2139 | Mask uint64 | ||
2140 | Fd int32 | ||
2141 | Pid int32 | ||
2142 | } | ||
2143 | |||
2144 | type FanotifyResponse struct { | ||
2145 | Fd int32 | ||
2146 | Response uint32 | ||
2147 | } | ||
2148 | |||
2149 | const ( | ||
2150 | CRYPTO_MSG_BASE = 0x10 | ||
2151 | CRYPTO_MSG_NEWALG = 0x10 | ||
2152 | CRYPTO_MSG_DELALG = 0x11 | ||
2153 | CRYPTO_MSG_UPDATEALG = 0x12 | ||
2154 | CRYPTO_MSG_GETALG = 0x13 | ||
2155 | CRYPTO_MSG_DELRNG = 0x14 | ||
2156 | CRYPTO_MSG_GETSTAT = 0x15 | ||
1983 | ) | 2157 | ) |
2158 | |||
2159 | const ( | ||
2160 | CRYPTOCFGA_UNSPEC = 0x0 | ||
2161 | CRYPTOCFGA_PRIORITY_VAL = 0x1 | ||
2162 | CRYPTOCFGA_REPORT_LARVAL = 0x2 | ||
2163 | CRYPTOCFGA_REPORT_HASH = 0x3 | ||
2164 | CRYPTOCFGA_REPORT_BLKCIPHER = 0x4 | ||
2165 | CRYPTOCFGA_REPORT_AEAD = 0x5 | ||
2166 | CRYPTOCFGA_REPORT_COMPRESS = 0x6 | ||
2167 | CRYPTOCFGA_REPORT_RNG = 0x7 | ||
2168 | CRYPTOCFGA_REPORT_CIPHER = 0x8 | ||
2169 | CRYPTOCFGA_REPORT_AKCIPHER = 0x9 | ||
2170 | CRYPTOCFGA_REPORT_KPP = 0xa | ||
2171 | CRYPTOCFGA_REPORT_ACOMP = 0xb | ||
2172 | CRYPTOCFGA_STAT_LARVAL = 0xc | ||
2173 | CRYPTOCFGA_STAT_HASH = 0xd | ||
2174 | CRYPTOCFGA_STAT_BLKCIPHER = 0xe | ||
2175 | CRYPTOCFGA_STAT_AEAD = 0xf | ||
2176 | CRYPTOCFGA_STAT_COMPRESS = 0x10 | ||
2177 | CRYPTOCFGA_STAT_RNG = 0x11 | ||
2178 | CRYPTOCFGA_STAT_CIPHER = 0x12 | ||
2179 | CRYPTOCFGA_STAT_AKCIPHER = 0x13 | ||
2180 | CRYPTOCFGA_STAT_KPP = 0x14 | ||
2181 | CRYPTOCFGA_STAT_ACOMP = 0x15 | ||
2182 | ) | ||
2183 | |||
2184 | type CryptoUserAlg struct { | ||
2185 | Name [64]int8 | ||
2186 | Driver_name [64]int8 | ||
2187 | Module_name [64]int8 | ||
2188 | Type uint32 | ||
2189 | Mask uint32 | ||
2190 | Refcnt uint32 | ||
2191 | Flags uint32 | ||
2192 | } | ||
2193 | |||
2194 | type CryptoStatAEAD struct { | ||
2195 | Type [64]int8 | ||
2196 | Encrypt_cnt uint64 | ||
2197 | Encrypt_tlen uint64 | ||
2198 | Decrypt_cnt uint64 | ||
2199 | Decrypt_tlen uint64 | ||
2200 | Err_cnt uint64 | ||
2201 | } | ||
2202 | |||
2203 | type CryptoStatAKCipher struct { | ||
2204 | Type [64]int8 | ||
2205 | Encrypt_cnt uint64 | ||
2206 | Encrypt_tlen uint64 | ||
2207 | Decrypt_cnt uint64 | ||
2208 | Decrypt_tlen uint64 | ||
2209 | Verify_cnt uint64 | ||
2210 | Sign_cnt uint64 | ||
2211 | Err_cnt uint64 | ||
2212 | } | ||
2213 | |||
2214 | type CryptoStatCipher struct { | ||
2215 | Type [64]int8 | ||
2216 | Encrypt_cnt uint64 | ||
2217 | Encrypt_tlen uint64 | ||
2218 | Decrypt_cnt uint64 | ||
2219 | Decrypt_tlen uint64 | ||
2220 | Err_cnt uint64 | ||
2221 | } | ||
2222 | |||
2223 | type CryptoStatCompress struct { | ||
2224 | Type [64]int8 | ||
2225 | Compress_cnt uint64 | ||
2226 | Compress_tlen uint64 | ||
2227 | Decompress_cnt uint64 | ||
2228 | Decompress_tlen uint64 | ||
2229 | Err_cnt uint64 | ||
2230 | } | ||
2231 | |||
2232 | type CryptoStatHash struct { | ||
2233 | Type [64]int8 | ||
2234 | Hash_cnt uint64 | ||
2235 | Hash_tlen uint64 | ||
2236 | Err_cnt uint64 | ||
2237 | } | ||
2238 | |||
2239 | type CryptoStatKPP struct { | ||
2240 | Type [64]int8 | ||
2241 | Setsecret_cnt uint64 | ||
2242 | Generate_public_key_cnt uint64 | ||
2243 | Compute_shared_secret_cnt uint64 | ||
2244 | Err_cnt uint64 | ||
2245 | } | ||
2246 | |||
2247 | type CryptoStatRNG struct { | ||
2248 | Type [64]int8 | ||
2249 | Generate_cnt uint64 | ||
2250 | Generate_tlen uint64 | ||
2251 | Seed_cnt uint64 | ||
2252 | Err_cnt uint64 | ||
2253 | } | ||
2254 | |||
2255 | type CryptoStatLarval struct { | ||
2256 | Type [64]int8 | ||
2257 | } | ||
2258 | |||
2259 | type CryptoReportLarval struct { | ||
2260 | Type [64]int8 | ||
2261 | } | ||
2262 | |||
2263 | type CryptoReportHash struct { | ||
2264 | Type [64]int8 | ||
2265 | Blocksize uint32 | ||
2266 | Digestsize uint32 | ||
2267 | } | ||
2268 | |||
2269 | type CryptoReportCipher struct { | ||
2270 | Type [64]int8 | ||
2271 | Blocksize uint32 | ||
2272 | Min_keysize uint32 | ||
2273 | Max_keysize uint32 | ||
2274 | } | ||
2275 | |||
2276 | type CryptoReportBlkCipher struct { | ||
2277 | Type [64]int8 | ||
2278 | Geniv [64]int8 | ||
2279 | Blocksize uint32 | ||
2280 | Min_keysize uint32 | ||
2281 | Max_keysize uint32 | ||
2282 | Ivsize uint32 | ||
2283 | } | ||
2284 | |||
2285 | type CryptoReportAEAD struct { | ||
2286 | Type [64]int8 | ||
2287 | Geniv [64]int8 | ||
2288 | Blocksize uint32 | ||
2289 | Maxauthsize uint32 | ||
2290 | Ivsize uint32 | ||
2291 | } | ||
2292 | |||
2293 | type CryptoReportComp struct { | ||
2294 | Type [64]int8 | ||
2295 | } | ||
2296 | |||
2297 | type CryptoReportRNG struct { | ||
2298 | Type [64]int8 | ||
2299 | Seedsize uint32 | ||
2300 | } | ||
2301 | |||
2302 | type CryptoReportAKCipher struct { | ||
2303 | Type [64]int8 | ||
2304 | } | ||
2305 | |||
2306 | type CryptoReportKPP struct { | ||
2307 | Type [64]int8 | ||
2308 | } | ||
2309 | |||
2310 | type CryptoReportAcomp struct { | ||
2311 | Type [64]int8 | ||
2312 | } | ||