Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932677AbbFGRvF (ORCPT ); Sun, 7 Jun 2015 13:51:05 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57768 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbbFGRvA (ORCPT ); Sun, 7 Jun 2015 13:51:00 -0400 Date: Sun, 7 Jun 2015 10:50:30 -0700 From: "tip-bot for Yan, Zheng" Message-ID: Cc: torvalds@linux-foundation.org, hpa@zytor.com, zheng.z.yan@intel.com, akpm@linux-foundation.org, tglx@linutronix.de, peterz@infradead.org, mingo@kernel.org, kan.liang@intel.com, linux-kernel@vger.kernel.org Reply-To: kan.liang@intel.com, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, akpm@linux-foundation.org, tglx@linutronix.de, zheng.z.yan@intel.com, hpa@zytor.com, torvalds@linux-foundation.org In-Reply-To: <1430940834-8964-7-git-send-email-kan.liang@intel.com> References: <1430940834-8964-7-git-send-email-kan.liang@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf/intel/x86: Enlarge the PEBS buffer Git-Commit-ID: 156174999dd1d0fe8732f5a05f4e9cef921ad487 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1978 Lines: 50 Commit-ID: 156174999dd1d0fe8732f5a05f4e9cef921ad487 Gitweb: http://git.kernel.org/tip/156174999dd1d0fe8732f5a05f4e9cef921ad487 Author: Yan, Zheng AuthorDate: Wed, 6 May 2015 15:33:52 -0400 Committer: Ingo Molnar CommitDate: Sun, 7 Jun 2015 16:08:57 +0200 perf/intel/x86: Enlarge the PEBS buffer Currently the PEBS buffer size is 4k, it can only hold about 21 PEBS records. This patch enlarges the PEBS buffer size to 64k (the same as the BTS buffer). 64k memory can hold about 330 PEBS records. This will significantly reduce the number of PMIs when batched PEBS interrupts are enabled. Signed-off-by: Yan, Zheng Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Cc: Andrew Morton Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: acme@infradead.org Cc: eranian@google.com Link: http://lkml.kernel.org/r/1430940834-8964-7-git-send-email-kan.liang@intel.com Signed-off-by: Ingo Molnar --- arch/x86/kernel/cpu/perf_event_intel_ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/perf_event_intel_ds.c b/arch/x86/kernel/cpu/perf_event_intel_ds.c index 6285247..266079a 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_ds.c +++ b/arch/x86/kernel/cpu/perf_event_intel_ds.c @@ -11,7 +11,7 @@ #define BTS_RECORD_SIZE 24 #define BTS_BUFFER_SIZE (PAGE_SIZE << 4) -#define PEBS_BUFFER_SIZE PAGE_SIZE +#define PEBS_BUFFER_SIZE (PAGE_SIZE << 4) #define PEBS_FIXUP_SIZE PAGE_SIZE /* -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/