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

loader: Don't compile .asm files by default #24769

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Apr 5, 2023

Today, we always compile a .asm files for endpoints, even though we rarely use them. They take a lot of space in the sysdumps and increase the overall compile time.

This pull request changes it to only compile those files if debugging mode is enabled.

Marking for backports to all branches because the change here is unlikely to conflict and should help with sysdump collection.

Don't generate `.asm` files for BPF programs unless debugging mode is enabled. 

Today we always compile a .asm files for endpoints, even though we
rarely use them. They take a lot of space in the sysdumps and increase
the overall compile time.

This commit changes it to only compile those files if debugging mode is
enabled.

Reported-by: Sebastian Wicki <sebastian@isovalent.com>
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added sig/loader Impacts the loading of BPF programs into the kernel. area/bugtool Impacts gathering of data for debugging purposes. release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.11 needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Apr 5, 2023
@pchaigno pchaigno requested a review from a team as a code owner April 5, 2023 17:28
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.11.16 Apr 5, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.13.2 Apr 5, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.12.9 Apr 5, 2023
@pchaigno
Copy link
Member Author

pchaigno commented Apr 5, 2023

/test

Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

Pro-tip for reviewers, make sure to hide whitespace changes:
image

@pchaigno
Copy link
Member Author

pchaigno commented Apr 5, 2023

The net-next job hit known flake #24687.
/test-1.26-net-next

@pchaigno
Copy link
Member Author

pchaigno commented Apr 6, 2023

k8s-1.26-kernel-net-next hit a timeout while downloading the Docker images as part of the VM provisioning. I'm guessing due to some transient connectivity issue.
/test-1.26-net-next

@pchaigno
Copy link
Member Author

pchaigno commented Apr 6, 2023

ConformanceEKS hit known CI breakage #24774. Other tests are passing. Marking ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 6, 2023
@dylandreimerink dylandreimerink merged commit 92407a8 into cilium:master Apr 10, 2023
@pchaigno pchaigno deleted the dont-always-compile-asm branch April 10, 2023 12:21
@pchaigno pchaigno mentioned this pull request Apr 11, 2023
8 tasks
@pchaigno pchaigno added backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. and removed needs-backport/1.13 This PR / issue needs backporting to the v1.13 branch labels Apr 11, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.13 in 1.13.2 Apr 11, 2023
@pchaigno pchaigno mentioned this pull request Apr 11, 2023
5 tasks
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.12 in 1.12.9 Apr 11, 2023
@pchaigno pchaigno mentioned this pull request Apr 11, 2023
6 tasks
@gandro gandro added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed backport-pending/1.13 The backport for Cilium 1.13.x for this PR is in progress. labels Apr 12, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.13 to Backport done to v1.13 in 1.13.2 Apr 12, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.11 in 1.11.16 Apr 12, 2023
@gandro gandro added backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. and removed backport-pending/1.12 labels Apr 12, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.12 to Backport done to v1.12 in 1.12.9 Apr 12, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.12 to Backport done to v1.12 in 1.12.9 Apr 12, 2023
@michi-covalent michi-covalent added backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed backport-pending/1.11 labels Apr 14, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.11 to Backport done to v1.11 in 1.11.16 Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bugtool Impacts gathering of data for debugging purposes. backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. backport-done/1.12 The backport for Cilium 1.12.x for this PR is done. backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/loader Impacts the loading of BPF programs into the kernel.
Projects
No open projects
1.11.16
Backport done to v1.11
1.12.9
Backport done to v1.12
1.13.2
Backport done to v1.13
Status: Released
Development

Successfully merging this pull request may close these issues.

None yet

5 participants