elastic / ebpf

Elastic's eBPF
Other
67 stars 11 forks source link

Events: Implement event filtering #49

Closed fntlnz closed 2 years ago

fntlnz commented 2 years ago

In https://github.com/elastic/ebpf/pull/47 we implemented the API to consume kernel events.

In ebpf_event_ctx__new we have the events argument. We want to use that bitmask to filter the event types we read from the ringbuffer.

Right now, specifying any filtering will not do anything.