On Thu, Mar 11, 2021 at 11:53:35AM -0500, Liang, Kan wrote: > > > The "cpu_core" PMU is similar to the Sapphire Rapids PMU, but without > > > PMEM. > > > The "cpu_atom" PMU is similar to Tremont, but with different > > > event_constraints, extra_regs and number of counters.
> > So do these things use the same event lists as SPR and TNT? > > No, there will be two new event lists on ADL. One is for Atom core, and the > other is for big core. They are different to SPR and TNT. *sigh* how different? > > Is there any > > way to discover that, because AFAICT /proc/cpuinfo will say every CPU > > is 'Alderlake', and the above also doesn't give any clue. > > > > Ricardo once submitted a patch to expose the CPU type under > /sys/devices/system/cpu, but I don't know the latest status. > https://lore.kernel.org/lkml/[email protected]/ Yeah, but that was useless, it doesn't list the Cores as FAM6_SAPPHIRERAPIDS nor the Atom as FAM6_ATOM_TREMONT. > > My desktop has: cpu/caps/pmu_name and that gives "skylake", do we want > > the above to have cpu_core/caps/pmu_name give "sapphire_rapids" etc.. ? > > > > I think current implementation should be good enough. > > $ cat /sys/devices/cpu_atom/caps/pmu_name > alderlake_hybrid > > "alderlake_hybrid" tells the perf tool that it's Alder Lake Hybrid system. > "cpu_atom" tells the perf tool that it's for Atom core. Yeah, but then I have to ask Google wth those atoms and cores actually are. Why not tell me upfront? Since we're now working on it, we all know, but in 6 months time nobody will remember and then we'll constantly have to look it up and curse ourselves for not doing better.

