service

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(address string) error

Serve serves the tracer service.

Types

type AttachArgs

type AttachArgs struct {
	Pid                    int
	TraceLevel, ParseLevel int
	// This parameter is required because the tracer may not have a chance to set the new trace points
	// after the attached tracee starts running without trace points.
	InitialStartTracePoint uintptr
	Verbose                bool
	GoVersion, ProgramPath string
	FirstModuleDataAddr    uintptr
}

AttachArgs is the input argument of the service method 'Tracer.Attach'

type Tracer

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

Tracer is the wrapper of the actual tracer in tgo/tracer package.

The simple name 'Tracer' is chosen because it becomes a part of the service methods the rpc client uses.

func (*Tracer) AddEndTracePoint

func (t *Tracer) AddEndTracePoint(args uintptr, reply *struct{}) error

AddEndTracePoint adds a new end trace point.

func (*Tracer) AddStartTracePoint

func (t *Tracer) AddStartTracePoint(args uintptr, reply *struct{}) error

AddStartTracePoint adds a new start trace point.

func (*Tracer) Attach

func (t *Tracer) Attach(args AttachArgs, reply *struct{}) error

Attach lets the server attach to the specified process. It does nothing if the server is already attached.

func (*Tracer) Detach

func (t *Tracer) Detach(args struct{}, reply *struct{}) error

Detach lets the server detach from the attached process.

func (*Tracer) Version

func (t *Tracer) Version(args struct{}, reply *int) error

Version returns the service version. The backward compatibility may be broken if the version is not same as the expected one.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL