Re: [PATCH 04/12] perf, x86: Support the TSX intx/intx_cp qualifiers v2

From: Andi Kleen
Date: Sat Jan 26 2013 - 15:59:58 EST


On Sat, Jan 26, 2013 at 12:54:02PM +0100, Ingo Molnar wrote:
>
> * Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
>
> > From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> >
> > Implement the TSX transaction and checkpointed transaction
> > qualifiers for Haswell. This allows e.g. to profile the number
> > of cycles in transactions.
>
> The changelog should explain why this is a basic feature that is
> a must-have to have basic perf support. (i.e. default 'perf
> record', 'perf report', 'perf stat' and 'perf top' works and is
> meaningful.)

The patch is not needed for primitive cycle sampling only.

These qualifiers are a fundamental feature for any TSX tuning. If you don't
care about TSX it's not fundamental. TSX tuning relies heavily on the PMU,
so for any TSX work it's important. The 0/0 description has more
references on the topic.

It's not easy to use however with just this patch, the "perf stat -T" patch
in the advanced series makes it easy to use.

I will assume the description is sufficient and will not repost with
a new changelog, as "basicness" of the patch is not a useful property
to document in the long term git history.

-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/