-
Notifications
You must be signed in to change notification settings - Fork 166
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(driver/kmod): count the right number of events and drops #2000
Conversation
Signed-off-by: Andrea Terzolo <[email protected]>
Signed-off-by: Andrea Terzolo <[email protected]>
Perf diff from master - unit tests
Perf diff from master - scap file
Heap diff from master - unit tests
Heap diff from master - scap file
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2000 +/- ##
==========================================
- Coverage 74.08% 74.08% -0.01%
==========================================
Files 253 253
Lines 30766 30766
Branches 5399 5417 +18
==========================================
- Hits 22794 22792 -2
- Misses 7946 7970 +24
+ Partials 26 4 -22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
LGTM label has been added. Git tree hash: 074d6896e3619b806bab345fb12befa56ca0cd9d
|
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, incertum 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 driver-kmod
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
This PR provides 2 fixes:
n_evts
since the event is always dropped.ASSERT(false)
but not an_drops_buffer
increment. This means that in production we were not able to detect if we fell into the wrong branch or not. Now we increment then_drops_buffer
metric.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: