Documentation
¶
Index ¶
- func ConsumeEvents[T Event](ctx context.Context, log *slog.Logger, evReader *ringbuf.Reader, evCh chan *T)
- func ProcessNetworkEvent(event *NetworkEvent, pod string, log *slog.Logger)
- func ProcessSyscallEvent(event *SyscallEvent, pod string, log *slog.Logger)
- type Event
- type KBContext
- type KProbeMeta
- type NetworkEvent
- type NetworkEventDirection
- type NetworkEventProtocol
- type SyscallEvent
- type TpMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumeEvents ¶
func ProcessNetworkEvent ¶
func ProcessNetworkEvent( event *NetworkEvent, pod string, log *slog.Logger, )
func ProcessSyscallEvent ¶
func ProcessSyscallEvent( event *SyscallEvent, pod string, log *slog.Logger, )
Types ¶
type Event ¶
type Event interface { SyscallEvent | NetworkEvent }
type KBContext ¶
type KBContext struct { SyscallRingBuffer *ringbuf.Reader NetworkRingBuffer *ringbuf.Reader Tps []link.Link Kps []link.Link }
Define a Kernel BPF context.
type KProbeMeta ¶
type KProbeMeta struct {
// contains filtered or unexported fields
}
Struct that holds bpf kprobe required metadata
type NetworkEvent ¶
type NetworkEvent struct { Pid uint64 CgroupID uint64 Size uint64 Saddr uint32 Daddr uint32 Sport uint16 Dport uint16 Direction NetworkEventDirection Protocol NetworkEventProtocol }
type NetworkEventDirection ¶ added in v0.1.0
type NetworkEventDirection uint8
const ( NetworkEventDirectionInbound NetworkEventDirection = 0 NetworkEventDirectionOutbound NetworkEventDirection = 1 )
func (NetworkEventDirection) String ¶ added in v0.1.0
func (d NetworkEventDirection) String() string
type NetworkEventProtocol ¶ added in v0.1.0
type NetworkEventProtocol uint8
const ( NetworkEventProtocolTCP NetworkEventProtocol = 6 NetworkEventProtocolUDP NetworkEventProtocol = 17 )
func (NetworkEventProtocol) String ¶ added in v0.1.0
func (p NetworkEventProtocol) String() string
type SyscallEvent ¶
func (SyscallEvent) GetSyscallName ¶
func (s SyscallEvent) GetSyscallName() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.