Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2656223iof; Wed, 8 Jun 2022 09:18:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydmUaRZWN2yoJ3CDH7WicYdd+vT7BLYeIs/Z9xRjLUzQ7/5ATBEuU+tw+JnRUbRda3mfgR X-Received: by 2002:a17:90a:1911:b0:1df:b08a:e252 with SMTP id 17-20020a17090a191100b001dfb08ae252mr73166594pjg.215.1654705101101; Wed, 08 Jun 2022 09:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654705101; cv=none; d=google.com; s=arc-20160816; b=sLVVi+py2LGK0fkaJmHURxV2sPbv8KtXnFK27gHYS0O8BfHogLVBTsmPa0pDL/H0cT eN1hOTvPcTTpQbFEGtA1aWqZBk4d/0YAMyQq/0Za6dpO+TgtEhXhRetuEpCfe1Q+Bnbt EWogmmAuAneJZT4mTj+MwGffYF8wXwPMrS4dllX4ObXLVZzJa/V/CyKd3+x3Us8gnRF+ bJEktYWaQihx0unyd41Y1hRKdhapld4ccGCVq9P+CN3LFLE2m1H1ylaWP1+cl1nAlIVE oE9geEuJAZl+EYGAmzS8J9bGusrkdUtp2q68d9Ii5UsWDjNjyt7Inyy/TFheW2VS5qmU uRkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=nh+P5PFi0nIVwsffKhhCTkkqQ9ioMLep1IwnE4EUjBs=; b=cPkWZMtlfRwSdKLz9474VV04WtZtLFEJouPjv1lSGVkLQdGwcndY9P+nSonHwzCnun ofJ0IzlI0EFu+bQ8788PaRwTfiIO08y8+gQArLgGh/o0ksSh1CNlntidIffanF2TlXks f09247mfoFLQm5AP0kCAfMY5OFQqxWYpvzzNcXVOigY0EkOJUXULLmcRsyFnX6Sd92MA hDzPG5hbLGM01gR5EciJ1zJ+7z6OkvHyx7VFUUQQQxH8x9UYn/F/2VJERKnuk9TJKulC 7oqliYeDiMRU7Fd1c4Anw8Qe8FymodJ/Vf9yT5sN0ETrBjXwRWG1P84b+uvP82OgUmqA FUvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e15-20020a17090301cf00b0016180dd8c33si29413580plh.164.2022.06.08.09.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 09:18:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AEC3F1FD3D1; Wed, 8 Jun 2022 08:51:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244549AbiFHPvb (ORCPT + 99 others); Wed, 8 Jun 2022 11:51:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230186AbiFHPvX (ORCPT ); Wed, 8 Jun 2022 11:51:23 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E12FB7DF7; Wed, 8 Jun 2022 08:51:20 -0700 (PDT) Received: from fraeml706-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LJBSc3wMMz67mgD; Wed, 8 Jun 2022 23:47:44 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml706-chm.china.huawei.com (10.206.15.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.24; Wed, 8 Jun 2022 17:51:16 +0200 Received: from [10.47.90.54] (10.47.90.54) 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.2375.24; Wed, 8 Jun 2022 16:51:15 +0100 Message-ID: Date: Wed, 8 Jun 2022 16:51:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v3 3/4] RISC-V: Added generic pmu-events mapfile To: Nikita Shubin CC: Genevieve Chan , =?UTF-8?B?Sm/Do28gTcOhcmlvIERvbWluZ29z?= , Nikita Shubin , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , , , , Atish Patra References: <20220607131648.29439-1-nikita.shubin@maquefel.me> <20220607131648.29439-4-nikita.shubin@maquefel.me> <9e981523-6032-fd24-08f9-0ef771cd1c2e@huawei.com> <20220608174107.7b94e545@redslave.neermore.group> From: John Garry In-Reply-To: <20220608174107.7b94e545@redslave.neermore.group> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.90.54] X-ClientProxiedBy: lhreml744-chm.china.huawei.com (10.201.108.194) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 08/06/2022 15:41, Nikita Shubin wrote: >>> mat: >>> +# MIDR,Version,JSON/file/pathname,Type >>> +# >>> +# where >>> +# MIDR Processor version >> ARM, no? I'm just saying that MIDR is for ARM, so please ensure that this term is correct for riscv > I've messed with --cc-cmd badly and didn't include every one in cover > letter, sorry for that, attaching link to cover letter: > > https://lore.kernel.org/all/20220607131648.29439-1-nikita.shubin@maquefel.me/ > > They are ARM inspired indeed. > > >>> +# Variant[23:20] and Revision [3:0] should be zero. >>> +# Version could be used to track version of JSON file >>> +# but currently unused. >>> +# JSON/file/pathname is the path to JSON file, relative >>> +# to tools/perf/pmu-events/arch/riscv/. >>> +# Type is core, uncore etc >>> +# >>> +# >>> +#Family-model,Version,Filename,EventType >>> diff --git a/tools/perf/pmu-events/arch/riscv/riscv-generic.json >>> b/tools/perf/pmu-events/arch/riscv/riscv-generic.json new file mode >>> 100644 index 000000000000..013e50efad99 >>> --- /dev/null >>> +++ b/tools/perf/pmu-events/arch/riscv/riscv-generic.json >> where or how are these referenced? > Currently they are not referenced in this version of series at all, ok, right, so a general kernel policy is not to include code which is not referenced. > their purpose is to be used like "ArchStdEvent". > > Through any RISCV implementation should have at least these 3 events. Thanks, John