diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-05 10:46:34 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-05 10:46:34 +0200 |
| commit | 4fc47026945ebec3fc81d0c897547670034cfb58 (patch) | |
| tree | 11dcd72219d389aebffaaa593b13d4f2caeadf27 /prog/encodingexec.go | |
| parent | 5db39ab95395b60c5629a84812086f720adc9ccf (diff) | |
prog: dot-import sys
In preparation for moving sys types to prog to reduce later diffs.
Diffstat (limited to 'prog/encodingexec.go')
| -rw-r--r-- | prog/encodingexec.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prog/encodingexec.go b/prog/encodingexec.go index eff82ff53..d50e4f3be 100644 --- a/prog/encodingexec.go +++ b/prog/encodingexec.go @@ -10,7 +10,7 @@ import ( "fmt" "sort" - "github.com/google/syzkaller/sys" + . "github.com/google/syzkaller/sys" ) const ( @@ -110,7 +110,7 @@ func (p *Prog) SerializeForExec(buffer []byte, pid int) error { if a1, ok := arg1.(*DataArg); ok && len(a1.Data) == 0 { return } - if !sys.IsPad(arg1.Type()) && arg1.Type().Dir() != sys.DirOut { + if !IsPad(arg1.Type()) && arg1.Type().Dir() != DirOut { w.write(ExecInstrCopyin) w.write(physicalAddr(arg) + offset) w.writeArg(arg1, pid, csumMap) @@ -129,7 +129,7 @@ func (p *Prog) SerializeForExec(buffer []byte, pid int) error { sort.Sort(ByPhysicalAddr{Args: csumArgs, Context: w}) for i := len(csumArgs) - 1; i >= 0; i-- { arg := csumArgs[i] - if _, ok := arg.Type().(*sys.CsumType); !ok { + if _, ok := arg.Type().(*CsumType); !ok { panic("csum arg is not csum type") } w.write(ExecInstrCopyin) |
