proc

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BPF_EVENT_PROC_EXEC = iota + 1
	BPF_EVENT_PROC_EXIT
)
View Source
const (
	EVENT_PROC_EXEC = "EVENT_PROC_EXEC"
	EVENT_PROC_EXIT = "EVENT_PROC_EXIT"
)
View Source
const PROC_EVENT = "proc_event"

Variables

This section is empty.

Functions

This section is empty.

Types

type PEvent

type PEvent struct {
	Pid   uint32
	Type_ uint8
	// contains filtered or unexported fields
}

type ProcEvent

type ProcEvent struct {
	Pid   uint32
	Type_ string
}

func (ProcEvent) Type

func (e ProcEvent) Type() string

type ProcEventConversion

type ProcEventConversion uint32

Custom type for the enumeration

func (ProcEventConversion) String

func (e ProcEventConversion) String() string

String representation of the enumeration values

type ProcProg added in v0.5.1

type ProcProg struct {
	ProcEvents        *perf.Reader
	ProcEventsMapSize uint32
	ContainerPidMap   *ebpf.Map // for filtering non-container pids on the node
	// contains filtered or unexported fields
}

func InitProcProg added in v0.5.1

func InitProcProg(conf *ProcProgConfig) *ProcProg

func (*ProcProg) Attach added in v0.5.1

func (pp *ProcProg) Attach()

func (*ProcProg) Close added in v0.5.1

func (pp *ProcProg) Close()

func (*ProcProg) Consume added in v0.5.1

func (pp *ProcProg) Consume(ctx context.Context, ch chan interface{})

func (*ProcProg) InitMaps added in v0.5.1

func (pp *ProcProg) InitMaps()

type ProcProgConfig added in v0.5.1

type ProcProgConfig struct {
	ProcEventsMapSize uint32 // specified in terms of os page size
}

Jump to

Keyboard shortcuts

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