Message ID | 20220914-arm-perf-tool-spe1-2-v2-v5-1-2cf5210b2f77@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp105688wrn; Fri, 17 Feb 2023 14:50:23 -0800 (PST) X-Google-Smtp-Source: AK7set8M3ymog3KrPDss51wbvgXIG0/q7Q9g4GexZMkY0ZMLdDUoPvimunrJx2+cOqArbAVPwicr X-Received: by 2002:a17:902:d512:b0:198:b945:4108 with SMTP id b18-20020a170902d51200b00198b9454108mr1700248plg.0.1676674223588; Fri, 17 Feb 2023 14:50:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676674223; cv=none; d=google.com; s=arc-20160816; b=URvJkSejRU7bDxsG6Wjmp5bDl25biCc6R4JQFbNOIqCRvRfqVFQI4FdvS2Q2OI/8xP 2NKUGFhzY1apmG0yToXGZKmu1Hpx4MT+i0DwMQhzDmotA0GONhmn8uuaXiEKdqCL4/oK 3zEvQHjKnq+L14aM7L2Rnp1WFGscUzYOv/ZzKQat7sKQYRAdpTwiUdm4dzz6ujccI/Ls ltdpaGvYJ+WMA36KC3yPDpihimADmyrL4d+Z8cvgsjwgD+n8/VNMbgrkxZstLslzcUnS s7OdJAilK+ERMrC9tblfOczYmCMqx4wIAccK2A10Vc6KbXIsM790FyT6i2YyajNTzr2h Ii9A== 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=SbC3ABHgFRUeSPinI56x4NwNJDxlP/+l8DvbcCpDuKU=; b=ulocM29s2DvMQzIr//REH3AhN0VENkbqCFnr8BQKHokGpnAgh3MMjET5jQ93xJKyUp BbgmaRzLO9C6mRdUvRq71Al5N36wR74gIP/sxa2H2zFcBx6i7rYikQjbJimiyMpUu7TA ydBkCMoRbWT45uN1RQ/vXZ6yeoy17ooXFTOnujd65KQDN3PV9w8OqMYXlxiAtgBToihX MCucDtOKT51cAzYUCCRAiSD/QXDYAN3ijoVKu1RKlYLM5QrqoGdfOtcOiXlNQW7ryuEF wjFnCS4JfWuswbRGlcVHrlAcTkyk7tCU6p4Veo6SgamiYoVrIfqDq3yNMejOeFtosoXd AjJg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a170902ce8c00b0019912996c0bsi1086964plg.569.2023.02.17.14.50.10; Fri, 17 Feb 2023 14:50:23 -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; 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 S229881AbjBQWcp (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 17 Feb 2023 17:32:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbjBQWcn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Feb 2023 17:32:43 -0500 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57C065FC40; Fri, 17 Feb 2023 14:32:41 -0800 (PST) Received: by mail-ot1-f43.google.com with SMTP id f97-20020a9d2c6a000000b00690ee4a5febso544632otb.0; Fri, 17 Feb 2023 14:32:41 -0800 (PST) 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=SbC3ABHgFRUeSPinI56x4NwNJDxlP/+l8DvbcCpDuKU=; b=OOEdEd19z0jXI4jyYEBFjxlfoIyBQnlQNyDd9MSr8ASJpAmOFHFCn/fxSZPKHq3fAQ QF/Oexuvmtbr+b+Re1o7FMXS2pUvwuNcnc6IcGDmRce67ZdNVpKOHinCyTfvQ0yoWHHD JLwuTRoBe0NgEBAjQXcrKriLTAUEPT2Y6le1ZdaQMF1NRGddJ5A06lBOPZ9rLheid+On YvbGRLefzZp2l4e25hHmWDcylcZ5E2kt/lXeuTAt18odeSBcoTGt7k1QQn5E/H4PWzH1 9s5UfnovR1toL/gm6YEdh5+QU4r60M7yjrPBNHHXVjsIw2deHGCD4TK9wNSJ1U0IyANm gGQA== X-Gm-Message-State: AO0yUKWo1I45js8P3+cb/xpUpNgFJy2wbhqQs5g8fQS1Bx2N7UnwNhrc F+kxbVk1AwjTDikU/AJYwrq8iNAvZw== X-Received: by 2002:a9d:7005:0:b0:68b:b06a:5b8b with SMTP id k5-20020a9d7005000000b0068bb06a5b8bmr677081otj.0.1676673160522; Fri, 17 Feb 2023 14:32:40 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id t4-20020a9d5904000000b0068d01839027sm2354861oth.30.2023.02.17.14.32.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 14:32:40 -0800 (PST) Received: (nullmailer pid 1684708 invoked by uid 1000); Fri, 17 Feb 2023 22:32:38 -0000 From: Rob Herring <robh@kernel.org> Date: Fri, 17 Feb 2023 16:32:10 -0600 Subject: [PATCH v5 1/2] perf tools: Sync perf_event_attr::config3 addition MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20220914-arm-perf-tool-spe1-2-v2-v5-1-2cf5210b2f77@kernel.org> References: <20220914-arm-perf-tool-spe1-2-v2-v5-0-2cf5210b2f77@kernel.org> In-Reply-To: <20220914-arm-perf-tool-spe1-2-v2-v5-0-2cf5210b2f77@kernel.org> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org> Cc: Leo Yan <leo.yan@linaro.org>, James Clark <james.clark@arm.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org X-Mailer: b4 0.13-dev X-Spam-Status: No, score=-1.1 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758120350417712551?= X-GMAIL-MSGID: =?utf-8?q?1758120350417712551?= |
Series |
perf tool: 'config3' attribute support
|
|
Commit Message
Rob Herring
Feb. 17, 2023, 10:32 p.m. UTC
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 <robh@kernel.org>
---
This matches commit 09519ec3b19e ("perf: Add perf_event_attr::config3")
for the kernel queued in linux-next.
---
tools/include/uapi/linux/perf_event.h | 3 +++
1 file changed, 3 insertions(+)
Comments
Em Fri, Feb 17, 2023 at 04:32:10PM -0600, Rob Herring escreveu: > 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 <robh@kernel.org> > --- > This matches commit 09519ec3b19e ("perf: Add perf_event_attr::config3") > for the kernel queued in linux-next. When you mention linux-next where was it that it picked this from? For me to get this merged into the perf tools "next" (perf/core) it must already have been merged in the kernel counterpart (tip/perf/core). Ok so it is not in tip/perf/core, but got in next yesterday, and PeterZ acked it, good, will process it soon. - Arnaldo ⬢[acme@toolbox perf]$ git show 09519ec3b19e commit 09519ec3b19e4144b5f6e269c54fbb9c294a9fcb Author: Rob Herring <robh@kernel.org> Date: Mon Jan 9 13:26:23 2023 -0600 perf: Add perf_event_attr::config3 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 <james.clark@arm.com> Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220825-arm-spe-v8-7-v4-7-327f860daf28@kernel.org Signed-off-by: Will Deacon <will@kernel.org> diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index ccb7f5dad59be96b..37675437b76860ae 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 */ }; /* ⬢[acme@toolbox perf]$ ⬢[acme@toolbox perf]$ ⬢[acme@toolbox perf]$ ⬢[acme@toolbox perf]$ ⬢[acme@toolbox perf]$ git tag --contains 09519ec3b19e4144b5f6e269c54fbb9c294a9fcb next-20230217 ⬢[acme@toolbox perf]$ > --- > tools/include/uapi/linux/perf_event.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h > index ea6defacc1a7..a38814ce9485 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -365,6 +365,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: > @@ -506,6 +507,8 @@ struct perf_event_attr { > * truncated accordingly on 32 bit architectures. > */ > __u64 sig_data; > + > + __u64 config3; /* extension of config2 */ > }; > > /* > > -- > 2.39.1 >
On 2/18/23 04:02, 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. > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > This matches commit 09519ec3b19e ("perf: Add perf_event_attr::config3") > for the kernel queued in linux-next. > --- > tools/include/uapi/linux/perf_event.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h > index ea6defacc1a7..a38814ce9485 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -365,6 +365,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: > @@ -506,6 +507,8 @@ struct perf_event_attr { > * truncated accordingly on 32 bit architectures. > */ > __u64 sig_data; > + > + __u64 config3; /* extension of config2 */ Patch looks fine to me. Reviewed-by: Kajol Jain <kjain@linux.ibm.com> Thanks, Kajol Jain > }; > > /* >
On Sat, Feb 18, 2023 at 7:21 AM Arnaldo Carvalho de Melo <acme@kernel.org> wrote: > > Em Fri, Feb 17, 2023 at 04:32:10PM -0600, Rob Herring escreveu: > > 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 <robh@kernel.org> > > --- > > This matches commit 09519ec3b19e ("perf: Add perf_event_attr::config3") > > for the kernel queued in linux-next. > > When you mention linux-next where was it that it picked this from? > > For me to get this merged into the perf tools "next" (perf/core) it must > already have been merged in the kernel counterpart (tip/perf/core). > > Ok so it is not in tip/perf/core, but got in next yesterday, and PeterZ > acked it, good, will process it soon. Hi Arnaldo, Are you going to apply this or are you expecting something from me? Rob
Em Mon, Mar 20, 2023 at 01:21:10PM -0500, Rob Herring escreveu: > On Sat, Feb 18, 2023 at 7:21 AM Arnaldo Carvalho de Melo > <acme@kernel.org> wrote: > > > > Em Fri, Feb 17, 2023 at 04:32:10PM -0600, Rob Herring escreveu: > > > 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 <robh@kernel.org> > > > --- > > > This matches commit 09519ec3b19e ("perf: Add perf_event_attr::config3") > > > for the kernel queued in linux-next. > > > > When you mention linux-next where was it that it picked this from? > > > > For me to get this merged into the perf tools "next" (perf/core) it must > > already have been merged in the kernel counterpart (tip/perf/core). > > > > Ok so it is not in tip/perf/core, but got in next yesterday, and PeterZ > > acked it, good, will process it soon. > > Hi Arnaldo, Are you going to apply this or are you expecting something from me? Sorry for the delay, applied. - Arnaldo
diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index ea6defacc1a7..a38814ce9485 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -365,6 +365,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: @@ -506,6 +507,8 @@ struct perf_event_attr { * truncated accordingly on 32 bit architectures. */ __u64 sig_data; + + __u64 config3; /* extension of config2 */ }; /*