Replies: 2 comments
-
Binary sizesMethodWe use the explanations from here: https://elinux.org/Kernel_Size_Tuning_Guide We use the To extract Results
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Features of Linux
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For comparison, I wanted to have a more or less reasonable metric of Lines of Code (LoC) in used-in-production Linux kernels.
Method for counting LoC
We use the
inotifywait
utility that will log which files are opened duringmake vmlinux
build.NOTE: both terminals must be in the Linux sources dir for
pwd
tricks to work correctly.Prepare
kernel-build.log
for clocTime to cloc!
Result for generic Ubuntu 22.04 v5.19
We get the config from the
linux-buildinfo
package:Note on
.config
file: To remove the need for Debian certs and keys, follow this advice:https://stackoverflow.com/questions/67670169/compiling-kernel-gives-error-no-rule-to-make-target-debian-certs-debian-uefi-ce.
Basically, we need to remove
debian/
from everywhere in the.config
file. The attached config files are already like this.Result for Amazon Firecracker v6.1
Config: https://github.com/firecracker-microvm/firecracker/tree/main/resources/guest_configs
Beta Was this translation helpful? Give feedback.
All reactions