Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1058470rwl; Fri, 4 Nov 2022 09:17:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hHqSH2ulp4SbeI0gyIMZcFg3lYACeSSIqvRpDAF36MHYm62gZeWBjDPyqSfqev6k2ZkvF X-Received: by 2002:a05:6402:3408:b0:43c:2dd3:d86b with SMTP id k8-20020a056402340800b0043c2dd3d86bmr36757362edc.108.1667578655547; Fri, 04 Nov 2022 09:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667578655; cv=none; d=google.com; s=arc-20160816; b=B720xdhdzKXC2Rmr+3XTMhppXOKGPJhgsDNFW77tiDAC6zuaaGABt+ngqqCwXtfxWt qyzujnoYjH/idQju5BVZ8hPT4+vlytgjsuEHR9AEGdUpM9zcsG5AGiPRRLzy4C8ZdbyT ctiHenWIFY6YL1CU4IviFG0UGBH6InO9Z4qm3zuHzC5viRDCnWu2BG01M8W5nKEk3Ahl H6zthjtEjui1RIHP1ZPJGtlp1ppNDUmaR+cbaWccl3tx1T0mXCI6WfBSe3lI+hFWhK8b 4iOZzKJH5koceYr00D/5wXjS9QBFXJscRfxlXDfaUKJTtJWWK7Zzc6jdCCsiuFCULaaA KRCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=rdANC8NrUTH0lQipJQx568c5Das7/Cs95kVjxC07YnA=; b=bmEqoRmPysP2pDKYvX0c0f/YMLOp6bIn32rug+hDvEqX6X80kWGwrvMmRtn1qebun4 +Oq79fPtX26cc0o+SlQCTcSm88LRFrtaTTKaMi2xL8Ogdo479ZEQkCEIzq3F9kAMH39B 6XdQ7mC5kNGcCKNo1AfuHPb23DvBxfQ9Oh/1cxOLWZ0CP87wCn7M/H9JWX8jfIAinSyj k7jB1NGn1vOERVTIlwLFOcbUMWvUeLZBRnzrqbQJ/sBUYSKRGBpB/kz2pG1rqkYmKk2L RcWzo1rSb2HlUDs4uhDL60Cmk9DyQuMdZwLgQYiq04bui6847gFzKbYVoskH8cUtgOT0 D2YA== ARC-Authentication-Results: i=1; mx.google.com; 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 g12-20020a170906538c00b0078d288ddfc9si4016407ejo.143.2022.11.04.09.17.09; Fri, 04 Nov 2022 09:17:35 -0700 (PDT) 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; 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 S232072AbiKDP4G (ORCPT + 96 others); Fri, 4 Nov 2022 11:56:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231966AbiKDPzd (ORCPT ); Fri, 4 Nov 2022 11:55:33 -0400 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EBDD303DE; Fri, 4 Nov 2022 08:55:32 -0700 (PDT) Received: by mail-ot1-f50.google.com with SMTP id cb2-20020a056830618200b00661b6e5dcd8so2882250otb.8; Fri, 04 Nov 2022 08:55:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rdANC8NrUTH0lQipJQx568c5Das7/Cs95kVjxC07YnA=; b=CUjfTPlV4R9Ip2xcxLX8KstCUgdyYGe0KvrOfE5iY/4ngx95li6kOh6XNeZVE/hyOO ntmV9QXxc51HCSXHd00Rn6z3hRMIAf1fz++FPO3Q/YzTRuNHyCOmAFjZX7NL0tQIh16j ZErXMnhm/bfLL7x89EmLJLe8Fq6r6fL5XXzBRvzxgSdBocudyVcUg+6USB0AC8s8ZmjM 8w8/68JHbs69+yE+Rctpy5XsH66/M7MW41LTXy3KTiGvkcPLqImq0k6HIU3lqfcFYeHk KxGJRR1QY5juG9Z2jVP3HwjV2FF8fvGJwxKb4KBikWhfD0CPmKyl9LFtq4vWRcDwK2El Hv9g== X-Gm-Message-State: ACrzQf1i43DlDElM8KUzw4KXtBOUcpOFL0Q0YC19IxMloaKQCp+aVKeE sbvnSrrQ+uVDJcviGnrXSw== X-Received: by 2002:a05:6830:1241:b0:66c:3bc2:f919 with SMTP id s1-20020a056830124100b0066c3bc2f919mr16838358otp.33.1667577331662; Fri, 04 Nov 2022 08:55:31 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id l21-20020a05687040d500b0013d9bd4ad2esm1906311oal.12.2022.11.04.08.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 08:55:31 -0700 (PDT) Received: (nullmailer pid 1880422 invoked by uid 1000); Fri, 04 Nov 2022 15:55:18 -0000 From: Rob Herring Date: Fri, 04 Nov 2022 10:55:07 -0500 Subject: [PATCH v3 7/8] perf: Add perf_event_attr::config3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20220825-arm-spe-v8-7-v3-7-87682f78caac@kernel.org> References: <20220825-arm-spe-v8-7-v3-0-87682f78caac@kernel.org> In-Reply-To: <20220825-arm-spe-v8-7-v3-0-87682f78caac@kernel.org> To: Namhyung Kim , Will Deacon , Arnaldo Carvalho de Melo , Jiri Olsa , Peter Zijlstra , Alexander Shishkin , Mark Rutland , Catalin Marinas , Marc Zyngier , Oliver Upton , Ingo Molnar , Suzuki K Poulose , James Morse , Alexandru Elisei Cc: 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 X-Mailer: b4 0.11.0-dev X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no 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 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 */ }; /* -- b4 0.11.0-dev