From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932157AbbBZSrK (ORCPT ); Thu, 26 Feb 2015 13:47:10 -0500 Received: from mga03.intel.com ([134.134.136.65]:44358 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752986AbbBZSrI (ORCPT ); Thu, 26 Feb 2015 13:47:08 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,654,1418112000"; d="scan'208";a="533344794" Message-ID: <1424976420.15321.35.camel@mfleming-mobl1.ger.corp.intel.com> Subject: Re: [tip:perf/x86] perf/x86/intel: Add Intel Cache QoS Monitoring support From: Matt Fleming To: , , , , , , , , , , CC: Date: Thu, 26 Feb 2015 18:47:00 +0000 In-Reply-To: References: <1422038748-21397-6-git-send-email-matt@codeblueprint.co.uk> Organization: Intel Corporation (UK) Ltd. - Registered No. 1134945 - Pipers Way, Swindon SN3 1RJ Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [163.33.239.180] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2015-02-25 at 20:15 -0800, tip-bot for Matt Fleming wrote: > Commit-ID: 4afbb24ce5e723c8a093a6674a3c33062175078a > Gitweb: http://git.kernel.org/tip/4afbb24ce5e723c8a093a6674a3c33062175078a > Author: Matt Fleming > AuthorDate: Fri, 23 Jan 2015 18:45:44 +0000 > Committer: Ingo Molnar > CommitDate: Wed, 25 Feb 2015 13:53:32 +0100 > > perf/x86/intel: Add Intel Cache QoS Monitoring support > > Future Intel Xeon processors support a Cache QoS Monitoring feature that > allows tracking of the LLC occupancy for a task or task group, i.e. the > amount of data in pulled into the LLC for the task (group). > > Currently the PMU only supports per-cpu events. We create an event for > each cpu and read out all the LLC occupancy values. > > Because this results in duplicate values being written out to userspace, > we also export a .per-pkg event file so that the perf tools only > accumulate values for one cpu per package. > > Signed-off-by: Matt Fleming > Signed-off-by: Peter Zijlstra (Intel) > Cc: Arnaldo Carvalho de Melo > Cc: Arnaldo Carvalho de Melo > Cc: H. Peter Anvin > Cc: Jiri Olsa > Cc: Kanaka Juvva > Cc: Linus Torvalds > Cc: Vikas Shivappa > Link: http://lkml.kernel.org/r/1422038748-21397-6-git-send-email-matt@codeblueprint.co.uk > Signed-off-by: Ingo Molnar > --- > arch/x86/kernel/cpu/perf_event_intel_cqm.c | 530 +++++++++++++++++++++++++++++ > include/linux/perf_event.h | 7 + > 2 files changed, 537 insertions(+) Weird. I just noticed that the Makefile hunk got dropped. Was that intentional? diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile index 80091ae54c2b..6c1ca139f736 100644 --- a/arch/x86/kernel/cpu/Makefile +++ b/arch/x86/kernel/cpu/Makefile @@ -39,7 +39,7 @@ obj-$(CONFIG_CPU_SUP_AMD) += perf_event_amd_iommu.o endif obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_p6.o perf_event_knc.o perf_event_p4.o obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_lbr.o perf_event_intel_ds.o perf_event_intel.o -obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_rapl.o +obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_rapl.o perf_event_intel_cqm.o obj-$(CONFIG_PERF_EVENTS_INTEL_UNCORE) += perf_event_intel_uncore.o \ perf_event_intel_uncore_snb.o \