Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(userspace/libsinsp): remove unused check_id from events #376

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

jasondellaluce
Copy link
Contributor

Signed-off-by: Jason Dellaluce [email protected]

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area libsinsp

What this PR does / why we need it:

Since merging falcosecurity/falco#2017, the set_check_id and get_check_id methods are not required in events anymore. The check id was an historically instrumental for Falco to figure out which rule and filtercheck matched a given event. This is now not used anymore because the rule-event matching is a responsiblity of the Falco Engine exclusively. Removing this also saves the cost of many memory writes at each filtercheck evaluation.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@poiana poiana requested review from FedeDP and mstemm June 7, 2022 10:44
@poiana poiana added the size/M label Jun 7, 2022
@jasondellaluce jasondellaluce changed the title refactor(userspace/libsinsp): remove unused check_id from events wip: refactor(userspace/libsinsp): remove unused check_id from events Jun 7, 2022
@jasondellaluce
Copy link
Contributor Author

/retest

@poiana
Copy link
Contributor

poiana commented Jun 7, 2022

LGTM label has been added.

Git tree hash: 6ce3f7728a8d69dbb96707a96b18de2f9a073c0b

@jasondellaluce jasondellaluce changed the title wip: refactor(userspace/libsinsp): remove unused check_id from events refactor(userspace/libsinsp): remove unused check_id from events Jun 7, 2022
Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jasondellaluce!
/approve

@poiana
Copy link
Contributor

poiana commented Jun 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, jasondellaluce

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana added the approved label Jun 7, 2022
@poiana poiana merged commit dc8e7d3 into master Jun 7, 2022
@poiana poiana deleted the cleanup/unused-evt-metadata branch June 7, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants