-
Notifications
You must be signed in to change notification settings - Fork 175
fix(libsinsp/filter): support syscall.type in event code search #2331
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
Conversation
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2331 +/- ##
=======================================
Coverage 77.18% 77.18%
=======================================
Files 227 227
Lines 30192 30193 +1
Branches 4611 4611
=======================================
+ Hits 23304 23305 +1
Misses 6888 6888
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: 25904dadd60f41f986df4d458cb37bbf5674df42
|
/milestone 0.21.0 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, 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 |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area libsinsp
Does this PR require a change in the driver versions?
What this PR does / why we need it:
When searching for
evt.type
comparisons in rules condition filters, we never considered thesyscall.type
. This is essentially wrong, as that field extract the same exact sets of values asevt.type
, except for the fact that it returns NULL in case the event is not produced from a syscall. That means that it's extractable value set is a subset of the one ofevt.type
, thus meaning that it should be considered in the same way.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: