Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBPFCode ¶
GetBPFCode returns BPF program
func ValidateTCPStatus ¶
ValidateTCPStatus validates a TCP status
func ValidateTracepoint ¶
ValidateTracepoint validates a tracepoint
Types ¶
type BPF ¶
type BPF struct {
// contains filtered or unexported fields
}
BPF represents eBPF procedures.
type CGen ¶
type CGen struct {
// contains filtered or unexported fields
}
CGen represents code generator
type DType ¶
type DType uint8
DType represents data type
const ( // IP represents IP data type IP DType = 1 )
type FieldAttrs ¶
type FieldAttrs struct { CType CType DType DType CField string DS string UMath string Math string Func string Filter string Desc string DSNP bool BigEndian bool }
FieldAttrs represents
type TP ¶
type TP struct { Name string BufPool *sync.Pool OutChan chan *bytes.Buffer Index int Workers int INet []int Fields []string }
TP represents a tracepoint
type TracepointTemplate ¶
type TracepointTemplate struct { Fields4 []FieldAttrs Fields6 []FieldAttrs Tracepoint string TCPState string Suffix int Sample int TCPInfo bool ICSK bool }
TracepointTemplate represents template's data object
func (*TracepointTemplate) Init ¶
func (t *TracepointTemplate) Init()
Init intializes tracepointTemplate
Click to show internal directories.
Click to hide internal directories.