[PATCH 12/13] perf, tools: Add support for MetricName JSON attribute

2017-03-20 Thread Andi Kleen
From: Andi Kleen Add support for a new JSON event attribute to name MetricExpr for better output in perf stat. If the event has no MetricName it uses the normal event name instead to describe the metric. Before % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' --metric-on

[PATCH 12/13] perf, tools: Add support for MetricName JSON attribute

2017-03-10 Thread Andi Kleen
From: Andi Kleen Add support for a new JSON event attribute to name MetricExpr for better output in perf stat. If the event has no MetricName it uses the normal event name instead to describe the metric. Before % perf stat -a -I 1000 -e '{unc_p_clockticks,unc_p_freq_max_os_cycles}' --metric-on