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

Isolate BPF_TRACEPARENT macro #1457

Merged
merged 3 commits into from
Dec 14, 2024
Merged

Isolate BPF_TRACEPARENT macro #1457

merged 3 commits into from
Dec 14, 2024

Conversation

rafaelroquetto
Copy link
Contributor

Replace macro with a constant so that the entire code is always sieved through the compiler, ensuring the code is legal at all times.

The compiler will optimise out the dead code even with -O0.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.16%. Comparing base (6643e14) to head (f64463a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1457      +/-   ##
==========================================
+ Coverage   72.83%   81.16%   +8.32%     
==========================================
  Files         148      149       +1     
  Lines       15312    15321       +9     
==========================================
+ Hits        11153    12435    +1282     
+ Misses       3424     2269    -1155     
+ Partials      735      617     -118     
Flag Coverage Δ
integration-test 59.74% <ø> (-0.08%) ⬇️
k8s-integration-test 60.53% <ø> (-0.13%) ⬇️
oats-test 33.93% <ø> (+0.08%) ⬆️
unittests 51.86% <ø> (?)

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.

@rafaelroquetto rafaelroquetto marked this pull request as ready for review December 13, 2024 15:27
Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM! Nice!

@rafaelroquetto rafaelroquetto merged commit cc8de1b into main Dec 14, 2024
13 checks passed
@rafaelroquetto rafaelroquetto deleted the bpf_traceparent branch December 14, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants