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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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