perf test: Make the rdpmc test honour 'verbose' mode
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Apr 2012 19:22:09 +0000 (16:22 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 2 May 2012 18:14:12 +0000 (15:14 -0300)
commit23080e4cd224013c06444e7850fe0bcb55c129ff
treefd51e74b7630eec9e156ac1c87635704251a0a50
parentf3054c778e367d624ca0dfe68b8498b5c463a9d1
perf test: Make the rdpmc test honour 'verbose' mode

It was unconditionally printing debug stuff when in non -v mode we
should just print the name and result of the test.

Now:

[root@sandy ~]# perf test rdpmc
 6: x86 rdpmc test: Ok
[root@sandy ~]# perf test -v rdpmc
 6: x86 rdpmc test:
--- start ---
             0:           6030
             1:          60030
             2:         600050
             3:        6000056
             4:       60000070
             5:      600000266
   ---- end ----
x86 rdpmc test: Ok
[root@sandy ~]#

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-0tjedaozsy9oarq30nvzg74b@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-test.c