Re: [PATCH 3/3] perf tool: Add non arch events for SandyBridge microarchitecture

From: Andi Kleen
Date: Fri Dec 21 2012 - 13:43:21 EST


> I hate to sound like a broken record here, but, again, what's the
> rationalization for not using libpfm4 here?

Personally I always hated the libpfm4 syntax. It's even worse than
oprofile.

>
> Is it simply NIH or is there some sort of technical reason? It seems a
> lot of wasted effort to create all these tables one chip at a time when
> libpfm4 already has well-tested and debugged event tables for most CPUs
> with perf_event support.

I'm probably biased, but it's usually best to use the format the CPU
vendor releases the original event tables in. That gives you
the fastest access with the minimum amount of hazzle.

That would need a parser for each vendor, but there aren't really all
that many.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/