diff options
| author | Taras Madan <tarasmadan@google.com> | 2021-12-16 14:09:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-16 14:09:48 +0100 |
| commit | 8dd6a5e3524be635d738d091a2eab895d47da723 (patch) | |
| tree | b1f0ebd9b1e76ccfa364d1548e2bf0028434d4b6 /pkg | |
| parent | 572bcb406b5d48ce06b3becd1ac9463d0a54329b (diff) | |
syzkaller: remove RPC prefix from rpctypes (#2929)
There is no need to use RPC prefix. It is already a part of the element path.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/rpctype/rpctype.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/rpctype/rpctype.go b/pkg/rpctype/rpctype.go index 35aa75307..f83eac3b3 100644 --- a/pkg/rpctype/rpctype.go +++ b/pkg/rpctype/rpctype.go @@ -11,21 +11,21 @@ import ( "github.com/google/syzkaller/pkg/signal" ) -type RPCInput struct { +type Input struct { Call string Prog []byte Signal signal.Serial Cover []uint32 } -type RPCCandidate struct { +type Candidate struct { Prog []byte Minimized bool Smashed bool } -type RPCProg struct { - Prog []byte +type Prog struct { + Bytes []byte ProgIdx int RunIdx int } @@ -63,7 +63,7 @@ type SyscallReason struct { type NewInputArgs struct { Name string - RPCInput + Input } type PollArgs struct { @@ -74,8 +74,8 @@ type PollArgs struct { } type PollRes struct { - Candidates []RPCCandidate - NewInputs []RPCInput + Candidates []Candidate + NewInputs []Input MaxSignal signal.Serial } @@ -121,8 +121,8 @@ type NextExchangeArgs struct { // NextExchaneRes contains the data passed from server to client namely // programs to execute on the VM. type NextExchangeRes struct { - // RPCProg contains the serialized program that will be sent to the client. - RPCProg + // Prog contains the serialized program that will be sent to the client. + Prog } type HubConnectArgs struct { |
