mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robin Murphy <robin.murphy@arm.com>
To: Mathieu Poirier <mathieu.poirier@linaro.org>,
	Besar Wicaksono <bwicaksono@nvidia.com>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>,
	"catalin.marinas@arm.com" <catalin.marinas@arm.com>,
	"will@kernel.org" <will@kernel.org>,
	"mark.rutland@arm.com" <mark.rutland@arm.com>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
	"sudeep.holla@arm.com" <sudeep.holla@arm.com>,
	"thanu.rangarajan@arm.com" <thanu.rangarajan@arm.com>,
	"Michael.Williams@arm.com" <Michael.Williams@arm.com>,
	Thierry Reding <treding@nvidia.com>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Vikram Sethi <vsethi@nvidia.com>,
	"mike.leach@linaro.org" <mike.leach@linaro.org>,
	"leo.yan@linaro.org" <leo.yan@linaro.org>
Subject: Re: [RESEND PATCH v3 1/2] perf: coresight_pmu: Add support for ARM CoreSight PMU driver
Date: Tue, 12 Jul 2022 21:13:24 +0100	[thread overview]
Message-ID: <632f5c80-2be3-ace5-6b0d-ee0c9e5560ff@arm.com> (raw)
In-Reply-To: <20220712163638.GA2945984@p14s>

On 2022-07-12 17:36, Mathieu Poirier wrote:
[...]
>>> If we have decied to call this arm_system_pmu, (which I am perfectly
>>> happy with), could we please stick to that name for functions that we
>>> export ?
>>>
>>> e.g,
>>> s/coresight_pmu_sysfs_event_show/arm_system_pmu_event_show()/
>>>
>>
>> Just want to confirm, is it just the public functions or do we need to replace
>> all that has "coresight" naming ? Including the static functions, structs, filename.
> 
> I think all references to "coresight" should be changed to "arm_system_pmu",
> including filenames.  That way there is no doubt this IP block is not
> related, and does not interoperate, with the any of the "coresight" IP blocks
> already supported[1] in the kernel.
> 
> I have looked at the documentation[2] in the cover letter and I agree
> with an earlier comment from Sudeep that this IP has very little to do with any
> of the other CoreSight IP blocks found in the CoreSight framework[1].  Using the
> "coresight" naming convention in this driver would be _extremely_ confusing,
> especially when it comes to exported functions.

But conversely, how is it not confusing to make up completely different 
names for things than what they're actually called? The CoreSight 
Performance Monitoring Unit is a part of the Arm CoreSight architecture, 
it says it right there on page 1. What if I instinctively associate the 
name Mathieu with someone more familiar to me, so to avoid confusion I'd 
prefer to call you Steve? Is that OK?

As it happens, Steve, I do actually agree with you that "coresight_" is 
a bad prefix here, but only for the reason that it's too general. TBH I 
think that's true of the existing Linux subsystem too, but that damage 
is already done, and I'd concur that there's little value in trying to 
unpick that now, despite the clear existence of products like CoreSight 
DAP and CoreSight ELA which don't have all that much to do with program 
trace either.

However, hindsight and inertia are hardly good reasons to double down on 
poor decisions, so if I was going to vote for anything here it would be 
"cspmu_", which is about as 
obviously-related-to-the-thing-it-actually-is as we can get while also 
being pleasantly concise.

[ And no, this isn't bikeshedding. Naming things right is *important* ]

Cheers,
Robin.

> 
> Thanks,
> Steve
> 
> [1]. drivers/hwtracing/coresight/
> [2]. https://developer.arm.com/documentation/ihi0091/latest

  reply	other threads:[~2022-07-12 20:13 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-21  5:50 [RESEND PATCH v3 0/2] perf: ARM CoreSight PMU support Besar Wicaksono
2022-06-21  5:50 ` [RESEND PATCH v3 1/2] perf: coresight_pmu: Add support for ARM CoreSight PMU driver Besar Wicaksono
2022-06-27 10:36   ` Will Deacon
2022-07-07  0:25     ` Besar Wicaksono
2022-07-07 11:07   ` Suzuki K Poulose
2022-07-08 10:46     ` Besar Wicaksono
2022-07-12 16:36       ` Mathieu Poirier
2022-07-12 20:13         ` Robin Murphy [this message]
2022-07-13 16:26           ` Mathieu Poirier
2022-07-14  4:47           ` Besar Wicaksono
2022-07-21  3:36             ` Besar Wicaksono
2022-07-21  9:19             ` Suzuki K Poulose
2022-07-21 15:35               ` Mathieu Poirier
2022-08-01 22:27                 ` Besar Wicaksono
2022-08-02  9:38                   ` Suzuki K Poulose
2022-08-02 23:04                     ` Besar Wicaksono
2022-06-21  5:50 ` [RESEND PATCH v3 2/2] perf: coresight_pmu: Add support for NVIDIA SCF and MCF attribute Besar Wicaksono
2022-06-27 10:37   ` Will Deacon
2022-07-07  0:40     ` Besar Wicaksono
2022-07-07 11:07   ` Suzuki K Poulose
2022-07-08 13:35     ` Besar Wicaksono
2022-07-07 16:37 ` [RESEND PATCH v3 0/2] perf: ARM CoreSight PMU support Mathieu Poirier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=632f5c80-2be3-ace5-6b0d-ee0c9e5560ff@arm.com \
    --to=robin.murphy@arm.com \
    --cc=Michael.Williams@arm.com \
    --cc=bwicaksono@nvidia.com \
    --cc=catalin.marinas@arm.com \
    --cc=jonathanh@nvidia.com \
    --cc=leo.yan@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mathieu.poirier@linaro.org \
    --cc=mike.leach@linaro.org \
    --cc=sudeep.holla@arm.com \
    --cc=suzuki.poulose@arm.com \
    --cc=thanu.rangarajan@arm.com \
    --cc=treding@nvidia.com \
    --cc=vsethi@nvidia.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®