Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2131024rwn; Fri, 9 Sep 2022 08:57:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4anNjqUF1eBSW8pwKhMy/XqjdaE5XuRqS0lDn5z+7vZ8ZX51/XtvlPCJzn6lbdYyn6/QMZ X-Received: by 2002:a17:907:94d0:b0:730:7a68:3093 with SMTP id dn16-20020a17090794d000b007307a683093mr10529655ejc.760.1662739051218; Fri, 09 Sep 2022 08:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662739051; cv=none; d=google.com; s=arc-20160816; b=QpG0vHplazJEXQbUUG0oOa9NOeOeGCwtRiOE85eJQyx+tJ3ArNoaTaXqYX2dC4y/LU tmTRxSy+nB3gIh3GFEUAR0WgXE+f1sXaAgAjLaRu1doPe4ZjAX7hS0x2Gs5GvGn6cQfD Xx9pmKhFIIj2j14vILY83rDXz9v7OwgUD5KKZKAHsK7c3e8jy+QFOQKf+Zdf2E4tdeA4 VN6wh0prR5a7k6+3ycdNIaEoxd2lRqTiLMhnDXr2wkihxdpGHVppJM0b9Bkkk2o5yDRg IH/Rz2H7wle1DmjlbK3sPvHpfIrq3R6vyu0isPwMZ67NxuzzkqpEREvAq6JzYnsv1y4r BJDQ== 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=xD7fBmw3YZTo2MXajV9xXzsBW9x1NWV4hZ7Vkhh5EaASjxaiApZs/6i0bctC0qDVpL tdAaAihpxY9t2wY8Im1PWY3DyigA9L7c1MeqDdJcOew7xC6u/u4LO18RVVfmGeAYfS6d AmIZIEevqZiYWAxnisvD4Sd5p/3OeAhCHQrY7iv+Q3s/tKEuRpuPO2RSUib7CFAibqEO smss7JAUHQaKzTn45F1dLVKAomR4RChTix4G4GHrhW+ROBJgT2q2T9IPbWtrsyXZ0QDv PcTvZaIEiuhbZy9Yqw+TpqwQWXFDlOUhfiCrziqKQV+mVHkw5jnJLOu4Vp/lFzTj0P0u jUaQ== 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 s8-20020a056402520800b0043d19ac7ff2si790145edd.87.2022.09.09.08.57.04; Fri, 09 Sep 2022 08:57:31 -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 S231945AbiIIPdJ (ORCPT + 99 others); Fri, 9 Sep 2022 11:33:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232010AbiIIPcj (ORCPT ); Fri, 9 Sep 2022 11:32:39 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39BCE3DF36; Fri, 9 Sep 2022 08:32:27 -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 812C41756; Fri, 9 Sep 2022 08:28:47 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.17.154]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D59D13F73D; Fri, 9 Sep 2022 08:28:39 -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 v9 09/13] perf test: Add thread loop test shell scripts Date: Fri, 9 Sep 2022 16:27:59 +0100 Message-Id: <20220909152803.2317006-10-carsten.haitzler@foss.arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220909152803.2317006-1-carsten.haitzler@foss.arm.com> References: <20220909152803.2317006-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