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 EDCAEC433EF for ; Sun, 24 Apr 2022 14:54:37 +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=EexamAgUpzDoi9jRY0Hqwat+WwTDvs5/rNcdAwL5WaM=; b=uhw4jZJK9zUlH3 1iNeKIUbXO9ar4I6QslZ4E61edlVd87+M8MrTcgSDSW/35W//x4pVJ/NZGMb9Srrg7csD98wfKRHQ 51XDcWdrjp9vfRieXYeEspRMZ6mV6GTNUfxDYBuaQsta4bkonHX+Pl1o5KYJP70iwZgqLyNuFAvBM 8OJp3WP+yzVwrN3HwciUm1VbXwf0tQDKZiOZxOAinOFvT4wGM2LK5tr4ub9ClXu1Xj0m/5lXp2nPV Lxl9Alh7YDRmHCM8Qqtzyi7x8oyIFb1nS3SZDdrxNr5wSHS6ShfqjfgPXGu1XJZbz/pNxvrauiefZ v6MQQ7usPbWBWEX7MFNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nidcB-006kKk-KT; Sun, 24 Apr 2022 14:53:31 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nidbz-006kHu-IB for linux-arm-kernel@lists.infradead.org; Sun, 24 Apr 2022 14:53:29 +0000 Received: by mail-ej1-x636.google.com with SMTP id y3so4704967ejo.12 for ; Sun, 24 Apr 2022 07:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PljnxRUh81pT/VZFsSxpCxfxThaMnEo3K5gwtxML1T4=; b=HPK1Fjl//ahLaP1lNA4NCbDVTK5dLYlXgM5pM42npxjQZKjO5L9/PdF8l7lGR+id0d ZnvgI0tC1zbFtZrmiJK2y52v84g9Y+w0AF5Zt9IAPvXJ1gHzny119IxGNvrK+e3TYJ4u Y8rptqx/qBwsXxnS7f3mTiPtWUBlHBlQ8JkfVLwxpVb/UrRFErhEaZRwiX5S5Rv6vPXW VQNWs1UCCJCC+rblI5xV7mDQLGIlW1+IdMc9fRmwH3q4frHl5f/WsbO1PmH/Hc+HBLm+ UOmY6g+Q/jK77zTLxpstRUKCEecv/HgTLR/EgcdKccd6Gp1y71jMUnHcF/iHoANcNRBN BFcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PljnxRUh81pT/VZFsSxpCxfxThaMnEo3K5gwtxML1T4=; b=P93upslKAse6xDFMxvzbeeV3HwHtChit02UDBEaRhP02M650B5NfaQzpid9ZztNFOj /IISb4n29e9axByjlSs87U5LUIVDKL5xTVJ7S49AeQ8EmwOEg5Yd9E10uqCx7+kaS+Ed 2PYpvf5BBLq28MszQn6kRFtAwl6uSO3r0IIdGQWGFYYn+Zn73W4odgVV5YyR8pYdHmSo wJcDbjHgH788Z2WYxF08P+4RHPhP1nCm2UJav1h9rd5ugrGjIdDIRQZeyIGhhLF/K7XF hRWA1Uoz/O5KKmhNdW/yRNnP7ft7K/+2JtHaIUSgDHUbfLUr4SwhW4GJUCjHT1nnW2eU HHcQ== X-Gm-Message-State: AOAM531DgPVozwnaFWzisalKdlGYkaWkf7xxK0UuBps1JwKlxxHKQag2 j75IsmtGeP54CHs3yxZwo1zvgw== X-Google-Smtp-Source: ABdhPJxP6gdki3QWyI62X0hWhCeuw+jp1SO/FmJ3sHN5jeLes6QLGVCoRpETcIf1m/9BtNHG/zYBEg== X-Received: by 2002:a17:907:6e25:b0:6f0:99d4:9711 with SMTP id sd37-20020a1709076e2500b006f099d49711mr12019128ejc.511.1650811995192; Sun, 24 Apr 2022 07:53:15 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([104.245.96.34]) by smtp.gmail.com with ESMTPSA id gz15-20020a170906f2cf00b006f3802a963fsm1161681ejb.21.2022.04.24.07.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 07:53:14 -0700 (PDT) Date: Sun, 24 Apr 2022 22:53:07 +0800 From: Leo Yan To: Timothy Hayes Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@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: <20220424145307.GE978927@leoy-ThinkPad-X240s> References: <20220421165205.117662-1-timothy.hayes@arm.com> <20220421165205.117662-4-timothy.hayes@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220421165205.117662-4-timothy.hayes@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220424_075327_630380_FA320A29 X-CRM114-Status: GOOD ( 16.70 ) 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 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 > --- > 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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel