monitor

package
v0.0.0-...-d5876ce Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Entry indicates that the entry kprobe should be expanded
	Entry = 1 << 0
	// Exit indicates that the exit kretprobe should be expanded
	Exit = 1 << 1
	// ExpandTime32 indicates that the _time32 suffix should be added to the provided probe if needed
	ExpandTime32 = 1 << 2

	// EntryAndExit indicates that both the entry kprobe and exit kretprobe should be expanded
	EntryAndExit = Entry | Exit
)
View Source
const (
	// EBPFKitMonitorID is used to identify ebpfkit-monitor's probes
	EBPFKitMonitorID = "ebpfkitMonitor"
)

Variables

This section is empty.

Functions

func ExpandSyscallProbes

func ExpandSyscallProbes(probe *manager.Probe, flag int, compat ...bool) []*manager.Probe

ExpandSyscallProbes returns the list of available hook probes for the syscall func name of the provided probe

func ExpandSyscallProbesSelector

func ExpandSyscallProbesSelector(id manager.ProbeIdentificationPair, flag int, compat ...bool) []manager.ProbesSelector

ExpandSyscallProbesSelector returns the list of a ProbesSelector required to query all the probes available for a syscall

Types

type Monitor

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

Monitor is the main Monitor structure

func NewMonitor

func NewMonitor(options model.EBPFKitOptions) (*Monitor, error)

NewMonitor returns a new Monitor instance

func (*Monitor) GenerateGraph

func (m *Monitor) GenerateGraph(title string) error

func (*Monitor) IsValidHelper

func (m *Monitor) IsValidHelper(helper string) bool

func (*Monitor) ShowMap

func (m *Monitor) ShowMap(section string) error

ShowMap prints information about the provided map section. If no section is provided, all the maps will be displayed.

func (*Monitor) ShowProgram

func (m *Monitor) ShowProgram(section string, dumpByteCode bool, helper string, mapName string) error

ShowProgram prints information about the provided program section. If no section is provided, all the programs will be displayed.

func (*Monitor) ShowReport

func (m *Monitor) ShowReport() error

func (*Monitor) Start

func (m *Monitor) Start() error

func (*Monitor) Stop

func (m *Monitor) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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