Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4177335rwb; Tue, 6 Sep 2022 03:55:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR4UjzPgEdWQyCQhKkk/mOfFN4ZkGFn8lAkg6ClZOva72XKhE40fbcfOhp9cCYvnuQ0YrboF X-Received: by 2002:a17:90a:c782:b0:1f7:a6cf:2f41 with SMTP id gn2-20020a17090ac78200b001f7a6cf2f41mr24282981pjb.128.1662461732986; Tue, 06 Sep 2022 03:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662461732; cv=none; d=google.com; s=arc-20160816; b=VIv/7N/8Jd2MPTzGao75RzHE3PGtGcNt/u/EzTqG/vzsmBVhqSNaJ7ZtFzy5zsiqlA 5UJcBA6JV/mBYt3YxMuV25D2MdtMoKRPwXUnlASP2PPu3Tnp6YqsrDD0MHlrmZaQN37h Bi/4q68SeC/DDLKSY/gU9UKcnHC+9u0H2Nm5yjU9oW8gGdgnCDYhloh09sBDJVBjyUtq Vz+GgiqOofA8c2FELKzJpWLUN+B9jDwwgIVk+8qzyq+geeNLsXM7Af9HdmVIngtCgZ5J CRzQeNfehz3X1XkwMAhlXw3yHHQp7CczLHBnjEAAh0+YSSZ4xFUwQI7j62qNlaDoHBb0 WA+g== 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=7ggSoJGU0LQTPGfzm+bGF/yCPwxiiWf8BKcUr7P/EKM=; b=BD4oEc/dm+6S/6KHGAkk13MZoGrnUMCSER6bnzebG17S5TFNvmJ5U2sZfZQDn20S+J 9fBKHAtnXKz6SseT2UHhyJ3OaN4DWvO5wuUUQI3Wm5hbXOEvwvxwzow769TzPwZzPBkB B+LzcyWjDS5QeFKJigdZF+miQNs6IsqsD7irgiVfyzxWYcdT/38B1LasimFaZr/l7cFi exSbd5PwuDny93E8y7rLQ97elZMuEPpR5TPdlM2mhryvPRInDEpxfe6EHuaXDp640fnm g5Va08PzQCnIPfnNPto4vQUSYrNkUj39EZLfHUZflCHrDqVsugmsCAcJxGufQxiRpH39 5CAQ== 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 q18-20020a17090311d200b00172d65b1233si15045818plh.419.2022.09.06.03.55.19; Tue, 06 Sep 2022 03:55:32 -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 S239880AbiIFKrj (ORCPT + 99 others); Tue, 6 Sep 2022 06:47:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239826AbiIFKqc (ORCPT ); Tue, 6 Sep 2022 06:46:32 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2D69B7B791; Tue, 6 Sep 2022 03:45:22 -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 AFD4B1AC1; Tue, 6 Sep 2022 03:44:08 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.15.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3A6503F534; Tue, 6 Sep 2022 03:44:01 -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 v8 09/13] perf test: Add thread loop test shell scripts Date: Tue, 6 Sep 2022 11:30:40 +0100 Message-Id: <20220906103044.761250-10-carsten.haitzler@foss.arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906103044.761250-1-carsten.haitzler@foss.arm.com> References: <20220906103044.761250-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 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