-
Notifications
You must be signed in to change notification settings - Fork 176
fix(libsinsp): expose main thread fd table #2133
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(libsinsp): expose main thread fd table #2133
Conversation
Perf diff from master - unit testsHeap diff from master - unit testsHeap diff from master - scap fileBenchmarks diff from master |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2133 +/- ##
=======================================
Coverage 74.46% 74.46%
=======================================
Files 254 254
Lines 33333 33340 +7
Branches 5708 5715 +7
=======================================
+ Hits 24820 24827 +7
+ Misses 8487 8486 -1
- Partials 26 27 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
2fec49f to
2cd6315
Compare
| } | ||
| parent_thread->add_child(tinfo); | ||
|
|
||
| tinfo->update_main_fdtable(); |
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.
putting this in create_thread_dependencies should correctly set the fdtable in all cases
- /proc scan at initi time
- /proc scan at runtime
- when a new thread is added after a clone syscall
Andreagit97
left a comment
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. DetailsGit tree hash: bc6dcb27c550d8a5c39f8548bf0ee496a702cb78 |
|
Can you rebase on latest master to unlock arm64 CI? :) We switched runners from actuated to the cncf provided ones. |
Signed-off-by: Gianmatteo Palmieri <[email protected]>
2cd6315 to
4dc461c
Compare
Andreagit97
left a comment
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. DetailsGit tree hash: cd0c762c0a1f4fe7c48126c46d71b08230a0be72 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, mrgian 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 |
What type of PR is this?
/kind bug
/kind feature
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 ensures that the plugin API exposes the file descriptor table of its main thread instead of its own.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: