-
Notifications
You must be signed in to change notification settings - Fork 169
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): always initialize sinsp_evt with a proper source_idx and source_name #2190
Conversation
…urce_idx and source_name. Signed-off-by: Federico Di Pierro <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
/milestone 0.20.0 |
m_rawbuf_str_len(0), | ||
m_filtered_out(false), | ||
m_event_info_table(g_infotables.m_event_info) {} | ||
sinsp_evt::sinsp_evt(sinsp *inspector): sinsp_evt() { |
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.
nice! didn't know you could do that
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2190 +/- ##
==========================================
- Coverage 75.20% 75.19% -0.02%
==========================================
Files 259 259
Lines 33890 33876 -14
Branches 5801 5801
==========================================
- Hits 25487 25473 -14
Misses 8403 8403
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
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 also fixes a bug where using sinsp
m_filter
on a plugin-exposed field in scap replay mode would SIGABRT.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: