lkml.org 
[lkml]   [2023]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr()
On Thu, Oct 12, 2023 at 08:19:14AM +0200, Ingo Molnar wrote:
>
> * Josh Poimboeuf <jpoimboe@kernel.org> wrote:
>
> > Though, another problem is that .text has a crazy amount of padding
> > which makes it always the same size, due to the SRSO alias mitigation
> > alignment linker magic. We should fix that somehow.
>
> We could emit a non-aligned end-of-text symbol (we might have it already),
> and have a script or small .c program in scripts/ or tools/ that looks
> at vmlinux and displays a user-friendly and accurate list of text and
> data sizes in the kernel?
>
> And since objtool is technically an 'object files tool', and it already
> looks at sections & symbols, it could also grow a:
>
> objtool size <objfile>
>
> command that does the sane thing ... I'd definitely start using that, instead of 'size'.
>
> /me runs :-)

Yeah, that's actually not a bad idea.

I had been thinking a "simple" script would be fine, but I'm realizing
the scope of this thing could grow over time. In which case a script is
less than ideal. And objtool already has the ability to do this pretty
easily.

--
Josh

\
 
 \ /
  Last update: 2023-10-12 18:09    [W:0.079 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site