Documentation ¶
Index ¶
- Constants
- func ExpandSyscallProbes(probe *manager.Probe, flag int, compat ...bool) []*manager.Probe
- func ExpandSyscallProbesSelector(id manager.ProbeIdentificationPair, flag int, compat ...bool) []manager.ProbesSelector
- type Monitor
- func (m *Monitor) GenerateGraph(title string) error
- func (m *Monitor) IsValidHelper(helper string) bool
- func (m *Monitor) ShowMap(section string) error
- func (m *Monitor) ShowProgram(section string, dumpByteCode bool, helper string, mapName string) error
- func (m *Monitor) ShowReport() error
- func (m *Monitor) Start() error
- func (m *Monitor) Stop() error
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 ¶
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 (*Monitor) IsValidHelper ¶
func (*Monitor) ShowMap ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.