Re: [PATCH v13 00/19] perf coverage: A harness for perf, and the fixes it found
From: Namhyung Kim
Date: Thu Dec 03 2026 - 19:13:21 EST
On Thu, Dec 03, 2026 at 04:28:57PM -0300, Arnaldo Melo wrote:
>
>
> On December 3, 2026 4:22:59 PM GMT-03:00, Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> >On Sun, Nov 29, 2026 at 09:45:00PM -0300, Arnaldo Melo wrote:
> >> On November 29, 2026 8:16:51 PM GMT-03:00, Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> >> >Arnaldo, how do you want to process the series? I'm not sure if they
> >> >are independent or not.
> >>
> >> The two series are independent, but I think we should merge the tested one first, this series that Athira tested and provided his tested-by tag.
> >>
> >> I hope the other one gets tested next, but IIRC there's some Sashiko comments I need to address that I'm waiting a while to respond to.
> >>
> >> I have one more than depends on this coverage infrastructure that I'll submit after this one is merged.
> >
> >I've applied the series except the patch 2 and 8 to perf-tools-next.
>
> Thanks!
>
> Any comments on why not to apply those two patches?
As I said before, it cannot treat any move of immediate value to a
register as memory reference. It'd confuse the instruction tracking.
I guess it's rare to use constant address for global variable access.
At least your example of MMIO doesn't seem to carry type info. I could
be wrong but I think it should be careful for instruction tracking and
better to reduce false positives.
If you really want to handle the case, I think it's better to track the
instruction as TSR_KIND_CONST as before and add a special case to check
if the value refers a global variable. Ideally it could check raw
encoding of the instruction to make sure it refers to a memory.
That's for the patch 2 and the patch 8 has a dependency on it.
Thanks,
Namhyung