syzkaller: github.com/google/syzkaller/pkg/rpctype Index | Files

package rpctype

import "github.com/google/syzkaller/pkg/rpctype"

Package rpctype contains types of message passed via net/rpc connections between various parts of the system.

Index

Package Files

rpc.go rpctype.go

func Dial Uses

func Dial(addr string) (net.Conn, error)

func RPCCall Uses

func RPCCall(addr, method string, args, reply interface{}) error

type CheckArgs Uses

type CheckArgs struct {
    Name          string
    Error         string
    EnabledCalls  map[string][]int
    DisabledCalls map[string][]SyscallReason
    Features      *host.Features
}

type ConnectArgs Uses

type ConnectArgs struct {
    Name string
}

type ConnectRes Uses

type ConnectRes struct {
    EnabledCalls     []int
    GitRevision      string
    TargetRevision   string
    AllSandboxes     bool
    CheckResult      *CheckArgs
    MemoryLeakFrames []string
    DataRaceFrames   []string
}

type HubConnectArgs Uses

type HubConnectArgs struct {
    // Client/Key are used for authentication.
    Client string
    Key    string
    // Manager name, must start with Client.
    Manager string
    // Manager has started with an empty corpus and requests whole hub corpus.
    Fresh bool
    // Set of system call names supported by this manager.
    // Used to filter out programs with unsupported calls.
    Calls []string
    // Current manager corpus.
    Corpus [][]byte
}

type HubSyncArgs Uses

type HubSyncArgs struct {
    // see HubConnectArgs.
    Client     string
    Key        string
    Manager    string
    NeedRepros bool
    // Programs added to corpus since last sync or connect.
    Add [][]byte
    // Hashes of programs removed from corpus since last sync or connect.
    Del []string
    // Repros found since last sync.
    Repros [][]byte
}

type HubSyncRes Uses

type HubSyncRes struct {
    // Set of programs from other managers.
    Progs [][]byte
    // Set of repros from other managers.
    Repros [][]byte
    // Number of remaining pending programs,
    // if >0 manager should do sync again.
    More int
}

type NewInputArgs Uses

type NewInputArgs struct {
    Name string
    RPCInput
}

type PollArgs Uses

type PollArgs struct {
    Name           string
    NeedCandidates bool
    MaxSignal      signal.Serial
    Stats          map[string]uint64
}

type PollRes Uses

type PollRes struct {
    Candidates []RPCCandidate
    NewInputs  []RPCInput
    MaxSignal  signal.Serial
}

type RPCCandidate Uses

type RPCCandidate struct {
    Prog      []byte
    Minimized bool
    Smashed   bool
}

type RPCClient Uses

type RPCClient struct {
    // contains filtered or unexported fields
}

func NewRPCClient Uses

func NewRPCClient(addr string) (*RPCClient, error)

func (*RPCClient) Call Uses

func (cli *RPCClient) Call(method string, args, reply interface{}) error

func (*RPCClient) Close Uses

func (cli *RPCClient) Close()

type RPCInput Uses

type RPCInput struct {
    Call   string
    Prog   []byte
    Signal signal.Serial
    Cover  []uint32
}

type RPCServer Uses

type RPCServer struct {
    // contains filtered or unexported fields
}

func NewRPCServer Uses

func NewRPCServer(addr, name string, receiver interface{}) (*RPCServer, error)

func (*RPCServer) Addr Uses

func (serv *RPCServer) Addr() net.Addr

func (*RPCServer) Serve Uses

func (serv *RPCServer) Serve()

type RunTestDoneArgs Uses

type RunTestDoneArgs struct {
    Name   string
    ID     int
    Output []byte
    Info   []*ipc.ProgInfo
    Error  string
}

type RunTestPollReq Uses

type RunTestPollReq struct {
    Name string
}

type RunTestPollRes Uses

type RunTestPollRes struct {
    ID     int
    Bin    []byte
    Prog   []byte
    Cfg    *ipc.Config
    Opts   *ipc.ExecOpts
    Repeat int
}

type SyscallReason Uses

type SyscallReason struct {
    ID     int
    Reason string
}

Package rpctype imports 11 packages (graph) and is imported by 6 packages. Updated 2019-11-05. Refresh now. Tools for package owners.