diff options
| author | Shankara Pailoor <shankarapailoor@gmail.com> | 2018-11-12 04:10:17 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-11-12 12:41:37 -0800 |
| commit | 4fc13fd6ae51fdf3230dde4f31a32feb4861ca37 (patch) | |
| tree | 9573df26e49576f87287c24478dcb9ff40ce8dcd /sys/linux/gen/386.go | |
| parent | d55a06c0bf91ef78a42958dd71ffa841dae5cf9a (diff) | |
1) making bpf_insn varlen, 2) changing bpf_generic to match the struct definition in linux to make trace2syz generation simpler
Diffstat (limited to 'sys/linux/gen/386.go')
| -rw-r--r-- | sys/linux/gen/386.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go index 447a0d260..aafc6658e 100644 --- a/sys/linux/gen/386.go +++ b/sys/linux/gen/386.go @@ -780,7 +780,7 @@ var structDescs_386 = []*KeyedStruct{ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 4}}, Buf: "info"}, &PtrType{TypeCommon: TypeCommon{TypeName: "ptr64", FldName: "info", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "bpf_prog_info", Dir: 1}}}, }}}, - {Key: StructKey{Name: "bpf_insn"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn", TypeSize: 16}, Fields: []Type{ + {Key: StructKey{Name: "bpf_insn"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn", IsVarlen: true}, Fields: []Type{ &StructType{Key: StructKey{Name: "bpf_insn_generic"}, FldName: "generic"}, &StructType{Key: StructKey{Name: "bpf_insn_ldst"}, FldName: "ldst"}, &StructType{Key: StructKey{Name: "bpf_insn_alu"}, FldName: "alu"}, @@ -813,7 +813,8 @@ var structDescs_386 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "bpf_insn_generic"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "bpf_insn_generic", TypeSize: 8}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "code", TypeSize: 1}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "regs", TypeSize: 1}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "dst", TypeSize: 1}, BitfieldLen: 4, BitfieldMdl: true}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "src", TypeSize: 1}, BitfieldOff: 4, BitfieldLen: 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int16", FldName: "off", TypeSize: 2}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "imm", TypeSize: 4}}}, }}}, @@ -42019,4 +42020,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "d69c26c32ab1efa5ec8fb5120cb6c8932bc3d4e5" +const revision_386 = "71fbeb78059512031b845005efbca319a297c232" |
