powerpc/trace: Restrict hash_fault trace event to HASH MMU
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 16 Feb 2024 09:46:43 +0000 (10:46 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Feb 2024 10:55:33 +0000 (21:55 +1100)
commit9e00743aba832f3f30ecb017d3345baf1f372140
treee3ae8c58f13fb55d56dba2fa9a41b86d78bf183b
parenta3e1820186b5ed3703e690eb064ad7c6c7477cfb
powerpc/trace: Restrict hash_fault trace event to HASH MMU

'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 <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/85a86e51b4ab26ce4b592984cc0a0851a3cc9479.1708076780.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/trace.h