Re: [PATCH 21/33] perf, tools: Add support for record transaction flags

Namhyung Kim
2012-10-29T10:49:48Z

On Fri, 26 Oct 2012 13:30:03 -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> Add the glue in the user tools to record transaction flags with
> --transaction (-T was already taken) and dump them.
>
> Followon patches will use them.
>
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
> tools/perf/Documentation/perf-record.txt | 5 ++++-
> tools/perf/builtin-record.c | 2 ++
> tools/perf/perf.h | 1 +
> tools/perf/util/event.h | 1 +
> tools/perf/util/evsel.c | 9 +++++++++
> tools/perf/util/session.c | 3 +++
> 6 files changed, 20 insertions(+), 1 deletions(-)
>
> diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt
> index 0ffb436..34f4f1a 100644
> --- a/tools/perf/Documentation/perf-record.txt
> +++ b/tools/perf/Documentation/perf-record.txt
> @@ -185,12 +185,15 @@ is enabled for all the sampling events. The sampled branch type is the same for
> The various filters must be specified as a comma separated list: --branch-filter any_ret,u,k
> Note that this feature may not be available on all processors.
>
> --W::
> --weight::
> Enable weightened sampling. When the event supports an additional weight per sample scale
> the histogram by this weight. This currently works for TSX abort events and some memory events
> in precise mode on modern Intel CPUs.
>
> +-T::

No, as you said, -T was already taken. ;)

Thanks,
Namhyung

> +--transaction::
> +Record transaction flags for transaction related events.
> +
> SEE ALSO
> --------
> linkperf:perf-stat[1], linkperf:perf-list[1]