Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3444475rwb; Sat, 6 Aug 2022 22:45:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wsYUXlOgo27l/CETMGL6jba3Pnmo79Qyb91iyM+wpTRXC1OXXnsz2w/ZbGNCsTLn70KCM X-Received: by 2002:a17:903:11c9:b0:16b:8293:c5a1 with SMTP id q9-20020a17090311c900b0016b8293c5a1mr13567937plh.72.1659851123256; Sat, 06 Aug 2022 22:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659851123; cv=none; d=google.com; s=arc-20160816; b=yHu9r85eZY9fos9fdNRKR8wrrBCuo90vDhcjuK10Xsd9wLKsbAuSlbHk4lb37h8RZk FciTECTYx+oDoH3/m/n+EpUKrDva01ZxluSaaos3/lW2AIMv1CsdTaLPDmKBI5G6RV4I pL6NBxpr4Wfi7n0Um7hDqX+glWTz6YusbGez9Ndr7QoNX9Qka4O4F5KguYCHk8qsouZA hKNNldm0XKNaysolu/rVcfNwWRokMmCUAPplGqKIEs44+R4Sq12aaWbpXpHL3eOT0LiJ 5rRxCv3G9DLl1h0vt4W0JFPowqSwPu95FgGZVlEMwdkG109V6mjlZDuFGmjVDCsHw5Da /Vjw== 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=qEhg68YRniOXq5BKbBv0ex6VPSZORGkaXrhNztya/B4=; b=hXou4J26gjMnhtMnZvwX72xr32ZKcAbJmnxa7/4rT0z0x7RRYYSIZu+a+WvRthBY/A Zjl14Ql6k4w1GiG5z/Voiefmfwlkk/+M9ayegtrJDWSyV4Jb8h2vDH3KP76G9cM+vOR5 q2vpquQeB/N6PM2owG8HYZhN+TKI2unpuMsCerYEQOSLPtlO5d9r6auOZi+dzFlc9A6S PbQnURXUdTtdb+KoNu+FS+bDI0dDyUNv9xWHrVLai/KdPYaJek/YykQx06D0dGaij5O0 PPwt7pF+oYIVWALkHKOHKDMUI4GLcEgH50AHauSrtF/op9bkByRfoAPFMYULHUsMsfxt 2UwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Sc/8ey8s"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a170902d30100b0016d17cde503si7909424plc.143.2022.08.06.22.45.08; Sat, 06 Aug 2022 22:45:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b="Sc/8ey8s"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231771AbiHGFoO (ORCPT + 99 others); Sun, 7 Aug 2022 01:44:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiHGFoM (ORCPT ); Sun, 7 Aug 2022 01:44:12 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57DDBB1FF for ; Sat, 6 Aug 2022 22:44:11 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id e8-20020a17090a280800b001f2fef7886eso6403536pjd.3 for ; Sat, 06 Aug 2022 22:44:11 -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=qEhg68YRniOXq5BKbBv0ex6VPSZORGkaXrhNztya/B4=; b=Sc/8ey8sZqSGNmWo+eLf/3NzmUldsolv4qWckQyNaayzHsb6V1U0BfsibytFHJcmap o1jMrIcLe6YwSHIL2Wl6iFXtsCHRLgYJ4wpNHIa828eloffF8bxv3SP4CWIbWYwSmFZE noR5YSbnGq3p+qjh5Pn3xU95ezQkXeq82bBxxat4jeQE+LTBXQ4Z9TLF3CyGbUAGmtBN TWynf9Tx9IEs3Q7pSpcucjqL5YWyJ778edLMEjTAt7kzqre6pp/+92pPYoa5p6Zd7YCi dqIwuhfsGRDFApLJb70gSNilRL8i2UODj60nTr51ygmx+HcXnoIhzIKohPdSRi/XeQ97 TpyA== 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=qEhg68YRniOXq5BKbBv0ex6VPSZORGkaXrhNztya/B4=; b=OWYmW7+C0fWtThwePNg86DLeikLwUiY1wORKnO2Hk1Zi9HXiRGIxk/qUOJhsdxa4T5 1GJnsddlq7zAgIDx0qtNMPBaFXdkwZbphPAMJMMwsTz31qXoDIWii2YVUnvv9j/g/NP0 QJYcoA82MsJlPpODrDLL77leGdMh2k3jbRL5ApTngHI5fR7UfHGhHgj/+kwQxHfmRI0z IvbJcQgWJd2RtrrmfcTzndpAZV59uqLL91nhHk3aG2qMmzmeb3rPlva6MKAyzcTLYnUQ zAzzk+dv3RgxW1OgnjdqX8UP1gwM1JkR+Xlnd8rfdIMJ6aCi/f7DmPc3gEm59vMabb0W d4mA== X-Gm-Message-State: ACgBeo3ayQM6gq62GxBGqlkQ9jozgKErdgxmjACILKZxW80VAQFPwbgP GROgU3LWKUtI8glvMPdJBDBMZQ== X-Received: by 2002:a17:90a:c58e:b0:1f3:1ab5:22ae with SMTP id l14-20020a17090ac58e00b001f31ab522aemr23684577pjt.45.1659851050706; Sat, 06 Aug 2022 22:44:10 -0700 (PDT) Received: from leoy-ThinkPad-X240s (173.242.120.104.16clouds.com. [173.242.120.104]) by smtp.gmail.com with ESMTPSA id o16-20020a170902d4d000b0015e8d4eb2easm5977893plg.308.2022.08.06.22.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 22:44:10 -0700 (PDT) Date: Sun, 7 Aug 2022 13:44:06 +0800 From: Leo Yan To: carsten.haitzler@foss.arm.com 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 Subject: Re: [PATCH v5 12/14] perf test: Add unroll thread test shell script Message-ID: <20220807054406.GJ34254@leoy-ThinkPad-X240s> References: <20220728145256.2985298-1-carsten.haitzler@foss.arm.com> <20220728145256.2985298-13-carsten.haitzler@foss.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220728145256.2985298-13-carsten.haitzler@foss.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 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? 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. Thanks, Leo > + > +err=$? > +exit $err > -- > 2.32.0 >