-
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
feat: add events dimensions file generator in modern probe #2232
feat: add events dimensions file generator in modern probe #2232
Conversation
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 #2232 +/- ##
==========================================
+ Coverage 75.09% 75.12% +0.02%
==========================================
Files 276 276
Lines 34391 34400 +9
Branches 5927 5921 -6
==========================================
+ Hits 25826 25843 +17
+ Misses 8565 8557 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/milestone 0.21.0 |
5752742
to
95c1ee8
Compare
Please double check driver/API_VERSION file. See versioning. /hold |
95c1ee8
to
6780255
Compare
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.
Shouldn't we generate and commit the new file in this PR?
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.
The new file is produced at build time, that's why I deleted it. In the previous attempt, I included the generated file in the source, but since it required to be properly formatted (as per clang-format configuration), it required clang-format to be installed on the system. I assume that we don't want to be dependent on a development tool at build time.
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.
what about disabling formatting on this file since it is autogenerated?
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.
Yes it works for me. I'll let clang ignore it
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.
Mmmh i'd completely drop the file really; it is really error prone to let it lingering in the repo since it is auto-generated. I can't see the point in keeping it.
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.
I think it can help to quickly detect and track variation in the generation behavior, as well as event size variations.
6780255
to
3457a5a
Compare
LGTM! just a compilation error in CI https://github.com/falcosecurity/libs/actions/runs/12868886761/job/35876631053?pr=2232 |
Signed-off-by: Leonardo Di Giovanna <[email protected]>
3457a5a
to
344e6e1
Compare
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.
Thank you!
/approve
LGTM label has been added. Git tree hash: 5999e26a71acfe740cf27b2d7c0f77d7441c44ba
|
/hold |
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, ekoops, 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 |
/unhold |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area build
/area driver-modern-bpf
Does this PR require a change in the driver versions?
What this PR does / why we need it:
This PR enables automatic generation of
driver/modern_bpf/definitions/events_dimensions.h
. The new generator, defined indriver/modern_bpf/definitions/generator/generator.cpp
, is called by the build system if any modification to the event table is detected. The events dimensions file has been added as a separate dependency to the bpf object file targets.Which issue(s) this PR fixes:
#2227
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: