Versions in this module Expand all Collapse all v0 v0.1.0 Jan 24, 2024 Changes in this version + var ErrArrayIndexInvalidField = errors.New("array index invalid field") + var ErrDuplicateFetchArgs = errors.New("duplicate fetch args") + var ErrFieldNotFound = errors.New("field not found") + var ErrFuncParamNotFound = errors.New("function parameter not found") + var ErrIncompatibleFetchArg = errors.New("incompatible fetch arg with probe type") + var ErrMissingFieldBuilders = errors.New("missing field builders from fetch arg") + var ErrMissingFields = errors.New("missing fields") + var ErrMissingSymbolNames = errors.New("missing symbol names") + var ErrSpecKernelNotSupported = errors.New("running kernel does not support btf") + var ErrSymbolNotFound = errors.New("symbol not found in btf spec") + var ErrUnsupportedArch = errors.New("unsupported architecture") + var ErrUnsupportedFuncParamIndex = errors.New("unsupported func parameter index") + var ErrUnsupportedWrapType = errors.New("unsupported wrap type") + func BitFieldTypeMask[T interface{ ... }](mask T) string + func NewFetchArg(argName string, argType string) *fetchArg + type Probe struct + func NewKProbe() *Probe + func NewKRetProbe() *Probe + func (p *Probe) AddFetchArgs(args ...*fetchArg) *Probe + func (p *Probe) GetID() string + func (p *Probe) GetSymbolName() string + func (p *Probe) GetTracingEventFilter() string + func (p *Probe) GetTracingEventProbe() string + func (p *Probe) GetType() ProbeType + func (p *Probe) SetFilter(filter string) *Probe + func (p *Probe) SetRef(ref string) *Probe + type ProbeType uint32 + const ProbeTypeKProbe + const ProbeTypeKRetProbe + type Spec struct + func NewSpecFromKernel() (*Spec, error) + func NewSpecFromPath(path string, opts *SpecOptions) (*Spec, error) + func NewSpecFromReader(rd io.ReaderAt, opts *SpecOptions) (*Spec, error) + func (s *Spec) BuildSymbol(symbol *Symbol) error + func (s *Spec) ContainsSymbol(symbolName string) bool + func (s *Spec) StripAndSave(pathToSave string, symbolsToInclude ...*Symbol) error + type SpecOptions struct + type Symbol struct + func NewSymbol(symbolNames ...string) *Symbol + func NewSymbolWithoutValidation(symbolName string) *Symbol + func (s *Symbol) AddProbes(p ...*Probe) *Symbol + func (s *Symbol) GetProbes() []*Probe + func (s *Symbol) GetSymbolName() string + type Wrap uint32 + const WrapNone + const WrapPointer + const WrapStructPointer