Re: [PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64

2019-04-23 Thread Rasmus Villemoes
On 23/04/2019 21.36, Andrew Morton wrote: > On Tue, 23 Apr 2019 17:37:33 +0200 Christophe Leroy > wrote: > >>> --- a/arch/powerpc/Kconfig >>> +++ b/arch/powerpc/Kconfig >>> @@ -155,6 +155,7 @@ config PPC >>> select BUILDTIME_EXTABLE_SORT >>> select CLONE_BACKWARDS >>> select DCACHE_W

Re: [PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64

2019-04-23 Thread Andrew Morton
On Tue, 23 Apr 2019 17:37:33 +0200 Christophe Leroy wrote: > > --- a/arch/powerpc/Kconfig > > +++ b/arch/powerpc/Kconfig > > @@ -155,6 +155,7 @@ config PPC > > select BUILDTIME_EXTABLE_SORT > > select CLONE_BACKWARDS > > select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_

Re: [PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64

2019-04-23 Thread Christophe Leroy
Le 09/04/2019 à 23:25, Rasmus Villemoes a écrit : Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the four const char* members of struct _ddebug, thus saving 16 bytes per instance (one for each pr_debug(), dev_debug() etc. in a CONFIG_DYNAMIC_DEBUG kernel). The asm-generic imp

[PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64

2019-04-09 Thread Rasmus Villemoes
Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the four const char* members of struct _ddebug, thus saving 16 bytes per instance (one for each pr_debug(), dev_debug() etc. in a CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to work out-of-the-box, though this i