Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp526824imn; Thu, 28 Jul 2022 07:59:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJqRe3pbYt2XHWIGCC9/4mlAiLr4ztC+1RdZXxLkU9/lfEvzpdfnOXbRcSqGamuNsMk1Mh X-Received: by 2002:a17:902:dac6:b0:16d:bdf5:7084 with SMTP id q6-20020a170902dac600b0016dbdf57084mr5399044plx.55.1659020373989; Thu, 28 Jul 2022 07:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659020373; cv=none; d=google.com; s=arc-20160816; b=nRIE00IHZBzf/xWO554zo7ZiJBnx5zM7L/XbZd2XnsqVpOOF7Ls0hjtxTMcSEtYErr /xYmXgein2WZD/xU7Tn5aa1j/kdNDFGUWFVi6mLG6drtM1/PzTfZ6SP1a29dRRc6SjkH NuQBy+GHyUJOZGt0m42Ijs5fo1vQWBy1OI85i48xiSW99HWVnF+CDZC1PO8OgFnfhmnn c0ugcZzDleERJNExKoj1liUQULST20xqHyo6Ba5rIqoNMsp6mfRT7fpb0mERKNTkreUL FLmT2vv+ezmY/tkpfs8BIjJZBm46KMsSZ+M6+uJ76ryAEEUKQ7qXUQTJpNFUhEK1LQJs zGDw== 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=glnRVJNa6h1XTgwpA8srqtXA/NEOnPsahep27C/14Cc=; b=JrG+L4RH1iRdWE3yt8EO3GwP1t8uwMirB/wMYtwopZ9+a38PI2SdPoFBZ3yxo45XDF dMLajuqNvR2fUzKu1/iEs/EyKHGqT41wCOcfK/n6FNdrVAJ3SZSsja9h7perG+HA347k xTSnE4I0tWYnco0Evgw0toVGXM2qJ3Wck0sVVU431Kv8GdgeRctRsj+pxZ2/9BDVoKWF 2Mlw35Qlgt8NCQOQ1VysLr+HMyHgsZyPB2B8EBNDiHB+aBwyzJYoSHgl78t0DIsV4TFs XyG+vECC+MBYsa0srjrlZcI4u6A8q0DcsBksBxE81jTar61ePJ6x0yizGz37MvUyTRl/ yPeg== 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 p1-20020a635b01000000b0040d9ebed1c6si1173187pgb.806.2022.07.28.07.59.18; Thu, 28 Jul 2022 07:59:33 -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 S233490AbiG1OyQ (ORCPT + 99 others); Thu, 28 Jul 2022 10:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233270AbiG1Oxr (ORCPT ); Thu, 28 Jul 2022 10:53:47 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAEE869F28; Thu, 28 Jul 2022 07:53: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 C51821691; Thu, 28 Jul 2022 07:53:22 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.11.24]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ECF173F70D; Thu, 28 Jul 2022 07:53:20 -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 v5 05/14] perf test: Add asm pureloop test shell script Date: Thu, 28 Jul 2022 15:52:47 +0100 Message-Id: <20220728145256.2985298-6-carsten.haitzler@foss.arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220728145256.2985298-1-carsten.haitzler@foss.arm.com> References: <20220728145256.2985298-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 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