From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55F0B266EEA; Tue, 20 May 2025 11:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747741466; cv=none; b=MVRpcwg6ng+hG7kqG4lv5kakR3REwlx5PPXZCxcvzGoE9unl6U9EpWVYWj736wrcb/r/LDk/59fLkRQyAW2QnbIkGgtrHJDalVqTrQf1eZLNa6QwriIFIJpgb6e6lRbT2n5nvhbsrjQlJ85YVHiwdI+FgQjaq+QzsTnP6cUtgos= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747741466; c=relaxed/simple; bh=L1WyVe9zLtyPJzScsMT1xfgUXE3KD3nVWtdX6xgNB+A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iJjnM6hp/0imCVLVxwmvOt/PDxvUT6ZzEJ4PP2bNzP+H++f6/lrZjlncHd2/edYK72jlGPIYabqC2fR8klEgoMSl9C9Vv2W+QMzCCY+Al0A5lh+HrLHTKHsMTAJAhNO27OJTEfb6Rh31z2CKU471W/DZ5yLF7GAdiaJBs171H7A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 30E511516; Tue, 20 May 2025 04:44:11 -0700 (PDT) Received: from localhost (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 363743F6A8; Tue, 20 May 2025 04:44:24 -0700 (PDT) Date: Tue, 20 May 2025 12:44:22 +0100 From: Leo Yan To: James Clark Cc: Catalin Marinas , Will Deacon , Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Jonathan Corbet , Marc Zyngier , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev Subject: Re: [PATCH 06/10] perf: Add perf_event_attr::config4 Message-ID: <20250520114422.GP412060@e132581.arm.com> References: <20250506-james-perf-feat_spe_eft-v1-0-dd480e8e4851@linaro.org> <20250506-james-perf-feat_spe_eft-v1-6-dd480e8e4851@linaro.org> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250506-james-perf-feat_spe_eft-v1-6-dd480e8e4851@linaro.org> On Tue, May 06, 2025 at 12:41:38PM +0100, James Clark wrote: > Arm FEAT_SPE_FDS adds the ability to filter on the data source of a > packet using another 64-bits of event filtering control. As the existing > perf_event_attr::configN fields are all used up for SPE PMU, an > additional field is needed. Add a new 'config4' field. > > Signed-off-by: James Clark Reviewed-by: Leo Yan > --- > include/uapi/linux/perf_event.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 5fc753c23734..c7c2b1d4ad28 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -379,6 +379,7 @@ enum perf_event_read_format { > #define PERF_ATTR_SIZE_VER6 120 /* add: aux_sample_size */ > #define PERF_ATTR_SIZE_VER7 128 /* add: sig_data */ > #define PERF_ATTR_SIZE_VER8 136 /* add: config3 */ > +#define PERF_ATTR_SIZE_VER9 144 /* add: config4 */ > > /* > * Hardware event_id to monitor via a performance monitoring event: > @@ -533,6 +534,7 @@ struct perf_event_attr { > __u64 sig_data; > > __u64 config3; /* extension of config2 */ > + __u64 config4; /* extension of config3 */ > }; > > /* > > -- > 2.34.1 >