[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 00/23] further population of xen/lib/
On 01.04.2021 13:54, Julien Grall wrote: > On 01/04/2021 11:14, Jan Beulich wrote: >> This is to dissolve / move xen/common/lib.c and xen/common/string.c. >> One benefit of moving these functions into an archive is that we can >> drop some of the related __HAVE_ARCH_* #define-s: By living in an >> archive, the per-arch functions will preempt any loading of the >> respective functions (objects) from the archive. (Down the road we >> may want to move the per-arch functions into archives as well, at >> which point the per-arch archive(s) would need to be specified ahead >> of the common one(s) to the linker.) > > While I think it is a good idea to move code in xen/lib, I am not > convinced that having a single function per file is that beneficial. > > Do you have numbers showing how much Xen will shrink after this series? In the default build, from all I was able to tell, there's one function that's unused (strspn(), as mentioned in the respective patch description). I don't think I've been claiming any space savings here, though, so I wonder why you make this a criteria at all. The functions being one per CU is such that they can be individually overridden by an arch, without pulling in dead code. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |