Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1077305rwb; Thu, 6 Oct 2022 08:11:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4IjljFdw/AZLeL7E9QkKMhcze02ajtvgOylPkhTmOcxz+0tyFKAeM3KescDMYnEaRjBKsD X-Received: by 2002:a17:907:9727:b0:78a:e09c:f2f9 with SMTP id jg39-20020a170907972700b0078ae09cf2f9mr236157ejc.455.1665069106956; Thu, 06 Oct 2022 08:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665069106; cv=none; d=google.com; s=arc-20160816; b=jhVeeCPkhcNoIaBqxwlLRdpPfQ7xaP2uCXTOBC1l3VIH+EXqqXxSrjLMQCDi9n8Ypq fWP2P+RdIO4EKiZNkKovXI7O7n35mRDCZq/eC4NQDGioNBiF6BiXrfA+qrx6nnOE9yMf DN+yHMy89sEf8NMogGWdwUdTHtcBfr281VZjhZSb7e7ZVh4hQb1XuAQuzjlb0TcdJnf2 QaC37ywhKD0c9+J8w7LC4iBtJ+l2+Qzwrfwm4UMRu8olnMzdkzT7926gvNMSP882KZJY W4/2uCxi+y36uH05//jn2Pv5hVHnqS3VIuRoLO0IEKbN1E8AYwStqLwlFIBWRjtk/jiB Mjcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tRKC/oAPBVTHlB7GQZJdKnIj+0+vIbganKIV495EK3s=; b=BOWOF+3OlHFettq02GeTlk4jiwDUZl0uauAXHd+K/DbmZEsOV2xMhhPjx3jo1VRAvJ jbMUSDDBYf8b+zZE8kt3KXP0/UhiDZ0lnEkQPacG1i8qqiq3teOp5TUgG3yZITG3/cnG eAhOq43VkmqpGLlh1XPaKr8Z7jPJlu+wLYGnj+YMTCDIoL7otzlkqT2duYBuPfY2eZv9 x7bvt7DTI0NO+HXjE8P9Q/l/rHDs3OywY3ZgspzsoYRyE7fONOdmip09N6lhapWY+TCl C74avCVYtsDOvB0G++g3i0p09Zq9G8AbblcuNEBEyzGMQeqejSZa65rRQhbQifU6raq6 izFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EecofMjk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a1709064fca00b0078bd1e71af6si11795477ejw.72.2022.10.06.08.11.18; Thu, 06 Oct 2022 08:11:46 -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; dkim=pass header.i=@linaro.org header.s=google header.b=EecofMjk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229955AbiJFOtp (ORCPT + 99 others); Thu, 6 Oct 2022 10:49:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231567AbiJFOtU (ORCPT ); Thu, 6 Oct 2022 10:49:20 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE716B40F5 for ; Thu, 6 Oct 2022 07:48:49 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id 67so2220272pfz.12 for ; Thu, 06 Oct 2022 07:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=tRKC/oAPBVTHlB7GQZJdKnIj+0+vIbganKIV495EK3s=; b=EecofMjkbQ5VhheJ+QRBRj7krV9TCOeI6TkhjEl/zntgvx0LqJilN1EgmAjEfFQaHl PKyDe+abphT1acrqGFlROjdmFeLCQ1g/Gm0HpqP56oBaMHLO4oWFef0CjR9jOKfr0w0J 17OMX6lNQm6WlpfevaSADbY3hZVMZuSmEKQFkIAfDsbLl0pzAXF7GwRAYSW/6OrhYXUq mSQQzrB/d0RGDvtgILmnmHxb8cGp/vh2BU2+yN75BkE1hvRZEBcScpidzYhtH8qmM+Tq PAUoD3M0BuRKe1YaudbTVC592kA60KIWcSUUp5xDUmC1/uilc6X3tnNNF80t3e6IT00b LBHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=tRKC/oAPBVTHlB7GQZJdKnIj+0+vIbganKIV495EK3s=; b=K3oQ4Mn1RnDrUQnxwS+BBCHNh1oDdIbRXsiIkj5BJ+/1Ka29EbOpht6sLKMybdX51d Tf16gZdh3Yn1fCc27VTsC1LR3EVESlh3Qw9icRj8AHLoeCwTaiFLE7gPR89pj9gXpc7Z ZGtfDWOG+19UZJojwb2w7HSllKxDCHpnpBuBTIeNa/G3jMeJ8KQlMwQOJAravNZUiY8T MM6rTkm4zi40cj7D+4rdK+SuBrrVsTkQqr1kwpKGC85W6ftbBVu9iQPhB6hvPkSmT35b GGbPy/csxRhPTK6HxzRTsKacwSBMsXtwejcA2U/AW6I7OmYSiaLhtlDacA/obPD/oeqa Vl+w== X-Gm-Message-State: ACrzQf3szGz/yqH+HPYv9iS37Ka5AJjAnKGoKZC1JDF3oAz1GyAHWoZf F109GcyOryZwb8Gonpaq0bAZ+g== X-Received: by 2002:a63:1141:0:b0:454:ae43:14e7 with SMTP id 1-20020a631141000000b00454ae4314e7mr204004pgr.527.1665067729266; Thu, 06 Oct 2022 07:48:49 -0700 (PDT) Received: from leoy-yangtze.lan (211-75-219-202.hinet-ip.hinet.net. [211.75.219.202]) by smtp.gmail.com with ESMTPSA id s18-20020a170902ea1200b0017d404403b7sm10609923plg.259.2022.10.06.07.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 07:48:48 -0700 (PDT) Date: Thu, 6 Oct 2022 22:48:39 +0800 From: Leo Yan To: James Clark Cc: coresight@lists.linaro.org, acme@kernel.org, suzuki.poulose@arm.com, linux-perf-users@vger.kernel.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf test: Fix test_arm_coresight.sh failures on Juno Message-ID: References: <20221005140508.1537277-1-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221005140508.1537277-1-james.clark@arm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi James, On Wed, Oct 05, 2022 at 03:05:08PM +0100, James Clark wrote: > This test commonly fails on Arm Juno because the instruction interval > is large enough to miss generating any samples for Perf in system-wide > mode. > > Fix this by lowering the interval until a comfortable number of Perf > instructions are generated. The test is still quick to run because only > a small amount of trace is gathered. > > Before: > > sudo ./perf test coresight -vvv > ... > Recording trace with system wide mode > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight system wide testing: FAIL > ... > > After: > > sudo ./perf test coresight -vvv > ... > Recording trace with system wide mode > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight system wide testing: PASS > ... Since Arm Juno board has zero timestamp for CoreSight, I don't think now arm_cs_etm.sh can really work on it. If we want to pass the test on Juno board, we need to add option "--itrace=Zi1000i" for "perf report" and "perf script"; but seems to me "--itrace=Z..." is not a general case for testing ... > Signed-off-by: James Clark > --- > tools/perf/tests/shell/test_arm_coresight.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/tests/shell/test_arm_coresight.sh b/tools/perf/tests/shell/test_arm_coresight.sh > index e4cb4f1806ff..daad786cf48d 100755 > --- a/tools/perf/tests/shell/test_arm_coresight.sh > +++ b/tools/perf/tests/shell/test_arm_coresight.sh > @@ -70,7 +70,7 @@ perf_report_instruction_samples() { > # 68.12% touch libc-2.27.so [.] _dl_addr > # 5.80% touch libc-2.27.so [.] getenv > # 4.35% touch ld-2.27.so [.] _dl_fixup > - perf report --itrace=i1000i --stdio -i ${perfdata} 2>&1 | \ > + perf report --itrace=i20i --stdio -i ${perfdata} 2>&1 | \ > egrep " +[0-9]+\.[0-9]+% +$1" > /dev/null 2>&1 So here I am suspect that changing to "--itrace=i20i" can allow the test to pass on Juno board. Could you confirm for this? Thanks, Leo