state

package
v0.0.0-...-89d5bac Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: AGPL-3.0, AGPL-3.0-or-later Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDescriptor

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

type Memory

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

type Rlimits

type Rlimits map[int]*unix.Rlimit

type State

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

func NewState

func NewState(pid int, tasks map[int]*ptrace.TraceTask) (*State, error)

NewState caller must ensure process stopped before getting state

func (*State) CountDirtyPages

func (s *State) CountDirtyPages(memoryName string) (int, error)

func (*State) FdsChanged

func (s *State) FdsChanged() (bool, error)

func (*State) FixupSyscallState

func (s *State) FixupSyscallState() error

func (*State) GetFileDescriptors

func (s *State) GetFileDescriptors() []*FileDescriptor

func (*State) GetRlimits

func (s *State) GetRlimits() Rlimits

func (*State) MemoryChanged

func (s *State) MemoryChanged() (bool, error)

func (*State) MemorySize

func (s *State) MemorySize() int

func (*State) NumMemoryLocationsChanged

func (s *State) NumMemoryLocationsChanged() (bool, error)

func (*State) PC

func (s *State) PC() uint64

func (*State) ProgramBreakChanged

func (s *State) ProgramBreakChanged() (bool, error)

func (*State) RestoreDirtyPages

func (s *State) RestoreDirtyPages() error

func (*State) RestoreProgramBreak

func (s *State) RestoreProgramBreak() error

func (*State) RestoreRegs

func (s *State) RestoreRegs() error

func (*State) SaveWritablePages

func (s *State) SaveWritablePages() error

func (*State) UnmapNewLocations

func (s *State) UnmapNewLocations() error

type TaskRegState

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

Jump to

Keyboard shortcuts

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