Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9985828rwr; Fri, 12 May 2023 02:02:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7N60fehCPeLAdI9ptnx1KZK7RRD6HZ3YeMxsLo4+OA2V/NkHnkVVLeDJrw49esJlwIS87B X-Received: by 2002:a05:6a21:9999:b0:100:c8ed:c207 with SMTP id ve25-20020a056a21999900b00100c8edc207mr21614853pzb.39.1683882153620; Fri, 12 May 2023 02:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683882153; cv=none; d=google.com; s=arc-20160816; b=iPKACVqwHdoqpMO9g65Q/bzy+Xlz/FO37rg/Rtmb4L3TcUkbXDR0SWcNHuSvdhUAQ3 N6OqJosKmx+lBurmJ5StydAxYGwgaCKfGyCfjH8+J+eY7wmfa3hpyTMfPJ+NP7S0DN5S GB3BaJiGpDaY/IT9ELdIS6ELML0YXYBErJWgNEr47eFrjTuD+GYLgDVIsC2uR299QgkE Y2Ym9iKgefYjsJ3/S8uuJa+xQ7opZjnO2KaoJPNqsfIdO+SUGRk7yda8HCftiUJ9K8JQ +ZpLdyNuHcI7fG5yeTBEH0grozGW9jVACiG3XxRHYNtuqZ72gz8xqKVc7qDvNcq8fCRv MOkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mcoGNF7JhrmxjCUJ31ZWLSLoY1qQtRXBvkDSeKWeoAE=; b=Fl7vAOyEg9i54hDn5TueTpZKSYhCo//ax59PMpdyVrhYoU7xC/5kbmo6y2BNcUNz4v RXAWM1cpj5S/p9Rl/22ccDTviUVXnR5SzY+5D017U5PA4K2b6RdDr+WYn+UTocJFeP6H WxZ1sslMms2qV0X13uGAqDnAc7RkcRmprEQ1/Mx34a40uGPzY2VizgS9i0Sn2uQxqTZU JOPbIu3eWDmZtQHOROS2K48kdq1dIpRLMyp/p9RoDvsNYX9DkTeNprZmV407WQk8iN/R ZHCNLSUhHVI2IbQXKjD5GJIvOum9tn7zfiV7qX/kxuibe3VrDpuDzExJUNWVi3vEIct1 6PFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=j0DLCCtM; 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 t28-20020a63955c000000b00512fab9493dsi9058100pgn.740.2023.05.12.02.02.21; Fri, 12 May 2023 02:02:33 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=j0DLCCtM; 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 S240219AbjELI6N (ORCPT + 99 others); Fri, 12 May 2023 04:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239962AbjELI6L (ORCPT ); Fri, 12 May 2023 04:58:11 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 859DE2126 for ; Fri, 12 May 2023 01:58:05 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-307c040797bso1840919f8f.3 for ; Fri, 12 May 2023 01:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1683881877; x=1686473877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mcoGNF7JhrmxjCUJ31ZWLSLoY1qQtRXBvkDSeKWeoAE=; b=j0DLCCtMEV6UXHGMXtA6jElCfmVNii679kPYYZsmKm9aD75PHOebwGkVrc6Gfiboyx RvCFvQmdeuzdeOvfXCdQOXwLou3CT6k5zHrydjFCJOM4CfLlm23nYTXhdENsRytg1bw2 M+WUTSR3utlqD0vuCxQR2w2Ifa3W3yUVTfIhLcL+gs4ADta+RZD/IzA7ThYOKELeV3hw /YXVPvWlRyErSS21CkUFyhAfXahfWVYARbMIE9VKbydkHTCJT+v3ZtI+4FtUTpkIkXTZ uUkHKb7RdfHC8Q06kUAnddmIThthmriXlIOQgdPdvAX5tb59HXmbwuvIUmyRBi8UL7kz 2WdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683881877; x=1686473877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mcoGNF7JhrmxjCUJ31ZWLSLoY1qQtRXBvkDSeKWeoAE=; b=DaXl68QYvq2xyKCfA86zOUM1UXJjiyHrJglUJ8ooTeQQofaoNC23L4lf7goXspx6MV PUWSKSKD1r7QCilvsS5E0YSHLdF3x7YTy7hAAYG5lX0y5/08pcTTW6xLzaR/Da/7Uimm 9pZLQ/rfyJHZj2n8pQKm+s22lqZTpKimQpiBoYMtKylqRfLPw1a4dIImIoGnfpsw+58n lSRD8s9B1u2m1wb2lsDNt+2gvSFxXBG+yimx0pKd6GfkRVyC1dB28Tbp5AlDa2w1/6GE Teffjs3GLvtnbb5OaBnEK761Vs47HEv7y5ACQPVxfTERzVN8DZLyDfNtngGGizZZuAQn vVPg== X-Gm-Message-State: AC+VfDzUyzbMk29JdENyJDSR4kCyOZpnWoX/Ot9C6KoQ8+lGHrRPGK8M I00uApGOMvipbN5Ozkr+H0RsZQ== X-Received: by 2002:adf:e941:0:b0:307:a8e8:ca6c with SMTP id m1-20020adfe941000000b00307a8e8ca6cmr8411496wrn.35.1683881877661; Fri, 12 May 2023 01:57:57 -0700 (PDT) Received: from alex-rivos.home (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id z22-20020a7bc7d6000000b003f42813b315sm12616421wmk.32.2023.05.12.01.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 01:57:57 -0700 (PDT) From: Alexandre Ghiti To: 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 , Andrew Jones , 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 Cc: Alexandre Ghiti Subject: [PATCH v2 04/10] drivers: perf: Rename riscv pmu driver Date: Fri, 12 May 2023 10:53:15 +0200 Message-Id: <20230512085321.13259-5-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230512085321.13259-1-alexghiti@rivosinc.com> References: <20230512085321.13259-1-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 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); if (ret) goto out_unregister; -- 2.37.2