retis-org / retis

Tracing packets in the Linux networking stack & friends
https://retis.readthedocs.io/en/stable/
100 stars 14 forks source link

Allow running hooks even if event is discarted #136

Open amorenoz opened 1 year ago

amorenoz commented 1 year ago

If the common part of the event is not allocate-able because the ring buffer is full, we are currently not running any hook.

This can have an impact in some modules that track things (such as OVS). Fortunately, skb tracking was moved to the core so it is not affected.

One option, as @atenart suggests in https://github.com/retis-org/retis/pull/133#pullrequestreview-1412999365 is to allow event to be NULL.