From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Ian Rogers <irogers@google.com>
Cc: Robin Murphy <robin.murphy@arm.com>,
"Liang, Kan" <kan.liang@linux.intel.com>,
Randy Dunlap <rdunlap@infradead.org>,
Tuan Phan <tuanphan@os.amperecomputing.com>,
Thomas Richter <tmricht@linux.ibm.com>,
Bhaskara Budiredla <bbudiredla@marvell.com>,
Bharat Bhushan <bbhushan2@marvell.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@arm.com>,
Ravi Bangoria <ravi.bangoria@amd.com>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org,
Will Deacon <will@kernel.org>,
Stephane Eranian <eranian@google.com>
Subject: Re: [RFC PATCH v2] perf Documentation: Describe the PMU naming convention
Date: Fri, 20 Dec 2024 16:42:02 -0300 [thread overview]
Message-ID: <Z2XIitYfFaZJltul@x1> (raw)
In-Reply-To: <CAP-5=fVBsCxHbqQkEbG2zzATDYfN8bP6mN9ixkae7o9eNB5w+Q@mail.gmail.com>
On Fri, Dec 20, 2024 at 11:16:46AM -0800, Ian Rogers wrote:
> On Wed, Oct 23, 2024 at 9:21 AM Ian Rogers <irogers@google.com> wrote:
> >
> > On Wed, Oct 23, 2024 at 2:34 AM Robin Murphy <robin.murphy@arm.com> wrote:
> > >
> > > On 2024-10-23 5:06 am, Ian Rogers wrote:
> > > > On Thu, Jun 6, 2024 at 11:15 AM Liang, Kan <kan.liang@linux.intel.com> wrote:
> > > >>
> > > >>
> > > >>
> > > >> On 2024-06-06 12:49 a.m., Ian Rogers wrote:
> > > >>> It is an existing convention to use suffixes with PMU names. Try to
> > > >>> capture that convention so that future PMU devices may adhere to it.
> > > >>>
> > > >>> The name of the file and date within the file try to follow existing
> > > >>> conventions, particularly sysfs-bus-event_source-devices-events.
> > > >>>
> > > >>> Signed-off-by: Ian Rogers <irogers@google.com>
> > > >>> Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
> > > >>> ---
> > > >>> .../testing/sysfs-bus-event_source-devices | 24 +++++++++++++++++++
> > > >>> 1 file changed, 24 insertions(+)
> > > >>> create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices
> > > >>>
> > > >>
> > > >> Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
> > > >
> > > > Thanks for all the reviews. Could we land this?
> > >
> > > Hmm, it's not always going to be strictly true as written though - we
> > > will also have cases where multiple PMU instances owned by the same
> > > driver don't all support the same events/filters/etc., and/or are
> > > entirely unrelated such that the same event encoding may mean completely
> > > different things. I've just landed a driver where not only are the
> > > instances going to be heterogeneous (since it's for arbitrary bits of
> > > interconnect), but for hierarchy reasons the most logical place to put
> > > the instance ID in the name wasn't even at the end :(
> >
> > Right, I was trying to capture what the tool is doing and trying to
> > encompass the problems hex suffix create. Another example of that
> > problem recently burning us is ARM's PMU naming of armv8_pmuv3_a53
> > means the a53 looks like a hex suffix. When ARM release a model with a
> > 3 digit number will the naming break? Wrt filters, I wonder if there
> > should be testing, bugs, etc. The wildcard matching will likely do its
> > thing and I think the failures should be predictable and descriptive,
> > like an event used a format that a PMU doesn't support, but I'm not
> > sure if we should do improvements in `perf list` where we try to
> > deduplicate PMUs. Perhaps the deduplication should be smarter.
> >
> >
> > > FWIW I think if we want to nail down a strict ABI, it would seem more
> > > robust to have an explicit attribute to describe underlying PMU
> > > properties like whether instances do represent identical "slices" or
> > > not. The hex suffix thing is already proving how fragile names alone are
> > > liable to be.
> >
> > Agreed. Does this mean we shouldn't land this? I worry that LKML is
> > the home of bike shedding conversations and we're likely to bike shed
> > trying to achieve 'perfect' while something 'good' would have value
> > today.
>
> Ping.
Thanks, applied to perf-tools-next,
- Arnaldo
next prev parent reply other threads:[~2024-12-20 19:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 4:49 [RFC PATCH v2] perf Documentation: Describe the PMU naming convention Ian Rogers
2024-06-06 9:33 ` James Clark
2024-06-06 16:10 ` Leo Yan
2024-06-06 18:14 ` Liang, Kan
2024-10-23 4:06 ` Ian Rogers
2024-10-23 9:33 ` Robin Murphy
2024-10-23 16:21 ` Ian Rogers
2024-12-20 19:16 ` Ian Rogers
2024-12-20 19:42 ` Arnaldo Carvalho de Melo [this message]
2025-03-04 13:54 ` James Clark
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=Z2XIitYfFaZJltul@x1 \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=bbhushan2@marvell.com \
--cc=bbudiredla@marvell.com \
--cc=eranian@google.com \
--cc=irogers@google.com \
--cc=james.clark@arm.com \
--cc=jolsa@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=ravi.bangoria@amd.com \
--cc=rdunlap@infradead.org \
--cc=robin.murphy@arm.com \
--cc=tmricht@linux.ibm.com \
--cc=tuanphan@os.amperecomputing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.