Skip to content

FR: Configuration flag support to disable enter event generation #2408

@tuminoid

Description

@tuminoid

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:

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions