Re: [PATCH 1/3] cpumask: Add a x86-specific cpumask_clear_cpu() helper

From: Borislav Petkov
Date: Fri Feb 04 2022 - 13:04:21 EST


On Fri, Feb 04, 2022 at 04:46:24PM +0000, Luck, Tony wrote:
> > Also, always inline two more cpumask generic helpers.
> >
> > allyesconfig:
> >
> > text data bss dec hex filename
> > 190553143 159425889 32076404 382055436 16c5b40c vmlinux.before
> > 190551812 159424945 32076404 382053161 16c5ab29 vmlinux.after
>
> That looks odd. You added "always" to some inline functions, which I'd
> have thought might cause *more* inlining, and thus an increase in text
> size. But it actually went *down* by 1331 bytes.

Or maybe the compiler did some optimizations after the inlining. Here
are the numbers on an allmodconfig - 1073 bytes less with this patch.

text data bss dec hex filename
27409158 31062465 26710144 85181767 513c547 vmlinux.before
27408085 31062821 26710144 85181050 513c27a vmlinux.after

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette