lkml.org 
[lkml]   [2019]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[3/3] RISC-V: Add DEBUG_TLBFLUSH option.
Date
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.patra@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
\
 
 \ /
  Last update: 2019-04-11 00:46    [W:0.085 / U:9.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site