Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8574441rwb; Tue, 13 Dec 2022 07:59:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QAbmnkTiSgR6GWqwYyRGk3iqTnSYxO6XMd3C2zRuaLFbUwBcybTCsxmD/xx+79UU7cO/f X-Received: by 2002:a05:6402:c7:b0:461:97ed:fbb6 with SMTP id i7-20020a05640200c700b0046197edfbb6mr16873010edu.29.1670947165541; Tue, 13 Dec 2022 07:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670947165; cv=none; d=google.com; s=arc-20160816; b=AryNNqQS9M1HiTQaQpFn2JSFYhYoTiK1jvpBxHfuLMu5pfH59R+pmdIc57RScM1wnJ enBu/E9agui05CvzHoLgkYiWiVlLM+Z3ICH7I2r65pE68QPItcz1YPbZOKaihQ3QI6dD I0eMaiSOHT10Em01dKqyGnoMOGDemC7ADAsxw0eDzJ+tvJ6rgJD6A68kAu4ty/YqeWLk sULWC39Kq6N4AhyVa7mTOX/0ZwRVhu55j4znOmPcn4iqJCY/qK40c15kJ1NXeK50XxGy V+8j6s1x5DbpZ/wzIzKpat2GM/ontZZMJb+29ha342pK4qFBBJDqMbfnOM4V+z63brxD jB9g== 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=wp+PIpeK3oxew+RGmBnv0XJBIWWLKWXd6h3vYjC30FY=; b=o5wwkySLka36QI2ZVzPVjcWUsNivzQ69BVpOz2zPaOMvrsE8PJ7x7xi8b+PoLlwvy+ HtkHC4PcIU+jFwwJqsmdQQuacTYS3XBVSa/lYS3s7uNAq/TPzZOTcRHHY4XvdumNb/oc LPSB/qZ/aBDlN09yEA4XyWc96OFxvtKX9uRPf62DJ4Op6Y1IZNeNMBoLuc2lxzO1zG7c tSnZUKobETqlsuz3UOSmcCQmg78daU6cR0cGErzgcP7zStWUWFCRWhFf+j8WINUjrZHQ deXmHPDQpmfPfNeuHeTMaZ0+6f9abHj1I/lLcp3HmG2sz/fUux5AQqIEqTf2jNUwcf6m Nulg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QILKHO92; 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 c13-20020a170906340d00b007aed5ffeffbsi6935245ejb.78.2022.12.13.07.59.07; Tue, 13 Dec 2022 07:59:25 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QILKHO92; 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 S235876AbiLMOwD (ORCPT + 72 others); Tue, 13 Dec 2022 09:52:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235708AbiLMOvy (ORCPT ); Tue, 13 Dec 2022 09:51:54 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 729CC2705; Tue, 13 Dec 2022 06:51:53 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 190F9B81222; Tue, 13 Dec 2022 14:51:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FAC2C433D2; Tue, 13 Dec 2022 14:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670943110; bh=kpTlpA1QYWlRwaIHR7kjD5pTRluo4sFhECHUASNMQWc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QILKHO92403BZ17MGkSlZGffwf7kYnNYU5lbkIB6l+f1ZLkBTygapOP1O0dCE8tyH SXH5qTddzA3e+0Gct/XYrDPrwb7Vim08IHP6CjfN1+KWlmT7t4EeWkmHLP2VUIon12 h7BJgtu4Vrc2vxctpMO7NvorYOCk3iB9yLo+oMKJdhshpiQWpXKOMXQjnGWGe6ZPpf 8PbRnVS1FjYxJCPoordYnPKhkW0MsOCTzAcUR3Jr1z9fb0/46EU5Xep5Vs4Jg/IiAN DotiIbhQYtESFZjlwlHXBxxtoAJwsLNbKoOTRH15pnQ93hYHUPiQP8ovOIrsW1A3St WfymDc3Il/83w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 4744040367; Tue, 13 Dec 2022 11:51:48 -0300 (-03) Date: Tue, 13 Dec 2022 11:51:48 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v2 0/4] Add VG register attr test with kernel version and feature detection Message-ID: References: <20221213114739.2312862-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221213114739.2312862-1-james.clark@arm.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 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 Tue, Dec 13, 2022 at 11:47:35AM +0000, James Clark escreveu: > I didn't get any feedback on the RFC version of this that I posted a > while back [1]. I'd still like to add the test, especially now that > 6.1 has been released with this new feature, so I've rebased it onto > perf/core and double checked that it's still working. > > Applies to perf/core (0c3852adae83) I'm applying this locally, would this be testable on a Firefly (roc-rk3399-pc): acme@roc-rk3399-pc:~$ head /proc/cpuinfo processor : 0 BogoMIPS : 48.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 processor : 1 acme@roc-rk3399-pc:~$ - Arnaldo > Thanks > James > > [1]: https://lore.kernel.org/bpf/20220927154104.869029-1-james.clark@arm.com/ > > James Clark (4): > perf test: Add ability to test exit code for attr tests > perf test: Add mechanism for skipping attr tests on auxiliary vector > values > perf test: Add mechanism for skipping attr tests on kernel versions > perf test arm64: Add attr tests for new VG register > > tools/perf/tests/attr.py | 71 +++++++++++++++++-- > .../attr/test-record-user-regs-no-sve-aarch64 | 9 +++ > .../test-record-user-regs-old-sve-aarch64 | 10 +++ > .../attr/test-record-user-regs-sve-aarch64 | 14 ++++ > 4 files changed, 99 insertions(+), 5 deletions(-) > create mode 100644 tools/perf/tests/attr/test-record-user-regs-no-sve-aarch64 > create mode 100644 tools/perf/tests/attr/test-record-user-regs-old-sve-aarch64 > create mode 100644 tools/perf/tests/attr/test-record-user-regs-sve-aarch64 > > -- > 2.25.1 -- - Arnaldo