Skip to content
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(modern): move args declaration at the beginning #2220

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

Andreagit97
Copy link
Member

@Andreagit97 Andreagit97 commented Jan 2, 2025

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area driver-modern-bpf

Does this PR require a change in the driver versions?

No

What this PR does / why we need it:

Extracting arguments in the middle of the program logic causes a side effect on how the compiler uses the registers. Moving the extraction at the beginning solves the issue

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Jan 2, 2025

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
Copy link
Contributor

poiana commented Jan 2, 2025

LGTM label has been added.

Git tree hash: 989dde40ddbf9824d103392479779feacf7c67a1

@FedeDP
Copy link
Contributor

FedeDP commented Jan 2, 2025

This PR fixes master failures on modern bpf against linux 5.8.

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.44%. Comparing base (d1881b4) to head (5df4aec).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2220   +/-   ##
=======================================
  Coverage   75.44%   75.44%           
=======================================
  Files         265      265           
  Lines       34057    34057           
  Branches     5801     5801           
=======================================
+ Hits        25694    25695    +1     
+ Misses       8363     8362    -1     
Flag Coverage Δ
libsinsp 75.44% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Jan 2, 2025

Perf diff from master - unit tests

    10.95%     +0.95%  [.] sinsp::next
     8.00%     +0.66%  [.] sinsp_evt::get_type
     5.17%     +0.53%  [.] next_event_from_file
     4.13%     -0.43%  [.] sinsp_evt::load_params
     9.93%     +0.42%  [.] sinsp_parser::reset
     1.97%     +0.34%  [.] is_conversion_needed
     1.51%     -0.30%  [.] libsinsp::sinsp_suppress::process_event
     2.81%     -0.27%  [.] sinsp_parser::process_event
     0.80%     -0.25%  [.] sinsp_fdtable::find
     0.82%     -0.21%  [.] sinsp_evt::get_param

Heap diff from master - unit tests

peak heap memory consumption: 0B
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B

Heap diff from master - scap file

peak heap memory consumption: 0B
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B

Benchmarks diff from master

Comparing gbench_data.json to /root/actions-runner/_work/libs/libs/build/gbench_data.json
Benchmark                                                         Time             CPU      Time Old      Time New       CPU Old       CPU New
----------------------------------------------------------------------------------------------------------------------------------------------
BM_sinsp_split_mean                                            +0.0510         +0.0509           144           152           144           152
BM_sinsp_split_median                                          +0.0542         +0.0541           144           152           144           152
BM_sinsp_split_stddev                                          -0.6186         -0.6185             1             1             1             1
BM_sinsp_split_cv                                              -0.6371         -0.6370             0             0             0             0
BM_sinsp_concatenate_paths_relative_path_mean                  +0.0126         +0.0125            61            61            61            61
BM_sinsp_concatenate_paths_relative_path_median                +0.0148         +0.0147            61            62            61            62
BM_sinsp_concatenate_paths_relative_path_stddev                -0.6030         -0.6031             1             0             1             0
BM_sinsp_concatenate_paths_relative_path_cv                    -0.6079         -0.6080             0             0             0             0
BM_sinsp_concatenate_paths_empty_path_mean                     +0.0215         +0.0214            23            24            23            24
BM_sinsp_concatenate_paths_empty_path_median                   +0.0216         +0.0215            23            24            23            24
BM_sinsp_concatenate_paths_empty_path_stddev                   -0.2351         -0.2327             0             0             0             0
BM_sinsp_concatenate_paths_empty_path_cv                       -0.2512         -0.2488             0             0             0             0
BM_sinsp_concatenate_paths_absolute_path_mean                  -0.0003         -0.0004            65            65            65            65
BM_sinsp_concatenate_paths_absolute_path_median                +0.0004         +0.0004            64            65            64            65
BM_sinsp_concatenate_paths_absolute_path_stddev                -0.4171         -0.4167             0             0             0             0
BM_sinsp_concatenate_paths_absolute_path_cv                    -0.4169         -0.4164             0             0             0             0
BM_sinsp_split_container_image_mean                            +0.0221         +0.0220           391           399           391           399
BM_sinsp_split_container_image_median                          +0.0212         +0.0211           392           400           392           400
BM_sinsp_split_container_image_stddev                          -0.0038         -0.0038             3             3             3             3
BM_sinsp_split_container_image_cv                              -0.0253         -0.0252             0             0             0             0

@poiana poiana merged commit 4a8fd3c into falcosecurity:master Jan 7, 2025
56 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants