Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1455897iob; Fri, 29 Apr 2022 05:51:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwakvordDAKKC7b2NvLabSYq3v3k8wda/f+slJqPtVyIKWrPl05IC7Jw15QDdiDEFDltL3k X-Received: by 2002:a2e:b52f:0:b0:24f:10c2:a96f with SMTP id z15-20020a2eb52f000000b0024f10c2a96fmr16960192ljm.32.1651236686525; Fri, 29 Apr 2022 05:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651236686; cv=none; d=google.com; s=arc-20160816; b=dPMFSKVdXZnw81c62KeEpV8qCTucQfy4k3NS2qkdq/VHGSlrUkR5jFjOlA09PyV0z5 2F6IhC3cl9hRBV6mowZ2SSRXHTG7e24ImoLIytSS9RcJjc0fX2KWSYd2TaftJL7vN8K/ bEpw8Il/3oZdA2N7Dsb7ya0U3qw9ov3WMWLZUiQQjLrYV+5RIkhsjvCKfLQS9AA9xeyn BOUzjDkEsCo/J/gPSBZTVlqMBrY47rAupMmw3ezXZT7lRHrcGHRyxwwTXOI8rqEQa7C5 5gRtRWTn/kZ+T4Mfw+miAJLWHUxeXYDhJwV+C4YidtMc3ElQh4+RNnhKWnTHSdD4w79u AJaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TqCObctnn4JWu65ULk3FXgKOSiwBYrVdI0Egv6kANWI=; b=H7hbXCxdu6WV9KwnGauj7yG7KRAOMJpNqqVgm4PdLS+kNjNB6fAndzUXq24g3Aezek ISaeq9o6Bw1gdgBTLaJ7lOGP2u68euJ3AGGS5DGj1/w9jNUOZsYVK4oFtsdWlOzI5wGD YcnZkoIarGRm/fVP2klv/5TVpb77q7tPo2dc2KwvfA2mOwuMM30fnntanAG1pFeqGVsr SKfvWitO5yZcB9hroK1O90Lqtv7iUlaqB60KEKN59/2MFc2eVFSXD91BeeShOVYcDep+ FtSabLA2Xqc0SGWBGsU0vp4jOjoqjl1n2idjlbgQXT3Uj5klqQbORtAWlOdkkWmHKQge 1btQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CRQtEPEg; 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 z41-20020a0565120c2900b00471c6bac525si8491775lfu.67.2022.04.29.05.50.58; Fri, 29 Apr 2022 05:51:26 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CRQtEPEg; 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 S1347511AbiD1NpC (ORCPT + 99 others); Thu, 28 Apr 2022 09:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241572AbiD1NpA (ORCPT ); Thu, 28 Apr 2022 09:45:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 313F45BE7C; Thu, 28 Apr 2022 06:41:46 -0700 (PDT) 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 C037861743; Thu, 28 Apr 2022 13:41:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1704C385A0; Thu, 28 Apr 2022 13:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651153305; bh=P6NwmKSl37HKqsBkfsnaVlnnymPDnCBmzwPmXUQ33Ak=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CRQtEPEgZg+qRGcXuTGCR3GNA6UcwMOAVM5UjNZO6BYVYP4pCCWk8i7fjs3sy2MEm 9TUgHoQvu1wpc0V/GlaXgT+e7VAOUAvVKrSPSh2DnJZ+vM9lqDNj0NqR+2zX0aomZC LrxHktS11GBOa7o2PELLVIv2SCmVDmqiH53FrCdfw7haN6ceTrVIbPm6pszAq2B+8W zUSS4VeV8oc6ZCZfl6jKqnDlHAcU7UAyuSyJQ+8Otb3scEn1AAkn2S3IjJzaSWcLNm hGkcf2+6/BqhC5ST7vWg2bS2C1/Q0rphijrZ4y0hPfmi50jMKQhYVPtODDKEbYcRJC G1cD58+d4XOKg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1AC44400B1; Thu, 28 Apr 2022 10:41:42 -0300 (-03) Date: Thu, 28 Apr 2022 10:41:42 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan Cc: Timothy Hayes , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, John Garry , Will Deacon , Mathieu Poirier , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH 3/3] perf test: Add perf_event_attr test for Arm SPE Message-ID: References: <20220421165205.117662-1-timothy.hayes@arm.com> <20220421165205.117662-4-timothy.hayes@arm.com> <20220424145307.GE978927@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220424145307.GE978927@leoy-ThinkPad-X240s> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.7 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 Em Sun, Apr 24, 2022 at 10:53:07PM +0800, Leo Yan escreveu: > On Thu, Apr 21, 2022 at 05:52:05PM +0100, Timothy Hayes wrote: > > Adds a perf_event_attr test for Arm SPE in which the presence of > > physical addresses are checked when SPE unit is run with pa_enable=1. > > > > Signed-off-by: Timothy Hayes > > Reviewed-by: Leo Yan > Tested-by: Leo Yan Thanks, applied the set to perf/urgent. - Arnaldo > > --- > > tools/perf/tests/attr/README | 1 + > > .../perf/tests/attr/test-record-spe-physical-address | 12 ++++++++++++ > > 2 files changed, 13 insertions(+) > > create mode 100644 tools/perf/tests/attr/test-record-spe-physical-address > > > > diff --git a/tools/perf/tests/attr/README b/tools/perf/tests/attr/README > > index 454505d343fa..eb3f7d4bb324 100644 > > --- a/tools/perf/tests/attr/README > > +++ b/tools/perf/tests/attr/README > > @@ -60,6 +60,7 @@ Following tests are defined (with perf commands): > > perf record -R kill (test-record-raw) > > perf record -c 2 -e arm_spe_0// -- kill (test-record-spe-period) > > perf record -e arm_spe_0/period=3/ -- kill (test-record-spe-period-term) > > + perf record -e arm_spe_0/pa_enable=1/ -- kill (test-record-spe-physical-address) > > perf stat -e cycles kill (test-stat-basic) > > perf stat kill (test-stat-default) > > perf stat -d kill (test-stat-detailed-1) > > diff --git a/tools/perf/tests/attr/test-record-spe-physical-address b/tools/perf/tests/attr/test-record-spe-physical-address > > new file mode 100644 > > index 000000000000..7ebcf5012ce3 > > --- /dev/null > > +++ b/tools/perf/tests/attr/test-record-spe-physical-address > > @@ -0,0 +1,12 @@ > > +[config] > > +command = record > > +args = --no-bpf-event -e arm_spe_0/pa_enable=1/ -- kill >/dev/null 2>&1 > > +ret = 1 > > +arch = aarch64 > > + > > +[event-10:base-record-spe] > > +# 622727 is the decimal of IP|TID|TIME|CPU|IDENTIFIER|DATA_SRC|PHYS_ADDR > > +sample_type=622727 > > + > > +# dummy event > > +[event-1:base-record-spe] > > \ No newline at end of file > > -- > > 2.25.1 > > -- - Arnaldo