Re: [PATCH] perf, tools, stat: Print warning when no metric with --metric-only

From: Andi Kleen
Date: Fri Mar 11 2016 - 18:04:47 EST


> [jolsa@krava perf]$ sudo ./perf stat -a -I 1000 --metric-only
> time insn per cycle branch-misses of all branches
> 1.000370422 0.30 6.77%
> 2.000749536 0.40 5.75%
> 3.001007542 0.28 5.38%
> 4.001324779 0.57 5.83%
> ^C 4.011558899 0.01 0.12%
>
> [jolsa@krava perf]$ sudo ./perf stat -a -I 1000 --metric-only -e cycles
> time No metrics defined by configured events
> 1.000211156
> 2.000432519

Looks good to me. Please submit it.

-Andi