Re: [RFC][PATCH] ftrace,objtool: PC32 based __mcount_loc

From: Christophe Leroy
Date: Fri Jun 17 2022 - 07:44:56 EST




Le 17/06/2022 à 13:24, Peter Zijlstra a écrit :
>
> Hi,
>
> I recently noticed that __mcount_loc is 64bit wide, containing absolute
> addresses. Since __mcount_loc is a permanent section (not one we drop
> after boot), this bloats the kernel memory usage for no real purpose.

I guess you mean it is 64bit wide on 64 bits architectures ? Because it
seems to be defined as 'long' so will be 32bit on 32 bits architectures ?

Christophe