-
Notifications
You must be signed in to change notification settings - Fork 163
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(libpman): try to get a new event on the same CPU after increasing the producer #2009
fix(libpman): try to get a new event on the same CPU after increasing the producer #2009
Conversation
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
|
3dc4149
to
d2dac4f
Compare
This needs to be rebased on latest master to fix CI, right? |
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com> Co-authored-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
d2dac4f
to
a384441
Compare
done :) |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP 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 |
LGTM label has been added. Git tree hash: 53a37e06692505a971307bfc53f2cfcbdf253f9b
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2009 +/- ##
=======================================
Coverage 74.14% 74.14%
=======================================
Files 253 253
Lines 30834 30834
Branches 5404 5410 +6
=======================================
Hits 22863 22863
- Misses 7946 7970 +24
+ Partials 25 1 -24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
What type of PR is this?
/kind bug
/kind cleanup
Any specific area of the project related to this PR?
/area libpman
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
This PR reduces the possibility of facing out-of-order events with the modern ebpf probe. When we reach the producer the right thing to do is to insist on the same CPU to check if the producer has pushed some new events instead of skipping the current buffer returning a NULL event. Otherwise, there is the risk that we skip some events with a lower timestamp with respect to the others in the other buffers.
Added also some handy debug print. Example
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: