Re: [PATCH] powerpc/trace: Restrict hash_fault trace event to HASH MMU

2024-03-13 Thread Michael Ellerman
On Fri, 16 Feb 2024 10:46:43 +0100, Christophe Leroy wrote: > 'perf list' on powerpc 8xx shows an event named "1:hash_fault". > > This event is pointless because trace_hash_fault() is called only > from mm/book3s64/hash_utils.c > > Only define it when CONFIG_PPC_64S_HASH_MMU is selected. > >

[PATCH] powerpc/trace: Restrict hash_fault trace event to HASH MMU

2024-02-16 Thread Christophe Leroy
'perf list' on powerpc 8xx shows an event named "1:hash_fault". This event is pointless because trace_hash_fault() is called only from mm/book3s64/hash_utils.c Only define it when CONFIG_PPC_64S_HASH_MMU is selected. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/trace.h | 3 ++-