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 62D90C433EF for ; Thu, 28 Apr 2022 13:53:34 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=w2RY+QDmwswbR19HGiEK/j1wnoaVBNQ6JsrribMORss=; b=48Jb50yqo1FEgR H+9RV8UCm/xzfYeTl43h6mpT9bFAmZhwbJRHdBjr1SK2gZ519EcWtcvm2rmV330B3JitVQv4EYO7a fugBudGoMxg+qeicKvw7ANIvnv5Upi/EpCB1Eu7SwD0dL/KSWLQy1uXDTWeW31t4TSx5nDvpAMNQU E1ZdndQUOM7QMEVaKPGvwIRWr1F+IQl9gerRbGUqQFfNJJMGeVtkWnGZO7SlecKROlF+I2IuXN0hj v3qi3989igXuC0AIOIm5v1cYlHdv+y9meHtKobAKFLrqQoDPOgtYUKkFWwISf5VzPERQRp1momeih z0wikjC5LzzUjtAAnWsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk4Z8-007DNk-Dy; Thu, 28 Apr 2022 13:52:18 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk4Ox-00790N-TN for linux-arm-kernel@bombadil.infradead.org; Thu, 28 Apr 2022 13:41:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TqCObctnn4JWu65ULk3FXgKOSiwBYrVdI0Egv6kANWI=; b=koWmjhabMxu6Od3RxNBJO2MiJK y+qGOUTCY8bOpn5BK4pt8OnRwwtYFOYgKXHGwIlZUIFDR4obcF4q9zw0yj9P+ZXozTiWs9K0Z5jZU 0F2k31YBeA2seS23KgDoeYeGVttjTObYzqIKwfvoNRQMK+RGI9ZB2HVohLeFo+fdM0DmIRLfi8R4J M4yv2xw5KfIHYDz8Oc08ibvYZuLzLuhUl6ysTSThvDJV5R43yq8v/99cWg2+G/mcwdcfTR52X2dhB r7Ybr6l5Bn8EX9QCGiWw9FQsH50TOI0HLy76L2j1nTSbAiyDs29WZ8px1mLkXQ+jEQIQ7lcrf1rxX p00IuDMQ==; Received: from [187.19.239.237] (helo=quaco.ghostprotocols.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nk4Ov-009LUq-2c for linux-arm-kernel@lists.infradead.org; Thu, 28 Apr 2022 13:41:45 +0000 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-Disposition: inline In-Reply-To: <20220424145307.GE978927@leoy-ThinkPad-X240s> X-Url: http://acmel.wordpress.com 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel