Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1668682rwb; Fri, 12 Aug 2022 05:07:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR67yel5Jjg6GOHJP8nLzzFS3Lf3o4JD5iA/8G7maOL/SuaAT5uiG2HOzAlXjfiBHY3HtDU6 X-Received: by 2002:a05:6a00:1745:b0:52f:83ad:22cf with SMTP id j5-20020a056a00174500b0052f83ad22cfmr3673861pfc.68.1660306040072; Fri, 12 Aug 2022 05:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660306040; cv=none; d=google.com; s=arc-20160816; b=rwAYx62XzzhN/7a+OuE17+id4v68y3I9FD8mDMEYJOPsg9H+D550rA3Zxc0EzDJVYv nzYKPP5QJWegqBk45Pb/55H9GaPUMyylqlf5rWlAl3mVb1qQ2M3Tk3+MSuTaWm5Xce6a Wqk5soGANNxeqWLMjjsGbF+c3HHTUoqbOsn1UwQqn+FqH6+PtS81Zh/d29NWv2sTyrTq 62fqLo9/KzZuJ9FYcF+y4Dik2gH+w89/4oMVhW+fmf1o5IVfocPzvOw7Hw+2ZjfgFxJ4 0CzwJTPaftwW6zBLpwKeRzztLYY5K30Vyox5E3QRMP/9C+yWacv/kRHRZYqxPxH78Iyl DvVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=haN7HQxL51t/URyWUtdtlAqKAHTqGjakz1XMugbeGVM=; b=wloJYuj6MfqBtLVgYpKsJXcsWwZT5VpVQdOvHXnpOafeLsbn3imyva5ADGxWx3FM1b MIYjHxggz0mCbxIcDiyrYs+i/z6TKRH1I2Ge3e3AUDDyqwk2VH38r8/I6vStwfyq4vOT ngxtL0DPno0JIjvk/UzVEnpgFJQ8U6SXjzx9T6o0mgdG3lvzuR8RYpQSQ2PJ7EUHsHjm H59n9cNbfe/evUEJE6mGJ5pIH9S3TEnjJUQhtVMvCDG95RtdLmM8IigaKNKEfPRrrBIQ iNycSgUsz3x4e3Eu4fB7EcxgilnwGhqQsKIhi8iIMMqgS0NxZEE6/Sm17c1FHyVoKx05 1CAQ== 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 lp5-20020a17090b4a8500b001f29f693f90si7978551pjb.186.2022.08.12.05.07.04; Fri, 12 Aug 2022 05:07:20 -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 S237926AbiHLLnX (ORCPT + 99 others); Fri, 12 Aug 2022 07:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237923AbiHLLmx (ORCPT ); Fri, 12 Aug 2022 07:42:53 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AECF7AF0C1; Fri, 12 Aug 2022 04:42:49 -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 4855E16F2; Fri, 12 Aug 2022 04:42:50 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.42.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4CC243F70D; Fri, 12 Aug 2022 04:42:48 -0700 (PDT) From: carsten.haitzler@foss.arm.com To: linux-kernel@vger.kernel.org Cc: coresight@lists.linaro.org, suzuki.poulose@arm.com, mathieu.poirier@linaro.org, mike.leach@linaro.org, leo.yan@linaro.org, linux-perf-users@vger.kernel.org, acme@kernel.org Subject: [PATCH v6 10/14] perf test: Add thread loop test shell scripts Date: Fri, 12 Aug 2022 12:42:14 +0100 Message-Id: <20220812114218.323052-11-carsten.haitzler@foss.arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220812114218.323052-1-carsten.haitzler@foss.arm.com> References: <20220812114218.323052-1-carsten.haitzler@foss.arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,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 From: "Carsten Haitzler (Rasterman)" Add a script to drive the thread loop test that gathers data so it passes a minimum bar (in this case do we get any perf context data for every thread). Signed-off-by: Carsten Haitzler --- .../coresight/thread_loop_check_tid_10.sh | 19 +++++++++++++++++++ .../coresight/thread_loop_check_tid_2.sh | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100755 tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh create mode 100755 tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh diff --git a/tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh b/tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh new file mode 100755 index 000000000000..7c13636fc778 --- /dev/null +++ b/tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh @@ -0,0 +1,19 @@ +#!/bin/sh -e +# CoreSight / Thread Loop 10 Threads - Check TID + +# SPDX-License-Identifier: GPL-2.0 +# Carsten Haitzler , 2021 + +TEST="thread_loop" +. $(dirname $0)/../lib/coresight.sh +ARGS="10 1" +DATV="check-tid-10th" +DATA="$DATD/perf-$TEST-$DATV.data" +STDO="$DATD/perf-$TEST-$DATV.stdout" + +SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO + +perf_dump_aux_tid_verify "$DATA" "$STDO" + +err=$? +exit $err diff --git a/tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh b/tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh new file mode 100755 index 000000000000..a067145af43c --- /dev/null +++ b/tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh @@ -0,0 +1,19 @@ +#!/bin/sh -e +# CoreSight / Thread Loop 2 Threads - Check TID + +# SPDX-License-Identifier: GPL-2.0 +# Carsten Haitzler , 2021 + +TEST="thread_loop" +. $(dirname $0)/../lib/coresight.sh +ARGS="2 20" +DATV="check-tid-2th" +DATA="$DATD/perf-$TEST-$DATV.data" +STDO="$DATD/perf-$TEST-$DATV.stdout" + +SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO + +perf_dump_aux_tid_verify "$DATA" "$STDO" + +err=$? +exit $err -- 2.32.0