Re: [PATCH 1/4] perf, tools: Output running time and run/enabled ratio in CSV mode

From: Andi Kleen
Date: Mon Mar 09 2015 - 10:04:41 EST


> hum, so people using CSV mode will now see extra 2 numbers
> at the end of the line:
>
> $ ./perf.old stat -x, -e cycles ls > /dev/null
> 2679161,,cycles
> $ ./perf stat -x, -e cycles ls > /dev/null
> 2574169,,cycles,1295544,100.00
>
> we could be breaking existing scripts..

I doubt it. Typical CSV parsers ignore additional data at the end.

Just don't insert stuff in the middle (like it was done recently).
That breaks a lot of things.

> you recently added 'running-time' option for record,
> could you please add same option for stat?

Could be done, but I'm not sure it's worth it here.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/