Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp250329pxb; Wed, 20 Jan 2021 06:16:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGNN+dE0mMDAAyejAZDsskVar+YUb/NVIIutRQ6nshDU5AmTF5XrBGDnIJnk0eZ0r77nVp X-Received: by 2002:a50:9f4d:: with SMTP id b71mr7525210edf.310.1611152213938; Wed, 20 Jan 2021 06:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611152213; cv=none; d=google.com; s=arc-20160816; b=Q9pNJYwnnm5RcmxXAj4CgLRJ/45zAHQtqpCM163h5Sdh0a5xi6Z64nV+05gbRGd4T5 B/9qnsyLHl8uUxg/7hTzhslxK62zvZArB3VbfwQ9W8hJIO9pnBVK5Op3d1PJxN+Bgqhz ceh6oXPgX/l/jea7lQvxFwBX5+GeXB+i1+VaSGWrJ8orNUMRAXUOKgd5WCDDGvMnZefT NET54+6fgJV6oeHR/WlC8RQKMzznJ3bddDT9ma60EYsqT3F68mt+ppVlGNZBv458W96a KTEeyKGF39PFXwoFjauHsEFfLxJiLhEIRVNcoRbyk5CnWguwq1HVh0bcucdbO1FWXbVG sGZg== 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=naFmENwzXx/udkEZnEWDngBsTwPu6efOYYqSnvvQRO8=; b=ftbBxODS95hYr3iKh0phxbsafdpbmp9M0RogPFhMMn5dxhQV519TUlyyMjwjFUmdYr Hz1qAeNX6UP9WpuH0Mzyp5zFHNAKAGS7W9OecrGopuZPRIRY/ly1EbxQwWFgF9n68o8Q 61Epd9oD7mU7OLMth4CRkuLCE4p8GJ+e3maDJjeucnHnZBsgbtkexQTj3KyMyM0xlvj8 U0gjBtvf06CJt0eFUK7ZqT/2/LE15y71FtHJgq5sFtLQ/8JVIlrlnOx5skLjTZThjn50 44WY34RwzA0cDvDS5d11GnDKZeXVD72MjpxBmGBC5G2x4Uv2CRwOrwk97HRtCPmGmlo3 FIXA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs14si846475edb.429.2021.01.20.06.16.29; Wed, 20 Jan 2021 06:16:53 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390422AbhATON2 (ORCPT + 99 others); Wed, 20 Jan 2021 09:13:28 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2384 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730943AbhATNKT (ORCPT ); Wed, 20 Jan 2021 08:10:19 -0500 Received: from fraeml738-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4DLQkh0dJ6z67dkD; Wed, 20 Jan 2021 21:06:04 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml738-chm.china.huawei.com (10.206.15.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 20 Jan 2021 14:09:13 +0100 Received: from [10.47.7.185] (10.47.7.185) 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; Wed, 20 Jan 2021 13:09:11 +0000 Subject: Re: [PATCH] perf metricgroup: Fix system PMU metrics To: Jiri Olsa CC: Joakim Zhang , "peterz@infradead.org" , "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "namhyung@kernel.org" , "irogers@google.com" , "kjain@linux.ibm.com" , "linux-kernel@vger.kernel.org" , "linuxarm@openeuler.org" References: <1611050655-44020-1-git-send-email-john.garry@huawei.com> <4a876638-3c92-4a49-1925-0ff20c5d42b7@huawei.com> <20210120125622.GE1760208@krava> From: John Garry Message-ID: <0d064a9b-bbb6-4ef9-b959-d64c14850319@huawei.com> Date: Wed, 20 Jan 2021 13:07:57 +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: <20210120125622.GE1760208@krava> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.7.185] X-ClientProxiedBy: lhreml741-chm.china.huawei.com (10.201.108.191) 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 20/01/2021 12:56, Jiri Olsa wrote: > that's fixing the issue for me, this was crashing: > # perf stat -a -I 1000 -M L1D_Cache_Fill_BW,L2_Cache_Fill_BW > > could you please send it formaly, so it can be merged? > I will do it today. But I want to make sure that the logic is correct, so checking it all again, i.e. I can fix the segfault but the logic may be wrong. I think Ian wrote this code originally or made the most recent rework (which I tried to fix), so would like him to check also. > I can't reproduce the original patch issue and I need > to check the code in more depth It should only occur for metrics when using system PMUs, i.e. match via identifier file, so I really doubt your system has them. I'd like to add a test for this - I need to think how... Cheers, John