Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754236AbcJDQ0A (ORCPT ); Tue, 4 Oct 2016 12:26:00 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58519 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753973AbcJDQZ6 (ORCPT ); Tue, 4 Oct 2016 12:25:58 -0400 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org C10A4616B3 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=nleeder@codeaurora.org Subject: Re: [PATCH v6] soc: qcom: add l2 cache perf events driver To: Mark Rutland References: <1474492374-12140-1-git-send-email-nleeder@codeaurora.org> <20161004155304.GB29008@leverpostej> Cc: Catalin Marinas , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Langsdorf , Mark Salter , Jon Masters , Timur Tabi , cov@codeaurora.org, nleeder@codeaurora.org From: Neil Leeder Message-ID: <4d049ac5-2661-9af5-561b-6cd4029c3b83@codeaurora.org> Date: Tue, 4 Oct 2016 12:25:54 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20161004155304.GB29008@leverpostej> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1926 Lines: 51 On 10/4/2016 11:53 AM, Mark Rutland wrote: > Hi Neil, > > On Wed, Sep 21, 2016 at 05:12:54PM -0400, 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 | 9 + >> drivers/soc/qcom/Makefile | 1 + >> drivers/soc/qcom/perf_event_l2.c | 948 +++++++++++++++++++++++++++++++++++++++ >> include/linux/cpuhotplug.h | 1 + >> 4 files changed, 959 insertions(+) >> create mode 100644 drivers/soc/qcom/perf_event_l2.c > > Apologies for the delay; this has been on my todo list, but I've been a > little distracted and haven't had the time necessary to devote to this. > It's somewhat unusual given the constraint logic and the percpu uncore > component, so there's more to consider than usual. > > At a high level, this will need to be moved to drivers/perf/, per [1]. > > Can you move the driver there, and post the result atop of v4.8-rc1 at > the end of the merge window? Until then, I can't guarantee that I'll > have the time to look at this. > > Can you also give Vince's perf fuzzer [2] a spin against the driver? I > can't recall if we covered that previously, and in practice it's found a > number of issues in drivers that have otherwise looked fine. If you've > done so, it'd be worth noting in the cover. > > Thanks, > Mark. > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-September/457188.html > [2] https://github.com/deater/perf_event_tests > Thanks Mark. I'll move it, rebase on 4.9-rc1 and run perf fuzzer. 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.