retis-org / retis

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

Move the hook filtering choice to Rust #219

Open atenart opened 1 year ago

atenart commented 1 year ago

Instead of compiling the hook for a given filter choice (F_AND, F_OR, HOOK_RAW) set a flag when registering the hook in the Rust part.

This will allow to make decisions earlier in the common part to aggregate the filtering result with the hooks needs early on:

As part of this we should also move the common part handling of the events to after the hooks ran, so we can skip it if no event was generated.