[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150730140644.GR9606@krava.brq.redhat.com>
Date: Thu, 30 Jul 2015 16:06:44 +0200
From: Jiri Olsa <jolsa@...hat.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: acme@...nel.org, jolsa@...nel.org, eranian@...gle.com,
linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 4/4] perf, tools, stat: Implement CSV metrics output
On Wed, Jul 29, 2015 at 05:21:40PM -0700, Andi Kleen wrote:
SNIP
> + }
> }
>
> static void print_aggr(char *prefix)
> @@ -818,11 +883,7 @@ static void print_aggr(char *prefix)
> continue;
> }
> uval = val * counter->scale;
> - printout(id, nr, counter, uval, prefix);
> - if (!csv_output)
> - print_noise(counter, 1.0);
> -
> - print_running(run, ena);
> + printout(id, nr, counter, uval, prefix, run, ena, 1.0);
> fputc('\n', output);
> }
> }
> @@ -848,12 +909,7 @@ static void print_aggr_thread(struct perf_evsel *counter, char *prefix)
> fprintf(output, "%s", prefix);
>
> uval = val * counter->scale;
> - printout(thread, 0, counter, uval, prefix);
> -
> - if (!csv_output)
> - print_noise(counter, 1.0);
> -
> - print_running(run, ena);
> + printout(thread, 0, counter, uval, prefix, run, ena, 1.0);
> fputc('\n', output);
> }
> }
> @@ -897,11 +953,7 @@ static void print_counter_aggr(struct perf_evsel *counter, char *prefix)
> }
>
> uval = avg * counter->scale;
> - printout(-1, 0, counter, uval, prefix);
> -
> - print_noise(counter, avg);
> -
> - print_running(avg_running, avg_enabled);
> + printout(-1, 0, counter, uval, prefix, avg_running, avg_enabled, avg);
> fprintf(output, "\n");
> }
>
> @@ -949,11 +1001,7 @@ static void print_counter(struct perf_evsel *counter, char *prefix)
> }
>
> uval = val * counter->scale;
> - printout(cpu, 0, counter, uval, prefix);
> -
> - if (!csv_output)
> - print_noise(counter, 1.0);
> - print_running(run, ena);
> + printout(cpu, 0, counter, uval, prefix, run, ena, 1.0);
print_running still stayed in print_aggr
how about moving the (run == 0 || ena == 0) leg from print_aggr
into printout
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists