feat!: add PPME_SYSCALL_CLOSE_E fd param to PPME_SYSCALL_CLOSE_X#2475
feat!: add PPME_SYSCALL_CLOSE_E fd param to PPME_SYSCALL_CLOSE_X#2475
PPME_SYSCALL_CLOSE_E fd param to PPME_SYSCALL_CLOSE_X#2475Conversation
|
[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 |
Perf diff from master - unit testsHeap diff from master - unit testsHeap diff from master - scap fileBenchmarks diff from master |
4698a12 to
0a773a0
Compare
X64 kernel testing matrix
ARM64 kernel testing matrix
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2475 +/- ##
==========================================
+ Coverage 77.88% 77.94% +0.05%
==========================================
Files 251 252 +1
Lines 31071 31085 +14
Branches 4653 4645 -8
==========================================
+ Hits 24201 24229 +28
+ Misses 6870 6856 -14
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:
|
0a773a0 to
3034fd5
Compare
3034fd5 to
2b49d4c
Compare
|
Notice: the kernel testing CI failure is due to an error which we are trying to address in #2477 and is not related to this PR. |
2b49d4c to
4050f0e
Compare
Extend `PPME_SYSCALL_CLOSE_X` event by adding the fd parameter to its definition. Keep the sinsp parser logic associating the fdinfo to the `close` enter event, but don't apply anymore any additional logic for it: in other words, remove any code associated to the notion of "close in progress" or "close canceled" as they have no meaning anymore. BREAKING CHANGE: remove `FLAGS_CLOSE_IN_PROGRESS` and `FLAGS_CLOSE_CANCELED` `sinsp_fdinfo::flags` Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
4050f0e to
121c148
Compare
mstemm
left a comment
There was a problem hiding this comment.
Thanks for making the changes!
|
LGTM label has been added. DetailsGit tree hash: 7bd5e4d5fe6c51ee1ef24d88cbcfa28bb18972b4 |
What type of PR is this?
/kind cleanup
/kind test
/kind feature
Any specific area of the project related to this PR?
/area driver-kmod
/area driver-bpf
/area driver-modern-bpf
/area libscap-engine-gvisor
/area libscap-engine-savefile
/area libscap
/area libsinsp
/area tests
Does this PR require a change in the driver versions?
/version driver-SCHEMA-version-minor
What this PR does / why we need it:
This PR is part of #2427.
It extends
PPME_SYSCALL_CLOSE_Xevent by adding the fd parameter to its definition and aligning all 3 kernel drivers and gvisor engine to it. It retains the sinsp parser logic associating the fdinfo to thecloseenter event, but removes any additional logic for it: this means that the notion of "close in progress" and "close canceled" have no meaning anymore and the corresponding code has been pruned.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: