[PATCH 4/8] perf, tools, stat: Abstract stat metrics printing

2015-08-03 Thread Andi Kleen
From: Andi Kleen Abstract the printing of shadow metrics. Instead of every metric calling fprintf directly and taking care of indentation, use two call backs: one to print metrics and another to start a new line. This will allow adding metrics to CSV mode and also using them for other purposes.

[PATCH 4/8] perf, tools, stat: Abstract stat metrics printing

2015-08-03 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com Abstract the printing of shadow metrics. Instead of every metric calling fprintf directly and taking care of indentation, use two call backs: one to print metrics and another to start a new line. This will allow adding metrics to CSV mode and also using them