Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2728998pxb; Mon, 31 Jan 2022 03:04:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtHDzOhxa4quiOws6xuwI5gH/SzK4QJUUpyZLui+SgdZbWchDh1fXsbm6nZZyDkVlBcMIR X-Received: by 2002:a17:902:ecc2:: with SMTP id a2mr20207408plh.27.1643627078646; Mon, 31 Jan 2022 03:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627078; cv=none; d=google.com; s=arc-20160816; b=U78qB281SwyjPUmeDKGVb4IBiah3Rtp4/DS/tuEYX6TAIbsKl3rMsE21XBdvTQjLwK 4QprPFgXlxpaKJ+JiQ06e3fBRJ1V34goNZ2yrMQUeh/jJTH+HsnT7v++WNz7dyPbHS0T ncJi1mCHXOPaRvXibjit3TZ04KLKolC+i3WLaciOgBSOIxKgxUAIB2XUEZlQUeN6A4Kg AX5yhLSJcGzljcdlDU9ENpibzYuw/YyHXXwPqssc3ms2l/HZ9dVULzCHoDE489gX7/Qn FGHUuWq0AlSuCkN+Cz2LtPDxbALniDFDzNVP9kqEkqeIeNSmoU1/DjEgEldyYUAKZLAF 0x/A== 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=bZxU9ay+MIGV58e1ye3/GCTCafreaJ1WRk9Py2U1rEQ=; b=b/AKV4wJT81SsCf9xiYSyZALDCzLc4JkbCsgYPHNwTeFE3GeVrU9lH0cyedtJMaedk yhBodtY3geex22ce5eNaEV07W2xSUNlRxLuqdd0AmNZ788lKOXJY87bzIbBnBAt4339P Q4Yk73IwFtpbnUeCDQ5LnFN1SI4Wy2zYIo0YrWOh2ehx8YUccvGCljzL6diMhn+wIaIX bPOUaWISDU4Sh+vjlecuV5J2dKZTz6C1oWsbSr5gR67w3rFeOXWEMHPgKb3foN7Ja4Fv UbUz4FSxCOCUquu4/BnNnkz4vcEACz7nuJyzdoR2O2S/dV9+syzANGUDgYE98icTSUUS bmoQ== 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=QUARANTINE sp=QUARANTINE 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 bj8si15441580pgb.745.2022.01.31.03.04.28; Mon, 31 Jan 2022 03:04:38 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348887AbiA1Not (ORCPT + 99 others); Fri, 28 Jan 2022 08:44:49 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:4545 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242206AbiA1Nor (ORCPT ); Fri, 28 Jan 2022 08:44:47 -0500 Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Jldr412C6z67Z9J; Fri, 28 Jan 2022 21:40:20 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 28 Jan 2022 14:44:45 +0100 Received: from [10.47.26.192] (10.47.26.192) 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.2308.21; Fri, 28 Jan 2022 13:44:44 +0000 Subject: Re: [RFC PATCH v2 1/5] perf stat: Implement --topdown with metrics To: Andrew Kilroy , , , , , CC: Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" References: <4fefb1bc-49b2-bc5b-23cd-cd8fabe8c588@huawei.com> <20220111150749.13365-1-andrew.kilroy@arm.com> <20220111150749.13365-2-andrew.kilroy@arm.com> From: John Garry Message-ID: <70433fdc-831e-8afa-68c3-6d75a4f8c75a@huawei.com> Date: Fri, 28 Jan 2022 13:44:08 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20220111150749.13365-2-andrew.kilroy@arm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.26.192] X-ClientProxiedBy: lhreml713-chm.china.huawei.com (10.201.108.64) 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 11/01/2022 15:07, Andrew Kilroy wrote: > } > + > +bool topdown_can_use_json_metrics(void) nit: maybe topdown_can_use_metricgroups() could be better > +{ > +#if defined(__aarch64__) > + return true; > +#else > + return false; > +#endif it might be worth just having !x86, just that is prob too much forward looking > +} > +