Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-21 Thread Andi Kleen
On Wed, Aug 21, 2013 at 10:15:25AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 15, 2013 at 06:42:03PM +0200, Andi Kleen escreveu: > > > > Here's an updated patch. > > > perf, tools: Add perf stat --transaction v4 > > @@ -1419,6 +1559,8 @@ int cmd_stat(int argc, const char **argv, const

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-21 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2013 at 06:42:03PM +0200, Andi Kleen escreveu: > > Here's an updated patch. > perf, tools: Add perf stat --transaction v4 > @@ -1419,6 +1559,8 @@ int cmd_stat(int argc, const char **argv, const char > *prefix __maybe_unused) >"aggregate counts per processor

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-21 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2013 at 06:42:03PM +0200, Andi Kleen escreveu: Here's an updated patch. perf, tools: Add perf stat --transaction v4 @@ -1419,6 +1559,8 @@ int cmd_stat(int argc, const char **argv, const char *prefix __maybe_unused) aggregate counts per processor socket,

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-21 Thread Andi Kleen
On Wed, Aug 21, 2013 at 10:15:25AM -0300, Arnaldo Carvalho de Melo wrote: Em Thu, Aug 15, 2013 at 06:42:03PM +0200, Andi Kleen escreveu: Here's an updated patch. perf, tools: Add perf stat --transaction v4 @@ -1419,6 +1559,8 @@ int cmd_stat(int argc, const char **argv, const char

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
Here's an updated patch. perf, tools: Add perf stat --transaction v4 Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint qualifiers. Transaction Starts and

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2013 at 04:29:25PM +0200, Andi Kleen escreveu: > > > * Update various tracking values we maintain to print > > > * more semantic information such as miss/hit ratios, > > > @@ -283,8 +340,12 @@ static void update_shadow_stats(struct perf_evsel > > > *counter, u64 *count) > > >

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
> > * Update various tracking values we maintain to print > > * more semantic information such as miss/hit ratios, > > @@ -283,8 +340,12 @@ static void update_shadow_stats(struct perf_evsel > > *counter, u64 *count) > > update_stats(_nsecs_stats[0], count[0]); > > else if

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2013 at 04:06:33PM +0200, Andi Kleen escreveu: > Anyways I use this option pretty heavily and the results are good > to my knowledge. Have you seen the comments about using evsel->idx? - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
> > +/* Default events used for perf stat -T */ > > +static const char * const transaction_attrs[] = { > > + "task-clock", > > + "{" > > + "instructions," > > + "cycles," > > + "cpu/cycles-t/," > > + "cpu/tx-start/," > > + "cpu/el-start/," > > + "cpu/cycles-ct/" > > + "}" > > +};

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 14, 2013 at 11:34:27AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add support to perf stat to print the basic transactional execution > statistics: > Total cycles, Cycles in Transaction, Cycles in aborted transsactions > using the in_tx and in_tx_checkpoint qualifiers. >

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Peter Zijlstra
On Wed, Aug 14, 2013 at 11:34:27AM -0700, Andi Kleen wrote: > From: Andi Kleen > > Add support to perf stat to print the basic transactional execution > statistics: > Total cycles, Cycles in Transaction, Cycles in aborted transsactions > using the in_tx and in_tx_checkpoint qualifiers. >

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Peter Zijlstra
On Wed, Aug 14, 2013 at 11:34:27AM -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 14, 2013 at 11:34:27AM -0700, Andi Kleen escreveu: From: Andi Kleen a...@linux.intel.com Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
+/* Default events used for perf stat -T */ +static const char * const transaction_attrs[] = { + task-clock, + { + instructions, + cycles, + cpu/cycles-t/, + cpu/tx-start/, + cpu/el-start/, + cpu/cycles-ct/ + } +}; + +/* More limited version when the

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2013 at 04:06:33PM +0200, Andi Kleen escreveu: Anyways I use this option pretty heavily and the results are good to my knowledge. Have you seen the comments about using evsel-idx? - Arnaldo -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
* Update various tracking values we maintain to print * more semantic information such as miss/hit ratios, @@ -283,8 +340,12 @@ static void update_shadow_stats(struct perf_evsel *counter, u64 *count) update_stats(runtime_nsecs_stats[0], count[0]); else if

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 15, 2013 at 04:29:25PM +0200, Andi Kleen escreveu: * Update various tracking values we maintain to print * more semantic information such as miss/hit ratios, @@ -283,8 +340,12 @@ static void update_shadow_stats(struct perf_evsel *counter, u64 *count)

Re: [PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-15 Thread Andi Kleen
Here's an updated patch. perf, tools: Add perf stat --transaction v4 Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint qualifiers. Transaction Starts and

[PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-14 Thread Andi Kleen
From: Andi Kleen Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average transaction

[PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-14 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average

[PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-08 Thread Andi Kleen
From: Andi Kleen Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average transaction

[PATCH 4/4] perf, tools: Add perf stat --transaction v3

2013-08-08 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com Add support to perf stat to print the basic transactional execution statistics: Total cycles, Cycles in Transaction, Cycles in aborted transsactions using the in_tx and in_tx_checkpoint qualifiers. Transaction Starts and Elision Starts, to compute the average