Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2130525rwn; Fri, 9 Sep 2022 08:57:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR426rHzWFw3WyuQExR4/03QGNEwLBqe0xGZDeprpNf5UNeq7bvsGLgRU38RsGuVxANRXJ9+ X-Received: by 2002:a05:6402:1446:b0:44e:ec98:3e11 with SMTP id d6-20020a056402144600b0044eec983e11mr12228358edx.90.1662739020018; Fri, 09 Sep 2022 08:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662739020; cv=none; d=google.com; s=arc-20160816; b=HPhzeMsV/yKQdA6/uDwpWROKGy77pIez+8CPMz0HOSP49Si8MRFXA7U10G11a+IMtM 5DUlzzychTRkkVWasce528+M4Uoidq8o2R3dn5XHRv9fMuUpqDOLU9kOJamZgDOEMZm6 j3FH1AF32ObePt1nwthWqfJo2CWivJdcQeS6ZVRvoHVKzBYNi9yGQ3iHysKAYmCxrqoj SlWWia88cie1EqJlRO7rJ1mbf3mXxzNYScicRKBiFDx+7RvaN96zJbmVBvjdt9D5wJAe 5lxYCBXEezlayvnN9XBBkwGRzpD7HDExglcTpilFylqPTqEhEhhcxC96/EJY/BKAYJED cbLg== 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=Gm+ZeSR9bOJ443BYsnwJmU19MaFDTaMJQcTCJ7C1ZqsL0UZ/+XBZOcsH/QGf2wHwyR BeSeXWBNdKPB4zUmzVstMjZFDHy3sS2Sc36O2p5iKoxAViN+O3aexXiZTfw7KeTJw2zA YxoHovGr2y043qjpm0drKMNsKgxuA4ihMShr52uiXtvQaeNcEc1hiCbw/DE6P0+ldVK6 2TYcdDIJXTfGgDfHl6Y48FCeMjHhDo3/tVsHfaz7VADge3pT3E7mPGm38cMacw1PTgPy Z1EQGpxAngbND3iSjbv3o2u74P4yQHxnZpMHg3wG2ZFrZDFSRnxcTZxoF2qUXeseHNab +MxA== 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 w13-20020a056402128d00b0044f32dc9cffsi588726edv.396.2022.09.09.08.56.34; Fri, 09 Sep 2022 08:57:00 -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 S230355AbiIIPbP (ORCPT + 99 others); Fri, 9 Sep 2022 11:31:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbiIIPbA (ORCPT ); Fri, 9 Sep 2022 11:31:00 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 283EB1DA74; Fri, 9 Sep 2022 08:30: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 349CD1691; Fri, 9 Sep 2022 08:28:39 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.17.154]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6E56C3F73D; Fri, 9 Sep 2022 08:28:31 -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 04/13] perf test: Add asm pureloop test shell script Date: Fri, 9 Sep 2022 16:27:54 +0100 Message-Id: <20220909152803.2317006-5-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 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