Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1207439imi; Fri, 1 Jul 2022 05:25:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMTfCyS/nRP/JmMO2OHoLVWL8OY1JHp1NCcxXHgvaJXxthRXmWyRXGM8QEW1P5ppnZ/Dpo X-Received: by 2002:a17:907:7dac:b0:722:3352:ac05 with SMTP id oz44-20020a1709077dac00b007223352ac05mr13915370ejc.421.1656678346307; Fri, 01 Jul 2022 05:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656678346; cv=none; d=google.com; s=arc-20160816; b=VQt+VsLkBAIO8HWu6Y562yXCaCzFC9PHvxhKlY1YnizDqf3Bh+wGMrNgW3jDHSdqhY HOEg8UuXj5sdDsV5ghgLEv3bBdGM+s07u9zkwSQeoFQQcWI9909iQ5tjkM3RIHpePeon VNXxCU+ieaoZuFVe8w0FI2UkFtCCrQKDXmzou3slM1N9zp9/0RdrCw97WANK3G2O9ZU2 N9AYLNEy557bb3cEXIJdBQ5PEPlZjIc9veZxpVDMxarDlu1Sfa6GKlqTWHa3L/PQF56p i2OeFBeW6Qd5HjTTCKijRlEK/V4oL1STJeuEivOlTzdMQ55DPPsknTlSIEe2pOoC5hxq nkGw== 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:reply-to :references:in-reply-to:message-id:date:subject:cc:to:from; bh=haN7HQxL51t/URyWUtdtlAqKAHTqGjakz1XMugbeGVM=; b=t9eq7Up49UT9Dcu+QzWgJsi0yi7OBp7cLm9yEM+66i3FjMzpC6njHrHL6o/a1ACnUG EfR+sfQvHJ+X7/fyy6dsT2Si6Nqx4IdsY9yPYWxo2/sdFeOPU1GEQRLZt6bbXbrGJW4T EqBCTv+H6JLAM/KP1GLxE7uyfuDOuX7igVaXDJEad8at7asA/fvFK4G89W6eITQvEQ3/ m/s98r87xhEULRXuV7SZK7AOF4FYO56SGyjkE6hfyTIfutlMzaRPzgsj5opQjDYnSGPz Pl+p1vDAgkO6J37RTkAN7f0RfNYTtDvjsO0b9H1cC9Z4b3UVgIb0ySGtzC9O/z06wvux jxpA== 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 a100-20020a509eed000000b0042df64a5b1csi1852667edf.332.2022.07.01.05.25.22; Fri, 01 Jul 2022 05:25:46 -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 S236993AbiGAMJh (ORCPT + 99 others); Fri, 1 Jul 2022 08:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236787AbiGAMJV (ORCPT ); Fri, 1 Jul 2022 08:09:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BB1177D1C5; Fri, 1 Jul 2022 05:09:13 -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 CBBB1113E; Fri, 1 Jul 2022 05:09:13 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.71.134]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5E57E3F792; Fri, 1 Jul 2022 05:09:12 -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 10/14] perf test: Add thread loop test shell scripts Date: Fri, 1 Jul 2022 13:07:59 +0100 Message-Id: <20220701120804.3226396-11-carsten.haitzler@foss.arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220701120804.3226396-1-carsten.haitzler@foss.arm.com> References: <20220701120804.3226396-1-carsten.haitzler@foss.arm.com> Reply-To: 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