Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProcEventsChannel channel of events to read ProcEventsChannel = make(chan ProcEvent) )
Functions ¶
func ProcEventsMonitor ¶
func ProcEventsMonitor(done <-chan struct{})
ProcEventsMonitor listens for process events from kernel. We listen for events via netlink, from the Process Events Conector: https://lwn.net/Articles/157150/ The kernel must have the options CONFIG_CONECTOR and CONFIG_PROC_EVENTS enabled.
Types ¶
type ProcEvent ¶
type ProcEvent struct { TimeStamp uint64 PID uint32 PPID uint32 TGID uint32 PTGID uint32 // contains filtered or unexported fields }
ProcEvent represents the struct returned from kernel
func NewProcEvent ¶
NewProcEvent returns a new event received from kernel
Click to show internal directories.
Click to hide internal directories.