diff options
| author | Shankara Pailoor <shankarapailoor@gmail.com> | 2018-10-29 19:30:58 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-10-30 11:31:42 +0100 |
| commit | 8dbb755a2ec29c46434f3fb35b7bef3aac0c6b3e (patch) | |
| tree | 3f7d87df75a87bb11c6aff27fd5b9f4ee7bed616 /sys/linux | |
| parent | 12b38f22c18c6109a5cc1c0238d015eef121b9b7 (diff) | |
sys/linux: add additional constants for trace2syz to bpf
Fixes #783
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/bpf.txt | 12 | ||||
| -rw-r--r-- | sys/linux/bpf_386.const | 49 | ||||
| -rw-r--r-- | sys/linux/bpf_amd64.const | 49 | ||||
| -rw-r--r-- | sys/linux/bpf_arm.const | 49 | ||||
| -rw-r--r-- | sys/linux/bpf_arm64.const | 49 | ||||
| -rw-r--r-- | sys/linux/bpf_ppc64le.const | 49 | ||||
| -rw-r--r-- | sys/linux/gen/386.go | 65 | ||||
| -rw-r--r-- | sys/linux/gen/amd64.go | 65 | ||||
| -rw-r--r-- | sys/linux/gen/arm.go | 65 | ||||
| -rw-r--r-- | sys/linux/gen/arm64.go | 65 | ||||
| -rw-r--r-- | sys/linux/gen/ppc64le.go | 65 |
11 files changed, 541 insertions, 41 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index ea0de3c82..fad2eba57 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -168,6 +168,14 @@ bpf_insn_alu { bpf_alu_insn = BPF_ALU, BPF_ALU64 bpf_alu_op = BPF_ADD0, BPF_SUB0, BPF_MUL0, BPF_DIV0, BPF_OR0, BPF_AND0, BPF_LSH0, BPF_RSH0, BPF_NEG0, BPF_MOD0, BPF_XOR0, BPF_MOV0, BPF_ARSH0, BPF_END0 +# currently used for trace2syz +_ = BPF_LD, BPF_LDX, BPF_ST, BPF_STX, BPF_ALU, BPF_JMP, BPF_RET, BPF_MISC +_ = BPF_W, BPF_H, BPF_B, BPF_IMM, BPF_ABS, BPF_IND, BPF_MEM, BPF_LEN, BPF_MSH +_ = BPF_ADD, BPF_SUB, BPF_MUL, BPF_DIV, BPF_OR, BPF_AND, BPF_LSH, BPF_RSH, BPF_NEG, BPF_MOD, BPF_XOR, BPF_JA, BPF_JEQ, BPF_JGT, BPF_JGE, BPF_JSET, BPF_K, BPF_X +_ = BPF_ALU64, BPF_DW, BPF_XADD, BPF_MOV, BPF_ARSH +_ = BPF_END, BPF_TO_LE, BPF_TO_BE, BPF_FROM_LE, BPF_FROM_BE +_ = BPF_JNE, BPF_JLT, BPF_JLE, BPF_JSGT, BPF_JSGE, BPF_JSLT, BPF_JSLE, BPF_CALL, BPF_EXIT + define BPF_ADD0 BPF_ADD >> 4 define BPF_SUB0 BPF_SUB >> 4 define BPF_MUL0 BPF_MUL >> 4 @@ -257,7 +265,9 @@ define bpf_insn_load_imm_dw BPF_LD | BPF_DW | BPF_IMM # Slightly prune state space, these values frequently must be 0. bpf_insn_offsets = 0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, -1, -2, -4, -8, -12, -16, -32, -64 bpf_insn_immediates = 0, 1, 4, 8, 16, -1, -4, -16 -bpf_reg = BPF_REG_0, BPF_REG_1, BPF_REG_2, BPF_REG_3, BPF_REG_4, BPF_REG_5, BPF_REG_6, BPF_REG_7, BPF_REG_8, BPF_REG_9, BPF_REG_10 +bpf_reg = BPF_REG_0, BPF_REG_1, BPF_REG_2, BPF_REG_3, BPF_REG_4, BPF_REG_5, BPF_REG_6, BPF_REG_7, BPF_REG_8, BPF_REG_9, BPF_REG_10, __MAX_BPF_REG + +define MAX_BPF_REG __MAX_BPF_REG # TODO: these filenames must be on bpf filesystem bpf_obj_pin_map { diff --git a/sys/linux/bpf_386.const b/sys/linux/bpf_386.const index 4a1fcd0fe..c3bfc299c 100644 --- a/sys/linux/bpf_386.const +++ b/sys/linux/bpf_386.const @@ -1,14 +1,20 @@ # AUTOGENERATED FILE +BPF_ABS = 32 BPF_ABS0 = 1 +BPF_ADD = 0 BPF_ADD0 = 0 BPF_ALU = 4 BPF_ALU64 = 7 +BPF_AND = 80 BPF_AND0 = 5 BPF_ANY = 0 +BPF_ARSH = 192 BPF_ARSH0 = 12 +BPF_B = 16 BPF_B0 = 2 BPF_BTF_GET_FD_BY_ID = 19 BPF_BTF_LOAD = 18 +BPF_CALL = 128 BPF_CALL0 = 8 BPF_CGROUP_DEVICE = 6 BPF_CGROUP_INET4_BIND = 8 @@ -21,11 +27,17 @@ BPF_CGROUP_INET_EGRESS = 1 BPF_CGROUP_INET_INGRESS = 0 BPF_CGROUP_INET_SOCK_CREATE = 2 BPF_CGROUP_SOCK_OPS = 3 +BPF_DIV = 48 BPF_DIV0 = 3 +BPF_DW = 24 BPF_DW0 = 3 +BPF_END = 208 BPF_END0 = 13 BPF_EXIST = 2 +BPF_EXIT = 144 BPF_EXIT0 = 9 +BPF_FROM_BE = 8 +BPF_FROM_LE = 0 BPF_F_ALLOW_MULTI = 2 BPF_F_ALLOW_OVERRIDE = 1 BPF_F_NO_COMMON_LRU = 2 @@ -36,24 +48,42 @@ BPF_F_RDONLY = 8 BPF_F_STACK_BUILD_ID = 32 BPF_F_STRICT_ALIGNMENT = 1 BPF_F_WRONLY = 16 +BPF_H = 8 BPF_H0 = 1 +BPF_IMM = 0 BPF_IMM0 = 0 +BPF_IND = 64 BPF_IND0 = 2 +BPF_JA = 0 BPF_JA0 = 0 +BPF_JEQ = 16 BPF_JEQ0 = 1 +BPF_JGE = 48 BPF_JGE0 = 3 +BPF_JGT = 32 BPF_JGT0 = 2 +BPF_JLE = 176 BPF_JLE0 = 11 +BPF_JLT = 160 BPF_JLT0 = 10 BPF_JMP = 5 +BPF_JNE = 80 BPF_JNE0 = 5 +BPF_JSET = 64 BPF_JSET0 = 4 +BPF_JSGE = 112 BPF_JSGE0 = 7 +BPF_JSGT = 96 BPF_JSGT0 = 6 +BPF_JSLE = 208 BPF_JSLE0 = 13 +BPF_JSLT = 192 BPF_JSLT0 = 12 +BPF_K = 0 BPF_LD = 0 BPF_LDX = 1 +BPF_LEN = 128 +BPF_LSH = 96 BPF_LSH0 = 6 BPF_MAP_CREATE = 0 BPF_MAP_DELETE_ELEM = 3 @@ -78,16 +108,24 @@ BPF_MAP_TYPE_PROG_ARRAY = 3 BPF_MAP_TYPE_SOCKMAP = 15 BPF_MAP_TYPE_STACK_TRACE = 7 BPF_MAP_UPDATE_ELEM = 2 +BPF_MEM = 96 BPF_MEM0 = 3 +BPF_MISC = 7 +BPF_MOD = 144 BPF_MOD0 = 9 +BPF_MOV = 176 BPF_MOV0 = 11 +BPF_MSH = 160 +BPF_MUL = 32 BPF_MUL0 = 2 +BPF_NEG = 128 BPF_NEG0 = 8 BPF_NOEXIST = 1 BPF_OBJ_GET = 7 BPF_OBJ_GET_INFO_BY_FD = 15 BPF_OBJ_NAME_LEN = 16 BPF_OBJ_PIN = 6 +BPF_OR = 64 BPF_OR0 = 4 BPF_PROG_ATTACH = 8 BPF_PROG_DETACH = 9 @@ -127,20 +165,31 @@ BPF_REG_6 = 6 BPF_REG_7 = 7 BPF_REG_8 = 8 BPF_REG_9 = 9 +BPF_RET = 6 +BPF_RSH = 112 BPF_RSH0 = 7 BPF_SK_MSG_VERDICT = 7 BPF_SK_SKB_STREAM_PARSER = 4 BPF_SK_SKB_STREAM_VERDICT = 5 BPF_ST = 2 BPF_STX = 3 +BPF_SUB = 16 BPF_SUB0 = 1 BPF_TASK_FD_QUERY = 20 +BPF_TO_BE = 8 +BPF_TO_LE = 0 +BPF_W = 0 BPF_W0 = 0 +BPF_X = 8 +BPF_XADD = 192 BPF_XADD0 = 6 +BPF_XOR = 160 BPF_XOR0 = 10 BTF_MAGIC = 60319 BTF_VERSION = 1 +MAX_BPF_REG = 11 __BPF_FUNC_MAX_ID = 91 +__MAX_BPF_REG = 11 __NR_bpf = 357 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/bpf_amd64.const b/sys/linux/bpf_amd64.const index 79575c6a8..33fdacb73 100644 --- a/sys/linux/bpf_amd64.const +++ b/sys/linux/bpf_amd64.const @@ -1,14 +1,20 @@ # AUTOGENERATED FILE +BPF_ABS = 32 BPF_ABS0 = 1 +BPF_ADD = 0 BPF_ADD0 = 0 BPF_ALU = 4 BPF_ALU64 = 7 +BPF_AND = 80 BPF_AND0 = 5 BPF_ANY = 0 +BPF_ARSH = 192 BPF_ARSH0 = 12 +BPF_B = 16 BPF_B0 = 2 BPF_BTF_GET_FD_BY_ID = 19 BPF_BTF_LOAD = 18 +BPF_CALL = 128 BPF_CALL0 = 8 BPF_CGROUP_DEVICE = 6 BPF_CGROUP_INET4_BIND = 8 @@ -21,11 +27,17 @@ BPF_CGROUP_INET_EGRESS = 1 BPF_CGROUP_INET_INGRESS = 0 BPF_CGROUP_INET_SOCK_CREATE = 2 BPF_CGROUP_SOCK_OPS = 3 +BPF_DIV = 48 BPF_DIV0 = 3 +BPF_DW = 24 BPF_DW0 = 3 +BPF_END = 208 BPF_END0 = 13 BPF_EXIST = 2 +BPF_EXIT = 144 BPF_EXIT0 = 9 +BPF_FROM_BE = 8 +BPF_FROM_LE = 0 BPF_F_ALLOW_MULTI = 2 BPF_F_ALLOW_OVERRIDE = 1 BPF_F_NO_COMMON_LRU = 2 @@ -36,24 +48,42 @@ BPF_F_RDONLY = 8 BPF_F_STACK_BUILD_ID = 32 BPF_F_STRICT_ALIGNMENT = 1 BPF_F_WRONLY = 16 +BPF_H = 8 BPF_H0 = 1 +BPF_IMM = 0 BPF_IMM0 = 0 +BPF_IND = 64 BPF_IND0 = 2 +BPF_JA = 0 BPF_JA0 = 0 +BPF_JEQ = 16 BPF_JEQ0 = 1 +BPF_JGE = 48 BPF_JGE0 = 3 +BPF_JGT = 32 BPF_JGT0 = 2 +BPF_JLE = 176 BPF_JLE0 = 11 +BPF_JLT = 160 BPF_JLT0 = 10 BPF_JMP = 5 +BPF_JNE = 80 BPF_JNE0 = 5 +BPF_JSET = 64 BPF_JSET0 = 4 +BPF_JSGE = 112 BPF_JSGE0 = 7 +BPF_JSGT = 96 BPF_JSGT0 = 6 +BPF_JSLE = 208 BPF_JSLE0 = 13 +BPF_JSLT = 192 BPF_JSLT0 = 12 +BPF_K = 0 BPF_LD = 0 BPF_LDX = 1 +BPF_LEN = 128 +BPF_LSH = 96 BPF_LSH0 = 6 BPF_MAP_CREATE = 0 BPF_MAP_DELETE_ELEM = 3 @@ -78,16 +108,24 @@ BPF_MAP_TYPE_PROG_ARRAY = 3 BPF_MAP_TYPE_SOCKMAP = 15 BPF_MAP_TYPE_STACK_TRACE = 7 BPF_MAP_UPDATE_ELEM = 2 +BPF_MEM = 96 BPF_MEM0 = 3 +BPF_MISC = 7 +BPF_MOD = 144 BPF_MOD0 = 9 +BPF_MOV = 176 BPF_MOV0 = 11 +BPF_MSH = 160 +BPF_MUL = 32 BPF_MUL0 = 2 +BPF_NEG = 128 BPF_NEG0 = 8 BPF_NOEXIST = 1 BPF_OBJ_GET = 7 BPF_OBJ_GET_INFO_BY_FD = 15 BPF_OBJ_NAME_LEN = 16 BPF_OBJ_PIN = 6 +BPF_OR = 64 BPF_OR0 = 4 BPF_PROG_ATTACH = 8 BPF_PROG_DETACH = 9 @@ -127,20 +165,31 @@ BPF_REG_6 = 6 BPF_REG_7 = 7 BPF_REG_8 = 8 BPF_REG_9 = 9 +BPF_RET = 6 +BPF_RSH = 112 BPF_RSH0 = 7 BPF_SK_MSG_VERDICT = 7 BPF_SK_SKB_STREAM_PARSER = 4 BPF_SK_SKB_STREAM_VERDICT = 5 BPF_ST = 2 BPF_STX = 3 +BPF_SUB = 16 BPF_SUB0 = 1 BPF_TASK_FD_QUERY = 20 +BPF_TO_BE = 8 +BPF_TO_LE = 0 +BPF_W = 0 BPF_W0 = 0 +BPF_X = 8 +BPF_XADD = 192 BPF_XADD0 = 6 +BPF_XOR = 160 BPF_XOR0 = 10 BTF_MAGIC = 60319 BTF_VERSION = 1 +MAX_BPF_REG = 11 __BPF_FUNC_MAX_ID = 91 +__MAX_BPF_REG = 11 __NR_bpf = 321 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/bpf_arm.const b/sys/linux/bpf_arm.const index cc09358af..7423b9d6b 100644 --- a/sys/linux/bpf_arm.const +++ b/sys/linux/bpf_arm.const @@ -1,14 +1,20 @@ # AUTOGENERATED FILE +BPF_ABS = 32 BPF_ABS0 = 1 +BPF_ADD = 0 BPF_ADD0 = 0 BPF_ALU = 4 BPF_ALU64 = 7 +BPF_AND = 80 BPF_AND0 = 5 BPF_ANY = 0 +BPF_ARSH = 192 BPF_ARSH0 = 12 +BPF_B = 16 BPF_B0 = 2 BPF_BTF_GET_FD_BY_ID = 19 BPF_BTF_LOAD = 18 +BPF_CALL = 128 BPF_CALL0 = 8 BPF_CGROUP_DEVICE = 6 BPF_CGROUP_INET4_BIND = 8 @@ -21,11 +27,17 @@ BPF_CGROUP_INET_EGRESS = 1 BPF_CGROUP_INET_INGRESS = 0 BPF_CGROUP_INET_SOCK_CREATE = 2 BPF_CGROUP_SOCK_OPS = 3 +BPF_DIV = 48 BPF_DIV0 = 3 +BPF_DW = 24 BPF_DW0 = 3 +BPF_END = 208 BPF_END0 = 13 BPF_EXIST = 2 +BPF_EXIT = 144 BPF_EXIT0 = 9 +BPF_FROM_BE = 8 +BPF_FROM_LE = 0 BPF_F_ALLOW_MULTI = 2 BPF_F_ALLOW_OVERRIDE = 1 BPF_F_NO_COMMON_LRU = 2 @@ -36,24 +48,42 @@ BPF_F_RDONLY = 8 BPF_F_STACK_BUILD_ID = 32 BPF_F_STRICT_ALIGNMENT = 1 BPF_F_WRONLY = 16 +BPF_H = 8 BPF_H0 = 1 +BPF_IMM = 0 BPF_IMM0 = 0 +BPF_IND = 64 BPF_IND0 = 2 +BPF_JA = 0 BPF_JA0 = 0 +BPF_JEQ = 16 BPF_JEQ0 = 1 +BPF_JGE = 48 BPF_JGE0 = 3 +BPF_JGT = 32 BPF_JGT0 = 2 +BPF_JLE = 176 BPF_JLE0 = 11 +BPF_JLT = 160 BPF_JLT0 = 10 BPF_JMP = 5 +BPF_JNE = 80 BPF_JNE0 = 5 +BPF_JSET = 64 BPF_JSET0 = 4 +BPF_JSGE = 112 BPF_JSGE0 = 7 +BPF_JSGT = 96 BPF_JSGT0 = 6 +BPF_JSLE = 208 BPF_JSLE0 = 13 +BPF_JSLT = 192 BPF_JSLT0 = 12 +BPF_K = 0 BPF_LD = 0 BPF_LDX = 1 +BPF_LEN = 128 +BPF_LSH = 96 BPF_LSH0 = 6 BPF_MAP_CREATE = 0 BPF_MAP_DELETE_ELEM = 3 @@ -78,16 +108,24 @@ BPF_MAP_TYPE_PROG_ARRAY = 3 BPF_MAP_TYPE_SOCKMAP = 15 BPF_MAP_TYPE_STACK_TRACE = 7 BPF_MAP_UPDATE_ELEM = 2 +BPF_MEM = 96 BPF_MEM0 = 3 +BPF_MISC = 7 +BPF_MOD = 144 BPF_MOD0 = 9 +BPF_MOV = 176 BPF_MOV0 = 11 +BPF_MSH = 160 +BPF_MUL = 32 BPF_MUL0 = 2 +BPF_NEG = 128 BPF_NEG0 = 8 BPF_NOEXIST = 1 BPF_OBJ_GET = 7 BPF_OBJ_GET_INFO_BY_FD = 15 BPF_OBJ_NAME_LEN = 16 BPF_OBJ_PIN = 6 +BPF_OR = 64 BPF_OR0 = 4 BPF_PROG_ATTACH = 8 BPF_PROG_DETACH = 9 @@ -127,20 +165,31 @@ BPF_REG_6 = 6 BPF_REG_7 = 7 BPF_REG_8 = 8 BPF_REG_9 = 9 +BPF_RET = 6 +BPF_RSH = 112 BPF_RSH0 = 7 BPF_SK_MSG_VERDICT = 7 BPF_SK_SKB_STREAM_PARSER = 4 BPF_SK_SKB_STREAM_VERDICT = 5 BPF_ST = 2 BPF_STX = 3 +BPF_SUB = 16 BPF_SUB0 = 1 BPF_TASK_FD_QUERY = 20 +BPF_TO_BE = 8 +BPF_TO_LE = 0 +BPF_W = 0 BPF_W0 = 0 +BPF_X = 8 +BPF_XADD = 192 BPF_XADD0 = 6 +BPF_XOR = 160 BPF_XOR0 = 10 BTF_MAGIC = 60319 BTF_VERSION = 1 +MAX_BPF_REG = 11 __BPF_FUNC_MAX_ID = 91 +__MAX_BPF_REG = 11 __NR_bpf = 386 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/bpf_arm64.const b/sys/linux/bpf_arm64.const index 2abe42de6..478074cc4 100644 --- a/sys/linux/bpf_arm64.const +++ b/sys/linux/bpf_arm64.const @@ -1,14 +1,20 @@ # AUTOGENERATED FILE +BPF_ABS = 32 BPF_ABS0 = 1 +BPF_ADD = 0 BPF_ADD0 = 0 BPF_ALU = 4 BPF_ALU64 = 7 +BPF_AND = 80 BPF_AND0 = 5 BPF_ANY = 0 +BPF_ARSH = 192 BPF_ARSH0 = 12 +BPF_B = 16 BPF_B0 = 2 BPF_BTF_GET_FD_BY_ID = 19 BPF_BTF_LOAD = 18 +BPF_CALL = 128 BPF_CALL0 = 8 BPF_CGROUP_DEVICE = 6 BPF_CGROUP_INET4_BIND = 8 @@ -21,11 +27,17 @@ BPF_CGROUP_INET_EGRESS = 1 BPF_CGROUP_INET_INGRESS = 0 BPF_CGROUP_INET_SOCK_CREATE = 2 BPF_CGROUP_SOCK_OPS = 3 +BPF_DIV = 48 BPF_DIV0 = 3 +BPF_DW = 24 BPF_DW0 = 3 +BPF_END = 208 BPF_END0 = 13 BPF_EXIST = 2 +BPF_EXIT = 144 BPF_EXIT0 = 9 +BPF_FROM_BE = 8 +BPF_FROM_LE = 0 BPF_F_ALLOW_MULTI = 2 BPF_F_ALLOW_OVERRIDE = 1 BPF_F_NO_COMMON_LRU = 2 @@ -36,24 +48,42 @@ BPF_F_RDONLY = 8 BPF_F_STACK_BUILD_ID = 32 BPF_F_STRICT_ALIGNMENT = 1 BPF_F_WRONLY = 16 +BPF_H = 8 BPF_H0 = 1 +BPF_IMM = 0 BPF_IMM0 = 0 +BPF_IND = 64 BPF_IND0 = 2 +BPF_JA = 0 BPF_JA0 = 0 +BPF_JEQ = 16 BPF_JEQ0 = 1 +BPF_JGE = 48 BPF_JGE0 = 3 +BPF_JGT = 32 BPF_JGT0 = 2 +BPF_JLE = 176 BPF_JLE0 = 11 +BPF_JLT = 160 BPF_JLT0 = 10 BPF_JMP = 5 +BPF_JNE = 80 BPF_JNE0 = 5 +BPF_JSET = 64 BPF_JSET0 = 4 +BPF_JSGE = 112 BPF_JSGE0 = 7 +BPF_JSGT = 96 BPF_JSGT0 = 6 +BPF_JSLE = 208 BPF_JSLE0 = 13 +BPF_JSLT = 192 BPF_JSLT0 = 12 +BPF_K = 0 BPF_LD = 0 BPF_LDX = 1 +BPF_LEN = 128 +BPF_LSH = 96 BPF_LSH0 = 6 BPF_MAP_CREATE = 0 BPF_MAP_DELETE_ELEM = 3 @@ -78,16 +108,24 @@ BPF_MAP_TYPE_PROG_ARRAY = 3 BPF_MAP_TYPE_SOCKMAP = 15 BPF_MAP_TYPE_STACK_TRACE = 7 BPF_MAP_UPDATE_ELEM = 2 +BPF_MEM = 96 BPF_MEM0 = 3 +BPF_MISC = 7 +BPF_MOD = 144 BPF_MOD0 = 9 +BPF_MOV = 176 BPF_MOV0 = 11 +BPF_MSH = 160 +BPF_MUL = 32 BPF_MUL0 = 2 +BPF_NEG = 128 BPF_NEG0 = 8 BPF_NOEXIST = 1 BPF_OBJ_GET = 7 BPF_OBJ_GET_INFO_BY_FD = 15 BPF_OBJ_NAME_LEN = 16 BPF_OBJ_PIN = 6 +BPF_OR = 64 BPF_OR0 = 4 BPF_PROG_ATTACH = 8 BPF_PROG_DETACH = 9 @@ -127,20 +165,31 @@ BPF_REG_6 = 6 BPF_REG_7 = 7 BPF_REG_8 = 8 BPF_REG_9 = 9 +BPF_RET = 6 +BPF_RSH = 112 BPF_RSH0 = 7 BPF_SK_MSG_VERDICT = 7 BPF_SK_SKB_STREAM_PARSER = 4 BPF_SK_SKB_STREAM_VERDICT = 5 BPF_ST = 2 BPF_STX = 3 +BPF_SUB = 16 BPF_SUB0 = 1 BPF_TASK_FD_QUERY = 20 +BPF_TO_BE = 8 +BPF_TO_LE = 0 +BPF_W = 0 BPF_W0 = 0 +BPF_X = 8 +BPF_XADD = 192 BPF_XADD0 = 6 +BPF_XOR = 160 BPF_XOR0 = 10 BTF_MAGIC = 60319 BTF_VERSION = 1 +MAX_BPF_REG = 11 __BPF_FUNC_MAX_ID = 91 +__MAX_BPF_REG = 11 __NR_bpf = 280 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/bpf_ppc64le.const b/sys/linux/bpf_ppc64le.const index 57c7807be..31c9b8121 100644 --- a/sys/linux/bpf_ppc64le.const +++ b/sys/linux/bpf_ppc64le.const @@ -1,14 +1,20 @@ # AUTOGENERATED FILE +BPF_ABS = 32 BPF_ABS0 = 1 +BPF_ADD = 0 BPF_ADD0 = 0 BPF_ALU = 4 BPF_ALU64 = 7 +BPF_AND = 80 BPF_AND0 = 5 BPF_ANY = 0 +BPF_ARSH = 192 BPF_ARSH0 = 12 +BPF_B = 16 BPF_B0 = 2 BPF_BTF_GET_FD_BY_ID = 19 BPF_BTF_LOAD = 18 +BPF_CALL = 128 BPF_CALL0 = 8 BPF_CGROUP_DEVICE = 6 BPF_CGROUP_INET4_BIND = 8 @@ -21,11 +27,17 @@ BPF_CGROUP_INET_EGRESS = 1 BPF_CGROUP_INET_INGRESS = 0 BPF_CGROUP_INET_SOCK_CREATE = 2 BPF_CGROUP_SOCK_OPS = 3 +BPF_DIV = 48 BPF_DIV0 = 3 +BPF_DW = 24 BPF_DW0 = 3 +BPF_END = 208 BPF_END0 = 13 BPF_EXIST = 2 +BPF_EXIT = 144 BPF_EXIT0 = 9 +BPF_FROM_BE = 8 +BPF_FROM_LE = 0 BPF_F_ALLOW_MULTI = 2 BPF_F_ALLOW_OVERRIDE = 1 BPF_F_NO_COMMON_LRU = 2 @@ -36,24 +48,42 @@ BPF_F_RDONLY = 8 BPF_F_STACK_BUILD_ID = 32 BPF_F_STRICT_ALIGNMENT = 1 BPF_F_WRONLY = 16 +BPF_H = 8 BPF_H0 = 1 +BPF_IMM = 0 BPF_IMM0 = 0 +BPF_IND = 64 BPF_IND0 = 2 +BPF_JA = 0 BPF_JA0 = 0 +BPF_JEQ = 16 BPF_JEQ0 = 1 +BPF_JGE = 48 BPF_JGE0 = 3 +BPF_JGT = 32 BPF_JGT0 = 2 +BPF_JLE = 176 BPF_JLE0 = 11 +BPF_JLT = 160 BPF_JLT0 = 10 BPF_JMP = 5 +BPF_JNE = 80 BPF_JNE0 = 5 +BPF_JSET = 64 BPF_JSET0 = 4 +BPF_JSGE = 112 BPF_JSGE0 = 7 +BPF_JSGT = 96 BPF_JSGT0 = 6 +BPF_JSLE = 208 BPF_JSLE0 = 13 +BPF_JSLT = 192 BPF_JSLT0 = 12 +BPF_K = 0 BPF_LD = 0 BPF_LDX = 1 +BPF_LEN = 128 +BPF_LSH = 96 BPF_LSH0 = 6 BPF_MAP_CREATE = 0 BPF_MAP_DELETE_ELEM = 3 @@ -78,16 +108,24 @@ BPF_MAP_TYPE_PROG_ARRAY = 3 BPF_MAP_TYPE_SOCKMAP = 15 BPF_MAP_TYPE_STACK_TRACE = 7 BPF_MAP_UPDATE_ELEM = 2 +BPF_MEM = 96 BPF_MEM0 = 3 +BPF_MISC = 7 +BPF_MOD = 144 BPF_MOD0 = 9 +BPF_MOV = 176 BPF_MOV0 = 11 +BPF_MSH = 160 +BPF_MUL = 32 BPF_MUL0 = 2 +BPF_NEG = 128 BPF_NEG0 = 8 BPF_NOEXIST = 1 BPF_OBJ_GET = 7 BPF_OBJ_GET_INFO_BY_FD = 15 BPF_OBJ_NAME_LEN = 16 BPF_OBJ_PIN = 6 +BPF_OR = 64 BPF_OR0 = 4 BPF_PROG_ATTACH = 8 BPF_PROG_DETACH = 9 @@ -127,20 +165,31 @@ BPF_REG_6 = 6 BPF_REG_7 = 7 BPF_REG_8 = 8 BPF_REG_9 = 9 +BPF_RET = 6 +BPF_RSH = 112 BPF_RSH0 = 7 BPF_SK_MSG_VERDICT = 7 BPF_SK_SKB_STREAM_PARSER = 4 BPF_SK_SKB_STREAM_VERDICT = 5 BPF_ST = 2 BPF_STX = 3 +BPF_SUB = 16 BPF_SUB0 = 1 BPF_TASK_FD_QUERY = 20 +BPF_TO_BE = 8 +BPF_TO_LE = 0 +BPF_W = 0 BPF_W0 = 0 +BPF_X = 8 +BPF_XADD = 192 BPF_XADD0 = 6 +BPF_XOR = 160 BPF_XOR0 = 10 BTF_MAGIC = 60319 BTF_VERSION = 1 +MAX_BPF_REG = 11 __BPF_FUNC_MAX_ID = 91 +__MAX_BPF_REG = 11 __NR_bpf = 361 bpf_call_code = 133 bpf_exit_code = 149 diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index f4674cdf2..ecb98dc89 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -794,8 +794,8 @@ var structDescs_386 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{4, 7}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -832,8 +832,8 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Val: 5}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_jmp_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -841,14 +841,14 @@ var structDescs_386 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_size", FldName: "code_size", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 2, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_mode", FldName: "code_mode", TypeSize: 1}, BitfieldOff: 5, BitfieldLen: 3}, Vals: []uint64{0, 1, 2, 3, 6}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, {Key: StructKey{Name: "bpf_insn_map"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn_map", TypeSize: 16}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 1}}, Val: 24}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "off", TypeSize: 2}}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "imm", TypeSize: 4}}, @@ -35381,16 +35381,22 @@ var consts_386 = []ConstValue{ {Name: "BNEPGETCONNINFO", Value: 2147762899}, {Name: "BNEPGETCONNLIST", Value: 2147762898}, {Name: "BNEPGETSUPPFEAT", Value: 2147762900}, + {Name: "BPF_ABS", Value: 32}, {Name: "BPF_ABS0", Value: 1}, + {Name: "BPF_ADD"}, {Name: "BPF_ADD0"}, {Name: "BPF_ALU", Value: 4}, {Name: "BPF_ALU64", Value: 7}, + {Name: "BPF_AND", Value: 80}, {Name: "BPF_AND0", Value: 5}, {Name: "BPF_ANY"}, + {Name: "BPF_ARSH", Value: 192}, {Name: "BPF_ARSH0", Value: 12}, + {Name: "BPF_B", Value: 16}, {Name: "BPF_B0", Value: 2}, {Name: "BPF_BTF_GET_FD_BY_ID", Value: 19}, {Name: "BPF_BTF_LOAD", Value: 18}, + {Name: "BPF_CALL", Value: 128}, {Name: "BPF_CALL0", Value: 8}, {Name: "BPF_CGROUP_DEVICE", Value: 6}, {Name: "BPF_CGROUP_INET4_BIND", Value: 8}, @@ -35403,11 +35409,17 @@ var consts_386 = []ConstValue{ {Name: "BPF_CGROUP_INET_INGRESS"}, {Name: "BPF_CGROUP_INET_SOCK_CREATE", Value: 2}, {Name: "BPF_CGROUP_SOCK_OPS", Value: 3}, + {Name: "BPF_DIV", Value: 48}, {Name: "BPF_DIV0", Value: 3}, + {Name: "BPF_DW", Value: 24}, {Name: "BPF_DW0", Value: 3}, + {Name: "BPF_END", Value: 208}, {Name: "BPF_END0", Value: 13}, {Name: "BPF_EXIST", Value: 2}, + {Name: "BPF_EXIT", Value: 144}, {Name: "BPF_EXIT0", Value: 9}, + {Name: "BPF_FROM_BE", Value: 8}, + {Name: "BPF_FROM_LE"}, {Name: "BPF_F_ALLOW_MULTI", Value: 2}, {Name: "BPF_F_ALLOW_OVERRIDE", Value: 1}, {Name: "BPF_F_NO_COMMON_LRU", Value: 2}, @@ -35418,24 +35430,42 @@ var consts_386 = []ConstValue{ {Name: "BPF_F_STACK_BUILD_ID", Value: 32}, {Name: "BPF_F_STRICT_ALIGNMENT", Value: 1}, {Name: "BPF_F_WRONLY", Value: 16}, + {Name: "BPF_H", Value: 8}, {Name: "BPF_H0", Value: 1}, + {Name: "BPF_IMM"}, {Name: "BPF_IMM0"}, + {Name: "BPF_IND", Value: 64}, {Name: "BPF_IND0", Value: 2}, + {Name: "BPF_JA"}, {Name: "BPF_JA0"}, + {Name: "BPF_JEQ", Value: 16}, {Name: "BPF_JEQ0", Value: 1}, + {Name: "BPF_JGE", Value: 48}, {Name: "BPF_JGE0", Value: 3}, + {Name: "BPF_JGT", Value: 32}, {Name: "BPF_JGT0", Value: 2}, + {Name: "BPF_JLE", Value: 176}, {Name: "BPF_JLE0", Value: 11}, + {Name: "BPF_JLT", Value: 160}, {Name: "BPF_JLT0", Value: 10}, {Name: "BPF_JMP", Value: 5}, + {Name: "BPF_JNE", Value: 80}, {Name: "BPF_JNE0", Value: 5}, + {Name: "BPF_JSET", Value: 64}, {Name: "BPF_JSET0", Value: 4}, + {Name: "BPF_JSGE", Value: 112}, {Name: "BPF_JSGE0", Value: 7}, + {Name: "BPF_JSGT", Value: 96}, {Name: "BPF_JSGT0", Value: 6}, + {Name: "BPF_JSLE", Value: 208}, {Name: "BPF_JSLE0", Value: 13}, + {Name: "BPF_JSLT", Value: 192}, {Name: "BPF_JSLT0", Value: 12}, + {Name: "BPF_K"}, {Name: "BPF_LD"}, {Name: "BPF_LDX", Value: 1}, + {Name: "BPF_LEN", Value: 128}, + {Name: "BPF_LSH", Value: 96}, {Name: "BPF_LSH0", Value: 6}, {Name: "BPF_MAP_CREATE"}, {Name: "BPF_MAP_DELETE_ELEM", Value: 3}, @@ -35460,16 +35490,24 @@ var consts_386 = []ConstValue{ {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, + {Name: "BPF_MEM", Value: 96}, {Name: "BPF_MEM0", Value: 3}, + {Name: "BPF_MISC", Value: 7}, + {Name: "BPF_MOD", Value: 144}, {Name: "BPF_MOD0", Value: 9}, + {Name: "BPF_MOV", Value: 176}, {Name: "BPF_MOV0", Value: 11}, + {Name: "BPF_MSH", Value: 160}, + {Name: "BPF_MUL", Value: 32}, {Name: "BPF_MUL0", Value: 2}, + {Name: "BPF_NEG", Value: 128}, {Name: "BPF_NEG0", Value: 8}, {Name: "BPF_NOEXIST", Value: 1}, {Name: "BPF_OBJ_GET", Value: 7}, {Name: "BPF_OBJ_GET_INFO_BY_FD", Value: 15}, {Name: "BPF_OBJ_NAME_LEN", Value: 16}, {Name: "BPF_OBJ_PIN", Value: 6}, + {Name: "BPF_OR", Value: 64}, {Name: "BPF_OR0", Value: 4}, {Name: "BPF_PROG_ATTACH", Value: 8}, {Name: "BPF_PROG_DETACH", Value: 9}, @@ -35509,16 +35547,25 @@ var consts_386 = []ConstValue{ {Name: "BPF_REG_7", Value: 7}, {Name: "BPF_REG_8", Value: 8}, {Name: "BPF_REG_9", Value: 9}, + {Name: "BPF_RET", Value: 6}, + {Name: "BPF_RSH", Value: 112}, {Name: "BPF_RSH0", Value: 7}, {Name: "BPF_SK_MSG_VERDICT", Value: 7}, {Name: "BPF_SK_SKB_STREAM_PARSER", Value: 4}, {Name: "BPF_SK_SKB_STREAM_VERDICT", Value: 5}, {Name: "BPF_ST", Value: 2}, {Name: "BPF_STX", Value: 3}, + {Name: "BPF_SUB", Value: 16}, {Name: "BPF_SUB0", Value: 1}, {Name: "BPF_TASK_FD_QUERY", Value: 20}, + {Name: "BPF_TO_BE", Value: 8}, + {Name: "BPF_TO_LE"}, + {Name: "BPF_W"}, {Name: "BPF_W0"}, + {Name: "BPF_X", Value: 8}, + {Name: "BPF_XADD", Value: 192}, {Name: "BPF_XADD0", Value: 6}, + {Name: "BPF_XOR", Value: 160}, {Name: "BPF_XOR0", Value: 10}, {Name: "BRCTL_ADD_BRIDGE", Value: 2}, {Name: "BRCTL_DEL_BRIDGE", Value: 3}, @@ -37747,6 +37794,7 @@ var consts_386 = []ConstValue{ {Name: "MASK_PROTO", Value: 1}, {Name: "MASK_ROUTING", Value: 32}, {Name: "MAXGENRELEN", Value: 32}, + {Name: "MAX_BPF_REG", Value: 11}, {Name: "MAX_HEAP_NAME", Value: 32}, {Name: "MAX_IDLETIMER_LABEL_SIZE", Value: 28}, {Name: "MAX_NUM_QUEUE", Value: 4096}, @@ -41527,6 +41575,7 @@ var consts_386 = []ConstValue{ {Name: "_LINUX_CAPABILITY_VERSION_2", Value: 537333798}, {Name: "_LINUX_CAPABILITY_VERSION_3", Value: 537396514}, {Name: "__BPF_FUNC_MAX_ID", Value: 91}, + {Name: "__MAX_BPF_REG", Value: 11}, {Name: "__NR_accept4", Value: 364}, {Name: "__NR_acct", Value: 51}, {Name: "__NR_add_key", Value: 286}, @@ -41821,4 +41870,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "04e9cbcb38476060a6fa864496ead5a8919f75f6" +const revision_386 = "7fb5c007b3a5752e0b11efe0cb3c008d97e0ab20" diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index fd8321cb2..fa7cc954d 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -802,8 +802,8 @@ var structDescs_amd64 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{4, 7}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -840,8 +840,8 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Val: 5}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_jmp_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -849,14 +849,14 @@ var structDescs_amd64 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_size", FldName: "code_size", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 2, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_mode", FldName: "code_mode", TypeSize: 1}, BitfieldOff: 5, BitfieldLen: 3}, Vals: []uint64{0, 1, 2, 3, 6}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, {Key: StructKey{Name: "bpf_insn_map"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn_map", TypeSize: 16}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 1}}, Val: 24}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "off", TypeSize: 2}}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "imm", TypeSize: 4}}, @@ -36059,16 +36059,22 @@ var consts_amd64 = []ConstValue{ {Name: "BNEPGETCONNINFO", Value: 2147762899}, {Name: "BNEPGETCONNLIST", Value: 2147762898}, {Name: "BNEPGETSUPPFEAT", Value: 2147762900}, + {Name: "BPF_ABS", Value: 32}, {Name: "BPF_ABS0", Value: 1}, + {Name: "BPF_ADD"}, {Name: "BPF_ADD0"}, {Name: "BPF_ALU", Value: 4}, {Name: "BPF_ALU64", Value: 7}, + {Name: "BPF_AND", Value: 80}, {Name: "BPF_AND0", Value: 5}, {Name: "BPF_ANY"}, + {Name: "BPF_ARSH", Value: 192}, {Name: "BPF_ARSH0", Value: 12}, + {Name: "BPF_B", Value: 16}, {Name: "BPF_B0", Value: 2}, {Name: "BPF_BTF_GET_FD_BY_ID", Value: 19}, {Name: "BPF_BTF_LOAD", Value: 18}, + {Name: "BPF_CALL", Value: 128}, {Name: "BPF_CALL0", Value: 8}, {Name: "BPF_CGROUP_DEVICE", Value: 6}, {Name: "BPF_CGROUP_INET4_BIND", Value: 8}, @@ -36081,11 +36087,17 @@ var consts_amd64 = []ConstValue{ {Name: "BPF_CGROUP_INET_INGRESS"}, {Name: "BPF_CGROUP_INET_SOCK_CREATE", Value: 2}, {Name: "BPF_CGROUP_SOCK_OPS", Value: 3}, + {Name: "BPF_DIV", Value: 48}, {Name: "BPF_DIV0", Value: 3}, + {Name: "BPF_DW", Value: 24}, {Name: "BPF_DW0", Value: 3}, + {Name: "BPF_END", Value: 208}, {Name: "BPF_END0", Value: 13}, {Name: "BPF_EXIST", Value: 2}, + {Name: "BPF_EXIT", Value: 144}, {Name: "BPF_EXIT0", Value: 9}, + {Name: "BPF_FROM_BE", Value: 8}, + {Name: "BPF_FROM_LE"}, {Name: "BPF_F_ALLOW_MULTI", Value: 2}, {Name: "BPF_F_ALLOW_OVERRIDE", Value: 1}, {Name: "BPF_F_NO_COMMON_LRU", Value: 2}, @@ -36096,24 +36108,42 @@ var consts_amd64 = []ConstValue{ {Name: "BPF_F_STACK_BUILD_ID", Value: 32}, {Name: "BPF_F_STRICT_ALIGNMENT", Value: 1}, {Name: "BPF_F_WRONLY", Value: 16}, + {Name: "BPF_H", Value: 8}, {Name: "BPF_H0", Value: 1}, + {Name: "BPF_IMM"}, {Name: "BPF_IMM0"}, + {Name: "BPF_IND", Value: 64}, {Name: "BPF_IND0", Value: 2}, + {Name: "BPF_JA"}, {Name: "BPF_JA0"}, + {Name: "BPF_JEQ", Value: 16}, {Name: "BPF_JEQ0", Value: 1}, + {Name: "BPF_JGE", Value: 48}, {Name: "BPF_JGE0", Value: 3}, + {Name: "BPF_JGT", Value: 32}, {Name: "BPF_JGT0", Value: 2}, + {Name: "BPF_JLE", Value: 176}, {Name: "BPF_JLE0", Value: 11}, + {Name: "BPF_JLT", Value: 160}, {Name: "BPF_JLT0", Value: 10}, {Name: "BPF_JMP", Value: 5}, + {Name: "BPF_JNE", Value: 80}, {Name: "BPF_JNE0", Value: 5}, + {Name: "BPF_JSET", Value: 64}, {Name: "BPF_JSET0", Value: 4}, + {Name: "BPF_JSGE", Value: 112}, {Name: "BPF_JSGE0", Value: 7}, + {Name: "BPF_JSGT", Value: 96}, {Name: "BPF_JSGT0", Value: 6}, + {Name: "BPF_JSLE", Value: 208}, {Name: "BPF_JSLE0", Value: 13}, + {Name: "BPF_JSLT", Value: 192}, {Name: "BPF_JSLT0", Value: 12}, + {Name: "BPF_K"}, {Name: "BPF_LD"}, {Name: "BPF_LDX", Value: 1}, + {Name: "BPF_LEN", Value: 128}, + {Name: "BPF_LSH", Value: 96}, {Name: "BPF_LSH0", Value: 6}, {Name: "BPF_MAP_CREATE"}, {Name: "BPF_MAP_DELETE_ELEM", Value: 3}, @@ -36138,16 +36168,24 @@ var consts_amd64 = []ConstValue{ {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, + {Name: "BPF_MEM", Value: 96}, {Name: "BPF_MEM0", Value: 3}, + {Name: "BPF_MISC", Value: 7}, + {Name: "BPF_MOD", Value: 144}, {Name: "BPF_MOD0", Value: 9}, + {Name: "BPF_MOV", Value: 176}, {Name: "BPF_MOV0", Value: 11}, + {Name: "BPF_MSH", Value: 160}, + {Name: "BPF_MUL", Value: 32}, {Name: "BPF_MUL0", Value: 2}, + {Name: "BPF_NEG", Value: 128}, {Name: "BPF_NEG0", Value: 8}, {Name: "BPF_NOEXIST", Value: 1}, {Name: "BPF_OBJ_GET", Value: 7}, {Name: "BPF_OBJ_GET_INFO_BY_FD", Value: 15}, {Name: "BPF_OBJ_NAME_LEN", Value: 16}, {Name: "BPF_OBJ_PIN", Value: 6}, + {Name: "BPF_OR", Value: 64}, {Name: "BPF_OR0", Value: 4}, {Name: "BPF_PROG_ATTACH", Value: 8}, {Name: "BPF_PROG_DETACH", Value: 9}, @@ -36187,16 +36225,25 @@ var consts_amd64 = []ConstValue{ {Name: "BPF_REG_7", Value: 7}, {Name: "BPF_REG_8", Value: 8}, {Name: "BPF_REG_9", Value: 9}, + {Name: "BPF_RET", Value: 6}, + {Name: "BPF_RSH", Value: 112}, {Name: "BPF_RSH0", Value: 7}, {Name: "BPF_SK_MSG_VERDICT", Value: 7}, {Name: "BPF_SK_SKB_STREAM_PARSER", Value: 4}, {Name: "BPF_SK_SKB_STREAM_VERDICT", Value: 5}, {Name: "BPF_ST", Value: 2}, {Name: "BPF_STX", Value: 3}, + {Name: "BPF_SUB", Value: 16}, {Name: "BPF_SUB0", Value: 1}, {Name: "BPF_TASK_FD_QUERY", Value: 20}, + {Name: "BPF_TO_BE", Value: 8}, + {Name: "BPF_TO_LE"}, + {Name: "BPF_W"}, {Name: "BPF_W0"}, + {Name: "BPF_X", Value: 8}, + {Name: "BPF_XADD", Value: 192}, {Name: "BPF_XADD0", Value: 6}, + {Name: "BPF_XOR", Value: 160}, {Name: "BPF_XOR0", Value: 10}, {Name: "BRCTL_ADD_BRIDGE", Value: 2}, {Name: "BRCTL_DEL_BRIDGE", Value: 3}, @@ -38425,6 +38472,7 @@ var consts_amd64 = []ConstValue{ {Name: "MASK_PROTO", Value: 1}, {Name: "MASK_ROUTING", Value: 32}, {Name: "MAXGENRELEN", Value: 32}, + {Name: "MAX_BPF_REG", Value: 11}, {Name: "MAX_HEAP_NAME", Value: 32}, {Name: "MAX_IDLETIMER_LABEL_SIZE", Value: 28}, {Name: "MAX_NUM_QUEUE", Value: 4096}, @@ -42219,6 +42267,7 @@ var consts_amd64 = []ConstValue{ {Name: "_LINUX_CAPABILITY_VERSION_2", Value: 537333798}, {Name: "_LINUX_CAPABILITY_VERSION_3", Value: 537396514}, {Name: "__BPF_FUNC_MAX_ID", Value: 91}, + {Name: "__MAX_BPF_REG", Value: 11}, {Name: "__NR_accept", Value: 43}, {Name: "__NR_accept4", Value: 288}, {Name: "__NR_acct", Value: 163}, @@ -42524,4 +42573,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "9d1f6b4d7780d30f7f54abd8d89b00a6a6aa769c" +const revision_amd64 = "4855e03b654e7feeb28523b32498c4d4d88f192c" diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go index 569720bb7..7e1ca3d58 100644 --- a/sys/linux/gen/arm.go +++ b/sys/linux/gen/arm.go @@ -799,8 +799,8 @@ var structDescs_arm = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{4, 7}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -837,8 +837,8 @@ var structDescs_arm = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Val: 5}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_jmp_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -846,14 +846,14 @@ var structDescs_arm = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_size", FldName: "code_size", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 2, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_mode", FldName: "code_mode", TypeSize: 1}, BitfieldOff: 5, BitfieldLen: 3}, Vals: []uint64{0, 1, 2, 3, 6}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, {Key: StructKey{Name: "bpf_insn_map"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn_map", TypeSize: 16}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 1}}, Val: 24}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "off", TypeSize: 2}}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "imm", TypeSize: 4}}, @@ -35305,16 +35305,22 @@ var consts_arm = []ConstValue{ {Name: "BNEPGETCONNINFO", Value: 2147762899}, {Name: "BNEPGETCONNLIST", Value: 2147762898}, {Name: "BNEPGETSUPPFEAT", Value: 2147762900}, + {Name: "BPF_ABS", Value: 32}, {Name: "BPF_ABS0", Value: 1}, + {Name: "BPF_ADD"}, {Name: "BPF_ADD0"}, {Name: "BPF_ALU", Value: 4}, {Name: "BPF_ALU64", Value: 7}, + {Name: "BPF_AND", Value: 80}, {Name: "BPF_AND0", Value: 5}, {Name: "BPF_ANY"}, + {Name: "BPF_ARSH", Value: 192}, {Name: "BPF_ARSH0", Value: 12}, + {Name: "BPF_B", Value: 16}, {Name: "BPF_B0", Value: 2}, {Name: "BPF_BTF_GET_FD_BY_ID", Value: 19}, {Name: "BPF_BTF_LOAD", Value: 18}, + {Name: "BPF_CALL", Value: 128}, {Name: "BPF_CALL0", Value: 8}, {Name: "BPF_CGROUP_DEVICE", Value: 6}, {Name: "BPF_CGROUP_INET4_BIND", Value: 8}, @@ -35327,11 +35333,17 @@ var consts_arm = []ConstValue{ {Name: "BPF_CGROUP_INET_INGRESS"}, {Name: "BPF_CGROUP_INET_SOCK_CREATE", Value: 2}, {Name: "BPF_CGROUP_SOCK_OPS", Value: 3}, + {Name: "BPF_DIV", Value: 48}, {Name: "BPF_DIV0", Value: 3}, + {Name: "BPF_DW", Value: 24}, {Name: "BPF_DW0", Value: 3}, + {Name: "BPF_END", Value: 208}, {Name: "BPF_END0", Value: 13}, {Name: "BPF_EXIST", Value: 2}, + {Name: "BPF_EXIT", Value: 144}, {Name: "BPF_EXIT0", Value: 9}, + {Name: "BPF_FROM_BE", Value: 8}, + {Name: "BPF_FROM_LE"}, {Name: "BPF_F_ALLOW_MULTI", Value: 2}, {Name: "BPF_F_ALLOW_OVERRIDE", Value: 1}, {Name: "BPF_F_NO_COMMON_LRU", Value: 2}, @@ -35342,24 +35354,42 @@ var consts_arm = []ConstValue{ {Name: "BPF_F_STACK_BUILD_ID", Value: 32}, {Name: "BPF_F_STRICT_ALIGNMENT", Value: 1}, {Name: "BPF_F_WRONLY", Value: 16}, + {Name: "BPF_H", Value: 8}, {Name: "BPF_H0", Value: 1}, + {Name: "BPF_IMM"}, {Name: "BPF_IMM0"}, + {Name: "BPF_IND", Value: 64}, {Name: "BPF_IND0", Value: 2}, + {Name: "BPF_JA"}, {Name: "BPF_JA0"}, + {Name: "BPF_JEQ", Value: 16}, {Name: "BPF_JEQ0", Value: 1}, + {Name: "BPF_JGE", Value: 48}, {Name: "BPF_JGE0", Value: 3}, + {Name: "BPF_JGT", Value: 32}, {Name: "BPF_JGT0", Value: 2}, + {Name: "BPF_JLE", Value: 176}, {Name: "BPF_JLE0", Value: 11}, + {Name: "BPF_JLT", Value: 160}, {Name: "BPF_JLT0", Value: 10}, {Name: "BPF_JMP", Value: 5}, + {Name: "BPF_JNE", Value: 80}, {Name: "BPF_JNE0", Value: 5}, + {Name: "BPF_JSET", Value: 64}, {Name: "BPF_JSET0", Value: 4}, + {Name: "BPF_JSGE", Value: 112}, {Name: "BPF_JSGE0", Value: 7}, + {Name: "BPF_JSGT", Value: 96}, {Name: "BPF_JSGT0", Value: 6}, + {Name: "BPF_JSLE", Value: 208}, {Name: "BPF_JSLE0", Value: 13}, + {Name: "BPF_JSLT", Value: 192}, {Name: "BPF_JSLT0", Value: 12}, + {Name: "BPF_K"}, {Name: "BPF_LD"}, {Name: "BPF_LDX", Value: 1}, + {Name: "BPF_LEN", Value: 128}, + {Name: "BPF_LSH", Value: 96}, {Name: "BPF_LSH0", Value: 6}, {Name: "BPF_MAP_CREATE"}, {Name: "BPF_MAP_DELETE_ELEM", Value: 3}, @@ -35384,16 +35414,24 @@ var consts_arm = []ConstValue{ {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, + {Name: "BPF_MEM", Value: 96}, {Name: "BPF_MEM0", Value: 3}, + {Name: "BPF_MISC", Value: 7}, + {Name: "BPF_MOD", Value: 144}, {Name: "BPF_MOD0", Value: 9}, + {Name: "BPF_MOV", Value: 176}, {Name: "BPF_MOV0", Value: 11}, + {Name: "BPF_MSH", Value: 160}, + {Name: "BPF_MUL", Value: 32}, {Name: "BPF_MUL0", Value: 2}, + {Name: "BPF_NEG", Value: 128}, {Name: "BPF_NEG0", Value: 8}, {Name: "BPF_NOEXIST", Value: 1}, {Name: "BPF_OBJ_GET", Value: 7}, {Name: "BPF_OBJ_GET_INFO_BY_FD", Value: 15}, {Name: "BPF_OBJ_NAME_LEN", Value: 16}, {Name: "BPF_OBJ_PIN", Value: 6}, + {Name: "BPF_OR", Value: 64}, {Name: "BPF_OR0", Value: 4}, {Name: "BPF_PROG_ATTACH", Value: 8}, {Name: "BPF_PROG_DETACH", Value: 9}, @@ -35433,16 +35471,25 @@ var consts_arm = []ConstValue{ {Name: "BPF_REG_7", Value: 7}, {Name: "BPF_REG_8", Value: 8}, {Name: "BPF_REG_9", Value: 9}, + {Name: "BPF_RET", Value: 6}, + {Name: "BPF_RSH", Value: 112}, {Name: "BPF_RSH0", Value: 7}, {Name: "BPF_SK_MSG_VERDICT", Value: 7}, {Name: "BPF_SK_SKB_STREAM_PARSER", Value: 4}, {Name: "BPF_SK_SKB_STREAM_VERDICT", Value: 5}, {Name: "BPF_ST", Value: 2}, {Name: "BPF_STX", Value: 3}, + {Name: "BPF_SUB", Value: 16}, {Name: "BPF_SUB0", Value: 1}, {Name: "BPF_TASK_FD_QUERY", Value: 20}, + {Name: "BPF_TO_BE", Value: 8}, + {Name: "BPF_TO_LE"}, + {Name: "BPF_W"}, {Name: "BPF_W0"}, + {Name: "BPF_X", Value: 8}, + {Name: "BPF_XADD", Value: 192}, {Name: "BPF_XADD0", Value: 6}, + {Name: "BPF_XOR", Value: 160}, {Name: "BPF_XOR0", Value: 10}, {Name: "BRCTL_ADD_BRIDGE", Value: 2}, {Name: "BRCTL_DEL_BRIDGE", Value: 3}, @@ -37634,6 +37681,7 @@ var consts_arm = []ConstValue{ {Name: "MASK_PROTO", Value: 1}, {Name: "MASK_ROUTING", Value: 32}, {Name: "MAXGENRELEN", Value: 32}, + {Name: "MAX_BPF_REG", Value: 11}, {Name: "MAX_HEAP_NAME", Value: 32}, {Name: "MAX_IDLETIMER_LABEL_SIZE", Value: 28}, {Name: "MAX_NUM_QUEUE", Value: 4096}, @@ -41399,6 +41447,7 @@ var consts_arm = []ConstValue{ {Name: "_LINUX_CAPABILITY_VERSION_2", Value: 537333798}, {Name: "_LINUX_CAPABILITY_VERSION_3", Value: 537396514}, {Name: "__BPF_FUNC_MAX_ID", Value: 91}, + {Name: "__MAX_BPF_REG", Value: 11}, {Name: "__NR_accept", Value: 285}, {Name: "__NR_accept4", Value: 366}, {Name: "__NR_acct", Value: 51}, @@ -41692,4 +41741,4 @@ var consts_arm = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm = "291a0ad48303072ab9340f5797cda65be4ff8de2" +const revision_arm = "d4fc4f826d86c86e7c111bd34546f89de47541f1" diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go index d12fa1bf9..6726c5eab 100644 --- a/sys/linux/gen/arm64.go +++ b/sys/linux/gen/arm64.go @@ -802,8 +802,8 @@ var structDescs_arm64 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{4, 7}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -840,8 +840,8 @@ var structDescs_arm64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Val: 5}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_jmp_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -849,14 +849,14 @@ var structDescs_arm64 = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_size", FldName: "code_size", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 2, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_mode", FldName: "code_mode", TypeSize: 1}, BitfieldOff: 5, BitfieldLen: 3}, Vals: []uint64{0, 1, 2, 3, 6}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, {Key: StructKey{Name: "bpf_insn_map"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn_map", TypeSize: 16}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 1}}, Val: 24}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "off", TypeSize: 2}}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "imm", TypeSize: 4}}, @@ -35537,16 +35537,22 @@ var consts_arm64 = []ConstValue{ {Name: "BNEPGETCONNINFO", Value: 2147762899}, {Name: "BNEPGETCONNLIST", Value: 2147762898}, {Name: "BNEPGETSUPPFEAT", Value: 2147762900}, + {Name: "BPF_ABS", Value: 32}, {Name: "BPF_ABS0", Value: 1}, + {Name: "BPF_ADD"}, {Name: "BPF_ADD0"}, {Name: "BPF_ALU", Value: 4}, {Name: "BPF_ALU64", Value: 7}, + {Name: "BPF_AND", Value: 80}, {Name: "BPF_AND0", Value: 5}, {Name: "BPF_ANY"}, + {Name: "BPF_ARSH", Value: 192}, {Name: "BPF_ARSH0", Value: 12}, + {Name: "BPF_B", Value: 16}, {Name: "BPF_B0", Value: 2}, {Name: "BPF_BTF_GET_FD_BY_ID", Value: 19}, {Name: "BPF_BTF_LOAD", Value: 18}, + {Name: "BPF_CALL", Value: 128}, {Name: "BPF_CALL0", Value: 8}, {Name: "BPF_CGROUP_DEVICE", Value: 6}, {Name: "BPF_CGROUP_INET4_BIND", Value: 8}, @@ -35559,11 +35565,17 @@ var consts_arm64 = []ConstValue{ {Name: "BPF_CGROUP_INET_INGRESS"}, {Name: "BPF_CGROUP_INET_SOCK_CREATE", Value: 2}, {Name: "BPF_CGROUP_SOCK_OPS", Value: 3}, + {Name: "BPF_DIV", Value: 48}, {Name: "BPF_DIV0", Value: 3}, + {Name: "BPF_DW", Value: 24}, {Name: "BPF_DW0", Value: 3}, + {Name: "BPF_END", Value: 208}, {Name: "BPF_END0", Value: 13}, {Name: "BPF_EXIST", Value: 2}, + {Name: "BPF_EXIT", Value: 144}, {Name: "BPF_EXIT0", Value: 9}, + {Name: "BPF_FROM_BE", Value: 8}, + {Name: "BPF_FROM_LE"}, {Name: "BPF_F_ALLOW_MULTI", Value: 2}, {Name: "BPF_F_ALLOW_OVERRIDE", Value: 1}, {Name: "BPF_F_NO_COMMON_LRU", Value: 2}, @@ -35574,24 +35586,42 @@ var consts_arm64 = []ConstValue{ {Name: "BPF_F_STACK_BUILD_ID", Value: 32}, {Name: "BPF_F_STRICT_ALIGNMENT", Value: 1}, {Name: "BPF_F_WRONLY", Value: 16}, + {Name: "BPF_H", Value: 8}, {Name: "BPF_H0", Value: 1}, + {Name: "BPF_IMM"}, {Name: "BPF_IMM0"}, + {Name: "BPF_IND", Value: 64}, {Name: "BPF_IND0", Value: 2}, + {Name: "BPF_JA"}, {Name: "BPF_JA0"}, + {Name: "BPF_JEQ", Value: 16}, {Name: "BPF_JEQ0", Value: 1}, + {Name: "BPF_JGE", Value: 48}, {Name: "BPF_JGE0", Value: 3}, + {Name: "BPF_JGT", Value: 32}, {Name: "BPF_JGT0", Value: 2}, + {Name: "BPF_JLE", Value: 176}, {Name: "BPF_JLE0", Value: 11}, + {Name: "BPF_JLT", Value: 160}, {Name: "BPF_JLT0", Value: 10}, {Name: "BPF_JMP", Value: 5}, + {Name: "BPF_JNE", Value: 80}, {Name: "BPF_JNE0", Value: 5}, + {Name: "BPF_JSET", Value: 64}, {Name: "BPF_JSET0", Value: 4}, + {Name: "BPF_JSGE", Value: 112}, {Name: "BPF_JSGE0", Value: 7}, + {Name: "BPF_JSGT", Value: 96}, {Name: "BPF_JSGT0", Value: 6}, + {Name: "BPF_JSLE", Value: 208}, {Name: "BPF_JSLE0", Value: 13}, + {Name: "BPF_JSLT", Value: 192}, {Name: "BPF_JSLT0", Value: 12}, + {Name: "BPF_K"}, {Name: "BPF_LD"}, {Name: "BPF_LDX", Value: 1}, + {Name: "BPF_LEN", Value: 128}, + {Name: "BPF_LSH", Value: 96}, {Name: "BPF_LSH0", Value: 6}, {Name: "BPF_MAP_CREATE"}, {Name: "BPF_MAP_DELETE_ELEM", Value: 3}, @@ -35616,16 +35646,24 @@ var consts_arm64 = []ConstValue{ {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, + {Name: "BPF_MEM", Value: 96}, {Name: "BPF_MEM0", Value: 3}, + {Name: "BPF_MISC", Value: 7}, + {Name: "BPF_MOD", Value: 144}, {Name: "BPF_MOD0", Value: 9}, + {Name: "BPF_MOV", Value: 176}, {Name: "BPF_MOV0", Value: 11}, + {Name: "BPF_MSH", Value: 160}, + {Name: "BPF_MUL", Value: 32}, {Name: "BPF_MUL0", Value: 2}, + {Name: "BPF_NEG", Value: 128}, {Name: "BPF_NEG0", Value: 8}, {Name: "BPF_NOEXIST", Value: 1}, {Name: "BPF_OBJ_GET", Value: 7}, {Name: "BPF_OBJ_GET_INFO_BY_FD", Value: 15}, {Name: "BPF_OBJ_NAME_LEN", Value: 16}, {Name: "BPF_OBJ_PIN", Value: 6}, + {Name: "BPF_OR", Value: 64}, {Name: "BPF_OR0", Value: 4}, {Name: "BPF_PROG_ATTACH", Value: 8}, {Name: "BPF_PROG_DETACH", Value: 9}, @@ -35665,16 +35703,25 @@ var consts_arm64 = []ConstValue{ {Name: "BPF_REG_7", Value: 7}, {Name: "BPF_REG_8", Value: 8}, {Name: "BPF_REG_9", Value: 9}, + {Name: "BPF_RET", Value: 6}, + {Name: "BPF_RSH", Value: 112}, {Name: "BPF_RSH0", Value: 7}, {Name: "BPF_SK_MSG_VERDICT", Value: 7}, {Name: "BPF_SK_SKB_STREAM_PARSER", Value: 4}, {Name: "BPF_SK_SKB_STREAM_VERDICT", Value: 5}, {Name: "BPF_ST", Value: 2}, {Name: "BPF_STX", Value: 3}, + {Name: "BPF_SUB", Value: 16}, {Name: "BPF_SUB0", Value: 1}, {Name: "BPF_TASK_FD_QUERY", Value: 20}, + {Name: "BPF_TO_BE", Value: 8}, + {Name: "BPF_TO_LE"}, + {Name: "BPF_W"}, {Name: "BPF_W0"}, + {Name: "BPF_X", Value: 8}, + {Name: "BPF_XADD", Value: 192}, {Name: "BPF_XADD0", Value: 6}, + {Name: "BPF_XOR", Value: 160}, {Name: "BPF_XOR0", Value: 10}, {Name: "BRCTL_ADD_BRIDGE", Value: 2}, {Name: "BRCTL_DEL_BRIDGE", Value: 3}, @@ -37875,6 +37922,7 @@ var consts_arm64 = []ConstValue{ {Name: "MASK_PROTO", Value: 1}, {Name: "MASK_ROUTING", Value: 32}, {Name: "MAXGENRELEN", Value: 32}, + {Name: "MAX_BPF_REG", Value: 11}, {Name: "MAX_HEAP_NAME", Value: 32}, {Name: "MAX_IDLETIMER_LABEL_SIZE", Value: 28}, {Name: "MAX_NUM_QUEUE", Value: 4096}, @@ -41650,6 +41698,7 @@ var consts_arm64 = []ConstValue{ {Name: "_LINUX_CAPABILITY_VERSION_2", Value: 537333798}, {Name: "_LINUX_CAPABILITY_VERSION_3", Value: 537396514}, {Name: "__BPF_FUNC_MAX_ID", Value: 91}, + {Name: "__MAX_BPF_REG", Value: 11}, {Name: "__NR_accept", Value: 202}, {Name: "__NR_accept4", Value: 242}, {Name: "__NR_acct", Value: 89}, @@ -41914,4 +41963,4 @@ var consts_arm64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_arm64 = "d783c0aea05230af1e61643d9f6aa621d520353a" +const revision_arm64 = "21bc7828df2157390e22c1f23ea4ece340ca4da1" diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go index efcec5948..cc1f40964 100644 --- a/sys/linux/gen/ppc64le.go +++ b/sys/linux/gen/ppc64le.go @@ -793,8 +793,8 @@ var structDescs_ppc64le = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{4, 7}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_alu_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -831,8 +831,8 @@ var structDescs_ppc64le = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Val: 5}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code_s", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 1, BitfieldMdl: true}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_jmp_op", FldName: "code_op", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, @@ -840,14 +840,14 @@ var structDescs_ppc64le = []*KeyedStruct{ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_insn", FldName: "code_class", TypeSize: 1}, BitfieldLen: 3, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_size", FldName: "code_size", TypeSize: 1}, BitfieldOff: 3, BitfieldLen: 2, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_ldst_mode", FldName: "code_mode", TypeSize: 1}, BitfieldOff: 5, BitfieldLen: 3}, Vals: []uint64{0, 1, 2, 3, 6}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_offsets", FldName: "off", TypeSize: 2}}, Vals: []uint64{0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 80, 128, 256, 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551604, 18446744073709551600, 18446744073709551584, 18446744073709551552}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_insn_immediates", FldName: "imm", TypeSize: 4}}, Vals: []uint64{0, 1, 4, 8, 16, 18446744073709551615, 18446744073709551612, 18446744073709551600}}, }}}, {Key: StructKey{Name: "bpf_insn_map"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn_map", TypeSize: 16}, Fields: []Type{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "code", TypeSize: 1}}, Val: 24}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bpf_reg", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}, Vals: []uint64{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}, Val: 1}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "off", TypeSize: 2}}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_bpf_map", FldName: "imm", TypeSize: 4}}, @@ -33932,16 +33932,22 @@ var consts_ppc64le = []ConstValue{ {Name: "BNEPGETCONNINFO", Value: 1074021075}, {Name: "BNEPGETCONNLIST", Value: 1074021074}, {Name: "BNEPGETSUPPFEAT", Value: 1074021076}, + {Name: "BPF_ABS", Value: 32}, {Name: "BPF_ABS0", Value: 1}, + {Name: "BPF_ADD"}, {Name: "BPF_ADD0"}, {Name: "BPF_ALU", Value: 4}, {Name: "BPF_ALU64", Value: 7}, + {Name: "BPF_AND", Value: 80}, {Name: "BPF_AND0", Value: 5}, {Name: "BPF_ANY"}, + {Name: "BPF_ARSH", Value: 192}, {Name: "BPF_ARSH0", Value: 12}, + {Name: "BPF_B", Value: 16}, {Name: "BPF_B0", Value: 2}, {Name: "BPF_BTF_GET_FD_BY_ID", Value: 19}, {Name: "BPF_BTF_LOAD", Value: 18}, + {Name: "BPF_CALL", Value: 128}, {Name: "BPF_CALL0", Value: 8}, {Name: "BPF_CGROUP_DEVICE", Value: 6}, {Name: "BPF_CGROUP_INET4_BIND", Value: 8}, @@ -33954,11 +33960,17 @@ var consts_ppc64le = []ConstValue{ {Name: "BPF_CGROUP_INET_INGRESS"}, {Name: "BPF_CGROUP_INET_SOCK_CREATE", Value: 2}, {Name: "BPF_CGROUP_SOCK_OPS", Value: 3}, + {Name: "BPF_DIV", Value: 48}, {Name: "BPF_DIV0", Value: 3}, + {Name: "BPF_DW", Value: 24}, {Name: "BPF_DW0", Value: 3}, + {Name: "BPF_END", Value: 208}, {Name: "BPF_END0", Value: 13}, {Name: "BPF_EXIST", Value: 2}, + {Name: "BPF_EXIT", Value: 144}, {Name: "BPF_EXIT0", Value: 9}, + {Name: "BPF_FROM_BE", Value: 8}, + {Name: "BPF_FROM_LE"}, {Name: "BPF_F_ALLOW_MULTI", Value: 2}, {Name: "BPF_F_ALLOW_OVERRIDE", Value: 1}, {Name: "BPF_F_NO_COMMON_LRU", Value: 2}, @@ -33969,24 +33981,42 @@ var consts_ppc64le = []ConstValue{ {Name: "BPF_F_STACK_BUILD_ID", Value: 32}, {Name: "BPF_F_STRICT_ALIGNMENT", Value: 1}, {Name: "BPF_F_WRONLY", Value: 16}, + {Name: "BPF_H", Value: 8}, {Name: "BPF_H0", Value: 1}, + {Name: "BPF_IMM"}, {Name: "BPF_IMM0"}, + {Name: "BPF_IND", Value: 64}, {Name: "BPF_IND0", Value: 2}, + {Name: "BPF_JA"}, {Name: "BPF_JA0"}, + {Name: "BPF_JEQ", Value: 16}, {Name: "BPF_JEQ0", Value: 1}, + {Name: "BPF_JGE", Value: 48}, {Name: "BPF_JGE0", Value: 3}, + {Name: "BPF_JGT", Value: 32}, {Name: "BPF_JGT0", Value: 2}, + {Name: "BPF_JLE", Value: 176}, {Name: "BPF_JLE0", Value: 11}, + {Name: "BPF_JLT", Value: 160}, {Name: "BPF_JLT0", Value: 10}, {Name: "BPF_JMP", Value: 5}, + {Name: "BPF_JNE", Value: 80}, {Name: "BPF_JNE0", Value: 5}, + {Name: "BPF_JSET", Value: 64}, {Name: "BPF_JSET0", Value: 4}, + {Name: "BPF_JSGE", Value: 112}, {Name: "BPF_JSGE0", Value: 7}, + {Name: "BPF_JSGT", Value: 96}, {Name: "BPF_JSGT0", Value: 6}, + {Name: "BPF_JSLE", Value: 208}, {Name: "BPF_JSLE0", Value: 13}, + {Name: "BPF_JSLT", Value: 192}, {Name: "BPF_JSLT0", Value: 12}, + {Name: "BPF_K"}, {Name: "BPF_LD"}, {Name: "BPF_LDX", Value: 1}, + {Name: "BPF_LEN", Value: 128}, + {Name: "BPF_LSH", Value: 96}, {Name: "BPF_LSH0", Value: 6}, {Name: "BPF_MAP_CREATE"}, {Name: "BPF_MAP_DELETE_ELEM", Value: 3}, @@ -34011,16 +34041,24 @@ var consts_ppc64le = []ConstValue{ {Name: "BPF_MAP_TYPE_SOCKMAP", Value: 15}, {Name: "BPF_MAP_TYPE_STACK_TRACE", Value: 7}, {Name: "BPF_MAP_UPDATE_ELEM", Value: 2}, + {Name: "BPF_MEM", Value: 96}, {Name: "BPF_MEM0", Value: 3}, + {Name: "BPF_MISC", Value: 7}, + {Name: "BPF_MOD", Value: 144}, {Name: "BPF_MOD0", Value: 9}, + {Name: "BPF_MOV", Value: 176}, {Name: "BPF_MOV0", Value: 11}, + {Name: "BPF_MSH", Value: 160}, + {Name: "BPF_MUL", Value: 32}, {Name: "BPF_MUL0", Value: 2}, + {Name: "BPF_NEG", Value: 128}, {Name: "BPF_NEG0", Value: 8}, {Name: "BPF_NOEXIST", Value: 1}, {Name: "BPF_OBJ_GET", Value: 7}, {Name: "BPF_OBJ_GET_INFO_BY_FD", Value: 15}, {Name: "BPF_OBJ_NAME_LEN", Value: 16}, {Name: "BPF_OBJ_PIN", Value: 6}, + {Name: "BPF_OR", Value: 64}, {Name: "BPF_OR0", Value: 4}, {Name: "BPF_PROG_ATTACH", Value: 8}, {Name: "BPF_PROG_DETACH", Value: 9}, @@ -34060,16 +34098,25 @@ var consts_ppc64le = []ConstValue{ {Name: "BPF_REG_7", Value: 7}, {Name: "BPF_REG_8", Value: 8}, {Name: "BPF_REG_9", Value: 9}, + {Name: "BPF_RET", Value: 6}, + {Name: "BPF_RSH", Value: 112}, {Name: "BPF_RSH0", Value: 7}, {Name: "BPF_SK_MSG_VERDICT", Value: 7}, {Name: "BPF_SK_SKB_STREAM_PARSER", Value: 4}, {Name: "BPF_SK_SKB_STREAM_VERDICT", Value: 5}, {Name: "BPF_ST", Value: 2}, {Name: "BPF_STX", Value: 3}, + {Name: "BPF_SUB", Value: 16}, {Name: "BPF_SUB0", Value: 1}, {Name: "BPF_TASK_FD_QUERY", Value: 20}, + {Name: "BPF_TO_BE", Value: 8}, + {Name: "BPF_TO_LE"}, + {Name: "BPF_W"}, {Name: "BPF_W0"}, + {Name: "BPF_X", Value: 8}, + {Name: "BPF_XADD", Value: 192}, {Name: "BPF_XADD0", Value: 6}, + {Name: "BPF_XOR", Value: 160}, {Name: "BPF_XOR0", Value: 10}, {Name: "BRCTL_ADD_BRIDGE", Value: 2}, {Name: "BRCTL_DEL_BRIDGE", Value: 3}, @@ -36258,6 +36305,7 @@ var consts_ppc64le = []ConstValue{ {Name: "MASK_PROTO", Value: 1}, {Name: "MASK_ROUTING", Value: 32}, {Name: "MAXGENRELEN", Value: 32}, + {Name: "MAX_BPF_REG", Value: 11}, {Name: "MAX_HEAP_NAME", Value: 32}, {Name: "MAX_IDLETIMER_LABEL_SIZE", Value: 28}, {Name: "MAX_NUM_QUEUE", Value: 4096}, @@ -38983,6 +39031,7 @@ var consts_ppc64le = []ConstValue{ {Name: "_LINUX_CAPABILITY_VERSION_2", Value: 537333798}, {Name: "_LINUX_CAPABILITY_VERSION_3", Value: 537396514}, {Name: "__BPF_FUNC_MAX_ID", Value: 91}, + {Name: "__MAX_BPF_REG", Value: 11}, {Name: "__NR_accept", Value: 330}, {Name: "__NR_accept4", Value: 344}, {Name: "__NR_acct", Value: 51}, @@ -39272,4 +39321,4 @@ var consts_ppc64le = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_ppc64le = "2e0a9fa7b9b76c76013cf3aeac7bf322c8f75565" +const revision_ppc64le = "52e6989e12fbe8c2fdee91918789f7916598017f" |
