The TLB flush counters under vmstat seems to be very helpful while debugging TLB flush performance in RISC-V.
Add the Kconfig option only for debug kernels. Signed-off-by: Atish Patra <atish.pa...@wdc.com> --- arch/riscv/Kconfig.debug | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/Kconfig.debug b/arch/riscv/Kconfig.debug index e69de29bb2d1..6a2d3762aeda 100644 --- a/arch/riscv/Kconfig.debug +++ b/arch/riscv/Kconfig.debug @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0 + +config DEBUG_TLBFLUSH + bool "Save tlb flush statstics to vmstat" + depends on DEBUG_KERNEL + help + + Add TLB flush statstics to vmstat. It is really helpful understand tlbflush + performance and behavior. It should be enabled only for debugging purpose. + + If in doubt, say "N". + -- 2.21.0