From 8dd6a5e3524be635d738d091a2eab895d47da723 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 16 Dec 2021 14:09:48 +0100 Subject: syzkaller: remove RPC prefix from rpctypes (#2929) There is no need to use RPC prefix. It is already a part of the element path. --- pkg/rpctype/rpctype.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'pkg') 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 { -- cgit mrf-deployment