Documentation
¶
Index ¶
- Constants
- Variables
- func LoadEbpf(ctx context.Context) error
- func ReadAlert(ctx context.Context, cli client.Reader) (hivev1alpha1.HiveAlert, error)
- func ReadEbpfData() (bpfLogData, error)
- func ResetTracedInodes(index uint32) error
- func UnloadEbpf(ctx context.Context) error
- func UpdateTracedInodes(index uint32, value uint64) error
Constants ¶
View Source
const ( MapMaxEntries = 1024 KprobedFunc = "inode_permission" )
Variables ¶
Functions ¶
func ReadEbpfData ¶
func ReadEbpfData() (bpfLogData, error)
* Read the data from the Ringbuffer, hangs until data is received or * returns an error. This function can be used without a running * kubernetes cluster.
func ResetTracedInodes ¶
* Fills a map with zeroes from index to MapMaxEntries.
func UnloadEbpf ¶
* Unload the eBPF program, objects and ringbuffer.
func UpdateTracedInodes ¶
* Update element at index with value in the TracedInodes map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.