procinfo

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcInfo

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

func NewProcessInfo

func NewProcessInfo() (*ProcInfo, error)

NewProcessInfo initializes a new process-tree

func (*ProcInfo) DeleteElement

func (p *ProcInfo) DeleteElement(hostTid int)

func (*ProcInfo) GetElement

func (p *ProcInfo) GetElement(hostTid int) (ProcessCtx, error)

func (*ProcInfo) UpdateElement

func (p *ProcInfo) UpdateElement(hostTid int, ctx ProcessCtx)

type ProcessCtx

type ProcessCtx struct {
	StartTime   int // start time of the thread
	ContainerID string
	Pid         uint32
	Tid         uint32
	Ppid        uint32
	HostTid     uint32
	HostPid     uint32
	HostPpid    uint32
	Uid         uint32
	MntId       uint32
	PidId       uint32
	Comm        string
}

func ParseProcessContext

func ParseProcessContext(ctx []byte, containers *containers.Containers) (ProcessCtx, error)

func (*ProcessCtx) GetEventByProcessCtx

func (ctx *ProcessCtx) GetEventByProcessCtx() trace.Event

Jump to

Keyboard shortcuts

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