Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4140396yba; Mon, 29 Apr 2019 14:29:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6HDbyhyaJr/kP+k17cSL39YkjpDtbjod0dDX8wJKITWn3Thnh2AsPlVRYaxq02hZmsaVk X-Received: by 2002:a62:6807:: with SMTP id d7mr64402456pfc.75.1556573357697; Mon, 29 Apr 2019 14:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556573357; cv=none; d=google.com; s=arc-20160816; b=New61sxLyjVRsDRIfFPvLdjm+U/I07b+TJ/14PLnZmYmHHfTYB5kKyKOFOrx/sAFhL BnoikkP/HN/UMBoBSf6iZfp0kbmXo0cpZ3w5HudBsG85m/b2T1xr4xR+Q0RuGGGKdSaa fnzqd4nheibAvMEqT2++tXn/fOYB/ynTFo5sUyMKOcPkenfDmsR+wpj/mR2sXKRAjW3x +yJXSioKiCgjhiV4RPfGK1aJq/C0+7oj2JxK74i35axg+xpah9dEsqBNI7Ifm31aykXj 3n5DVqUu/N/sdK7LG7cxKbzUxNX4gjYzBmAAOgrIKV7zc0HHAX85Kvyuj3wsb0fbzv0x itIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr:dkim-signature; bh=WtBjYoAHkWUE+EmE+Dj18Yw6Y6txgDPtaMz1TSW2Pbs=; b=DYCM753dVCqx3FGB33qylBLV95jPCQm/1n5XH6JQqvD0q+Q4TEypoE0f9lMliloRvl CdA/QNAOah8T6N7lHunnTMasGbmMdoN6SBDIvLFUHp2m8gf8hMQr1UA+TJYglkshdZcx 0AdCio+ocoDrkP2/asH+zQKLZWdF9dWtfYy/h8LZZ9ZbqkIS6rgMobEqsi3xLeN90XGp eCm872plvD6sa6AjQyD4bENBTSkk/sTEkqrwlVFxsfoaiHHGbY/kqQkTA6PLV+o4QQyy G+TvhHzNqd+4OY8B103rmDhpgs9mQUV4Fxop0uX57BBPobTgEh98yPRy14i57Hf0gXfa xYfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Gixex1Az; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si13700593plr.192.2019.04.29.14.29.00; Mon, 29 Apr 2019 14:29:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=Gixex1Az; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729506AbfD2V2F (ORCPT + 99 others); Mon, 29 Apr 2019 17:28:05 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:37434 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729348AbfD2V15 (ORCPT ); Mon, 29 Apr 2019 17:27:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1556573278; x=1588109278; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=674EX0iIftC/tP47ciQ2WAq8p0Blf4MJzfJ6YEpD/54=; b=Gixex1Az6UlvmaCFT1ZaGcJumU2WGl8kXzdSafJvYxPUzcwk3UGSsZln qCVgjcpE4Cwp27Mc8vPb6AC/VIFscZVlwI6QJuBuSl5Ln4MmtxRx4XPOr jvlugyVEr7pqymQBawjoVtmS/osaiSftBcGcWZlAPDZNZDOqxTJMy6Pki SsG3jJXMmxEzHlDqxRoWufDtfYhPaTn+Po/GrMgG5gW+QfqGqnLOqwc5d JkJCABxj2UrKrphop7bUQMGyX9B5Jww4u2wXlScs41y1ZlcPykIl63NpR LdUvAX8bZp80BlRb2rqY5h6ueriu+f/6TGBBzjR8Gt0RDJk3ojvxzg+37 Q==; X-IronPort-AV: E=Sophos;i="5.60,411,1549900800"; d="scan'208";a="108317116" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 30 Apr 2019 05:27:57 +0800 IronPort-SDR: LKgUSq1ZMIHzoVgQj31y2xZX5nVF3XsaR9ltnhC+igCzTG/nguU8ZWfvCe07INLmZkzoMhnJuh vBBy85dd60v4cHfgYFRDkbYHVeHxppq4UktjEKY3VG8ccsI8aaw3J9sqPXsDoo539oSPFq+QbB wU/TsNeod+Bg6v016i7+YPd6HY5ROmnM50a8+MKn1C06V7acuE5j+nTKISJrw7VzDvML9BmLky +/phmsXLyV6gW6nBffVNgZQO0YQ5tXf2L2bByPjRGhjX4ibQpbGcz2BCc47LuXCaMo3Wc/7oZP f+DpzzAQN3Y0fV+vanBLuBcX Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 29 Apr 2019 14:06:27 -0700 IronPort-SDR: YKuQOaUGXWtvH6yMxnbX+5T8aKt+xMu1UOys2MqMN9CNGPcNGH4YnoS70RHEai/+/Dum58K/mC XFPRVsEpiOt3g5p92g5To6ydWIgV9ypo/MTkjzd06pojtdh+/P/oQUeywSO6jT8onKm5pitIXw aaM1FvzE3F8rjP1lzuGf9XKPsK0Q6nceqmHgrOGZaUT7EtHOCWqLPwyq+uZipCVjFTbwv1zRtJ cQeDkzSR2TxSz7tEs88qTe1xk1rgl6YPggLJ9AGDzG5yhhpSIJRqxGR/ImMmzo3mU1rODfO2sq RXU= Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 29 Apr 2019 14:27:56 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Albert Ou , Andrew Morton , Anup Patel , Borislav Petkov , Changbin Du , Gary Guo , "H. Peter Anvin" , Ingo Molnar , Kees Cook , linux-mm@kvack.org, linux-riscv@lists.infradead.org, Luc Van Oostenryck , Palmer Dabbelt , Thomas Gleixner , Vlastimil Babka , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), Christoph Hellwig Subject: [PATCH v3 2/3] RISC-V: Enable TLBFLUSH counters for debug kernel. Date: Mon, 29 Apr 2019 14:27:49 -0700 Message-Id: <20190429212750.26165-3-atish.patra@wdc.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190429212750.26165-1-atish.patra@wdc.com> References: <20190429212750.26165-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index eb56c82d8aa1..c1ee876d1e7f 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -49,6 +49,7 @@ config RISCV select GENERIC_IRQ_MULTI_HANDLER select ARCH_HAS_PTE_SPECIAL select HAVE_EBPF_JIT if 64BIT + select HAVE_ARCH_DEBUG_TLBFLUSH if DEBUG_KERNEL config MMU def_bool y -- 2.21.0