Re: [PATCH 2/6] perf, tools, stat: Implement CSV metrics output
From: Jiri Olsa
Date: Sun Feb 21 2016 - 12:55:17 EST
On Wed, Feb 17, 2016 at 02:44:01PM -0800, Andi Kleen wrote:
SNIP
> ---
> tools/perf/builtin-stat.c | 76 ++++++++++++++++++++++++++++++++++++++++++++---
> 1 file changed, 72 insertions(+), 4 deletions(-)
>
> diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
> index 86289df..6c2c1d2 100644
> --- a/tools/perf/builtin-stat.c
> +++ b/tools/perf/builtin-stat.c
> @@ -739,6 +739,8 @@ struct outstate {
> FILE *fh;
> bool newline;
> const char *prefix;
> + int nfields;
> + u64 run, ena;
what are outstate's ena and run being used for?
thanks,
jirka