Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp982230rwd; Wed, 31 May 2023 08:01:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4l8Tmlb03h9O61y/UwrMW4BAzpDZ3LVwW5efRteJhc6MlSKjFmkFbcDibN9B+oBc3fUhI+ X-Received: by 2002:a17:90a:55c1:b0:252:27d9:7ef0 with SMTP id o1-20020a17090a55c100b0025227d97ef0mr5341798pjm.27.1685545277152; Wed, 31 May 2023 08:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685545277; cv=none; d=google.com; s=arc-20160816; b=ZJ5lp4qkLdcD0HdMfMGsPhQt6gAH5DiRRjGfw2FJB66FxIbsxd1Uk94XDb1IFO4DtF 3HD+D5E9BOK0XkDlCn0Lx6ut02UrDl2yIl/VFWvcCH7ZzQyA0LOS/egvgGZiyb9PmMLI D7jeYHd91lUO2GS3KLMmSQgVih+xPciuC6cPJ9mZwTOuNMGEvAm/Fne0ZCicqQdyPlS4 +EJhqccyto50FCZtI94ljDAmTIOTuQ/dFA/8rt0HBUhh77XSCYnhTzZKMCYw7+uFXYqJ 5G05hfnH/FXio5J+VEMENAYa56ty3h5CA4fiPaHPazH1pgVOYn2vc0qz08lj5dZ4eWNQ stcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pgpyzmnbNHAseyCM+s0XsB0KjofBbxw68PBCInlqrLM=; b=yx0ZRR8vmeLGqs6XS3qv06Kh/oM3A6OcJtPC2p59LFC4KAJUzPxAdvl8oLei43owsw aD84e1S71bZLyvRHKvmcZe2+e5gaeJPu46hgk170i6BBfCaO9xkDCb4WFh0O7p8+A8l9 jdbGF/0g75NQZlY/pohqtWFuF/Eww3cIQU30o+lcEOHFd88PJ21Zkj5wV2g5k2HQOlWW 9Qagv8Ndp/4u6lTsV9x5rlji2QF/RYpiD0qfYh6K78AnK3KlTOFKr0L4TV2QR/QZgoXQ A16fXUnCWIIA4kDERFK8ZaLLxtuBgF61m7s4THbxoSjAewRCqzy9ixSb1uxrIpzbYQWS RZNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=DFr7UXRl; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a63b447000000b0050bfa82c23bsi1093341pgu.230.2023.05.31.08.00.52; Wed, 31 May 2023 08:01:17 -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=@ventanamicro.com header.s=google header.b=DFr7UXRl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236333AbjEaOUK (ORCPT + 99 others); Wed, 31 May 2023 10:20:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237638AbjEaOTt (ORCPT ); Wed, 31 May 2023 10:19:49 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E7891BF for ; Wed, 31 May 2023 07:18:47 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f3a9ad31dbso7063333e87.0 for ; Wed, 31 May 2023 07:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1685542725; x=1688134725; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pgpyzmnbNHAseyCM+s0XsB0KjofBbxw68PBCInlqrLM=; b=DFr7UXRlc6yXh90+zCA+Jj1Yz/bSk70wHg+X/lA8QnCBFTzy7b0c/H/xIsRu2qzdT5 y+tYbNiTRp9sojjbDybOGgsrvqVKn0YCJYcwHHjJocjHzE1bPjHbqQC/CI9EVHXhkKKL L6jpBB2p/JRhVFJX8PoEQIg8ATkzch/hKUsja5omZVNfvnP5jKyQ2fwnyBCQXF+rzvOt qHNIglojzigq58kiCv9HvsmuaZkf2jSeThx0hMEte54JcQw8lKPI6XG+BCYbUBudPUTo GayK9LMWT+3kL7gkYSWJOxSH/3jUEoVHHKUjS2fGfKpFd5pCfYB7rtKpYmL0hVEU3GgZ AevA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685542725; x=1688134725; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pgpyzmnbNHAseyCM+s0XsB0KjofBbxw68PBCInlqrLM=; b=Oqp+sKXjEiVt1OD1KSxVRS4heiPxksaT3wYDJ5E6en/XU9k7MADyojVF55fsMjdsXB B7CLy17+pTdhZx/ULTZMyoHFE4vsqrmcABWTl/14ncaeOTcBC3ecFakToRYGPLww7WV4 7XIfL/ALl0eJM3xSTFZdjdc5JLZZSKdSXltpT2uRZPaJyRPP79jC+RgHWXTMvfVabgch RB7kdrgpy/gLd8eQ0cFELTIZhszNZwpT3AbNUmJUJEJR7/Hp2Ch9LaONJokaiesn1c3y pLr8QzDIhquNpQgRlCvi/J+NB5CGiOlJcUYV47DLeqJODXOmHw7EOPtprDJgcoBPpw5A iNkg== X-Gm-Message-State: AC+VfDw9AoPgcKqZwmhDJxevCdl/g62WX+ZeQ+Z2713tGGBlbKy5GTvc LkDiNFwJXPvwkiyfzI5ic+yOy1MLyeB6m8EyBcc= X-Received: by 2002:a5d:526e:0:b0:309:50e7:7c3 with SMTP id l14-20020a5d526e000000b0030950e707c3mr4408962wrc.63.1685542170038; Wed, 31 May 2023 07:09:30 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id d15-20020a056000114f00b0030af72bca98sm4800839wrx.103.2023.05.31.07.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 07:09:29 -0700 (PDT) Date: Wed, 31 May 2023 16:09:28 +0200 From: Andrew Jones To: Alexandre Ghiti Cc: Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Anup Patel , Will Deacon , Rob Herring , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 04/10] drivers: perf: Rename riscv pmu driver Message-ID: <20230531-49ed4c2054db0abbacd03632@orel> References: <20230512085321.13259-1-alexghiti@rivosinc.com> <20230512085321.13259-5-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512085321.13259-5-alexghiti@rivosinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, May 12, 2023 at 10:53:15AM +0200, Alexandre Ghiti wrote: > In addition to being more pretty, it will be useful in upcoming commits > to distinguish those pmu drivers from the other pmu drivers. > > Signed-off-by: Alexandre Ghiti > --- > drivers/perf/riscv_pmu_legacy.c | 2 +- > drivers/perf/riscv_pmu_sbi.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/perf/riscv_pmu_legacy.c b/drivers/perf/riscv_pmu_legacy.c > index 0d8c9d8849ee..ffe09d857366 100644 > --- a/drivers/perf/riscv_pmu_legacy.c > +++ b/drivers/perf/riscv_pmu_legacy.c > @@ -95,7 +95,7 @@ static void pmu_legacy_init(struct riscv_pmu *pmu) > pmu->ctr_clear_idx = NULL; > pmu->ctr_read = pmu_legacy_read_ctr; > > - perf_pmu_register(&pmu->pmu, "cpu", PERF_TYPE_RAW); > + perf_pmu_register(&pmu->pmu, RISCV_PMU_LEGACY_PDEV_NAME, PERF_TYPE_RAW); > } > > static int pmu_legacy_device_probe(struct platform_device *pdev) > diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c > index 70cb50fd41c2..3b0ee2148054 100644 > --- a/drivers/perf/riscv_pmu_sbi.c > +++ b/drivers/perf/riscv_pmu_sbi.c > @@ -897,7 +897,7 @@ static int pmu_sbi_device_probe(struct platform_device *pdev) > if (ret) > goto out_unregister; > > - ret = perf_pmu_register(&pmu->pmu, "cpu", PERF_TYPE_RAW); > + ret = perf_pmu_register(&pmu->pmu, RISCV_PMU_PDEV_NAME, PERF_TYPE_RAW); Should we include "sbi" in this name? > if (ret) > goto out_unregister; > > -- > 2.37.2 > Otherwise, Reviewed-by: Andrew Jones