Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1318860imw; Tue, 5 Jul 2022 07:28:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uidytJeCIDVz0v8ezWXdZt3yra61gpaKJGJURc/SB5FyVWv8MCdJkG+jmSDJKoRJS4wVYX X-Received: by 2002:a17:902:d142:b0:16b:f014:9e6a with SMTP id t2-20020a170902d14200b0016bf0149e6amr4722823plt.64.1657031334401; Tue, 05 Jul 2022 07:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657031334; cv=none; d=google.com; s=arc-20160816; b=eqNH5+H9I7vyAsTGbmB+9Kjt8ro0sY32xWvDzrow2OVFwvxWXFygjAKSxWiG0ZMGZD 9aSXxuManGV8a8JwlyNEcdYpKQoCSdq02A0z0wsYm7mW4Z7+wSpNkQwJNjNvoHQXBQDi tJKtT7qWim2wo0rmoYgePcWjgblspG6v9xP4Bd3Dpk7Rw94tiB5Rqg5p0AHI3xm++R3m liZiJ1NeGED1WkrWQXtDMQFy0+Ipx3Azx4NRfoj0VDFlii8autKV3BNDMF58OtJQdQ3N FphcmIII6YHU64khG4eqKq6g+cCG4X961CoxbPZh6tZFvw2zMT8DoKBef9WMndrNyzDX CHDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=BvJOyrLlle+OrEl7qkzv2JCrlcrjl+g3mdojJSfkHto=; b=MyiY/1h3FR+btFDqGtaoLyINF9G0tqIyXmqJ4WYL0xMOcIo1KE9irBfAygv/AVA79G dwzyuTkyq9LGw9Pvpq9OaC/XXL+P5USxnjc/Ma9aapa3XrmcdGMmElVEszzvP44VeWU+ nlumTDZIDRvb093Fw/UX/Y8krfjPlz61DlDoNPOZHk1wm68BcL5vEig5Cz+OQcepV5WK FwBej6JA/rPVWdhSy74uJFWi34w/Glwlx6JM1L/psVLAxOYW+YTz6rdhjxgn9qLKEAHr Lj+MvSy6jc3pWO7swMdJWWzIvYxMtgS/JhiS2hZEn4YJb0shsKjM8l7Aad2x8rC+Ktmi /ujA== 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 q4-20020a17090311c400b0016b8167e375si17973092plh.170.2022.07.05.07.28.42; Tue, 05 Jul 2022 07:28:54 -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 S232799AbiGEOFs (ORCPT + 99 others); Tue, 5 Jul 2022 10:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbiGEOFY (ORCPT ); Tue, 5 Jul 2022 10:05:24 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40912DB6; Tue, 5 Jul 2022 06:53:03 -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 3A592D6E; Tue, 5 Jul 2022 06:53:03 -0700 (PDT) Received: from [10.32.33.51] (e121896.warwick.arm.com [10.32.33.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D070C3F66F; Tue, 5 Jul 2022 06:53:01 -0700 (PDT) Message-ID: Date: Tue, 5 Jul 2022 14:53:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 10/14] perf test: Add thread loop test shell scripts Content-Language: en-US To: carsten.haitzler@foss.arm.com, linux-kernel@vger.kernel.org Cc: coresight@lists.linaro.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, linux-perf-users@vger.kernel.org, acme@kernel.org, Suzuki K Poulose References: <20220701120804.3226396-1-carsten.haitzler@foss.arm.com> <20220701120804.3226396-11-carsten.haitzler@foss.arm.com> From: James Clark In-Reply-To: <20220701120804.3226396-11-carsten.haitzler@foss.arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 01/07/2022 13:07, carsten.haitzler@foss.arm.com wrote: > From: "Carsten Haitzler (Rasterman)" > > Add a script to drive the thread loop test that gathers data so > it passes a minimum bar (in this case do we get any perf context data > for every thread). > > Signed-off-by: Carsten Haitzler Hi Carsten, I checked this on N1SDP and I get failures in both threads tests. This is because it's looking for "CID=..." when in my output threads are shown as "VMID=...": Idx:628048; ID:10; I_ADDR_CTXT_L_64IS0 : Address & Context, Long, 64 bit, IS0.; Addr=0x0000AAAAE3BF0B18; Ctxt: AArch64,EL0, NS; VMID=0xa588c; I think with a change to the grep it should work. Thanks James > --- > .../coresight/thread_loop_check_tid_10.sh | 19 +++++++++++++++++++ > .../coresight/thread_loop_check_tid_2.sh | 19 +++++++++++++++++++ > 2 files changed, 38 insertions(+) > create mode 100755 tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh > create mode 100755 tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh > > diff --git a/tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh b/tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh > new file mode 100755 > index 000000000000..7c13636fc778 > --- /dev/null > +++ b/tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh > @@ -0,0 +1,19 @@ > +#!/bin/sh -e > +# CoreSight / Thread Loop 10 Threads - Check TID > + > +# SPDX-License-Identifier: GPL-2.0 > +# Carsten Haitzler , 2021 > + > +TEST="thread_loop" > +. $(dirname $0)/../lib/coresight.sh > +ARGS="10 1" > +DATV="check-tid-10th" > +DATA="$DATD/perf-$TEST-$DATV.data" > +STDO="$DATD/perf-$TEST-$DATV.stdout" > + > +SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO > + > +perf_dump_aux_tid_verify "$DATA" "$STDO" > + > +err=$? > +exit $err > diff --git a/tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh b/tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh > new file mode 100755 > index 000000000000..a067145af43c > --- /dev/null > +++ b/tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh > @@ -0,0 +1,19 @@ > +#!/bin/sh -e > +# CoreSight / Thread Loop 2 Threads - Check TID > + > +# SPDX-License-Identifier: GPL-2.0 > +# Carsten Haitzler , 2021 > + > +TEST="thread_loop" > +. $(dirname $0)/../lib/coresight.sh > +ARGS="2 20" > +DATV="check-tid-2th" > +DATA="$DATD/perf-$TEST-$DATV.data" > +STDO="$DATD/perf-$TEST-$DATV.stdout" > + > +SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO > + > +perf_dump_aux_tid_verify "$DATA" "$STDO" > + > +err=$? > +exit $err