Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1229090imi; Fri, 1 Jul 2022 05:52:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tiMp0KSzN2Ti37s3LU8RU227WfKPOWUUiLbVZNH2vNvLRpkvuNZ+bmxvrQGd4AUmu7ki0w X-Received: by 2002:a17:902:ee55:b0:16a:5e4:26b with SMTP id 21-20020a170902ee5500b0016a05e4026bmr19820966plo.29.1656679973042; Fri, 01 Jul 2022 05:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656679973; cv=none; d=google.com; s=arc-20160816; b=vzwUWJzuMaa9Yi7ldCCtk8bO3knS+AdXiO8zNB7qRziPPkVF8o+QsFw++G2zmXx6KM hcevzyMLFIoUnQJOMyW0zeAfhafwryDBwslSRwz4kyceRTvpxXsg8Kg+qZMIyF8kSHPN Nfxe/hFSsMFParfc8FArviRYxXfd/8sw4op9HiTSf3TMPXf+6lnXdwuyM6/h4X80NMcq 6S1gvaotGJL/vzv+Jjc1XxV2iwiNx3ZyVHRWnD1MX2sE3O51Cr+HXlYzHrhoE6AjmX8c ikAvyfyc3UUVxtZxBT0QF7JVbwOKXsEhm+UDnIwyNFxyGPSqVJUstce/nywWkbeQ1p+L WaTQ== 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=glnRVJNa6h1XTgwpA8srqtXA/NEOnPsahep27C/14Cc=; b=T/h9wt4ckBwTx/47qwmMhAq2DpMf9BSgcbO1Apa8kH/OMc4rHdlc/IE+1mr0NNkjYu t1ys4aa3ghq6WT3ycED60lXK9jA7yBsKXZdzjFclOpE9XkLR42THEaxBmRUeaMYiubNj uBvssXkmKb9vqGjYmhWeiG0I3kE+LjmE7LTyZ16e/XqD4Q2DrQb8wHfN2mNt9fhfRwrf gc8RiH90g65VLZeQmq1/BNaZtsDpjKT9lP83bpwudxhFit13bBCU13pRPZFBeFgQyC/g 7iElGtxsb2MX99j0ayKOgy/x4nJuZbRxxBeOawnrV0GZt6n1pSMWWE6S2CizTAKCkDxU e+jw== 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 nn8-20020a17090b38c800b001e318172115si3146206pjb.39.2022.07.01.05.52.41; Fri, 01 Jul 2022 05:52:52 -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 S236708AbiGAMJQ (ORCPT + 99 others); Fri, 1 Jul 2022 08:09:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236608AbiGAMJH (ORCPT ); Fri, 1 Jul 2022 08:09:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B060371252; Fri, 1 Jul 2022 05:09:06 -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 BF6581424; Fri, 1 Jul 2022 05:09:06 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.71.134]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 502673F792; Fri, 1 Jul 2022 05:09:05 -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 05/14] perf test: Add asm pureloop test shell script Date: Fri, 1 Jul 2022 13:07:54 +0100 Message-Id: <20220701120804.3226396-6-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 asm pureloop test for arm64/CoreSight that gathers data so it passes a minimum bar for amount and quality of content that we extract from the kernel's perf support. Signed-off-by: Carsten Haitzler --- .../tests/shell/coresight/asm_pure_loop.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tools/perf/tests/shell/coresight/asm_pure_loop.sh diff --git a/tools/perf/tests/shell/coresight/asm_pure_loop.sh b/tools/perf/tests/shell/coresight/asm_pure_loop.sh new file mode 100755 index 000000000000..569e9d46162b --- /dev/null +++ b/tools/perf/tests/shell/coresight/asm_pure_loop.sh @@ -0,0 +1,18 @@ +#!/bin/sh -e +# CoreSight / ASM Pure Loop + +# SPDX-License-Identifier: GPL-2.0 +# Carsten Haitzler , 2021 + +TEST="asm_pure_loop" +. $(dirname $0)/../lib/coresight.sh +ARGS="" +DATV="out" +DATA="$DATD/perf-$TEST-$DATV.data" + +perf record $PERFRECOPT -o "$DATA" "$BIN" $ARGS + +perf_dump_aux_verify "$DATA" 10 10 10 + +err=$? +exit $err -- 2.32.0