Skip to content

Commit

Permalink
unix: update BPF constants with Linux kernel 6.2
Browse files Browse the repository at this point in the history
Change-Id: Iaa92ec9e8ff6e337457ea4f57b4c046221128d43
Reviewed-on: https://go-review.googlesource.com/c/sys/+/496675
Run-TryBot: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Matthew Dempsky <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
florianl authored and gopherbot committed May 23, 2023
1 parent c8ea6b0 commit b5c7a09
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 0 deletions.
46 changes: 46 additions & 0 deletions unix/linux/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2543,6 +2543,11 @@ const (
BPF_REG_8 = C.BPF_REG_8
BPF_REG_9 = C.BPF_REG_9
BPF_REG_10 = C.BPF_REG_10
BPF_CGROUP_ITER_ORDER_UNSPEC = C.BPF_CGROUP_ITER_ORDER_UNSPEC
BPF_CGROUP_ITER_SELF_ONLY = C.BPF_CGROUP_ITER_SELF_ONLY
BPF_CGROUP_ITER_DESCENDANTS_PRE = C.BPF_CGROUP_ITER_DESCENDANTS_PRE
BPF_CGROUP_ITER_DESCENDANTS_POST = C.BPF_CGROUP_ITER_DESCENDANTS_POST
BPF_CGROUP_ITER_ANCESTORS_UP = C.BPF_CGROUP_ITER_ANCESTORS_UP
BPF_MAP_CREATE = C.BPF_MAP_CREATE
BPF_MAP_LOOKUP_ELEM = C.BPF_MAP_LOOKUP_ELEM
BPF_MAP_UPDATE_ELEM = C.BPF_MAP_UPDATE_ELEM
Expand All @@ -2554,6 +2559,7 @@ const (
BPF_PROG_ATTACH = C.BPF_PROG_ATTACH
BPF_PROG_DETACH = C.BPF_PROG_DETACH
BPF_PROG_TEST_RUN = C.BPF_PROG_TEST_RUN
BPF_PROG_RUN = C.BPF_PROG_RUN
BPF_PROG_GET_NEXT_ID = C.BPF_PROG_GET_NEXT_ID
BPF_MAP_GET_NEXT_ID = C.BPF_MAP_GET_NEXT_ID
BPF_PROG_GET_FD_BY_ID = C.BPF_PROG_GET_FD_BY_ID
Expand Down Expand Up @@ -2598,6 +2604,7 @@ const (
BPF_MAP_TYPE_CPUMAP = C.BPF_MAP_TYPE_CPUMAP
BPF_MAP_TYPE_XSKMAP = C.BPF_MAP_TYPE_XSKMAP
BPF_MAP_TYPE_SOCKHASH = C.BPF_MAP_TYPE_SOCKHASH
BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED = C.BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED
BPF_MAP_TYPE_CGROUP_STORAGE = C.BPF_MAP_TYPE_CGROUP_STORAGE
BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = C.BPF_MAP_TYPE_REUSEPORT_SOCKARRAY
BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = C.BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE
Expand All @@ -2608,6 +2615,10 @@ const (
BPF_MAP_TYPE_STRUCT_OPS = C.BPF_MAP_TYPE_STRUCT_OPS
BPF_MAP_TYPE_RINGBUF = C.BPF_MAP_TYPE_RINGBUF
BPF_MAP_TYPE_INODE_STORAGE = C.BPF_MAP_TYPE_INODE_STORAGE
BPF_MAP_TYPE_TASK_STORAGE = C.BPF_MAP_TYPE_TASK_STORAGE
BPF_MAP_TYPE_BLOOM_FILTER = C.BPF_MAP_TYPE_BLOOM_FILTER
BPF_MAP_TYPE_USER_RINGBUF = C.BPF_MAP_TYPE_USER_RINGBUF
BPF_MAP_TYPE_CGRP_STORAGE = C.BPF_MAP_TYPE_CGRP_STORAGE
BPF_PROG_TYPE_UNSPEC = C.BPF_PROG_TYPE_UNSPEC
BPF_PROG_TYPE_SOCKET_FILTER = C.BPF_PROG_TYPE_SOCKET_FILTER
BPF_PROG_TYPE_KPROBE = C.BPF_PROG_TYPE_KPROBE
Expand Down Expand Up @@ -2639,6 +2650,7 @@ const (
BPF_PROG_TYPE_EXT = C.BPF_PROG_TYPE_EXT
BPF_PROG_TYPE_LSM = C.BPF_PROG_TYPE_LSM
BPF_PROG_TYPE_SK_LOOKUP = C.BPF_PROG_TYPE_SK_LOOKUP
BPF_PROG_TYPE_SYSCALL = C.BPF_PROG_TYPE_SYSCALL
BPF_CGROUP_INET_INGRESS = C.BPF_CGROUP_INET_INGRESS
BPF_CGROUP_INET_EGRESS = C.BPF_CGROUP_INET_EGRESS
BPF_CGROUP_INET_SOCK_CREATE = C.BPF_CGROUP_INET_SOCK_CREATE
Expand Down Expand Up @@ -2677,13 +2689,22 @@ const (
BPF_XDP_CPUMAP = C.BPF_XDP_CPUMAP
BPF_SK_LOOKUP = C.BPF_SK_LOOKUP
BPF_XDP = C.BPF_XDP
BPF_SK_SKB_VERDICT = C.BPF_SK_SKB_VERDICT
BPF_SK_REUSEPORT_SELECT = C.BPF_SK_REUSEPORT_SELECT
BPF_SK_REUSEPORT_SELECT_OR_MIGRATE = C.BPF_SK_REUSEPORT_SELECT_OR_MIGRATE
BPF_PERF_EVENT = C.BPF_PERF_EVENT
BPF_TRACE_KPROBE_MULTI = C.BPF_TRACE_KPROBE_MULTI
BPF_LSM_CGROUP = C.BPF_LSM_CGROUP
BPF_LINK_TYPE_UNSPEC = C.BPF_LINK_TYPE_UNSPEC
BPF_LINK_TYPE_RAW_TRACEPOINT = C.BPF_LINK_TYPE_RAW_TRACEPOINT
BPF_LINK_TYPE_TRACING = C.BPF_LINK_TYPE_TRACING
BPF_LINK_TYPE_CGROUP = C.BPF_LINK_TYPE_CGROUP
BPF_LINK_TYPE_ITER = C.BPF_LINK_TYPE_ITER
BPF_LINK_TYPE_NETNS = C.BPF_LINK_TYPE_NETNS
BPF_LINK_TYPE_XDP = C.BPF_LINK_TYPE_XDP
BPF_LINK_TYPE_PERF_EVENT = C.BPF_LINK_TYPE_PERF_EVENT
BPF_LINK_TYPE_KPROBE_MULTI = C.BPF_LINK_TYPE_KPROBE_MULTI
BPF_LINK_TYPE_STRUCT_OPS = C.BPF_LINK_TYPE_STRUCT_OPS
BPF_ANY = C.BPF_ANY
BPF_NOEXIST = C.BPF_NOEXIST
BPF_EXIST = C.BPF_EXIST
Expand Down Expand Up @@ -2721,6 +2742,7 @@ const (
BPF_F_ZERO_CSUM_TX = C.BPF_F_ZERO_CSUM_TX
BPF_F_DONT_FRAGMENT = C.BPF_F_DONT_FRAGMENT
BPF_F_SEQ_NUMBER = C.BPF_F_SEQ_NUMBER
BPF_F_TUNINFO_FLAGS = C.BPF_F_TUNINFO_FLAGS
BPF_F_INDEX_MASK = C.BPF_F_INDEX_MASK
BPF_F_CURRENT_CPU = C.BPF_F_CURRENT_CPU
BPF_F_CTXLEN_MASK = C.BPF_F_CTXLEN_MASK
Expand All @@ -2735,6 +2757,7 @@ const (
BPF_F_ADJ_ROOM_ENCAP_L4_GRE = C.BPF_F_ADJ_ROOM_ENCAP_L4_GRE
BPF_F_ADJ_ROOM_ENCAP_L4_UDP = C.BPF_F_ADJ_ROOM_ENCAP_L4_UDP
BPF_F_ADJ_ROOM_NO_CSUM_RESET = C.BPF_F_ADJ_ROOM_NO_CSUM_RESET
BPF_F_ADJ_ROOM_ENCAP_L2_ETH = C.BPF_F_ADJ_ROOM_ENCAP_L2_ETH
BPF_ADJ_ROOM_ENCAP_L2_MASK = C.BPF_ADJ_ROOM_ENCAP_L2_MASK
BPF_ADJ_ROOM_ENCAP_L2_SHIFT = C.BPF_ADJ_ROOM_ENCAP_L2_SHIFT
BPF_F_SYSCTL_BASE_NAME = C.BPF_F_SYSCTL_BASE_NAME
Expand All @@ -2759,10 +2782,16 @@ const (
BPF_LWT_ENCAP_SEG6 = C.BPF_LWT_ENCAP_SEG6
BPF_LWT_ENCAP_SEG6_INLINE = C.BPF_LWT_ENCAP_SEG6_INLINE
BPF_LWT_ENCAP_IP = C.BPF_LWT_ENCAP_IP
BPF_F_BPRM_SECUREEXEC = C.BPF_F_BPRM_SECUREEXEC
BPF_F_BROADCAST = C.BPF_F_BROADCAST
BPF_F_EXCLUDE_INGRESS = C.BPF_F_EXCLUDE_INGRESS
BPF_SKB_TSTAMP_UNSPEC = C.BPF_SKB_TSTAMP_UNSPEC
BPF_SKB_TSTAMP_DELIVERY_MONO = C.BPF_SKB_TSTAMP_DELIVERY_MONO
BPF_OK = C.BPF_OK
BPF_DROP = C.BPF_DROP
BPF_REDIRECT = C.BPF_REDIRECT
BPF_LWT_REROUTE = C.BPF_LWT_REROUTE
BPF_FLOW_DISSECTOR_CONTINUE = C.BPF_FLOW_DISSECTOR_CONTINUE
BPF_SOCK_OPS_RTO_CB_FLAG = C.BPF_SOCK_OPS_RTO_CB_FLAG
BPF_SOCK_OPS_RETRANS_CB_FLAG = C.BPF_SOCK_OPS_RETRANS_CB_FLAG
BPF_SOCK_OPS_STATE_CB_FLAG = C.BPF_SOCK_OPS_STATE_CB_FLAG
Expand Down Expand Up @@ -2826,6 +2855,10 @@ const (
BPF_FIB_LKUP_RET_UNSUPP_LWT = C.BPF_FIB_LKUP_RET_UNSUPP_LWT
BPF_FIB_LKUP_RET_NO_NEIGH = C.BPF_FIB_LKUP_RET_NO_NEIGH
BPF_FIB_LKUP_RET_FRAG_NEEDED = C.BPF_FIB_LKUP_RET_FRAG_NEEDED
BPF_MTU_CHK_SEGS = C.BPF_MTU_CHK_SEGS
BPF_MTU_CHK_RET_SUCCESS = C.BPF_MTU_CHK_RET_SUCCESS
BPF_MTU_CHK_RET_FRAG_NEEDED = C.BPF_MTU_CHK_RET_FRAG_NEEDED
BPF_MTU_CHK_RET_SEGS_TOOBIG = C.BPF_MTU_CHK_RET_SEGS_TOOBIG
BPF_FD_TYPE_RAW_TRACEPOINT = C.BPF_FD_TYPE_RAW_TRACEPOINT
BPF_FD_TYPE_TRACEPOINT = C.BPF_FD_TYPE_TRACEPOINT
BPF_FD_TYPE_KPROBE = C.BPF_FD_TYPE_KPROBE
Expand All @@ -2835,6 +2868,19 @@ const (
BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG = C.BPF_FLOW_DISSECTOR_F_PARSE_1ST_FRAG
BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL = C.BPF_FLOW_DISSECTOR_F_STOP_AT_FLOW_LABEL
BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP = C.BPF_FLOW_DISSECTOR_F_STOP_AT_ENCAP
BPF_CORE_FIELD_BYTE_OFFSET = C.BPF_CORE_FIELD_BYTE_OFFSET
BPF_CORE_FIELD_BYTE_SIZE = C.BPF_CORE_FIELD_BYTE_SIZE
BPF_CORE_FIELD_EXISTS = C.BPF_CORE_FIELD_EXISTS
BPF_CORE_FIELD_SIGNED = C.BPF_CORE_FIELD_SIGNED
BPF_CORE_FIELD_LSHIFT_U64 = C.BPF_CORE_FIELD_LSHIFT_U64
BPF_CORE_FIELD_RSHIFT_U64 = C.BPF_CORE_FIELD_RSHIFT_U64
BPF_CORE_TYPE_ID_LOCAL = C.BPF_CORE_TYPE_ID_LOCAL
BPF_CORE_TYPE_ID_TARGET = C.BPF_CORE_TYPE_ID_TARGET
BPF_CORE_TYPE_EXISTS = C.BPF_CORE_TYPE_EXISTS
BPF_CORE_TYPE_SIZE = C.BPF_CORE_TYPE_SIZE
BPF_CORE_ENUMVAL_EXISTS = C.BPF_CORE_ENUMVAL_EXISTS
BPF_CORE_ENUMVAL_VALUE = C.BPF_CORE_ENUMVAL_VALUE
BPF_CORE_TYPE_MATCHES = C.BPF_CORE_TYPE_MATCHES
)

// generated by:
Expand Down
48 changes: 48 additions & 0 deletions unix/zerrors_linux_sparc64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions unix/ztypes_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5c7a09

Please sign in to comment.