From mboxrd@z Thu Jan 1 00:00:00 1970 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 70384C433FE for ; Wed, 19 Oct 2022 19:13:13 +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=kGvQ7UUn2efd/t3QoOUrG5xKQF4aGqko7xMQrUp936s=; b=djjUv8ASsjzDNo n/kR2Otefp+d4fr3mEr4vAibdMTUDzBQU5vCynQVqpgBl4w6e70zm34rrFtLV1zLltqWMYV1/M/Qc QQ1wZ7JMUPD/wpdjQoWW4yAS5XiU12ZNSpWQSnUCcJVtu7314XjKa5eQn/eTjMnEwmBEhpAq7fEjI q27FyfQxKjRLquX4dMwiwtN19AxW1giLIh7wcxcaA973TyLi6kn2/1C5ko5XjNZoM6oPBQHxE+zY2 Hq6/aVa8e6/aRktXoK+MRvbo36J4bqjd+UotcvA6unjyY4eAZJ7lsAGrzJlgTD6Dk4pdHiDSxHLNU FAOFY9tBLZvKdv0Rzjig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1olETv-004nAm-SC; Wed, 19 Oct 2022 19:12:03 +0000 Received: from mail-oi1-f174.google.com ([209.85.167.174]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1olETS-004n20-UQ for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2022 19:11:34 +0000 Received: by mail-oi1-f174.google.com with SMTP id w196so20341023oiw.8 for ; Wed, 19 Oct 2022 12:11:29 -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=4nOSzjJQMiiQFtQCXOfHoj5W8uYrP30fMIHaTAT/kCc=; b=aotV8KVhmFcn0i0pH7ZzXxua+x0efvkb+hUuVvrrRnSHAfYpvtCoKtG5LsjVcE4aHu YccdHDQmC3rwUIBqQHTM7cXqaRlr7U1pHS4PmJG2YwbmCBE4zVAtTdGrmczrtfxnkeFl msJUCX/061T99P/GlO22HS2NiODB32lAtkOPl40LCskLcDcG7DgL81xR8KLebG8KV/31 YXcFazXqAXoSFgJTtRXueGcApjUWFVZ/QtizIdonv+nq0suGySbKM+oY8/JvOpoYyRXF Bdkh0SDnkdxDovCYTsLuVdquOEE5I/nY/oVemyJhBM953WPazIuurZ1HmtDWONGetycp x+Bw== X-Gm-Message-State: ACrzQf0/MrNHTMQv2vilwOxzw8JgyhcmZ1evM3z7kDFsi/YFGIyGTdNo BIMt4TbjWs8pxD134de6TA== X-Google-Smtp-Source: AMsMyM6hBFo6lc3QPPJZLi2rdtLDIwN0Hv6MsBsjwIii7y66xrRf5EteOTh2AxrGHMhQuml0B0j83w== X-Received: by 2002:a05:6808:3090:b0:354:e8e2:6512 with SMTP id bl16-20020a056808309000b00354e8e26512mr18775295oib.118.1666206688760; Wed, 19 Oct 2022 12:11:28 -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 z9-20020a056870460900b0013191b00f72sm7878011oao.17.2022.10.19.12.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 12:11:28 -0700 (PDT) Received: (nullmailer pid 3420908 invoked by uid 1000); Wed, 19 Oct 2022 19:11:25 -0000 From: Rob Herring Date: Wed, 19 Oct 2022 14:11:29 -0500 Subject: [PATCH v2 6/7] perf: Add perf_event_attr::config3 MIME-Version: 1.0 Message-Id: <20220825-arm-spe-v8-7-v2-6-e37322d68ac0@kernel.org> References: <20220825-arm-spe-v8-7-v2-0-e37322d68ac0@kernel.org> In-Reply-To: <20220825-arm-spe-v8-7-v2-0-e37322d68ac0@kernel.org> To: Namhyung Kim , James Morse , Ingo Molnar , Mark Rutland , Marc Zyngier , Suzuki K Poulose , Will Deacon , Alexandru Elisei , Catalin Marinas , Arnaldo Carvalho de Melo , Peter Zijlstra , Alexander Shishkin , Oliver Upton , Jiri Olsa Cc: kvmarm@lists.cs.columbia.edu, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.11.0-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221019_121131_048367_F6A3DE8A X-CRM114-Status: GOOD ( 12.28 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. Signed-off-by: Rob Herring --- 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel