Documentation ¶
Index ¶
- Constants
- Variables
- func GetFuncsByPos(funcs Funcs) map[int][]string
- func HaveBPFLinkKprobeMulti() bool
- func HaveBPFLinkTracing() bool
- func NewOutput(flags *Flags, printSkbMap *ebpf.Map, printStackMap *ebpf.Map, ...) (*output, error)
- func TraceTC(prevColl *ebpf.Collection, spec *ebpf.CollectionSpec, ...) (func(), error)
- type Addr2Name
- type Event
- type FilterCfg
- type Flags
- type Funcs
- 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.
func HaveBPFLinkTracing ¶ added in v1.0.4
func HaveBPFLinkTracing() bool
Very hacky way to check whether tracing link is supported.
func TraceTC ¶ added in v1.0.4
func TraceTC(prevColl *ebpf.Collection, spec *ebpf.CollectionSpec, opts *ebpf.CollectionOptions, outputSkb bool, ) (func(), error)
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 FilterTraceTc 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 StackData ¶ added in v0.0.2
type StackData struct {
IPs [MaxStackDepth]uint64
}
Click to show internal directories.
Click to hide internal directories.