RE: [RFC 05/31] x86/compiler: Tweak __UNIQUE_ID naming

2024-09-08 Thread David Laight
From: Peter Zijlstra > Sent: 03 September 2024 08:57 > > On Mon, Sep 02, 2024 at 08:59:48PM -0700, Josh Poimboeuf wrote: > > Add an underscore between the "name" and the counter so tooling can > > distinguish between the non-unique and unique portions of the symbol > > name. > > > > This will come

Re: [RFC 05/31] x86/compiler: Tweak __UNIQUE_ID naming

2024-09-03 Thread Josh Poimboeuf
On Tue, Sep 03, 2024 at 09:56:34AM +0200, Peter Zijlstra wrote: > > -#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), > > __COUNTER__) > > +/* Format: __UNIQUE_ID__<__COUNTER__> */ > > +#define __UNIQUE_ID(name) \ > > + __PASTE(__UNIQUE_ID_,

Re: [RFC 05/31] x86/compiler: Tweak __UNIQUE_ID naming

2024-09-03 Thread Peter Zijlstra
On Mon, Sep 02, 2024 at 08:59:48PM -0700, Josh Poimboeuf wrote: > Add an underscore between the "name" and the counter so tooling can > distinguish between the non-unique and unique portions of the symbol > name. > > This will come in handy for "objtool klp diff". > > Signed-off-by: Josh Poimboeu