-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Backport 2.28: Disable debugging features in the primary code size measurement job #5542
Backport 2.28: Disable debugging features in the primary code size measurement job #5542
Conversation
The baremetal configuration includes debugging features whose size is not particularly interesting. Create a new preset for use when benchmarking code size which excludes debugging features that increase the size of non-debugging modules. Signed-off-by: Gilles Peskine <[email protected]>
In build_arm_none_eabi_gcc_m0plus, use baremetal_size instead of baremetal as the configuration, i.e. exclude debugging features. This job is the only one switching to baremetal_size because it's our primary point of reference for code size evolution, and which is the only job where we display the code size built with -Os so it's presumably the only job for which we really care about a meaningful code size report. Signed-off-by: Gilles Peskine <[email protected]>
@@ -272,6 +272,24 @@ def baremetal_adapter(name, active, section): | |||
return True | |||
return include_in_full(name) and keep_in_baremetal(name) | |||
|
|||
# This set contains options that are mostly for debugging or test purposes, | |||
# and therefore should be excluded when doing code size measurements. | |||
# Options that are their own module (such as MBEDTLS_CERTS_C and |
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'm not sure about CERTS. Following the reasoning here, since it's its own module, I had it stay. But since it's only ever useful for the SSL integration tests and the baremetal config doesn't allow running them, maybe CERTS should be off? Or maybe it should be off in baremetal
too?
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 would rather see it as potential baremetal improvement, not relevant to this PR. The rule you set is clear - modules stay as they are in the config.
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.
Backport looks correct.
Approved.
Backport of #4907. Identical except for a couple of options that exist in 2.28 but not in 3.x.