Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4174580rwb; Tue, 6 Sep 2022 03:52:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6gVReMTa80+U9Xd0RO2vG6TDqjeqV4S/N0xB0EAQ3MWcPf1pTqBfzTRqUVu0Wxt02cf5T8 X-Received: by 2002:aa7:95b0:0:b0:537:cdbe:5c8a with SMTP id a16-20020aa795b0000000b00537cdbe5c8amr53031315pfk.59.1662461543076; Tue, 06 Sep 2022 03:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662461543; cv=none; d=google.com; s=arc-20160816; b=OoIAdKBjdDEJvbVv56kifsXlQNddqoIVOYuCKtyW3oTSVX04AZwv7+sisYYasbi3VD vgyUes/QUDH5Lh/Y3S7UYuB6olS3bQDsnTDM89ovPeMR+BuWi+boJcRMNi7CixevwBB+ 0Uy72nh7gqpqYC9KqVx7LWSpzFprQvNchLtUzUqyhynuWylP3ES4Po+PmQ6neO9zQqJY zdVBJiLrSMNeh4Gi5Skfh6KjshlvHIvMez2GkYVDNQPnV+yTnSP8ITmA3VMxJYQ4QwQt R0ieR3xvKaLmH04emBhhdd2IGVLAnz1e6Gmvf3RdT9udXvLgwlgDHBZpwOGn1nurHm0Q CfTA== 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=EzZhzVl4wX/O0FZe6Ai9RD/f5bE9yNVRvKKpkuaUKoY=; b=BN0jBBBveam6YUGFmYXvRsuSxQEhfxpJnx/Ju73vi7HNTjbhbE0uNy4ElSJ6JduMNf q3+QaM9nZc2kGtkTW5Ju2F/+JAK1wn7+7blRZYkT1IB0Bs9k4RcBZsTKSCiTZJSIrzZr L3KEkQzU8ckbahUOU4jzqb4jces5Hd1UwOWlnaykGhh2T5tjuXSsB4I5mm7VulYzVMxU uMpZC2NRnTX8uLpBVXPvVl1I51SBc5cej/zkbs6wpY6E5xYHLdlnGkYpZhL5K/5PCno9 HCrbaP19yEbhaaMJyMtRTVdgRUCZpZfvSEn3xlQIpf36USJkEoYXQqx8YeuVkufBf0+m mklw== 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 l184-20020a6391c1000000b004159dcfc653si11085085pge.40.2022.09.06.03.52.11; Tue, 06 Sep 2022 03:52:23 -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 S239777AbiIFKqM (ORCPT + 99 others); Tue, 6 Sep 2022 06:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239695AbiIFKpt (ORCPT ); Tue, 6 Sep 2022 06:45:49 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6B591EC5E; Tue, 6 Sep 2022 03:44:47 -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 712C21A00; Tue, 6 Sep 2022 03:44:01 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.15.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F16B83F534; Tue, 6 Sep 2022 03:43:53 -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 04/13] perf test: Add asm pureloop test shell script Date: Tue, 6 Sep 2022 11:30:35 +0100 Message-Id: <20220906103044.761250-5-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 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