Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1735180rwb; Fri, 12 Aug 2022 06:08:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR41JahQ1l2OANObriI/JI26nZN5DUXzVz7iV9Fxiqr3D4E58dN0sejYWa5HbFL9lhlg3Ef3 X-Received: by 2002:a05:6402:51ce:b0:43e:74bc:dce with SMTP id r14-20020a05640251ce00b0043e74bc0dcemr3635438edd.225.1660309717808; Fri, 12 Aug 2022 06:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660309717; cv=none; d=google.com; s=arc-20160816; b=kST2iNe8711HLT+hE/gqhw2EvqqCvXbevjlEYgSYhjXnvfr4prWqPnr3MSxypfEdzj jVIfD6/n9JA3uV8d9y3rnjxlUew/KuZTL9dWWraZ48x4uuImtreCH7xQgt3hW5/b/k7T DlsJyL5KZdsarpIyewqHPZj9XWEQAJlkbmFXoKEpiwohAkSECWAr1MmwIvaIj14AKdA/ vS2QTF7SiCFAqEdZ9tiZ+b/ME+Dp6iUHpKwTi00/V7O+XT2MzucU/7IWLkpfmvjs/ify jKL2eNtXAgdZ6F8q1JBNlSbOv8mYcpBCgy2ON/XSs80c0VOkMLiFEx7LythI4jjQmbCI Ux+g== 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=eC3l4B0HFMwT59CtKjMtr34TEf/APtWz9hCuWYCunI3BSTUxBhF5RLY8XsYpI+GsTw /raeAEz5sAc3aRatVujrgXAg6rv/pIXZ5yFfQ6tEdLK11KNn9Ig2OG7AX7f/z/fWvprk 4oSkW6ej6t5TD/BNefjFoVHhBa87COtS/RVWTm95cIxoagqFJQprUWSHTFK2QBRToJjh bI0R3oqS9bh3qGeta7uJRhFgtJyhLrUfNnw6pv7Y7ZAtEVdofyCufeC+ev1fZ7J3zuA3 60mvDtnbp82Sp/Mee1MxhPY1K7BrkWlsPJsrs1cUYcs4LGhazf9RmnIfBjycx8+h16SD K0rQ== 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 r6-20020a50d686000000b0044086a28258si2103035edi.199.2022.08.12.06.08.08; Fri, 12 Aug 2022 06:08:37 -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 S238719AbiHLMRM (ORCPT + 99 others); Fri, 12 Aug 2022 08:17:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238655AbiHLMRB (ORCPT ); Fri, 12 Aug 2022 08:17:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 87B77A0304; Fri, 12 Aug 2022 05:17:00 -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 21594113E; Fri, 12 Aug 2022 05:17:01 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.42.152]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1C1C73F70D; Fri, 12 Aug 2022 05:16:58 -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 v7 05/14] perf test: Add asm pureloop test shell script Date: Fri, 12 Aug 2022 13:16:32 +0100 Message-Id: <20220812121641.336465-6-carsten.haitzler@foss.arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220812121641.336465-1-carsten.haitzler@foss.arm.com> References: <20220812121641.336465-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