Documentation ¶
Index ¶
- Constants
- Variables
- func GetFuncsByPos(funcs Funcs) map[int][]string
- func HaveBPFLinkKprobeMulti() bool
- func NewOutput(flags *Flags, printSkbMap *ebpf.Map, printStackMap *ebpf.Map, ...) (*output, error)
- type Addr2Name
- type Event
- type FilterCfg
- type Flags
- type Funcs
- type KProbeMaps
- type KProbeMapsWithOutputSKB
- type KProbeObjects
- type KProbePrograms
- type Meta
- type StackData
- type Tuple
Constants ¶
View Source
const ( MaxStackDepth = 50 BackendKprobe = "kprobe" BackendKprobeMulti = "kprobe-multi" )
Variables ¶
View Source
var Version string = "version unknown"
Version is the pwru version and is set at compile time via LDFLAGS-
Functions ¶
func GetFuncsByPos ¶ added in v0.0.7
func HaveBPFLinkKprobeMulti ¶ added in v0.0.7
func HaveBPFLinkKprobeMulti() bool
Very hacky way to check whether multi-link kprobe is supported.
Types ¶
type FilterCfg ¶ added in v0.0.2
type Flags ¶
type Flags struct { ShowVersion bool KernelBTF string FilterNetns string FilterMark uint32 FilterFunc string FilterTrackSkb bool FilterIfname string FilterPcap string OutputTS string OutputMeta bool OutputTuple bool OutputSkb bool OutputStack bool OutputLimitLines uint64 OutputFile string KMods []string AllKMods bool ReadyFile string Backend string }
type KProbeMaps ¶ added in v0.0.8
type KProbeMapsWithOutputSKB ¶ added in v0.0.8
type KProbeMapsWithOutputSKB interface { KProbeMaps GetPrintSkbMap() *ebpf.Map }
type KProbeObjects ¶ added in v0.0.8
type KProbeObjects interface { KProbeMaps KProbePrograms Close() error }
type KProbePrograms ¶ added in v0.0.8
type StackData ¶ added in v0.0.2
type StackData struct {
IPs [MaxStackDepth]uint64
}
Click to show internal directories.
Click to hide internal directories.