From patchwork Fri May 12 08:53:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 93007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4950687vqo; Fri, 12 May 2023 02:02:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46PCiC2zOBs7q7ORJCGvUsru/XdiukOVmHyWrsdYcX2oxeZ+B5WwXrPRpWD41TzQMTIi89 X-Received: by 2002:a17:903:2498:b0:1ac:4027:fa16 with SMTP id p24-20020a170903249800b001ac4027fa16mr25773866plw.20.1683882140185; Fri, 12 May 2023 02:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683882140; cv=none; d=google.com; s=arc-20160816; b=LP0AxxFqGglgMqp3+lV862iBQeQvXoNhYRxt9IJEOVUsvZa2R2gWGmooYJrdBycVQZ 2GdEXPYGKmut7EPDqW+YxdIbD5qsO6D86nvh98+XP/jAnWauOGPYP2Ipmvx6w5i5QnYe azimR49Ls9u0dBVzveUQzA5u4zcoEAYHWsFl5hIKRiffXC8D5kVKg4V0Xj/vamt0+Fy2 E/0CPFDmOa2x5WPhpUKb0xwy4M3BtcwRSMwxe7uuosJJ7R/Rx/qxMoTvlK9pDIiuIqLW MDPSbXXaefEHhqmkls4+mZneT+1l1CqYpGC4g8APRzyfa+DX1cKd7a230w4jvpVQBCci 562Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ba10-20020a170902720a00b001a64e7b702fsi8136730plb.447.2023.05.12.02.02.07; Fri, 12 May 2023 02:02:20 -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 S240227AbjELI6N (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765678399181884982?= X-GMAIL-MSGID: =?utf-8?q?1765678399181884982?= 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 Reviewed-by: Andrew Jones --- 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;