Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1230720pxf; Fri, 26 Mar 2021 04:01:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW8wgv3d6c42LIN/2iBHes9KxzVVSkIB1Z9fUYQj0U9ZLowTy8n6uolfh8nxK+F59L4vOx X-Received: by 2002:a17:906:565a:: with SMTP id v26mr14948669ejr.516.1616756512746; Fri, 26 Mar 2021 04:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616756512; cv=none; d=google.com; s=arc-20160816; b=iUhuolQ6SButrfqiJZtQpZsoX0JkmzZFysQAKAHZmqN24hySCPIuiv+5Ss3kri6312 UKfW7+GqqsHvFe7NOuRdfxwkTAWyP3IUXUmjqTD93uFXDWIxGTJ6JZyn9bPQ0mjQwVOb kUv0GlIr45iy2hNwFRhMaeu42ERgFOr1+AOORqHMneTT7GcEy27YeSfrIQEtU+iijoeN x6cOxGejvN3tle3Ao7DWkNvheJQEd0bZH/qdtojZIdkyDv+LqgL0p4O31uT/OpvkofN+ 18QBtBtLlTzcADGY0cexOM35qoMdhWHlp/+prx+aBbws6AJNtYQmdd0Ifc7L8IkNaGae butw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=136C2g3ptuOy+KQpPqqLQaa6vrTZmpMQSzGJxhFPbjE=; b=McEjWAcYx9DRpFVPV31fCRrGsbNU6W5TpkihrfzQC3yAiv9zvsCB/knSz5+19n4l0A +CvNuCPcUO41spiuo+IAXSpEYkD/ZGhj7LGddFiGvkO6xuLRlP/w0QDDVz6bjH2t3DdQ g9fBG4Y7X7iG1RHVx37stIiVojxTJcaZxwip8ciiJm/R5jvUXUoPN6QkhO0fi2A9VBUE 03aFF/8I3KYg26l2x/JFncAbCb+68H6Q39iFypYg3XsiCYUh9zNahpGSVN2NXCwZg2gb +RzvygezKjNFfoL/WBfYOM5td8N0d+R4ttaE7AIqM2T50P4y9kHjFMffRAYV34W4LOvv GEyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si6921327ejz.1.2021.03.26.04.01.30; Fri, 26 Mar 2021 04:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbhCZLAd (ORCPT + 99 others); Fri, 26 Mar 2021 07:00:33 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:2743 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbhCZLAA (ORCPT ); Fri, 26 Mar 2021 07:00:00 -0400 Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4F6Jfy0T8rz680jb; Fri, 26 Mar 2021 18:51:06 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 26 Mar 2021 11:59:58 +0100 Received: from [10.210.170.125] (10.210.170.125) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 26 Mar 2021 10:59:57 +0000 Subject: Re: [PATCH v2 0/6] perf arm64 metricgroup support To: "Paul A. Clarke" CC: , , , , , , , , , , , , , , , , References: <1616668398-144648-1-git-send-email-john.garry@huawei.com> <20210325203944.GD8931@li-24c3614c-2adc-11b2-a85c-85f334518bdb.ibm.com> From: John Garry Message-ID: Date: Fri, 26 Mar 2021 10:57:40 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20210325203944.GD8931@li-24c3614c-2adc-11b2-a85c-85f334518bdb.ibm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.210.170.125] X-ClientProxiedBy: lhreml721-chm.china.huawei.com (10.201.108.72) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/03/2021 20:39, Paul A. Clarke wrote: > On Thu, Mar 25, 2021 at 06:33:12PM +0800, John Garry wrote: >> Metric reuse support is added for pmu-events parse metric testcase. >> This had been broken on power9 recentlty: >> https://lore.kernel.org/lkml/20210324015418.GC8931@li-24c3614c-2adc-11b2-a85c-85f334518bdb.ibm.com/ > > Much better. Before: > -- > $ perf test -v 10 2>&1 | grep -i error | wc -l > 112 > -- > After: > -- > $ perf test -v 10 2>&1 | grep -i error | wc -l > 17 > -- > > And these seem like different types of issues: > -- > $ perf test -v 10 2>&1 | grep -i error > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_powerbus0_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs01_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > Error string 'Cannot find PMU `nest_mcs23_imc'. Missing kernel support?' help '(null)' > -- > This looks suspicious. Firstly, does /sys/bus/event_source/devices/nest_mcs01_imc (or others, above) exist on your system? I guess not. Secondly, checking Documentation/powerpc/imc.rst, we have examples of: nest_mcs01/PM_MCS01_64B_R... So is the PMU name correct in the metric file for nest_mcs01_imc? Looking at the kernel driver file, arch/powerpc/perf/imc-pmu.c, it seems to be correct. Not sure. Thanks, John > (Added Kajol Jain to CC) >