Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp680045rwb; Wed, 28 Sep 2022 07:50:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ae+vBEEIX2HJOkbdA+rAyQbKNeVsNcWS8N/hMiANbWz6uSrHoYMdUG4a34UBpJ4nJ4we/ X-Received: by 2002:a17:90b:2246:b0:201:d6d6:9809 with SMTP id hk6-20020a17090b224600b00201d6d69809mr10976110pjb.159.1664376647168; Wed, 28 Sep 2022 07:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664376647; cv=none; d=google.com; s=arc-20160816; b=krVbWu+COOam++zjE9YFUeZ69nmGLtfvuYXViyL+5bUgaTAt5YGvkrUbSqCX5U+E2e IQCvIhLDzjI1ux1UKFHX8corQa4gL6f3dST4gHi5rUFOQgHhCPEV4OJdRgLNWG1cTWFO WuOjp2zY2g37MOCim/JFNoMwrIE9JHLe5tNIyf4SMW3+lRNqG9hyRfaT3/pQDUbYsHX3 9SipxsDxJ2nTAPzo4rBdBZSluOOzPSE5gvEhbby3BRcSm5ltWnrxfb6VPvmxV3MSFLK/ fTYKsaUA2TpiEgoy1eGR6qMxjeXVkeSomWrKDAEgqh/4kbvhWN6dgKYqNzCHp5JDTCUE g0VQ== 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=NI1dBCpt+bm+zU+RKRGpnykzEpmprEgKfTxt4wblC+4=; b=byhmxQ/hrtRR81qvFaIueM3ptdNnoLYTQQgzURiup0lqJu75VzlHA0ghxhR9BDDYfM HTrnWYanhktJN5gmlthNV2vq084Gll0x4oSfvwThk0Cu9B1ZRZItt1UEQiUFCtijfLfr SuhdYA1UyiaqS08b0AF+uIRPFJeOPQ62PoDwEcW3ko/P/qJEx89yMyhgDKEwQCVwOI9b DXyoaFncbgGl8l58MIJ11KcbeLkzm865WKFySFmGKgbSQzo8wHOiq71zwGv/6kO9OFmU 6b6T0iZEq6kFjZtZzjb4csUtGD7EjpRH1H6IpgSGdZbuOqAymQeE4TZkhjPoVGiFvTDe j/LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E4VTagMS; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a631b09000000b004389512f412si5371971pgb.1.2022.09.28.07.50.36; Wed, 28 Sep 2022 07:50:47 -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=@kernel.org header.s=k20201202 header.b=E4VTagMS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234372AbiI1O2Z (ORCPT + 99 others); Wed, 28 Sep 2022 10:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234238AbiI1O2Y (ORCPT ); Wed, 28 Sep 2022 10:28:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94319AB1A0; Wed, 28 Sep 2022 07:28:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 30B4261EC3; Wed, 28 Sep 2022 14:28:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D989C433D6; Wed, 28 Sep 2022 14:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664375301; bh=glY7sliTzxJPV71rU1eGaj4hM/6vlaTJ6XqbZLxii2s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E4VTagMSGKufx1cXX2Z4W9q6vyFcUDeTG/7uh1zO1LQ/vJUMnD97PSKAvH7b0RH0a vzGve6VDTl4VvS5p+brwq5qk9q1wivx4dvwTXIfc7F4xPtNILCKibyvPKLd/Gh/4zd qWU7hDCUHCOS9Svz6w8+5++d3mFTo68OWrrvJnq8jORRWviqeoqvanzE3ztxaxy9UE vZBkcZkkwacnAWGBqjkzDzuuJHhYFJoFMC6knAbYwhB6+EcOIuCmKMxcaK3aYat+h2 hQ3DBIIktab83tcFzL/kfzVMaGTUMmHCS+lm52jDxD2Rr4EBhpT4G1zHz4gP9hqyRb HDfptXXiEcsiw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 30B7C405F0; Wed, 28 Sep 2022 11:28:19 -0300 (-03) Date: Wed, 28 Sep 2022 11:28:19 -0300 From: Arnaldo Carvalho de Melo To: zhengjun.xing@linux.intel.com, Ian Rogers Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@intel.com, jolsa@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, ak@linux.intel.com, kan.liang@linux.intel.com Subject: Re: [PATCH] perf test: Fix test case 87 ("perf record tests") for hybrid systems Message-ID: References: <20220927051513.3768717-1-zhengjun.xing@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927051513.3768717-1-zhengjun.xing@linux.intel.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Em Tue, Sep 27, 2022 at 01:15:13PM +0800, zhengjun.xing@linux.intel.com escreveu: > From: Zhengjun Xing > > The test case 87 ("perf record tests") failed on hybrid systems,the event > "cpu/br_inst_retired.near_call/p" is only for non-hybrid system. Correct > the test event to support both non-hybrid and hybrid systems. > > Before: > # ./perf test 87 > 87: perf record tests : FAILED! > > After: > # ./perf test 87 > 87: perf record tests : Ok Looks sane, applied. Ian, consider providing your Acked-by, - Arnaldo > Fixes: 24f378e66021 ("perf test: Add basic perf record tests") > Signed-off-by: Zhengjun Xing > Reviewed-by: Kan Liang > --- > tools/perf/tests/shell/record.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/tests/shell/record.sh b/tools/perf/tests/shell/record.sh > index 00c7285ce1ac..301f95427159 100755 > --- a/tools/perf/tests/shell/record.sh > +++ b/tools/perf/tests/shell/record.sh > @@ -61,7 +61,7 @@ test_register_capture() { > echo "Register capture test [Skipped missing registers]" > return > fi > - if ! perf record -o - --intr-regs=di,r8,dx,cx -e cpu/br_inst_retired.near_call/p \ > + if ! perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call:p \ > -c 1000 --per-thread true 2> /dev/null \ > | perf script -F ip,sym,iregs -i - 2> /dev/null \ > | egrep -q "DI:" > -- > 2.25.1 -- - Arnaldo