Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp460286rwb; Wed, 10 Aug 2022 11:01:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR72PNUMX9CNrg8J0XyZfEuaECVN/Dw73jlovuOa1YWsM562FjnC/qWcen38ez/nDzZyMou/ X-Received: by 2002:a17:90a:9907:b0:1f5:2318:ea6d with SMTP id b7-20020a17090a990700b001f52318ea6dmr4926138pjp.163.1660154489804; Wed, 10 Aug 2022 11:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660154489; cv=none; d=google.com; s=arc-20160816; b=t7hq4QB15CWQcgT9PQEU+Z0FWJNt4G4rBtJzBkUPFcWsn4WHU78b2v7gbCAO0D1rrv /3iBTe++5ZoaMC6ts3cnlCJKTYIMOmK9nbMZ4oSaUGIKLpvOWCP5ejBHEdqmmtYMMTKo I82Ge5vWhG+U+znumnVRlYr5Gonj8+MRkMYxTY6G0hUBZaeyqcqJoSvp7z+EdA/ZwcrV u4NpwfGLICEvZKePVaR4MqPXv4ENlSVw6p+FCFmGkpCQQycSSd7N0MRpRhNA03d/jT8F TKGluXes+WyblMgxBL5H9yqYCU0uoJCfnNu5LJYqFvfKs1W6cjPuFhtKWpT29FXYqAas PTYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=YKZa+22HTzpA4GNIreADDIMJEA5UDnLzYfOP39wGLpc=; b=F/0PDM2KO04Hhtf4EJpGFoZZBl3T7KVdclTUODELnGE646weTGTHxl/GqdaWhTksQ9 fvp1dHiU/g69acGaKtuwlYE9Qz+kXxMm43C7s316MZeRuO5YTKJexBcxEzMzrxte4RER MIcgDZycn6rQZNQh2N1WRM0UxPRlXJsih1DYmyiknKmoyXapcnNEQGOif0spOB2yhLDV f8RtmXESccRObSVlXS+ixJE1dpyZ39P83GIpZilxiavfjngtIMCSunFwl48nX8wn8VUT RW09QqHY+ffob6EBmd+iAx/gCywOMGm3JHhNGeNN8T9zhKtTnbI78sEqhnd6z3g20yGj wxUw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 197-20020a6305ce000000b0041c228cd1c0si12548380pgf.440.2022.08.10.11.00.36; Wed, 10 Aug 2022 11:01:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232771AbiHJRzv (ORCPT + 99 others); Wed, 10 Aug 2022 13:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233340AbiHJRzt (ORCPT ); Wed, 10 Aug 2022 13:55:49 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3DA66186EF; Wed, 10 Aug 2022 10:55:48 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B492611FB; Wed, 10 Aug 2022 10:55:48 -0700 (PDT) Received: from [192.168.99.12] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E554C3F5A1; Wed, 10 Aug 2022 10:55:46 -0700 (PDT) Message-ID: <67f38a67-d664-4537-6df0-5fdef7596e52@foss.arm.com> Date: Wed, 10 Aug 2022 18:55:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v5 12/14] perf test: Add unroll thread test shell script Content-Language: en-US To: Leo Yan Cc: linux-kernel@vger.kernel.org, coresight@lists.linaro.org, suzuki.poulose@arm.com, mathieu.poirier@linaro.org, mike.leach@linaro.org, linux-perf-users@vger.kernel.org, acme@kernel.org References: <20220728145256.2985298-1-carsten.haitzler@foss.arm.com> <20220728145256.2985298-13-carsten.haitzler@foss.arm.com> <20220807054406.GJ34254@leoy-ThinkPad-X240s> From: Carsten Haitzler Organization: Arm Ltd. In-Reply-To: <20220807054406.GJ34254@leoy-ThinkPad-X240s> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 8/7/22 06:44, Leo Yan wrote: > On Thu, Jul 28, 2022 at 03:52:54PM +0100, carsten.haitzler@foss.arm.com wrote: >> From: "Carsten Haitzler (Rasterman)" >> >> This adds scripts to drive the unroll thread tests to compare perf >> output against a minimum bar of content/quality. >> >> Signed-off-by: Carsten Haitzler >> --- >> .../shell/coresight/unroll_loop_thread_10.sh | 18 ++++++++++++++++++ >> 1 file changed, 18 insertions(+) >> create mode 100755 tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh >> >> diff --git a/tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh b/tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh >> new file mode 100755 >> index 000000000000..f48c85230b15 >> --- /dev/null >> +++ b/tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh >> @@ -0,0 +1,18 @@ >> +#!/bin/sh -e >> +# CoreSight / Unroll Loop Thread 10 >> + >> +# SPDX-License-Identifier: GPL-2.0 >> +# Carsten Haitzler , 2021 >> + >> +TEST="unroll_loop_thread" >> +. $(dirname $0)/../lib/coresight.sh >> +ARGS="10" >> +DATV="10" >> +DATA="$DATD/perf-$TEST-$DATV.data" >> + >> +perf record $PERFRECOPT -o "$DATA" "$BIN" $ARGS >> + >> +perf_dump_aux_verify "$DATA" 10 10 10 > > Just minor comments for checking the trace data quality: > > The unroll program loops for 10000 times per thread, and this test > creates 10 threads; so if we pass the parameter "10 10 10" for > perf_dump_aux_verify, seems to me this is very conservative? Correct. It's very conservative. It's essentially saying "i need just SOME data... something minimal to say it caught something executing". It SHOULD catch it, but the more I raise these numbers, the more likely it is sometimes you get failures. At the start My numbers were chosen at about 20% of the minimum run of the code empirically. It's not 100%^ pure ASM so some is compiler generated code thus some may vary per binary produced by different compilers and options, so there has to be some leeway. So I did lower the bar to "some data - just some" as opposed to "a reasonable amount of data" which would be larger numbers. The csv files still store this side-bad data anyway. > I would like hear Mike's opinion for these quality metrics; the > patch itself is fine for me, you could add my review tag: > > Reviewed-by: Leo Yan > > > P.s. it's off-topic, just want to remind to use the "b4" tool when you > spin for next version's patch set, e.g. you could use below commands: > > $ b4 am 20220728145256.2985298-1-carsten.haitzler@foss.arm.com > ^ > ` I get the message ID from the page: > https://lore.kernel.org/lkml/20220728145256.2985298-1-carsten.haitzler@foss.arm.com/ > $ git am ./v5_20220728_carsten_haitzler_a_patch_series_improving_data_quality_of_perf_test_for_coresight.mbx > > We can benefit from this due "b4" can automatically append tags in > patches; this can help us to track which patches have been reviewed > and tested in previous versions. OK - that's news to me. I'll look into it. > Thanks, > Leo > >> + >> +err=$? >> +exit $err >> -- >> 2.32.0 >>