Re: [PATCH v7 2/4] perf/smmuv3: Add arm64 smmuv3 pmu driver

2019-04-04 Thread Will Deacon
On Tue, Mar 26, 2019 at 03:17:51PM +, Shameer Kolothum wrote: > From: Neil Leeder > > Adds a new driver to support the SMMUv3 PMU and add it into the > perf events framework. > > Each SMMU node may have multiple PMUs associated with it, each of > which may support different events. > >

RE: [PATCH v7 2/4] perf/smmuv3: Add arm64 smmuv3 pmu driver

2019-03-26 Thread Shameerali Kolothum Thodi
..@arm.com; Guohanjun (Hanjun Guo) > ; John Garry ; > pa...@codeaurora.org; vkil...@codeaurora.org; rruig...@codeaurora.org; > linux-a...@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; Linuxarm ; > neil.m.lee...@gmail.com > Subject: Re: [PATC

Re: [PATCH v7 2/4] perf/smmuv3: Add arm64 smmuv3 pmu driver

2019-03-26 Thread Robin Murphy
Hi Shameer, On 26/03/2019 15:17, Shameer Kolothum wrote: [...] +static int smmu_pmu_apply_event_filter(struct smmu_pmu *smmu_pmu, + struct perf_event *event, int idx) +{ + u32 span, sid; + unsigned int num_ctrs = smmu_pmu->num_counters; +