Re: [GIT PULL] perf tools changes for v6.10
From: Linus Torvalds
Date: Sun May 26 2024 - 12:12:10 EST
On Sat, 25 May 2024 at 23:22, Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> What to do with events with no PMU like data_read?
Are they actually ambiguous?
> The rule for looking up an event with no PMU specified is to try it on
> every PMU - the rule is about as old as perf itself.
Well, clearly you then violated that rule with your change. Or you
ended up changing the rule to look them up in the wrong order.
I'm not interested in theoretical breakages. I'm interested in actual
_real_ and _clear_ breakages, and that commit of yours introduced
them.
Maybe the fix is to make sure the events are always looked up in the
right order, with core events always getting priority.
That said, in the *particular* case that I hit, it's even worse than
that. It's not just that the wrong event was looked up - it looked up
an event that DIDN'T EVEN WORK for the workload.
So it's doubly broken.
I don't understand why you then bring up a "what about" issue that is
entirely irrelevant and would presumably never have shown the issue in
the first place because it wasn't probably wasn't ambiguous, and that
actually did work as an event source.
Reality matters. What-about-isms don't.
Linus