-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Motivation
As part of the disabling enter events proposal, we need to have a configuration flag that allows disabling generation of the enter events.
We need to expose a flag from sinsp to avoid the generation of enter events. The consumer can choose to receive or not enter events.
This issue is opened to discuss the implementation design. Proposal suggests it to be done after all the conversion work has happened, but most of the rulesets could use just the exit events much earlier than that, so we'd like to have it implemented sooner. It would also make measuring the real performance impact easier and earlier.
Feature
Per the proposal, we need to have configation option at libsinsp, that'll propagate through to all supported drivers, and their respective event generation methods.
Alternatives
Instead of a runtime configuration flag, we could have a compile time flag to remove enter events completely.
Additional context
This issue is opened to formulate the implementation plan for at least the following open items:
- how is the configuration enabled (besides debug, there isn't much configuration available in libsinsp)
- correct propagation path to drivers
Also relevant here:
- TOCTOU mitigation on the kernel side - separate FR for that