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/gen/amd64.go | |
| parent | 12b38f22c18c6109a5cc1c0238d015eef121b9b7 (diff) | |
sys/linux: add additional constants for trace2syz to bpf
Fixes #783
Diffstat (limited to 'sys/linux/gen/amd64.go')
| -rw-r--r-- | sys/linux/gen/amd64.go | 65 |
1 files changed, 57 insertions, 8 deletions
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" |
