Re: [PATCH v2 2/4] perf/x86: Fix data source decoding for Skylake

From: Andi Kleen
Date: Fri Jun 09 2017 - 12:47:39 EST


> > > So one thing we could do is add a mem_hops field and always set that,
> > > even for the old stuff. The old stuff will not know about that field and
> > > ignore the bits, but new stuff will then not need as many LVL bits.
> > >
> > That would be better than lvlx I think. I am guessing you're suggesting
> > an integer count here and not a bitmask. Right?
>
> Yah, 0 hops = local, etc..

This doesn't work on Skylake because it doesn't report the number of hops,
just remote or not.

Would need a wildcard entry, but that can as well be a separate bit.

That's what I did in the latest version of my patch.

-Andi