[PATCH 3/4] perf: Use pmu_events_map table to create event aliases
Andi Kleen
ak at linux.intel.com
Thu May 21 09:58:26 AEST 2015
> +/*
> + * Return TRUE if the CPU identified by @vfm, @version, and @type
> + * matches the current CPU. vfm refers to [Vendor, Family, Model],
> + *
> + * Return FALSE otherwise.
> + *
> + * For Powerpc, we only compare @version to the processor PVR.
> + */
> +bool arch_pmu_events_match_cpu(const char *vfm __maybe_unused,
> + const char *version,
> + const char *type __maybe_unused)
> +{
> + char *cpustr;
> + bool rc;
> +
> + cpustr = get_cpu_str();
> + rc = !strcmp(version, cpustr);
Surely against vfm not version
I think your mapfile is wrong if that works?
That's the Intel format:
.vfm = "GenuineIntel-6-3E",
.version = "V16",
.type = "core",
.table = pme_IvyTown_core
-Andi
More information about the Linuxppc-dev
mailing list