Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2572258rwd; Wed, 14 Jun 2023 04:57:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76piHhHQAH1gbHGRmPnzcueAhvgMy8+xz37jZa0ZTuG+TMOG47d45KuHVPGmun1awjE+/4 X-Received: by 2002:a17:907:3688:b0:978:8d1b:3a24 with SMTP id bi8-20020a170907368800b009788d1b3a24mr15246119ejc.27.1686743854767; Wed, 14 Jun 2023 04:57:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686743854; cv=pass; d=google.com; s=arc-20160816; b=TRNX5cRIZnZl/kvLRbSW6Qc/rvlq1Ur+IYi/LsU6xiWz96bX6dpTr0BIG0q9vG+E1n llk8Yre/CFIf79om3ru72W3zZMg3AxWQzml1orituFOXGC04B2v1J0ApAjBFV1tjfCH0 Xs6OSz/u95JJZZ+dqzJqsjbQWJ0CAszP/34vSSs5Ff/3NYr0wrk0wSo8fPtwwgfCgo7X u2Xw1g3jq6l2SYweI8mbequW+a6rFPgZbad/7X3rqTVKqOJwRJJpgL+T3IDj2RYP2GBI JMc3iP7CXg4AVIx/5HgucgeaDDMNc4kyXs+4+9hoZWdNl7aRgD7tTJczsWuT9rmKQvCZ d9Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=2lPexcpp1qpj9zRj8kTI3+HCyWD6SZUjLwJ8gXzhzuA=; b=maFxr+tyjnH1nP1820MARkIEX1uCnMSVefvpHPKz3IAoILz7HdFKQcN7qvraQ9jc22 fG3xNba/028uQ4M5Wl8pv/TvV/J5IX5/RCYrszoILFl5d6EN3zarRiD8ExhkUt3ATPQP OjaC0h/kozCfYhA+hwDvNSTwXyhG8rV2cdvao1SFSY48P8SnoNP9bLny3aGrcsPXPonC Poi19ghv9oDgm6L3Gq0VV4lfT8u01O0surEiuI5bLGaozRD8FVLCrB2GlpKyv7IG9Ic8 Yka1GHTJrsy71KYFVKiMDV1UzBJzSyUWPKwJgx3HCgKu6c6+HVrjZ30QaRZ0A4W38DHk nnVg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=WvDmKysC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a170906868700b00977e4a1fe32si8342401ejx.539.2023.06.14.04.57.10; Wed, 14 Jun 2023 04:57:34 -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=@amd.com header.s=selector1 header.b=WvDmKysC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244151AbjFNLjl (ORCPT + 99 others); Wed, 14 Jun 2023 07:39:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244085AbjFNLja (ORCPT ); Wed, 14 Jun 2023 07:39:30 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2052.outbound.protection.outlook.com [40.107.94.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDCB626BF; Wed, 14 Jun 2023 04:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AKZJWy7q9FVBXtv2GK4gEq7J5fKowVrtasDaOKcE3u3wSozcZGVckwsCGS3nKuX6SGqqQLT5t/67HnsRsRWDNQH/iG1HmvTiR9BHb36CcRSsX18oSNpcWyAnHEJ0q0TRigHrg9yqgjSlk3YIUBYG7cZzoqyjyos2wpASMA+h6jRBqbcAb8ZczPMp7OnCtnL1k00hV4WQK8RsQyVH58nKQCNYc/EmcTFl4iQjpcNuw3DLP2X3n7pKep5yCzq8s9X9L86708xP+Ucc2sEgJeFeoGwrNqizacjnu+654SPEVWbfaXu6QYye7W4pVTtmyN8D818cwi1Q42LBkDTszuGIJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2lPexcpp1qpj9zRj8kTI3+HCyWD6SZUjLwJ8gXzhzuA=; b=Bo4mTisBO/3a+jYOJpWDRAlNawiwOc4NpflgzvDuqbWdw4lyyMvzGkT/ULpeZXWhmOBJ5rdcRJ2z0lOhJKtBB9jHtdoHzZYiSGAKEdzkgDZuwwGBQ2/YajD7OuLYy6BcckaHNKMmN9BUfc6ZpE/0OqX8MdBx+8RueSezJvt3WP5lzXOeK0tTYg1OCckDp9IQUs+pvdkSzOWJd9iRPHsihwxVQsG/TXHQOx6NjeepLXogoLNS/q6I1eExLoRMzInip7tpU6sNKQFZC2KXOP77dr+txSp8Xrk/yGKt8OIgXL+5+t5dH3qkFPimk/h6uq5g1wQ4ozBj13XDWfqGJynu7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2lPexcpp1qpj9zRj8kTI3+HCyWD6SZUjLwJ8gXzhzuA=; b=WvDmKysCZC27VdIGODi6vUyc8bM+xjMezxNZcO1nNEwhlsQ0tTniBlBU6wcuLa+C/Eys2eX6aj7odBKqXsfoqQbDkQ0a5ITyYEkYE+K23/Ywnxz3TPyr7O3NJBL4VL0uqqSUYqn5otKJYXrftMrNRF7ENXuZfxVRLYy5UNwiBhI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from IA1PR12MB6137.namprd12.prod.outlook.com (2603:10b6:208:3eb::20) by BL1PR12MB5269.namprd12.prod.outlook.com (2603:10b6:208:30b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.37; Wed, 14 Jun 2023 11:38:35 +0000 Received: from IA1PR12MB6137.namprd12.prod.outlook.com ([fe80::5f70:8e17:f854:91ed]) by IA1PR12MB6137.namprd12.prod.outlook.com ([fe80::5f70:8e17:f854:91ed%4]) with mapi id 15.20.6455.045; Wed, 14 Jun 2023 11:38:35 +0000 Message-ID: <1320e6e3-c029-2a8c-e8b7-2cfbb781518a@amd.com> Date: Wed, 14 Jun 2023 17:08:21 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] perf test: Retry without grouping for all metrics test Content-Language: en-US To: Sandipan Das , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, kjain@linux.ibm.com, atrajeev@linux.vnet.ibm.com, barnali@linux.ibm.com, ananth.narayan@amd.com, ravi.bangoria@amd.com, santosh.shukla@amd.com References: <20230614090710.680330-1-sandipan.das@amd.com> From: Ayush Jain In-Reply-To: <20230614090710.680330-1-sandipan.das@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0169.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:26::24) To IA1PR12MB6137.namprd12.prod.outlook.com (2603:10b6:208:3eb::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB6137:EE_|BL1PR12MB5269:EE_ X-MS-Office365-Filtering-Correlation-Id: 15de3cab-212c-4397-49e0-08db6ccbe32d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o+P1rObzZqmbwYZTTvOizgcQic8BIqbOPYpO7IfJ702EcfsVuZtor3bX87PR/NKo9maGMVDL+/6FDxc/0p8Rzo2bBvhhPa50e4mfUvKzT8x1iD2vmiajcXuWitJ3QVJbUnDZIpG93oCE/ghcOhNtcTLftmukqGwTLiC9Y26DAbn/GR3B5U+sQC9CVgNC0FZ82hjyIXHbMkD1s/GwQgrT1SbsCkcbSMrwSYCm4Yugj9/jnoQ/1YpiaaxTkprvOwp4JTJowN/q3gDHUo7GI/0957X/G6CHSZCxs5jn4Djf3P0tHeKkAZcmDL27HrTc0Fq6PiHqwQAyoLLe17kbPER/jD68Vp6DG1nSGW2ivnUf5Jmm8Ub6Koyaydk30Cf2CzXk/pnX2zPCxAm2rNfpbTAJz5P93RCxp8/z4ckWm3yCfYPuyVfz6oJKOlM5y/i7E/eSucvZvBGeexP1yJxylSP17N4k2Jw1beCkWXf9SHusabeulAdzfcw8sTeXHIRPcV7p5oYKmpQQq+6tIgI4bT10GFASzkZ2tMdO7sbcmIwVXaTrFfZg/c+omZLmfzEAQMCiHr4oGXB8oKEduNc/hPa7k9pyOEADcKQoRnRIUCGOs+Q+o8nGT6lz18eL/cHP5R0+c7SLO74s57dNGUE/g04PGg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA1PR12MB6137.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(396003)(39860400002)(376002)(366004)(346002)(451199021)(31686004)(7416002)(5660300002)(8676002)(8936002)(41300700001)(2906002)(316002)(478600001)(66556008)(66476007)(4326008)(66946007)(6666004)(6486002)(38100700002)(186003)(53546011)(31696002)(86362001)(83380400001)(2616005)(6506007)(26005)(6512007)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eVFtMlJOM05qNnFXaXJBaDk0K1JVcXhqeUxuNys1MXdBZzQzNnJsekwxa09S?= =?utf-8?B?WndDVFlES3RxdndjUW04bmRRL2FNNjJpeGFRd0VpTVpsWXJETHFxTCszSzU0?= =?utf-8?B?b3BVQkNUSHZtYzR0Y0ZLYUhuaGRmUWxwNHJ5QjRoazBDMmY2UTlIRmtYV3B4?= =?utf-8?B?Uy9qUnNaYk8rZkFLNkIvdS9XalgyNkp5OS9ZMmR3am1iak1WUWViSEQ5Unlh?= =?utf-8?B?YTJJaUNpTklaaUhIKzVZZTBqVW5aWGFUWEdSSEV6Yjk5RzV4UjgvVW40Zi9U?= =?utf-8?B?aDN2aXcvREtUTTVtZ3Vnd2V6QVc4N0dQSlpLNGFjRUxiRkdlbXd5ZmhFbGJE?= =?utf-8?B?R2lQYWdrVXkxYzZBTnI4c1pkWkdUSzJlOXBkTHFCenVEV2hwUGJCRmUySjht?= =?utf-8?B?M0R2R3FDZ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uthSource: IA1PR12MB6137.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2023 11:38:35.1806 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rOLl2JadJXSkNpK5s0f5uC4reSHY9k6KqoaRQfZaXQq3etMeeULgawt2A0zCeu2gllHB/axtEo7PCimdb0tuog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5269 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Hello Sandipan, Thank you for this patch, On 6/14/2023 2:37 PM, Sandipan Das wrote: > There are cases where a metric uses more events than the number of > counters. E.g. AMD Zen, Zen 2 and Zen 3 processors have four data fabric > counters but the "nps1_die_to_dram" metric has eight events. By default, > the constituent events are placed in a group. Since the events cannot be > scheduled at the same time, the metric is not computed. The all metrics > test also fails because of this. > > Before announcing failure, the test can try multiple options for each > available metric. After system-wide mode fails, retry once again with > the "--metric-no-group" option. > > E.g. > > $ sudo perf test -v 100 > > Before: > > 100: perf all metrics test : > --- start --- > test child forked, pid 672731 > Testing branch_misprediction_ratio > Testing all_remote_links_outbound > Testing nps1_die_to_dram > Metric 'nps1_die_to_dram' not printed in: > Error: > Invalid event (dram_channel_data_controller_4) in per-thread mode, enable system wide with '-a'. > Testing macro_ops_dispatched > Testing all_l2_cache_accesses > Testing all_l2_cache_hits > Testing all_l2_cache_misses > Testing ic_fetch_miss_ratio > Testing l2_cache_accesses_from_l2_hwpf > Testing l2_cache_misses_from_l2_hwpf > Testing op_cache_fetch_miss_ratio > Testing l3_read_miss_latency > Testing l1_itlb_misses > test child finished with -1 > ---- end ---- > perf all metrics test: FAILED! > > After: > > 100: perf all metrics test : > --- start --- > test child forked, pid 672887 > Testing branch_misprediction_ratio > Testing all_remote_links_outbound > Testing nps1_die_to_dram > Testing macro_ops_dispatched > Testing all_l2_cache_accesses > Testing all_l2_cache_hits > Testing all_l2_cache_misses > Testing ic_fetch_miss_ratio > Testing l2_cache_accesses_from_l2_hwpf > Testing l2_cache_misses_from_l2_hwpf > Testing op_cache_fetch_miss_ratio > Testing l3_read_miss_latency > Testing l1_itlb_misses > test child finished with 0 > ---- end ---- > perf all metrics test: Ok > Issue gets resolved after applying this patch $ ./perf test 102 -vvv $102: perf all metrics test : $--- start --- $test child forked, pid 244991 $Testing branch_misprediction_ratio $Testing all_remote_links_outbound $Testing nps1_die_to_dram $Testing all_l2_cache_accesses $Testing all_l2_cache_hits $Testing all_l2_cache_misses $Testing ic_fetch_miss_ratio $Testing l2_cache_accesses_from_l2_hwpf $Testing l2_cache_misses_from_l2_hwpf $Testing l3_read_miss_latency $Testing l1_itlb_misses $test child finished with 0 $---- end ---- $perf all metrics test: Ok > Reported-by: Ayush Jain > Signed-off-by: Sandipan Das Tested-by: Ayush Jain > --- > tools/perf/tests/shell/stat_all_metrics.sh | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/tools/perf/tests/shell/stat_all_metrics.sh b/tools/perf/tests/shell/stat_all_metrics.sh > index 54774525e18a..1e88ea8c5677 100755 > --- a/tools/perf/tests/shell/stat_all_metrics.sh > +++ b/tools/perf/tests/shell/stat_all_metrics.sh > @@ -16,6 +16,13 @@ for m in $(perf list --raw-dump metrics); do > then > continue > fi > + # Failed again, possibly there are not enough counters so retry system wide > + # mode but without event grouping. > + result=$(perf stat -M "$m" --metric-no-group -a sleep 0.01 2>&1) > + if [[ "$result" =~ ${m:0:50} ]] > + then > + continue > + fi > # Failed again, possibly the workload was too small so retry with something > # longer. > result=$(perf stat -M "$m" perf bench internals synthesize 2>&1) Thanks & Regards, Ayush Jain