tracer

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argument

func Argument(regs *syscall.PtraceRegs, order int) uint64

Types

type RawMsgHdr

type RawMsgHdr struct {
	MsgName       uint64
	LenMsgName    uint32
	MsgIov        uint64
	LenMsgIov     uint64
	MsgControl    uint64
	LenMsgControl uint64
	Flags         int32
}

type RawSockaddrInet4

type RawSockaddrInet4 struct {
	Family uint16
	Port   [2]byte
	Addr   [4]byte /* in_addr */
	Zero   [8]uint8
}

RawSockaddrInet4 is a bit different from syscall.RawSockaddrInet4 that Port should be encoded by BigEndian.

type RawSockaddrInet6

type RawSockaddrInet6 struct {
	Family   uint16
	Port     [2]byte
	Flowinfo [4]byte
	Addr     [16]byte /* in6_addr */
	Scope_id [4]byte
}

RawSockaddrInet6 is a bit different from syscall.RawSockaddrInet6 that fields except Family should be encoded by BigEndian.

type SocketMetadata

type SocketMetadata struct {
	Family   int
	Type     int
	Protocol int
}

type Storehouse

type Storehouse map[int]map[int]interface{}

func MakeStorehouse

func MakeStorehouse() Storehouse

func (Storehouse) Get

func (s Storehouse) Get(pid int, syscallNumber int) (v interface{}, ok bool)

func (Storehouse) Remove

func (t Storehouse) Remove(pid int, syscallNumber int)

func (Storehouse) RemoveAll

func (t Storehouse) RemoveAll(pid int)

func (Storehouse) Save

func (t Storehouse) Save(pid int, syscallNumber int, v interface{})

type Tracer

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

Tracer is not thread-safe.

func New

func New(ctx context.Context, name string, argv []string, attr *os.ProcAttr, dialer *dialer.Dialer, ignoreUDP bool, logger *logrus.Logger) (*Tracer, error)

func (*Tracer) Wait

func (t *Tracer) Wait() (exitCode int, err error)

Jump to

Keyboard shortcuts

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