From patchwork Fri Nov 4 15:55:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13032243 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 37D2FC4332F for ; Fri, 4 Nov 2022 15:58:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0DyFfTltXm26KJSNRStK+pziLq+9mXBWLmbB2ejutso=; b=qvsA91l0DcVzxz OmysHz1xB3L89On2KVetz6qGtqPjhBajG9zZ9yd/OuMa8v/52dLdXb30nLSv2qoJoQIz47l96wdj6 rpKVrvzMnxky+3xZaqDinvYrQ6WiAEKi5qRoQbkBe1AMEL7JKphGNZsvEscJzEfBdu9jxt1/LxZdD zQVJJK0wHAvd+E/UOtX+JoSRkxAN6zVhzzPPQGMSJQP351FamYLlpW3+nLNHN1BaVIMjyc+/GARz9 W2qiox6RHApJvicRe0TuUJRaRFovFOYLxmZ2gcqCHrEY2ujxpFYw2EvSLnhC+Ma1Z8YejWsV0Hxsz qeVRkwhMMEfMO0FaqToA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqz4X-004MBP-1H; Fri, 04 Nov 2022 15:57:33 +0000 Received: from mail-ot1-f49.google.com ([209.85.210.49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqz2b-004LOy-0V for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 15:55:34 +0000 Received: by mail-ot1-f49.google.com with SMTP id k59-20020a9d19c1000000b0066c45cdfca5so2877484otk.10 for ; 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=uvdCvyoHXVxyvdGivjBG8otgYjI/EptDlmLdgbpj42PDcsfK3zxlcMo21VvQ7EsUxO ikDg4ra5pvTBr5bXsSQuYsYExcHottd0nnKeS1+a8DwE5aIhaAfXwx1Qs+fdoCPxodKV KQvSElGTNtjonob08o34h8WXp6D1kmaQzyXU/QKv+sdFmKe1DMLaQ8DP1JvUN1y4apkM xEQZAji4OTLoDxWeMjIjxHzkS0KF2crh6IdaDT4zJZZvpBwhe612Q7OsWk9tSo8+Yc9T v4EVXnVQALAE3+H6A6H44LuEN3+wyyu9ZgsDdnm68Dh4aaWCAgDJjPyaD58ARV0l6gsZ pphw== X-Gm-Message-State: ACrzQf3tH51fTnljX2hxIRDuC7cgKHSw82QwN/Icas740OjYzXHGKJxG 5vOR9XfXqLVcJdm9wZ5IvQ== X-Google-Smtp-Source: AMsMyM59dgaW5KOcOiwYnuILFe/BJR9IA6bPecpfclxA2KHdZ3Eq+UoizXI26yxdMDvL0GyieiOjSA== 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_085533_071340_8B2FFBB7 X-CRM114-Status: GOOD ( 12.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 */ }; /*