* [PATCH] perf, tools: Print stddev in CSV mode with -a
@ 2015-04-08 14:48 Andi Kleen
2015-04-10 8:40 ` Jiri Olsa
0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2015-04-08 14:48 UTC (permalink / raw)
To: acme; +Cc: linux-kernel, jolsa, Andi Kleen
From: Andi Kleen <ak@linux.intel.com>
Currently with -r.. -a -A ,x or other aggregation we don't print the
stddev into the CSV output. Just drop the checks preventing this.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
tools/perf/builtin-stat.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index d4d1b77..3de0ea5 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -1282,8 +1282,7 @@ static void print_aggr(char *prefix)
else
abs_printout(id, nr, counter, uval);
- if (!csv_output)
- print_noise(counter, 1.0);
+ print_noise(counter, 1.0);
print_running(run, ena);
fputc('\n', output);
@@ -1392,8 +1391,7 @@ static void print_counter(struct perf_evsel *counter, char *prefix)
else
abs_printout(cpu, 0, counter, uval);
- if (!csv_output)
- print_noise(counter, 1.0);
+ print_noise(counter, 1.0);
print_running(run, ena);
fputc('\n', output);
--
2.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] perf, tools: Print stddev in CSV mode with -a
2015-04-08 14:48 [PATCH] perf, tools: Print stddev in CSV mode with -a Andi Kleen
@ 2015-04-10 8:40 ` Jiri Olsa
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Olsa @ 2015-04-10 8:40 UTC (permalink / raw)
To: Andi Kleen; +Cc: acme, linux-kernel, Andi Kleen
On Wed, Apr 08, 2015 at 07:48:21AM -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> Currently with -r.. -a -A ,x or other aggregation we don't print the
> stddev into the CSV output. Just drop the checks preventing this.
>
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
we already print this print_counter_aggr so I think we can consider
this as bugfix even though it changes current csv format
Acked-by: Jiri Olsa <jolsa@kernel.org>
thanks,
jirka
> ---
> tools/perf/builtin-stat.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
> index d4d1b77..3de0ea5 100644
> --- a/tools/perf/builtin-stat.c
> +++ b/tools/perf/builtin-stat.c
> @@ -1282,8 +1282,7 @@ static void print_aggr(char *prefix)
> else
> abs_printout(id, nr, counter, uval);
>
> - if (!csv_output)
> - print_noise(counter, 1.0);
> + print_noise(counter, 1.0);
>
> print_running(run, ena);
> fputc('\n', output);
> @@ -1392,8 +1391,7 @@ static void print_counter(struct perf_evsel *counter, char *prefix)
> else
> abs_printout(cpu, 0, counter, uval);
>
> - if (!csv_output)
> - print_noise(counter, 1.0);
> + print_noise(counter, 1.0);
> print_running(run, ena);
>
> fputc('\n', output);
> --
> 2.3.3
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-10 8:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-08 14:48 [PATCH] perf, tools: Print stddev in CSV mode with -a Andi Kleen
2015-04-10 8:40 ` Jiri Olsa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox