Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp466325iol; Thu, 9 Jun 2022 07:21:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDN9W/DpUMJa0Pia1iLQdacjZFJfsF+VUlPOfWgPyKJUUYKbIjd9rTEGD1QWZGhg0Bgw6R X-Received: by 2002:a05:6a00:23c2:b0:51b:c431:65bf with SMTP id g2-20020a056a0023c200b0051bc43165bfmr39710155pfc.20.1654784496013; Thu, 09 Jun 2022 07:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654784496; cv=none; d=google.com; s=arc-20160816; b=Elomc7W8iJ7drihQ/MvUj6Z7bWTleC9Ld6+5Mr7VWZ2tYvq8PcBYkFKpIZu5F6dZjm kbdGscZWl0oQ9T9JXgKnuLD08WzuVsrWWhQFlDGv/vqWilIDd3f5xhg6A+hzwo9zELUG xradIb0A7mP41qvwPpbYi7wjNNo09xinZaTMBgeO5F5vklzovqWiu81Ue3UpcTTchrGz hNOLM26/pp/HKrKcF46vcZeXNrhGbuSR70GlCasUV6Pi0/GZyF76EshGpNm0ntVS4xxm iTYasuGb122qzDh0UNCetCC5FkLP2wSOmKnLCrRAD90eYhpgb6jGzViPZtCplkGE5GKC BcaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NBKhWZqloJgsVKhhd2MVtetOFjzIn6fRKycfY7cNzYo=; b=n+AVbGZsioJ1eiptj6MW6M1COtJEcLVDUk5jv6Q1yXCjZ9VPtRDowf8UKVTat/vceV 0CIiztwjmUR9mccO4jyWBhq2/s1Q1JkCm/9mbmRWLX5hujEoumbMb12kjfr6XW3iuWiA /7kHVV/Jri8ME3bBo7sKWajVn0qHT0dDDNJHCgY8iPrUdFeQ8GW+CjBLadnh/QiHwj8Y GXVk71Np8DEunBxcWQaExmqcgwXZm1kkjB4UybzEaIn/1Hd3pPv9JcPLWvg+HmMlHp2e nZWUnoitHckCzxFP+GtutjtaT6yvTcOC2oNjUg7YLKt8uu/lPEJC2r5EP2SET9lAu+OY rASg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nu066p8w; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x191-20020a6386c8000000b003fda62e561esi16918479pgd.196.2022.06.09.07.21.23; Thu, 09 Jun 2022 07:21:35 -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=@kernel.org header.s=k20201202 header.b=Nu066p8w; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243106AbiFINyX (ORCPT + 99 others); Thu, 9 Jun 2022 09:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242529AbiFINyU (ORCPT ); Thu, 9 Jun 2022 09:54:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EF7217908D; Thu, 9 Jun 2022 06:54:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3EA2161D6D; Thu, 9 Jun 2022 13:54:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39BF7C34114; Thu, 9 Jun 2022 13:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654782858; bh=EqK3l8EhZM8vr8CZoAbl3TZw+eC3UTreMJMI61a6pu0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nu066p8wi8D0b/W+KtAIMZXEqf8T5so/ZpPARpp2F80qtM8hICLFVIgHQFkZ6BnDU t5Neeq1Qhx6wQjAPHmQ+nUQqPt8y+RGBiiu+lSmynWCOcFRGvfGsiNjviJ2veJmhyz EW2jUoonxInuUbEktvsPb844zUPaQl4vyrpk7Lg7o0s7jJ45/OjKVakLMMxPW1NzLF 37g/d8NyLdPYnQp5Mpr/bQP0rcovdbrKay5aAtNarjj6kIjIqSvTM47G5pTtgfLOYc Dl+R6HHCMTebu5wxbkSEOaLfKXW92LbHmNYnfIDhu4P6Xrw2vJrebP4rb8KV8y7xkp GwOtLKhonzk1w== Date: Thu, 9 Jun 2022 14:54:11 +0100 From: Will Deacon To: Nikita Shubin Cc: Genevieve Chan , =?iso-8859-1?Q?Jo=E3o_M=E1rio?= Domingos , Nikita Shubin , Atish Patra , Anup Patel , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , open list , "open list:RISC-V PMU DRIVERS" , "moderated list:ARM PMU PROFILING AND DEBUGGING" , "open list:PERFORMANCE EVENTS SUBSYSTEM" Subject: Re: [PATCH v3 2/4] RISC-V: Support CPUID for risc-v in perf Message-ID: <20220609135411.GB3064@willie-the-truck> References: <20220607131648.29439-1-nikita.shubin@maquefel.me> <20220607131648.29439-3-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220607131648.29439-3-nikita.shubin@maquefel.me> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Jun 07, 2022 at 04:16:45PM +0300, Nikita Shubin wrote: > From: Jo?o M?rio Domingos > > This patch creates the header.c file for the risc-v architecture and introduces support for > PMU identification through sysfs. > It is now possible to configure pmu-events in risc-v. > > Depends on patch [1], that introduces the id sysfs file. > > Signed-off-by: Jo?o M?rio Domingos > [Nikita: replaced soc:pmu to riscv-pmu/id] > Signed-off-by: Nikita Shubin > Tested-by: Nikita Shubin > --- > v2->v3: > - Change 'soc/soc:pmu/id' to 'riscv-pmu/id' > --- > drivers/perf/riscv_pmu.c | 18 ++++++++ > tools/perf/arch/riscv/util/Build | 1 + > tools/perf/arch/riscv/util/header.c | 66 +++++++++++++++++++++++++++++ You will need to separate out the kernel changes from the tooling changes in order to get this merged. Thanks, Will