Documentation ¶
Index ¶
- Constants
- func AttachKprobe(m *bcc.Module, name string, fnName string)
- func AttachKretprobe(m *bcc.Module, name string, fnName string)
- func AttachTracepoint(m *bcc.Module, name string, fnName string)
- func GetAllHooks(pattern string) ([]string, error)
- func GetFamilyFilter(family string) string
- func GetFilterByParentProcessPidNamespace(rootPid int, pidList []int, reverse bool) (string, error)
- func GetHookFullName(pattern string) (string, error)
- func GetIpv4AndIpv6ReverseFilter() string
- func GetIpv4Filter() string
- func GetIpv6Filter() string
- func GetProtocolFromInt(p int) string
- func GetTcpFlags(f int, reversed bool) string
- func GetValueFromMap(m bcc.Table, key uint32)
- func TracepointExists(category string, event string) bool
- type FamilyFilterGenerator
- type IntFilterGenerator
Constants ¶
View Source
const TraceFs = "/sys/kernel/debug/tracing"
Variables ¶
This section is empty.
Functions ¶
func GetFamilyFilter ¶
func GetHookFullName ¶
GetHookFullName gets the full name for hook point, mostly for C++ symbols.
func GetIpv4AndIpv6ReverseFilter ¶
func GetIpv4AndIpv6ReverseFilter() string
func GetIpv4Filter ¶
func GetIpv4Filter() string
func GetIpv6Filter ¶
func GetIpv6Filter() string
func GetProtocolFromInt ¶
func GetTcpFlags ¶
GetTcpFlags gets TCP flags from combined field
func GetValueFromMap ¶
GetValueFromMap gets value from table for usage record only
func TracepointExists ¶
Types ¶
type FamilyFilterGenerator ¶
type FamilyFilterGenerator struct {
List []string
}
func (FamilyFilterGenerator) Generate ¶
func (fg FamilyFilterGenerator) Generate() string
type IntFilterGenerator ¶
type IntFilterGenerator struct { Name string List []int Action string Reverse bool // skip event if `Reverse` is true }
func (IntFilterGenerator) Generate ¶
func (fg IntFilterGenerator) Generate() string
Generate generate filter statement for BPF program in C code
Click to show internal directories.
Click to hide internal directories.