From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbcHHT5g (ORCPT ); Mon, 8 Aug 2016 15:57:36 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49622 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752167AbcHHT5e (ORCPT ); Mon, 8 Aug 2016 15:57:34 -0400 Subject: Re: [PATCH v2 2/2] soc: qcom: add l2 cache perf events driver To: Paul Gortmaker References: <1470345071-9455-1-git-send-email-nleeder@codeaurora.org> <1470345071-9455-3-git-send-email-nleeder@codeaurora.org> Cc: Catalin Marinas , Will Deacon , Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-arm-msm@vger.kernel.org, LKML , "linux-arm-kernel@lists.infradead.org" , Mark Langsdorf , Mark Salter , Jon Masters , Timur Tabi , cov@codeaurora.org From: Neil Leeder Message-ID: Date: Mon, 8 Aug 2016 15:57:30 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/5/2016 07:15 PM, Paul Gortmaker wrote: > On Thu, Aug 4, 2016 at 5:11 PM, Neil Leeder wrote: >> Adds perf events support for L2 cache PMU. >> >> The L2 cache PMU driver is named 'l2cache_0' and can be used >> with perf events to profile L2 events such as cache hits >> and misses. >> >> Signed-off-by: Neil Leeder >> --- >> drivers/soc/qcom/Kconfig | 10 + >> drivers/soc/qcom/Makefile | 1 + >> drivers/soc/qcom/perf_event_l2.c | 839 +++++++++++++++++++++++++++++++++ >> include/linux/soc/qcom/perf_event_l2.h | 81 ++++ >> 4 files changed, 931 insertions(+) >> create mode 100644 drivers/soc/qcom/perf_event_l2.c >> create mode 100644 include/linux/soc/qcom/perf_event_l2.h >> >> diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig >> index 21ec616..0b5ddb9 100644 >> --- a/drivers/soc/qcom/Kconfig >> +++ b/drivers/soc/qcom/Kconfig >> @@ -19,6 +19,16 @@ config QCOM_L2_ACCESSORS >> Provides support for accessing registers in the L2 cache >> for Qualcomm Technologies chips. >> >> +config QCOM_PERF_EVENTS_L2 >> + bool "Qualcomm Technologies L2-cache perf events" > > Since this is a bool, you shouldn't need module.h in your driver or > any MODULE_ tags (if there are any). > > Thanks, > Paul. > -- You're right - I'll clean up the include list and sort it alphabetically while I'm at it. Thanks, Neil -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.