Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1605129pxb; Tue, 8 Feb 2022 23:51:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJye1jbrioW1i7kfvKnBNoSSHtS5cZBSKlXvQhuD58oEVWNUqj1+kteWylei4VZOFLYSlSmC X-Received: by 2002:a17:903:230e:: with SMTP id d14mr455552plh.122.1644393076395; Tue, 08 Feb 2022 23:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644393076; cv=none; d=google.com; s=arc-20160816; b=pKgHsR72UOcYoVwKkRTpCpkh4p/16iCBiWVY4YX1z/SS97w4s6gAzbncylwo5r4XWT 0R204UrXdHoJMYVpmFaGCi6MD6mgGuV5Ghl51TpzCJGUqPJEWLKsK2cdHCNRpYoVdSTt G1eeVxdVbsBhRxnWOp7dedZRIXfQwehSUas9xA9LkZHHvnGFrV+EyKongueDHVHu885s 6Hf5SPoCJtl+lg5Kl+HcjHhKjIbbqClaIZ03an9fXTxCch4j+a/dAkLqm8WZFvoR58U2 pN4++0iSNJqjoCuhNaEi2X+wcitrodhRkU1HH7fsMEV12lwJbwYwAWHWiaFtlydb8Wzg XoHg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QipFVohgJzcUrL8UlK2rRcSdvLXpuSzlSK+QMwQdeWY=; b=xmUWlWEKW8+tT6jpehLm622/cOjC5XIus0PNb9GJBeDiJzZCdXbky2/qhmdfmdEGcu E8a5jnU5mv7dFy5uyF749j255k/kNDSpEsBaqMKXRUybRewOAHWMLbDk1DXYZn2K+jVC B3OTXBYlSlu3/JYWWXJgykcEh5ZxPu/yFw/J8Sp0pYX9DjqGocpD59asR8PYsDT4iD8Q ut6Mc+QAluINV8gdnZP4dz+KYAa05wat3yvOdb/vjfONjWCJm5RQA94lBUkITNGpkk+2 WxGuIlFKrCSCzuxroXCeq7l8rWnRZvpSnED9Re8vw7hSjAzmT08Ego8MMEVuoKwd4V6b r7Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qb119yI+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si13882486plm.292.2022.02.08.23.51.03; Tue, 08 Feb 2022 23:51:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qb119yI+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245649AbiBGLF0 (ORCPT + 99 others); Mon, 7 Feb 2022 06:05:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235021AbiBGLDf (ORCPT ); Mon, 7 Feb 2022 06:03:35 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 690C3C043189 for ; Mon, 7 Feb 2022 03:03:34 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id d187so12290740pfa.10 for ; Mon, 07 Feb 2022 03:03:34 -0800 (PST) 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:content-transfer-encoding:in-reply-to; bh=QipFVohgJzcUrL8UlK2rRcSdvLXpuSzlSK+QMwQdeWY=; b=Qb119yI+PwQFr6jPKxXD6Ro4Zr7EG7UM/FLvCcgGAyGO4UZKe0qx5zkQ9m6t4wCsua Lr3C0gHfNRgM504750ff14hLhU48/xCzEwjIVySWXyX30+gdQJeo/dT3tc6VSKOD7133 yuHaY94GUIkVEq2P9mnQSRyF/Khh14jwlIvRXiVE9LHEBIzYVnkezgNM5hXfKNtq+LcV +zZ1X1K3f2x928jJpPUHQnMZZsXdAbJgjxC2zwgh116dVn2to5FYas9V2M+yb7pFIuLh +lHAmyZISmrSYbGvxwIR6AfihL5ALm9QK8atWLuWo9sGxzPZr7brKPDvQKQR4uxZzDob QnNg== 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:content-transfer-encoding :in-reply-to; bh=QipFVohgJzcUrL8UlK2rRcSdvLXpuSzlSK+QMwQdeWY=; b=INzhnWJLxEpHFnAgkX+XwSqxb1a36CUh36vaSrXbM+uN7vRlvkc+p2aCFIjmFUXlTK f55DcSpcDsqUerXgxFXbK+jO1s89gzQ2tkqcDR3+MkH2EXkopbLxKZo7mRNc9JRGahdv Z5Oea3EIPTbqLB57213V4vQ2rRvNxh4obDH97+Eoo9GXpEOt/7gJTm/Dko9eBfRE5MxV PwfKXetZFRVUWF1Rh1fz/Mq+tJPYE/Z4TsSiGPhHW1cTsMmzZGlGUgOJwDulhGZPvLQT LQp4skUImrRYU8VcCdQd1jiJHoreU4IMW4ZILmqJQzyR4EEeGS0J0znsps6c29d6ctlr WR6A== X-Gm-Message-State: AOAM532Oto0JEUteie1/BuLNyES9ei8snOsQdnTS0OM/xKuGspneHtvT i//T9+7WAwFj6Psb6a20VlXH4Q== X-Received: by 2002:a63:b207:: with SMTP id x7mr8823276pge.392.1644231813678; Mon, 07 Feb 2022 03:03:33 -0800 (PST) Received: from leoy-ThinkPad-X240s ([204.124.180.34]) by smtp.gmail.com with ESMTPSA id 142sm2799944pfy.11.2022.02.07.03.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 03:03:33 -0800 (PST) Date: Mon, 7 Feb 2022 19:03:25 +0800 From: Leo Yan To: German Gomez Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] perf test: Add perf_event_attr tests for the arm_spe event Message-ID: <20220207110325.GA73277@leoy-ThinkPad-X240s> References: <20220126160710.32983-1-german.gomez@arm.com> <20220205081013.GA391033@leoy-ThinkPad-X240s> <37a1a2f9-2c94-664f-19fb-8337029b8fe5@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <37a1a2f9-2c94-664f-19fb-8337029b8fe5@arm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Feb 07, 2022 at 10:50:26AM +0000, German Gomez wrote: > Hi Leo, thanks for checking this > > On 05/02/2022 08:10, Leo Yan wrote: > > Hi German, > > > > On Wed, Jan 26, 2022 at 04:07:09PM +0000, German Gomez wrote: > >> Adds a couple of perf_event_attr tests for the fix introduced in [1]. > >> The tests check that the correct sample_period value is set in the > >> struct perf_event_attr of the arm_spe events. > >> > >> [1]: https://lore.kernel.org/all/20220118144054.2541-1-german.gomez@arm.com/ > >> > >> Signed-off-by: German Gomez > > I tested this patch with two commands: > > > > # PERF_TEST_ATTR=/tmp /usr/bin/python2 ./tests/attr.py -d ./tests/attr/ \ > > -p ./perf -vvvvv -t test-record-spe-period > > # PERF_TEST_ATTR=/tmp /usr/bin/python2 ./tests/attr.py -d ./tests/attr/ \ > > -p ./perf -vvvvv -t test-record-spe-period-term > > > > Both testing can pass on Hisilicon D06 board. > > > > One question: I'm a bit concern this case will fail on some Arm64 > > platforms which doesn't contain Arm SPE modules. E.g. below commands > > will always fail on Arm64 platforms if SPE module is absent. So I am > > wandering if we can add extra checking ARM SPE event is existed or not? > ? > The test reports "unsupported" if the return code and the 'ret' field don't match. > > When I unload the SPE module: > > running './tests/attr//test-record-spe-period-term' > test limitation 'aarch64' > unsupp? './tests/attr//test-record-spe-period-term' Thanks for confirmation, German. You could add my testing tag for this patch: Tested-by: Leo Yan