From 5c8b2ff67527cb88b770f693cebf3799036d8bc0 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 2 Mar 2020 11:13:05 +0100 Subject: [PATCH] unix: update BPF consts on linux Update the BPF_* consts from include/uapi/linux/bpf.h as of Linux 5.5. Change-Id: I5098fc9e4fc1fb3e6cc2e2f85a8e65b369b6a81c Reviewed-on: https://go-review.googlesource.com/c/sys/+/221797 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Matt Layher --- unix/linux/types.go | 318 +++++++++++++++++++++++-------------------- unix/ztypes_linux.go | 318 +++++++++++++++++++++++-------------------- 2 files changed, 338 insertions(+), 298 deletions(-) diff --git a/unix/linux/types.go b/unix/linux/types.go index b909c4c1e..b12f9d1e2 100644 --- a/unix/linux/types.go +++ b/unix/linux/types.go @@ -1875,155 +1875,175 @@ type CryptoReportAcomp C.struct_crypto_report_acomp // generated by: // perl -nlE '/^\s*(BPF_\w+)/ && say "$1 = C.$1"' include/uapi/linux/bpf.h const ( - BPF_REG_0 = C.BPF_REG_0 - BPF_REG_1 = C.BPF_REG_1 - BPF_REG_2 = C.BPF_REG_2 - BPF_REG_3 = C.BPF_REG_3 - BPF_REG_4 = C.BPF_REG_4 - BPF_REG_5 = C.BPF_REG_5 - BPF_REG_6 = C.BPF_REG_6 - BPF_REG_7 = C.BPF_REG_7 - BPF_REG_8 = C.BPF_REG_8 - BPF_REG_9 = C.BPF_REG_9 - BPF_REG_10 = C.BPF_REG_10 - 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 - BPF_MAP_DELETE_ELEM = C.BPF_MAP_DELETE_ELEM - BPF_MAP_GET_NEXT_KEY = C.BPF_MAP_GET_NEXT_KEY - BPF_PROG_LOAD = C.BPF_PROG_LOAD - BPF_OBJ_PIN = C.BPF_OBJ_PIN - BPF_OBJ_GET = C.BPF_OBJ_GET - 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_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 - BPF_MAP_GET_FD_BY_ID = C.BPF_MAP_GET_FD_BY_ID - BPF_OBJ_GET_INFO_BY_FD = C.BPF_OBJ_GET_INFO_BY_FD - BPF_PROG_QUERY = C.BPF_PROG_QUERY - BPF_RAW_TRACEPOINT_OPEN = C.BPF_RAW_TRACEPOINT_OPEN - BPF_BTF_LOAD = C.BPF_BTF_LOAD - BPF_BTF_GET_FD_BY_ID = C.BPF_BTF_GET_FD_BY_ID - BPF_TASK_FD_QUERY = C.BPF_TASK_FD_QUERY - BPF_MAP_LOOKUP_AND_DELETE_ELEM = C.BPF_MAP_LOOKUP_AND_DELETE_ELEM - BPF_MAP_TYPE_UNSPEC = C.BPF_MAP_TYPE_UNSPEC - BPF_MAP_TYPE_HASH = C.BPF_MAP_TYPE_HASH - BPF_MAP_TYPE_ARRAY = C.BPF_MAP_TYPE_ARRAY - BPF_MAP_TYPE_PROG_ARRAY = C.BPF_MAP_TYPE_PROG_ARRAY - BPF_MAP_TYPE_PERF_EVENT_ARRAY = C.BPF_MAP_TYPE_PERF_EVENT_ARRAY - BPF_MAP_TYPE_PERCPU_HASH = C.BPF_MAP_TYPE_PERCPU_HASH - BPF_MAP_TYPE_PERCPU_ARRAY = C.BPF_MAP_TYPE_PERCPU_ARRAY - BPF_MAP_TYPE_STACK_TRACE = C.BPF_MAP_TYPE_STACK_TRACE - BPF_MAP_TYPE_CGROUP_ARRAY = C.BPF_MAP_TYPE_CGROUP_ARRAY - BPF_MAP_TYPE_LRU_HASH = C.BPF_MAP_TYPE_LRU_HASH - BPF_MAP_TYPE_LRU_PERCPU_HASH = C.BPF_MAP_TYPE_LRU_PERCPU_HASH - BPF_MAP_TYPE_LPM_TRIE = C.BPF_MAP_TYPE_LPM_TRIE - BPF_MAP_TYPE_ARRAY_OF_MAPS = C.BPF_MAP_TYPE_ARRAY_OF_MAPS - BPF_MAP_TYPE_HASH_OF_MAPS = C.BPF_MAP_TYPE_HASH_OF_MAPS - BPF_MAP_TYPE_DEVMAP = C.BPF_MAP_TYPE_DEVMAP - BPF_MAP_TYPE_SOCKMAP = C.BPF_MAP_TYPE_SOCKMAP - 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 = 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 - BPF_MAP_TYPE_QUEUE = C.BPF_MAP_TYPE_QUEUE - BPF_MAP_TYPE_STACK = C.BPF_MAP_TYPE_STACK - 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 - BPF_PROG_TYPE_SCHED_CLS = C.BPF_PROG_TYPE_SCHED_CLS - BPF_PROG_TYPE_SCHED_ACT = C.BPF_PROG_TYPE_SCHED_ACT - BPF_PROG_TYPE_TRACEPOINT = C.BPF_PROG_TYPE_TRACEPOINT - BPF_PROG_TYPE_XDP = C.BPF_PROG_TYPE_XDP - BPF_PROG_TYPE_PERF_EVENT = C.BPF_PROG_TYPE_PERF_EVENT - BPF_PROG_TYPE_CGROUP_SKB = C.BPF_PROG_TYPE_CGROUP_SKB - BPF_PROG_TYPE_CGROUP_SOCK = C.BPF_PROG_TYPE_CGROUP_SOCK - BPF_PROG_TYPE_LWT_IN = C.BPF_PROG_TYPE_LWT_IN - BPF_PROG_TYPE_LWT_OUT = C.BPF_PROG_TYPE_LWT_OUT - BPF_PROG_TYPE_LWT_XMIT = C.BPF_PROG_TYPE_LWT_XMIT - BPF_PROG_TYPE_SOCK_OPS = C.BPF_PROG_TYPE_SOCK_OPS - BPF_PROG_TYPE_SK_SKB = C.BPF_PROG_TYPE_SK_SKB - BPF_PROG_TYPE_CGROUP_DEVICE = C.BPF_PROG_TYPE_CGROUP_DEVICE - BPF_PROG_TYPE_SK_MSG = C.BPF_PROG_TYPE_SK_MSG - BPF_PROG_TYPE_RAW_TRACEPOINT = C.BPF_PROG_TYPE_RAW_TRACEPOINT - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = C.BPF_PROG_TYPE_CGROUP_SOCK_ADDR - BPF_PROG_TYPE_LWT_SEG6LOCAL = C.BPF_PROG_TYPE_LWT_SEG6LOCAL - BPF_PROG_TYPE_LIRC_MODE2 = C.BPF_PROG_TYPE_LIRC_MODE2 - BPF_PROG_TYPE_SK_REUSEPORT = C.BPF_PROG_TYPE_SK_REUSEPORT - BPF_PROG_TYPE_FLOW_DISSECTOR = C.BPF_PROG_TYPE_FLOW_DISSECTOR - 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 - BPF_CGROUP_SOCK_OPS = C.BPF_CGROUP_SOCK_OPS - BPF_SK_SKB_STREAM_PARSER = C.BPF_SK_SKB_STREAM_PARSER - BPF_SK_SKB_STREAM_VERDICT = C.BPF_SK_SKB_STREAM_VERDICT - BPF_CGROUP_DEVICE = C.BPF_CGROUP_DEVICE - BPF_SK_MSG_VERDICT = C.BPF_SK_MSG_VERDICT - BPF_CGROUP_INET4_BIND = C.BPF_CGROUP_INET4_BIND - BPF_CGROUP_INET6_BIND = C.BPF_CGROUP_INET6_BIND - BPF_CGROUP_INET4_CONNECT = C.BPF_CGROUP_INET4_CONNECT - BPF_CGROUP_INET6_CONNECT = C.BPF_CGROUP_INET6_CONNECT - BPF_CGROUP_INET4_POST_BIND = C.BPF_CGROUP_INET4_POST_BIND - BPF_CGROUP_INET6_POST_BIND = C.BPF_CGROUP_INET6_POST_BIND - BPF_CGROUP_UDP4_SENDMSG = C.BPF_CGROUP_UDP4_SENDMSG - BPF_CGROUP_UDP6_SENDMSG = C.BPF_CGROUP_UDP6_SENDMSG - BPF_LIRC_MODE2 = C.BPF_LIRC_MODE2 - BPF_FLOW_DISSECTOR = C.BPF_FLOW_DISSECTOR - BPF_STACK_BUILD_ID_EMPTY = C.BPF_STACK_BUILD_ID_EMPTY - BPF_STACK_BUILD_ID_VALID = C.BPF_STACK_BUILD_ID_VALID - BPF_STACK_BUILD_ID_IP = C.BPF_STACK_BUILD_ID_IP - BPF_ADJ_ROOM_NET = C.BPF_ADJ_ROOM_NET - BPF_HDR_START_MAC = C.BPF_HDR_START_MAC - BPF_HDR_START_NET = C.BPF_HDR_START_NET - BPF_LWT_ENCAP_SEG6 = C.BPF_LWT_ENCAP_SEG6 - BPF_LWT_ENCAP_SEG6_INLINE = C.BPF_LWT_ENCAP_SEG6_INLINE - BPF_OK = C.BPF_OK - BPF_DROP = C.BPF_DROP - BPF_REDIRECT = C.BPF_REDIRECT - BPF_SOCK_OPS_VOID = C.BPF_SOCK_OPS_VOID - BPF_SOCK_OPS_TIMEOUT_INIT = C.BPF_SOCK_OPS_TIMEOUT_INIT - BPF_SOCK_OPS_RWND_INIT = C.BPF_SOCK_OPS_RWND_INIT - BPF_SOCK_OPS_TCP_CONNECT_CB = C.BPF_SOCK_OPS_TCP_CONNECT_CB - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = C.BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = C.BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB - BPF_SOCK_OPS_NEEDS_ECN = C.BPF_SOCK_OPS_NEEDS_ECN - BPF_SOCK_OPS_BASE_RTT = C.BPF_SOCK_OPS_BASE_RTT - BPF_SOCK_OPS_RTO_CB = C.BPF_SOCK_OPS_RTO_CB - BPF_SOCK_OPS_RETRANS_CB = C.BPF_SOCK_OPS_RETRANS_CB - BPF_SOCK_OPS_STATE_CB = C.BPF_SOCK_OPS_STATE_CB - BPF_SOCK_OPS_TCP_LISTEN_CB = C.BPF_SOCK_OPS_TCP_LISTEN_CB - BPF_TCP_ESTABLISHED = C.BPF_TCP_ESTABLISHED - BPF_TCP_SYN_SENT = C.BPF_TCP_SYN_SENT - BPF_TCP_SYN_RECV = C.BPF_TCP_SYN_RECV - BPF_TCP_FIN_WAIT1 = C.BPF_TCP_FIN_WAIT1 - BPF_TCP_FIN_WAIT2 = C.BPF_TCP_FIN_WAIT2 - BPF_TCP_TIME_WAIT = C.BPF_TCP_TIME_WAIT - BPF_TCP_CLOSE = C.BPF_TCP_CLOSE - BPF_TCP_CLOSE_WAIT = C.BPF_TCP_CLOSE_WAIT - BPF_TCP_LAST_ACK = C.BPF_TCP_LAST_ACK - BPF_TCP_LISTEN = C.BPF_TCP_LISTEN - BPF_TCP_CLOSING = C.BPF_TCP_CLOSING - BPF_TCP_NEW_SYN_RECV = C.BPF_TCP_NEW_SYN_RECV - BPF_TCP_MAX_STATES = C.BPF_TCP_MAX_STATES - BPF_FIB_LKUP_RET_SUCCESS = C.BPF_FIB_LKUP_RET_SUCCESS - BPF_FIB_LKUP_RET_BLACKHOLE = C.BPF_FIB_LKUP_RET_BLACKHOLE - BPF_FIB_LKUP_RET_UNREACHABLE = C.BPF_FIB_LKUP_RET_UNREACHABLE - BPF_FIB_LKUP_RET_PROHIBIT = C.BPF_FIB_LKUP_RET_PROHIBIT - BPF_FIB_LKUP_RET_NOT_FWDED = C.BPF_FIB_LKUP_RET_NOT_FWDED - BPF_FIB_LKUP_RET_FWD_DISABLED = C.BPF_FIB_LKUP_RET_FWD_DISABLED - 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_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 - BPF_FD_TYPE_KRETPROBE = C.BPF_FD_TYPE_KRETPROBE - BPF_FD_TYPE_UPROBE = C.BPF_FD_TYPE_UPROBE - BPF_FD_TYPE_URETPROBE = C.BPF_FD_TYPE_URETPROBE + BPF_REG_0 = C.BPF_REG_0 + BPF_REG_1 = C.BPF_REG_1 + BPF_REG_2 = C.BPF_REG_2 + BPF_REG_3 = C.BPF_REG_3 + BPF_REG_4 = C.BPF_REG_4 + BPF_REG_5 = C.BPF_REG_5 + BPF_REG_6 = C.BPF_REG_6 + BPF_REG_7 = C.BPF_REG_7 + BPF_REG_8 = C.BPF_REG_8 + BPF_REG_9 = C.BPF_REG_9 + BPF_REG_10 = C.BPF_REG_10 + 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 + BPF_MAP_DELETE_ELEM = C.BPF_MAP_DELETE_ELEM + BPF_MAP_GET_NEXT_KEY = C.BPF_MAP_GET_NEXT_KEY + BPF_PROG_LOAD = C.BPF_PROG_LOAD + BPF_OBJ_PIN = C.BPF_OBJ_PIN + BPF_OBJ_GET = C.BPF_OBJ_GET + 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_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 + BPF_MAP_GET_FD_BY_ID = C.BPF_MAP_GET_FD_BY_ID + BPF_OBJ_GET_INFO_BY_FD = C.BPF_OBJ_GET_INFO_BY_FD + BPF_PROG_QUERY = C.BPF_PROG_QUERY + BPF_RAW_TRACEPOINT_OPEN = C.BPF_RAW_TRACEPOINT_OPEN + BPF_BTF_LOAD = C.BPF_BTF_LOAD + BPF_BTF_GET_FD_BY_ID = C.BPF_BTF_GET_FD_BY_ID + BPF_TASK_FD_QUERY = C.BPF_TASK_FD_QUERY + BPF_MAP_LOOKUP_AND_DELETE_ELEM = C.BPF_MAP_LOOKUP_AND_DELETE_ELEM + BPF_MAP_FREEZE = C.BPF_MAP_FREEZE + BPF_BTF_GET_NEXT_ID = C.BPF_BTF_GET_NEXT_ID + BPF_MAP_TYPE_UNSPEC = C.BPF_MAP_TYPE_UNSPEC + BPF_MAP_TYPE_HASH = C.BPF_MAP_TYPE_HASH + BPF_MAP_TYPE_ARRAY = C.BPF_MAP_TYPE_ARRAY + BPF_MAP_TYPE_PROG_ARRAY = C.BPF_MAP_TYPE_PROG_ARRAY + BPF_MAP_TYPE_PERF_EVENT_ARRAY = C.BPF_MAP_TYPE_PERF_EVENT_ARRAY + BPF_MAP_TYPE_PERCPU_HASH = C.BPF_MAP_TYPE_PERCPU_HASH + BPF_MAP_TYPE_PERCPU_ARRAY = C.BPF_MAP_TYPE_PERCPU_ARRAY + BPF_MAP_TYPE_STACK_TRACE = C.BPF_MAP_TYPE_STACK_TRACE + BPF_MAP_TYPE_CGROUP_ARRAY = C.BPF_MAP_TYPE_CGROUP_ARRAY + BPF_MAP_TYPE_LRU_HASH = C.BPF_MAP_TYPE_LRU_HASH + BPF_MAP_TYPE_LRU_PERCPU_HASH = C.BPF_MAP_TYPE_LRU_PERCPU_HASH + BPF_MAP_TYPE_LPM_TRIE = C.BPF_MAP_TYPE_LPM_TRIE + BPF_MAP_TYPE_ARRAY_OF_MAPS = C.BPF_MAP_TYPE_ARRAY_OF_MAPS + BPF_MAP_TYPE_HASH_OF_MAPS = C.BPF_MAP_TYPE_HASH_OF_MAPS + BPF_MAP_TYPE_DEVMAP = C.BPF_MAP_TYPE_DEVMAP + BPF_MAP_TYPE_SOCKMAP = C.BPF_MAP_TYPE_SOCKMAP + 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 = 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 + BPF_MAP_TYPE_QUEUE = C.BPF_MAP_TYPE_QUEUE + BPF_MAP_TYPE_STACK = C.BPF_MAP_TYPE_STACK + BPF_MAP_TYPE_SK_STORAGE = C.BPF_MAP_TYPE_SK_STORAGE + BPF_MAP_TYPE_DEVMAP_HASH = C.BPF_MAP_TYPE_DEVMAP_HASH + 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 + BPF_PROG_TYPE_SCHED_CLS = C.BPF_PROG_TYPE_SCHED_CLS + BPF_PROG_TYPE_SCHED_ACT = C.BPF_PROG_TYPE_SCHED_ACT + BPF_PROG_TYPE_TRACEPOINT = C.BPF_PROG_TYPE_TRACEPOINT + BPF_PROG_TYPE_XDP = C.BPF_PROG_TYPE_XDP + BPF_PROG_TYPE_PERF_EVENT = C.BPF_PROG_TYPE_PERF_EVENT + BPF_PROG_TYPE_CGROUP_SKB = C.BPF_PROG_TYPE_CGROUP_SKB + BPF_PROG_TYPE_CGROUP_SOCK = C.BPF_PROG_TYPE_CGROUP_SOCK + BPF_PROG_TYPE_LWT_IN = C.BPF_PROG_TYPE_LWT_IN + BPF_PROG_TYPE_LWT_OUT = C.BPF_PROG_TYPE_LWT_OUT + BPF_PROG_TYPE_LWT_XMIT = C.BPF_PROG_TYPE_LWT_XMIT + BPF_PROG_TYPE_SOCK_OPS = C.BPF_PROG_TYPE_SOCK_OPS + BPF_PROG_TYPE_SK_SKB = C.BPF_PROG_TYPE_SK_SKB + BPF_PROG_TYPE_CGROUP_DEVICE = C.BPF_PROG_TYPE_CGROUP_DEVICE + BPF_PROG_TYPE_SK_MSG = C.BPF_PROG_TYPE_SK_MSG + BPF_PROG_TYPE_RAW_TRACEPOINT = C.BPF_PROG_TYPE_RAW_TRACEPOINT + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = C.BPF_PROG_TYPE_CGROUP_SOCK_ADDR + BPF_PROG_TYPE_LWT_SEG6LOCAL = C.BPF_PROG_TYPE_LWT_SEG6LOCAL + BPF_PROG_TYPE_LIRC_MODE2 = C.BPF_PROG_TYPE_LIRC_MODE2 + BPF_PROG_TYPE_SK_REUSEPORT = C.BPF_PROG_TYPE_SK_REUSEPORT + BPF_PROG_TYPE_FLOW_DISSECTOR = C.BPF_PROG_TYPE_FLOW_DISSECTOR + BPF_PROG_TYPE_CGROUP_SYSCTL = C.BPF_PROG_TYPE_CGROUP_SYSCTL + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = C.BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE + BPF_PROG_TYPE_CGROUP_SOCKOPT = C.BPF_PROG_TYPE_CGROUP_SOCKOPT + BPF_PROG_TYPE_TRACING = C.BPF_PROG_TYPE_TRACING + 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 + BPF_CGROUP_SOCK_OPS = C.BPF_CGROUP_SOCK_OPS + BPF_SK_SKB_STREAM_PARSER = C.BPF_SK_SKB_STREAM_PARSER + BPF_SK_SKB_STREAM_VERDICT = C.BPF_SK_SKB_STREAM_VERDICT + BPF_CGROUP_DEVICE = C.BPF_CGROUP_DEVICE + BPF_SK_MSG_VERDICT = C.BPF_SK_MSG_VERDICT + BPF_CGROUP_INET4_BIND = C.BPF_CGROUP_INET4_BIND + BPF_CGROUP_INET6_BIND = C.BPF_CGROUP_INET6_BIND + BPF_CGROUP_INET4_CONNECT = C.BPF_CGROUP_INET4_CONNECT + BPF_CGROUP_INET6_CONNECT = C.BPF_CGROUP_INET6_CONNECT + BPF_CGROUP_INET4_POST_BIND = C.BPF_CGROUP_INET4_POST_BIND + BPF_CGROUP_INET6_POST_BIND = C.BPF_CGROUP_INET6_POST_BIND + BPF_CGROUP_UDP4_SENDMSG = C.BPF_CGROUP_UDP4_SENDMSG + BPF_CGROUP_UDP6_SENDMSG = C.BPF_CGROUP_UDP6_SENDMSG + BPF_LIRC_MODE2 = C.BPF_LIRC_MODE2 + BPF_FLOW_DISSECTOR = C.BPF_FLOW_DISSECTOR + BPF_CGROUP_SYSCTL = C.BPF_CGROUP_SYSCTL + BPF_CGROUP_UDP4_RECVMSG = C.BPF_CGROUP_UDP4_RECVMSG + BPF_CGROUP_UDP6_RECVMSG = C.BPF_CGROUP_UDP6_RECVMSG + BPF_CGROUP_GETSOCKOPT = C.BPF_CGROUP_GETSOCKOPT + BPF_CGROUP_SETSOCKOPT = C.BPF_CGROUP_SETSOCKOPT + BPF_TRACE_RAW_TP = C.BPF_TRACE_RAW_TP + BPF_TRACE_FENTRY = C.BPF_TRACE_FENTRY + BPF_TRACE_FEXIT = C.BPF_TRACE_FEXIT + BPF_STACK_BUILD_ID_EMPTY = C.BPF_STACK_BUILD_ID_EMPTY + BPF_STACK_BUILD_ID_VALID = C.BPF_STACK_BUILD_ID_VALID + BPF_STACK_BUILD_ID_IP = C.BPF_STACK_BUILD_ID_IP + BPF_ADJ_ROOM_NET = C.BPF_ADJ_ROOM_NET + BPF_ADJ_ROOM_MAC = C.BPF_ADJ_ROOM_MAC + BPF_HDR_START_MAC = C.BPF_HDR_START_MAC + BPF_HDR_START_NET = C.BPF_HDR_START_NET + 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_OK = C.BPF_OK + BPF_DROP = C.BPF_DROP + BPF_REDIRECT = C.BPF_REDIRECT + BPF_LWT_REROUTE = C.BPF_LWT_REROUTE + BPF_SOCK_OPS_VOID = C.BPF_SOCK_OPS_VOID + BPF_SOCK_OPS_TIMEOUT_INIT = C.BPF_SOCK_OPS_TIMEOUT_INIT + BPF_SOCK_OPS_RWND_INIT = C.BPF_SOCK_OPS_RWND_INIT + BPF_SOCK_OPS_TCP_CONNECT_CB = C.BPF_SOCK_OPS_TCP_CONNECT_CB + BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = C.BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB + BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = C.BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB + BPF_SOCK_OPS_NEEDS_ECN = C.BPF_SOCK_OPS_NEEDS_ECN + BPF_SOCK_OPS_BASE_RTT = C.BPF_SOCK_OPS_BASE_RTT + BPF_SOCK_OPS_RTO_CB = C.BPF_SOCK_OPS_RTO_CB + BPF_SOCK_OPS_RETRANS_CB = C.BPF_SOCK_OPS_RETRANS_CB + BPF_SOCK_OPS_STATE_CB = C.BPF_SOCK_OPS_STATE_CB + BPF_SOCK_OPS_TCP_LISTEN_CB = C.BPF_SOCK_OPS_TCP_LISTEN_CB + BPF_SOCK_OPS_RTT_CB = C.BPF_SOCK_OPS_RTT_CB + BPF_TCP_ESTABLISHED = C.BPF_TCP_ESTABLISHED + BPF_TCP_SYN_SENT = C.BPF_TCP_SYN_SENT + BPF_TCP_SYN_RECV = C.BPF_TCP_SYN_RECV + BPF_TCP_FIN_WAIT1 = C.BPF_TCP_FIN_WAIT1 + BPF_TCP_FIN_WAIT2 = C.BPF_TCP_FIN_WAIT2 + BPF_TCP_TIME_WAIT = C.BPF_TCP_TIME_WAIT + BPF_TCP_CLOSE = C.BPF_TCP_CLOSE + BPF_TCP_CLOSE_WAIT = C.BPF_TCP_CLOSE_WAIT + BPF_TCP_LAST_ACK = C.BPF_TCP_LAST_ACK + BPF_TCP_LISTEN = C.BPF_TCP_LISTEN + BPF_TCP_CLOSING = C.BPF_TCP_CLOSING + BPF_TCP_NEW_SYN_RECV = C.BPF_TCP_NEW_SYN_RECV + BPF_TCP_MAX_STATES = C.BPF_TCP_MAX_STATES + BPF_FIB_LKUP_RET_SUCCESS = C.BPF_FIB_LKUP_RET_SUCCESS + BPF_FIB_LKUP_RET_BLACKHOLE = C.BPF_FIB_LKUP_RET_BLACKHOLE + BPF_FIB_LKUP_RET_UNREACHABLE = C.BPF_FIB_LKUP_RET_UNREACHABLE + BPF_FIB_LKUP_RET_PROHIBIT = C.BPF_FIB_LKUP_RET_PROHIBIT + BPF_FIB_LKUP_RET_NOT_FWDED = C.BPF_FIB_LKUP_RET_NOT_FWDED + BPF_FIB_LKUP_RET_FWD_DISABLED = C.BPF_FIB_LKUP_RET_FWD_DISABLED + 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_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 + BPF_FD_TYPE_KRETPROBE = C.BPF_FD_TYPE_KRETPROBE + BPF_FD_TYPE_UPROBE = C.BPF_FD_TYPE_UPROBE + BPF_FD_TYPE_URETPROBE = C.BPF_FD_TYPE_URETPROBE ) // generated by: diff --git a/unix/ztypes_linux.go b/unix/ztypes_linux.go index e42e461bd..6c81e7515 100644 --- a/unix/ztypes_linux.go +++ b/unix/ztypes_linux.go @@ -1846,155 +1846,175 @@ const ( ) const ( - BPF_REG_0 = 0x0 - BPF_REG_1 = 0x1 - BPF_REG_2 = 0x2 - BPF_REG_3 = 0x3 - BPF_REG_4 = 0x4 - BPF_REG_5 = 0x5 - BPF_REG_6 = 0x6 - BPF_REG_7 = 0x7 - BPF_REG_8 = 0x8 - BPF_REG_9 = 0x9 - BPF_REG_10 = 0xa - BPF_MAP_CREATE = 0x0 - BPF_MAP_LOOKUP_ELEM = 0x1 - BPF_MAP_UPDATE_ELEM = 0x2 - BPF_MAP_DELETE_ELEM = 0x3 - BPF_MAP_GET_NEXT_KEY = 0x4 - BPF_PROG_LOAD = 0x5 - BPF_OBJ_PIN = 0x6 - BPF_OBJ_GET = 0x7 - BPF_PROG_ATTACH = 0x8 - BPF_PROG_DETACH = 0x9 - BPF_PROG_TEST_RUN = 0xa - BPF_PROG_GET_NEXT_ID = 0xb - BPF_MAP_GET_NEXT_ID = 0xc - BPF_PROG_GET_FD_BY_ID = 0xd - BPF_MAP_GET_FD_BY_ID = 0xe - BPF_OBJ_GET_INFO_BY_FD = 0xf - BPF_PROG_QUERY = 0x10 - BPF_RAW_TRACEPOINT_OPEN = 0x11 - BPF_BTF_LOAD = 0x12 - BPF_BTF_GET_FD_BY_ID = 0x13 - BPF_TASK_FD_QUERY = 0x14 - BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 - BPF_MAP_TYPE_UNSPEC = 0x0 - BPF_MAP_TYPE_HASH = 0x1 - BPF_MAP_TYPE_ARRAY = 0x2 - BPF_MAP_TYPE_PROG_ARRAY = 0x3 - BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 - BPF_MAP_TYPE_PERCPU_HASH = 0x5 - BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 - BPF_MAP_TYPE_STACK_TRACE = 0x7 - BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 - BPF_MAP_TYPE_LRU_HASH = 0x9 - BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa - BPF_MAP_TYPE_LPM_TRIE = 0xb - BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc - BPF_MAP_TYPE_HASH_OF_MAPS = 0xd - BPF_MAP_TYPE_DEVMAP = 0xe - BPF_MAP_TYPE_SOCKMAP = 0xf - BPF_MAP_TYPE_CPUMAP = 0x10 - BPF_MAP_TYPE_XSKMAP = 0x11 - BPF_MAP_TYPE_SOCKHASH = 0x12 - BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 - BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 - BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 - BPF_MAP_TYPE_QUEUE = 0x16 - BPF_MAP_TYPE_STACK = 0x17 - BPF_PROG_TYPE_UNSPEC = 0x0 - BPF_PROG_TYPE_SOCKET_FILTER = 0x1 - BPF_PROG_TYPE_KPROBE = 0x2 - BPF_PROG_TYPE_SCHED_CLS = 0x3 - BPF_PROG_TYPE_SCHED_ACT = 0x4 - BPF_PROG_TYPE_TRACEPOINT = 0x5 - BPF_PROG_TYPE_XDP = 0x6 - BPF_PROG_TYPE_PERF_EVENT = 0x7 - BPF_PROG_TYPE_CGROUP_SKB = 0x8 - BPF_PROG_TYPE_CGROUP_SOCK = 0x9 - BPF_PROG_TYPE_LWT_IN = 0xa - BPF_PROG_TYPE_LWT_OUT = 0xb - BPF_PROG_TYPE_LWT_XMIT = 0xc - BPF_PROG_TYPE_SOCK_OPS = 0xd - BPF_PROG_TYPE_SK_SKB = 0xe - BPF_PROG_TYPE_CGROUP_DEVICE = 0xf - BPF_PROG_TYPE_SK_MSG = 0x10 - BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 - BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 - BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 - BPF_PROG_TYPE_LIRC_MODE2 = 0x14 - BPF_PROG_TYPE_SK_REUSEPORT = 0x15 - BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 - BPF_CGROUP_INET_INGRESS = 0x0 - BPF_CGROUP_INET_EGRESS = 0x1 - BPF_CGROUP_INET_SOCK_CREATE = 0x2 - BPF_CGROUP_SOCK_OPS = 0x3 - BPF_SK_SKB_STREAM_PARSER = 0x4 - BPF_SK_SKB_STREAM_VERDICT = 0x5 - BPF_CGROUP_DEVICE = 0x6 - BPF_SK_MSG_VERDICT = 0x7 - BPF_CGROUP_INET4_BIND = 0x8 - BPF_CGROUP_INET6_BIND = 0x9 - BPF_CGROUP_INET4_CONNECT = 0xa - BPF_CGROUP_INET6_CONNECT = 0xb - BPF_CGROUP_INET4_POST_BIND = 0xc - BPF_CGROUP_INET6_POST_BIND = 0xd - BPF_CGROUP_UDP4_SENDMSG = 0xe - BPF_CGROUP_UDP6_SENDMSG = 0xf - BPF_LIRC_MODE2 = 0x10 - BPF_FLOW_DISSECTOR = 0x11 - BPF_STACK_BUILD_ID_EMPTY = 0x0 - BPF_STACK_BUILD_ID_VALID = 0x1 - BPF_STACK_BUILD_ID_IP = 0x2 - BPF_ADJ_ROOM_NET = 0x0 - BPF_HDR_START_MAC = 0x0 - BPF_HDR_START_NET = 0x1 - BPF_LWT_ENCAP_SEG6 = 0x0 - BPF_LWT_ENCAP_SEG6_INLINE = 0x1 - BPF_OK = 0x0 - BPF_DROP = 0x2 - BPF_REDIRECT = 0x7 - BPF_SOCK_OPS_VOID = 0x0 - BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 - BPF_SOCK_OPS_RWND_INIT = 0x2 - BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 - BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 - BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 - BPF_SOCK_OPS_NEEDS_ECN = 0x6 - BPF_SOCK_OPS_BASE_RTT = 0x7 - BPF_SOCK_OPS_RTO_CB = 0x8 - BPF_SOCK_OPS_RETRANS_CB = 0x9 - BPF_SOCK_OPS_STATE_CB = 0xa - BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb - BPF_TCP_ESTABLISHED = 0x1 - BPF_TCP_SYN_SENT = 0x2 - BPF_TCP_SYN_RECV = 0x3 - BPF_TCP_FIN_WAIT1 = 0x4 - BPF_TCP_FIN_WAIT2 = 0x5 - BPF_TCP_TIME_WAIT = 0x6 - BPF_TCP_CLOSE = 0x7 - BPF_TCP_CLOSE_WAIT = 0x8 - BPF_TCP_LAST_ACK = 0x9 - BPF_TCP_LISTEN = 0xa - BPF_TCP_CLOSING = 0xb - BPF_TCP_NEW_SYN_RECV = 0xc - BPF_TCP_MAX_STATES = 0xd - BPF_FIB_LKUP_RET_SUCCESS = 0x0 - BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 - BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 - BPF_FIB_LKUP_RET_PROHIBIT = 0x3 - BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 - BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 - BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 - BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 - BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 - BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 - BPF_FD_TYPE_TRACEPOINT = 0x1 - BPF_FD_TYPE_KPROBE = 0x2 - BPF_FD_TYPE_KRETPROBE = 0x3 - BPF_FD_TYPE_UPROBE = 0x4 - BPF_FD_TYPE_URETPROBE = 0x5 + BPF_REG_0 = 0x0 + BPF_REG_1 = 0x1 + BPF_REG_2 = 0x2 + BPF_REG_3 = 0x3 + BPF_REG_4 = 0x4 + BPF_REG_5 = 0x5 + BPF_REG_6 = 0x6 + BPF_REG_7 = 0x7 + BPF_REG_8 = 0x8 + BPF_REG_9 = 0x9 + BPF_REG_10 = 0xa + BPF_MAP_CREATE = 0x0 + BPF_MAP_LOOKUP_ELEM = 0x1 + BPF_MAP_UPDATE_ELEM = 0x2 + BPF_MAP_DELETE_ELEM = 0x3 + BPF_MAP_GET_NEXT_KEY = 0x4 + BPF_PROG_LOAD = 0x5 + BPF_OBJ_PIN = 0x6 + BPF_OBJ_GET = 0x7 + BPF_PROG_ATTACH = 0x8 + BPF_PROG_DETACH = 0x9 + BPF_PROG_TEST_RUN = 0xa + BPF_PROG_GET_NEXT_ID = 0xb + BPF_MAP_GET_NEXT_ID = 0xc + BPF_PROG_GET_FD_BY_ID = 0xd + BPF_MAP_GET_FD_BY_ID = 0xe + BPF_OBJ_GET_INFO_BY_FD = 0xf + BPF_PROG_QUERY = 0x10 + BPF_RAW_TRACEPOINT_OPEN = 0x11 + BPF_BTF_LOAD = 0x12 + BPF_BTF_GET_FD_BY_ID = 0x13 + BPF_TASK_FD_QUERY = 0x14 + BPF_MAP_LOOKUP_AND_DELETE_ELEM = 0x15 + BPF_MAP_FREEZE = 0x16 + BPF_BTF_GET_NEXT_ID = 0x17 + BPF_MAP_TYPE_UNSPEC = 0x0 + BPF_MAP_TYPE_HASH = 0x1 + BPF_MAP_TYPE_ARRAY = 0x2 + BPF_MAP_TYPE_PROG_ARRAY = 0x3 + BPF_MAP_TYPE_PERF_EVENT_ARRAY = 0x4 + BPF_MAP_TYPE_PERCPU_HASH = 0x5 + BPF_MAP_TYPE_PERCPU_ARRAY = 0x6 + BPF_MAP_TYPE_STACK_TRACE = 0x7 + BPF_MAP_TYPE_CGROUP_ARRAY = 0x8 + BPF_MAP_TYPE_LRU_HASH = 0x9 + BPF_MAP_TYPE_LRU_PERCPU_HASH = 0xa + BPF_MAP_TYPE_LPM_TRIE = 0xb + BPF_MAP_TYPE_ARRAY_OF_MAPS = 0xc + BPF_MAP_TYPE_HASH_OF_MAPS = 0xd + BPF_MAP_TYPE_DEVMAP = 0xe + BPF_MAP_TYPE_SOCKMAP = 0xf + BPF_MAP_TYPE_CPUMAP = 0x10 + BPF_MAP_TYPE_XSKMAP = 0x11 + BPF_MAP_TYPE_SOCKHASH = 0x12 + BPF_MAP_TYPE_CGROUP_STORAGE = 0x13 + BPF_MAP_TYPE_REUSEPORT_SOCKARRAY = 0x14 + BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE = 0x15 + BPF_MAP_TYPE_QUEUE = 0x16 + BPF_MAP_TYPE_STACK = 0x17 + BPF_MAP_TYPE_SK_STORAGE = 0x18 + BPF_MAP_TYPE_DEVMAP_HASH = 0x19 + BPF_PROG_TYPE_UNSPEC = 0x0 + BPF_PROG_TYPE_SOCKET_FILTER = 0x1 + BPF_PROG_TYPE_KPROBE = 0x2 + BPF_PROG_TYPE_SCHED_CLS = 0x3 + BPF_PROG_TYPE_SCHED_ACT = 0x4 + BPF_PROG_TYPE_TRACEPOINT = 0x5 + BPF_PROG_TYPE_XDP = 0x6 + BPF_PROG_TYPE_PERF_EVENT = 0x7 + BPF_PROG_TYPE_CGROUP_SKB = 0x8 + BPF_PROG_TYPE_CGROUP_SOCK = 0x9 + BPF_PROG_TYPE_LWT_IN = 0xa + BPF_PROG_TYPE_LWT_OUT = 0xb + BPF_PROG_TYPE_LWT_XMIT = 0xc + BPF_PROG_TYPE_SOCK_OPS = 0xd + BPF_PROG_TYPE_SK_SKB = 0xe + BPF_PROG_TYPE_CGROUP_DEVICE = 0xf + BPF_PROG_TYPE_SK_MSG = 0x10 + BPF_PROG_TYPE_RAW_TRACEPOINT = 0x11 + BPF_PROG_TYPE_CGROUP_SOCK_ADDR = 0x12 + BPF_PROG_TYPE_LWT_SEG6LOCAL = 0x13 + BPF_PROG_TYPE_LIRC_MODE2 = 0x14 + BPF_PROG_TYPE_SK_REUSEPORT = 0x15 + BPF_PROG_TYPE_FLOW_DISSECTOR = 0x16 + BPF_PROG_TYPE_CGROUP_SYSCTL = 0x17 + BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE = 0x18 + BPF_PROG_TYPE_CGROUP_SOCKOPT = 0x19 + BPF_PROG_TYPE_TRACING = 0x1a + BPF_CGROUP_INET_INGRESS = 0x0 + BPF_CGROUP_INET_EGRESS = 0x1 + BPF_CGROUP_INET_SOCK_CREATE = 0x2 + BPF_CGROUP_SOCK_OPS = 0x3 + BPF_SK_SKB_STREAM_PARSER = 0x4 + BPF_SK_SKB_STREAM_VERDICT = 0x5 + BPF_CGROUP_DEVICE = 0x6 + BPF_SK_MSG_VERDICT = 0x7 + BPF_CGROUP_INET4_BIND = 0x8 + BPF_CGROUP_INET6_BIND = 0x9 + BPF_CGROUP_INET4_CONNECT = 0xa + BPF_CGROUP_INET6_CONNECT = 0xb + BPF_CGROUP_INET4_POST_BIND = 0xc + BPF_CGROUP_INET6_POST_BIND = 0xd + BPF_CGROUP_UDP4_SENDMSG = 0xe + BPF_CGROUP_UDP6_SENDMSG = 0xf + BPF_LIRC_MODE2 = 0x10 + BPF_FLOW_DISSECTOR = 0x11 + BPF_CGROUP_SYSCTL = 0x12 + BPF_CGROUP_UDP4_RECVMSG = 0x13 + BPF_CGROUP_UDP6_RECVMSG = 0x14 + BPF_CGROUP_GETSOCKOPT = 0x15 + BPF_CGROUP_SETSOCKOPT = 0x16 + BPF_TRACE_RAW_TP = 0x17 + BPF_TRACE_FENTRY = 0x18 + BPF_TRACE_FEXIT = 0x19 + BPF_STACK_BUILD_ID_EMPTY = 0x0 + BPF_STACK_BUILD_ID_VALID = 0x1 + BPF_STACK_BUILD_ID_IP = 0x2 + BPF_ADJ_ROOM_NET = 0x0 + BPF_ADJ_ROOM_MAC = 0x1 + BPF_HDR_START_MAC = 0x0 + BPF_HDR_START_NET = 0x1 + BPF_LWT_ENCAP_SEG6 = 0x0 + BPF_LWT_ENCAP_SEG6_INLINE = 0x1 + BPF_LWT_ENCAP_IP = 0x2 + BPF_OK = 0x0 + BPF_DROP = 0x2 + BPF_REDIRECT = 0x7 + BPF_LWT_REROUTE = 0x80 + BPF_SOCK_OPS_VOID = 0x0 + BPF_SOCK_OPS_TIMEOUT_INIT = 0x1 + BPF_SOCK_OPS_RWND_INIT = 0x2 + BPF_SOCK_OPS_TCP_CONNECT_CB = 0x3 + BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB = 0x4 + BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB = 0x5 + BPF_SOCK_OPS_NEEDS_ECN = 0x6 + BPF_SOCK_OPS_BASE_RTT = 0x7 + BPF_SOCK_OPS_RTO_CB = 0x8 + BPF_SOCK_OPS_RETRANS_CB = 0x9 + BPF_SOCK_OPS_STATE_CB = 0xa + BPF_SOCK_OPS_TCP_LISTEN_CB = 0xb + BPF_SOCK_OPS_RTT_CB = 0xc + BPF_TCP_ESTABLISHED = 0x1 + BPF_TCP_SYN_SENT = 0x2 + BPF_TCP_SYN_RECV = 0x3 + BPF_TCP_FIN_WAIT1 = 0x4 + BPF_TCP_FIN_WAIT2 = 0x5 + BPF_TCP_TIME_WAIT = 0x6 + BPF_TCP_CLOSE = 0x7 + BPF_TCP_CLOSE_WAIT = 0x8 + BPF_TCP_LAST_ACK = 0x9 + BPF_TCP_LISTEN = 0xa + BPF_TCP_CLOSING = 0xb + BPF_TCP_NEW_SYN_RECV = 0xc + BPF_TCP_MAX_STATES = 0xd + BPF_FIB_LKUP_RET_SUCCESS = 0x0 + BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 + BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 + BPF_FIB_LKUP_RET_PROHIBIT = 0x3 + BPF_FIB_LKUP_RET_NOT_FWDED = 0x4 + BPF_FIB_LKUP_RET_FWD_DISABLED = 0x5 + BPF_FIB_LKUP_RET_UNSUPP_LWT = 0x6 + BPF_FIB_LKUP_RET_NO_NEIGH = 0x7 + BPF_FIB_LKUP_RET_FRAG_NEEDED = 0x8 + BPF_FD_TYPE_RAW_TRACEPOINT = 0x0 + BPF_FD_TYPE_TRACEPOINT = 0x1 + BPF_FD_TYPE_KPROBE = 0x2 + BPF_FD_TYPE_KRETPROBE = 0x3 + BPF_FD_TYPE_UPROBE = 0x4 + BPF_FD_TYPE_URETPROBE = 0x5 ) const (