-
Notifications
You must be signed in to change notification settings - Fork 176
fix(userspace/libsinsp): fix sinsp_evt::extract_typechar() logic
#2619
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
fix(userspace/libsinsp): fix sinsp_evt::extract_typechar() logic
#2619
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ekoops The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
140cade to
6cf5af0
Compare
|
Please double check driver/SCHEMA_VERSION file. See versioning. /hold |
Fix the type char evaluation by re-introducing the previously-removed switch cases for `pipe`, `pipe2`, `eventfd`, `eventfd2`, `signalfd`, `signalfd4`, `timerfd_create`, `inotify_init` and `inotify_init1`. Contextually, remove `PPME_SOCKET_ACCEPT_E`, `PPME_SOCKET_ACCEPT_5_E` `PPME_SOCKET_ACCEPT4_5_E` switch cases, as these event types are converted in scap into their latest variants, before reaching sinsp. Finally, make the logic based on exit event types instead of enter events types. Signed-off-by: Leonardo Di Giovanna <[email protected]>
6cf5af0 to
44d5e9a
Compare
sinsp_evt::extract_typechar() logicsinsp_evt::extract_typechar() logic
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2619 +/- ##
==========================================
- Coverage 78.09% 78.06% -0.03%
==========================================
Files 298 298
Lines 31976 31988 +12
Branches 4696 4696
==========================================
Hits 24972 24972
- Misses 7004 7016 +12
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:
|
/unhold |
Perf diff from master - unit testsHeap diff from master - unit testsHeap diff from master - scap fileBenchmarks diff from master |
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:
This PR fixes the type char evaluation by re-introducing the previously-removed switch cases for
pipe,pipe2,eventfd,eventfd2,signalfd,signalfd4,timerfd_create,inotify_initandinotify_init1.Contextually, it removes
PPME_SOCKET_ACCEPT_E,PPME_SOCKET_ACCEPT_5_EPPME_SOCKET_ACCEPT4_5_Eswitch cases, as these event types are converted in scap into their latest variants, before reaching sinsp.Finally, it makes the logic based on exit event types instead of enter events types.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
/milestone 0.22.0
Does this PR introduce a user-facing change?: