Message ID | 20230703124647.215952-5-alexghiti@rivosinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp506759vqx; Mon, 3 Jul 2023 06:04:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Y7SlSdY9iHrgLBOtO4YQitNipyyV7C9Z2MImulhP00eSlz1lzzIgwVbIdbwBF2SORGqfa X-Received: by 2002:a05:6870:b628:b0:19f:21c3:9771 with SMTP id cm40-20020a056870b62800b0019f21c39771mr7936567oab.3.1688389493812; Mon, 03 Jul 2023 06:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688389493; cv=none; d=google.com; s=arc-20160816; b=tPFCRP4LZ5RDDnWwTe+9uHvKm3ONyJ9bh2Q6BOFERFZqsnZLfh9rijmi6dDL5Fkct5 zGb7PTA6lPG8fDBv98jd23HmJ4KthitdjO4dcEWga9S3d5SnTjsFQ3IvbAKd4NHtzkXi CD8TFF4/gvG1HVw22tF7t1u+5Uah12qwxv7vIvmqk/WlUUxKIdsYIocnq9koWsUuSoOp pKW3OYE+P1RIbvLdpVCG9oxhP51XS/SqlVleaKgWNTOMYhh6BzYuMoaEPES29SBltuZg BEjSaLu7V2QwxitQBuMHEWugBymlp/8ow8B1CN2S3xLcA0ibXdxuIGjE/0oVwDVYkHdj qUGA== 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=4ourpCES+L8D+Sf3DlwDnrKMPgPuj2Rb0Ie1m7RKO9o=; fh=hmFTrdz0WFr12osTIIcQLHDbvk92COvsNanUuMWqfoU=; b=qjb8Jd1pQ5gXugJtQw43L4TXwnvip36Z9/eGP+tAMn2H+9+VbfZCCRF6E0RWkZzmHS 8p9CYhJ7SlktOSgvtn0YP1brnjltjC7CgIR7FW9po988bJZyXn/F4UMAQAKIThRIaKan 6+rdebViG94q9s7+Z9yw9Lh/CPK7RihveYtS19+emtjko8cO0p/L9/4hupOXw0njLNmf YLgkVaaUT1Q49Uejzj5FJDsBk7j7Hm++7QNWlE86S/qnQmBSil+I76tOy9lgO5tsx/jI NrTsgE8kG18RVeg/9vKbx7A6ENS5c9l+VJPdG01x62VkVbcZaFh+YbQITbJWV+VfzK6/ /+bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=R2mmycKh; 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 x8-20020a056870e38800b001b03333be36si7917964oad.326.2023.07.03.06.04.37; Mon, 03 Jul 2023 06:04:53 -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=R2mmycKh; 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 S231140AbjGCMu6 (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Mon, 3 Jul 2023 08:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbjGCMu5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Jul 2023 08:50:57 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DCA4E59 for <linux-kernel@vger.kernel.org>; Mon, 3 Jul 2023 05:50:55 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbc54caad5so37878165e9.2 for <linux-kernel@vger.kernel.org>; Mon, 03 Jul 2023 05:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1688388654; x=1690980654; 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=4ourpCES+L8D+Sf3DlwDnrKMPgPuj2Rb0Ie1m7RKO9o=; b=R2mmycKhbCyBcolm5337go0SS5yH7iKYlFTh6vaXqDAT2thZh7dS4t9EB+dJWDtLzc oWybcyPhuJ95UPdczXfLx72iJy0OYIZx9KkWN2hkFjzTrvlHnbolmOlStyFSgGcRIjOT MGxUJEI/Bp63Snk+jy/fDQUHTUGk+V4sQqTJ5D7WxT16CNXYHi5/IbRNkr7xQqTPQp82 u2IGDpKnncM3esjHkd+KkORsr9U5ommVCQrACrcM1rq0hTyVqHo7BZsH2/0z/IJAh+DK iV+HPPbfvnjf90vemg2bcsGOyo4nX7umFqfnGcDfcdTz5pZ6KOBpMEGK0wFUmJQ0j+WA eMwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688388654; x=1690980654; 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=4ourpCES+L8D+Sf3DlwDnrKMPgPuj2Rb0Ie1m7RKO9o=; b=c+PfXplNLQsbvvTRAEO2GsQ9vNvJPW/58Lq0EGxmCCQsCTkBNM3K7yjFmaP6U+2MqM AjqiZWKGKUvKw1KZflQeg/vZRIwmNUFgdd6+yg8HyD++uVAOr9unLjhX+YojL+EUO0mo GyS8JoqiHwewWbxkSNjkvdnQWVN42hHyQmYC3wkwORHVkguaHsHqngVnHFbnPPIj4aWS lujHeuMGC596Bx7hSFj3nQebyKSzfaNKguPapVn25Sg52upnzFqblU1AwOHPLWotd39m rpy8i3ttUIwEjXtnrR44Uv4dpg1q8ikY+Ab9ls3HujDWdb4kal+GniVx39MeQu6rn2jI htcA== X-Gm-Message-State: AC+VfDzjjqGNZTPF0qc/5nGuyMl8lkhFpOsyTOJZbaGE+ojIEYoIMa3I 8B1uLNfuZkFFO16HyIG1BfK/FA== X-Received: by 2002:a05:600c:220c:b0:3f5:1728:bde9 with SMTP id z12-20020a05600c220c00b003f51728bde9mr7765354wml.2.1688388654013; Mon, 03 Jul 2023 05:50:54 -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 f13-20020a5d50cd000000b003143b7449ffsm786576wrt.25.2023.07.03.05.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 05:50:53 -0700 (PDT) From: Alexandre Ghiti <alexghiti@rivosinc.com> To: Jonathan Corbet <corbet@lwn.net>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Ian Rogers <irogers@google.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Atish Patra <atishp@atishpatra.org>, Anup Patel <anup@brainfault.org>, Will Deacon <will@kernel.org>, Rob Herring <robh@kernel.org>, Andrew Jones <ajones@ventanamicro.com>, 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 <alexghiti@rivosinc.com> Subject: [PATCH v4 04/10] drivers: perf: Rename riscv pmu sbi driver Date: Mon, 3 Jul 2023 14:46:41 +0200 Message-Id: <20230703124647.215952-5-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230703124647.215952-1-alexghiti@rivosinc.com> References: <20230703124647.215952-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=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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770404701825617034?= X-GMAIL-MSGID: =?utf-8?q?1770404701825617034?= |
Series |
riscv: Allow userspace to directly access perf counters
|
|
Commit Message
Alexandre Ghiti
July 3, 2023, 12:46 p.m. UTC
That's just cosmetic, no functional changes. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> --- drivers/perf/riscv_pmu_sbi.c | 4 ++-- include/linux/perf/riscv_pmu.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Comments
On Mon, Jul 3, 2023 at 5:50 AM Alexandre Ghiti <alexghiti@rivosinc.com> wrote: > > That's just cosmetic, no functional changes. > > Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> > Reviewed-by: Andrew Jones <ajones@ventanamicro.com> > --- > drivers/perf/riscv_pmu_sbi.c | 4 ++-- > include/linux/perf/riscv_pmu.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c > index 4f3ac296b3e2..83c3f1c4d2f1 100644 > --- a/drivers/perf/riscv_pmu_sbi.c > +++ b/drivers/perf/riscv_pmu_sbi.c > @@ -914,7 +914,7 @@ static int pmu_sbi_device_probe(struct platform_device *pdev) > static struct platform_driver pmu_sbi_driver = { > .probe = pmu_sbi_device_probe, > .driver = { > - .name = RISCV_PMU_PDEV_NAME, > + .name = RISCV_PMU_SBI_PDEV_NAME, > }, > }; > > @@ -941,7 +941,7 @@ static int __init pmu_sbi_devinit(void) > if (ret) > return ret; > > - pdev = platform_device_register_simple(RISCV_PMU_PDEV_NAME, -1, NULL, 0); > + pdev = platform_device_register_simple(RISCV_PMU_SBI_PDEV_NAME, -1, NULL, 0); > if (IS_ERR(pdev)) { > platform_driver_unregister(&pmu_sbi_driver); > return PTR_ERR(pdev); > diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h > index 9f70d94942e0..5deeea0be7cb 100644 > --- a/include/linux/perf/riscv_pmu.h > +++ b/include/linux/perf/riscv_pmu.h > @@ -21,7 +21,7 @@ > > #define RISCV_MAX_COUNTERS 64 > #define RISCV_OP_UNSUPP (-EOPNOTSUPP) > -#define RISCV_PMU_PDEV_NAME "riscv-pmu" > +#define RISCV_PMU_SBI_PDEV_NAME "riscv-pmu-sbi" > #define RISCV_PMU_LEGACY_PDEV_NAME "riscv-pmu-legacy" > > #define RISCV_PMU_STOP_FLAG_RESET 1 > -- > 2.39.2 > Reviewed-by: Atish Patra <atishp@rivosinc.com>
diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c index 4f3ac296b3e2..83c3f1c4d2f1 100644 --- a/drivers/perf/riscv_pmu_sbi.c +++ b/drivers/perf/riscv_pmu_sbi.c @@ -914,7 +914,7 @@ static int pmu_sbi_device_probe(struct platform_device *pdev) static struct platform_driver pmu_sbi_driver = { .probe = pmu_sbi_device_probe, .driver = { - .name = RISCV_PMU_PDEV_NAME, + .name = RISCV_PMU_SBI_PDEV_NAME, }, }; @@ -941,7 +941,7 @@ static int __init pmu_sbi_devinit(void) if (ret) return ret; - pdev = platform_device_register_simple(RISCV_PMU_PDEV_NAME, -1, NULL, 0); + pdev = platform_device_register_simple(RISCV_PMU_SBI_PDEV_NAME, -1, NULL, 0); if (IS_ERR(pdev)) { platform_driver_unregister(&pmu_sbi_driver); return PTR_ERR(pdev); diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h index 9f70d94942e0..5deeea0be7cb 100644 --- a/include/linux/perf/riscv_pmu.h +++ b/include/linux/perf/riscv_pmu.h @@ -21,7 +21,7 @@ #define RISCV_MAX_COUNTERS 64 #define RISCV_OP_UNSUPP (-EOPNOTSUPP) -#define RISCV_PMU_PDEV_NAME "riscv-pmu" +#define RISCV_PMU_SBI_PDEV_NAME "riscv-pmu-sbi" #define RISCV_PMU_LEGACY_PDEV_NAME "riscv-pmu-legacy" #define RISCV_PMU_STOP_FLAG_RESET 1