Open FAMILIAR-project opened 5 years ago
'size vmlinux' : does not need a log file 'nm --size -r vmlinux' : create a log file Add other command's result : 'size */built-in.o' : create log too
All 3 results will be in a new table 'sizes' with cid as primary key
We should be careful about the results of nm, the associated file is quite enormous (it can go to more than 1Mio, and mean size is around 500Kio for EACH compilation) EDIT : I optionalized this feature with the --checksize option to not overload the database
Right now, we are computing different sizes, but all rely on the same procedure: https://github.com/TuxML/ProjetIrma/blob/dev/compilation/compiler.py#L256-L259 (the "raw" size of the file)
It's correct, but we miss an opportunity to gather much more information for free.
We should use
size
(UNIX command) https://elinux.org/Kernel_Size_Tuning_Guide#Measuring_the_kernelin particular
'size vmlinux
We can also usenm --size -r vmlinux
We can add two new columns
size_vmlinux
(it will be string) andnm_size_vmlinux
(I suspect we have to store the information in a .log file)It should be noted that we only have to do additional measures for
vmlinux
(not the compressed ones).Some tests are needed (taking tinyconfig and some random configurations of 4.13.3 and 4.15)