Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15124342rwb; Mon, 28 Nov 2022 08:12:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf41BoTD8AbXCpWHdmYYqwrfthHXEiM8qaHWRxahjdePoQ5rUilWRnIUs9vltymZuePMd6Vn X-Received: by 2002:a17:907:cf92:b0:7bf:7a65:b242 with SMTP id ux18-20020a170907cf9200b007bf7a65b242mr5586481ejc.356.1669651958203; Mon, 28 Nov 2022 08:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669651958; cv=none; d=google.com; s=arc-20160816; b=jmCAOlBLiff/himTB2TjZO5jbYNTFjvDAIMXNvX2ddM9ZS4N+gI3q7ynw+MGJ+npBl 1AKduGI5tnPBDZ70Rv0ifduvQeY5PBWeOSUhDW0gQvJRDRTNrbVzojAPIb7QR6cS8Tqv lPclOtOBGyRkMMOB0gifWgK2vCSgbZyAWmaFifRjL67K5FfaU3HTQ6J1amZZRYxiop5v I1/2eNLZNLnglMCOULXh1r1BuBayzpPcHxpP6A5qs8RPnSU4nt+fyFmj1V4ZO3aa7QFB dsymisbPWtCGGd1TlvCd3Rcr4AB1yQDHVqaJHYtg0NqjRJHCufEKrrSUlGDpfhFVbnx/ mhkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=O5pyOzVKiOaI2X34ZJbThTGaAMvAJxDU4DAPpwFwG30=; b=RzzbtuIcJTduVF5SzOzFTCo3PUH32SHmqAz7XZLsvYDVSVCOrjVFdfGcrOv/bXdcCT npq/UasgmSi7uv/RNvqZBoFFFznzvur8e0uapS8XCV/QCImd8SnLrJa3KkvNCs8AmdeS H8CFjpPMbuemmdlF3CTQId+6LT7qpO6PLopv7sirht5JAX+JqkuePhvSusAm7OlE/rkM kQ0RjGnrE+5sBl+tApX6m2AdUxVE1xkZQa+EK8CujE3KvKeMC0iSpkeIfOpHF2hifp1M 1jzymXvleNzjueI7GxSli1GO3Vl+WPMZJXIo66xW3BUhZ09/FeBdXA/NMQOPfLGZ4xy9 bA4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ucSbWoT0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056402270800b0046abe65b8f7si7842085edd.159.2022.11.28.08.12.10; Mon, 28 Nov 2022 08:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ucSbWoT0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbiK1Pht (ORCPT + 84 others); Mon, 28 Nov 2022 10:37:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232097AbiK1Phm (ORCPT ); Mon, 28 Nov 2022 10:37:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DBCC21A8; Mon, 28 Nov 2022 07:37:42 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 86DA461241; Mon, 28 Nov 2022 15:37:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5346C433D6; Mon, 28 Nov 2022 15:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669649860; bh=axC0bOfcmCXcacu/P2Pz0VCjCGhZUlb2iE5k15oCKYg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ucSbWoT0+0wduq4sl2bVdpv3u2Q9Pddm6ucmKKK7+ELAgmXlReOH/bMpzEmtxhbHs LdDMsxtzEDSxU9TFIdoeEfaBc9OrPslaYn4tLvdiR8yeKH+mGhw8d6ZPEGgFPYsgjj qzdrMezj/xH7d/hFfKqFBevU2I5BOw1SklGasLhO7DHeZFV8x72SMzkYSZaQaDjZeh bpyDvj80fLeqGTdjswxum0xOPZi5qas91sc/aAcQwTxgVMLfaPNgoDxhIKBdhTjKX3 XvjA/GieW4tTrlq+WgHuBB200PFObXnJknm7oGYlBAm2eYxhpxFCuG1lK0RVenS5qg 8rDNqw4GC2lkA== Received: by mail-vk1-f169.google.com with SMTP id s17so4201981vka.13; Mon, 28 Nov 2022 07:37:40 -0800 (PST) X-Gm-Message-State: ANoB5pm7dMWGacywE/TDUky1GqSWQE+secH8W8aby3sUm/KPQgytXq4M nf5AUcCMHTeYzrZEsi/Ix4I8ip16ggI3lNzJmg== X-Received: by 2002:a05:6122:b45:b0:3bc:811b:ddce with SMTP id 5-20020a0561220b4500b003bc811bddcemr20313339vko.35.1669649859866; Mon, 28 Nov 2022 07:37:39 -0800 (PST) MIME-Version: 1.0 References: <20220825-arm-spe-v8-7-v3-0-87682f78caac@kernel.org> <20220825-arm-spe-v8-7-v3-7-87682f78caac@kernel.org> <20221118164943.GA4872@willie-the-truck> In-Reply-To: <20221118164943.GA4872@willie-the-truck> From: Rob Herring Date: Mon, 28 Nov 2022 09:37:28 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 7/8] perf: Add perf_event_attr::config3 To: Will Deacon , Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar Cc: Namhyung Kim , Jiri Olsa , Alexander Shishkin , Mark Rutland , Catalin Marinas , Marc Zyngier , Oliver Upton , Suzuki K Poulose , James Morse , Alexandru Elisei , kvmarm@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, James Clark , Mark Brown , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18, 2022 at 10:49 AM Will Deacon wrote: > > On Fri, Nov 04, 2022 at 10:55:07AM -0500, Rob Herring wrote: > > Arm SPEv1.2 adds 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 'config3' field. > > > > Tested-by: James Clark > > Signed-off-by: Rob Herring > > --- > > v3: > > - No change > > v2: > > - Drop tools/ side update > > --- > > include/uapi/linux/perf_event.h | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > > index 85be78e0e7f6..b2b1d7b54097 100644 > > --- a/include/uapi/linux/perf_event.h > > +++ b/include/uapi/linux/perf_event.h > > @@ -374,6 +374,7 @@ enum perf_event_read_format { > > #define PERF_ATTR_SIZE_VER5 112 /* add: aux_watermark */ > > #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 */ > > > > /* > > * Hardware event_id to monitor via a performance monitoring event: > > @@ -515,6 +516,8 @@ struct perf_event_attr { > > * truncated accordingly on 32 bit architectures. > > */ > > __u64 sig_data; > > + > > + __u64 config3; /* extension of config2 */ > > I need an ack from the perf core maintainers before I can take this. Peter, Arnaldo, Ingo, Can I get an ack on this please. Rob