Home
last modified time | relevance | path

Searched hist:cca03c0a (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/perf/
H A Dbuiltin-stat.ccca03c0a Tue Jun 23 06:42:49 CDT 2009 Jaswinder Singh Rajput <jaswinder@kernel.org> perf stat: Fix verbose for perf stat

Error message should use stderr for verbose (-v), otherwise
message will be lost for:

$ ./perf stat -v <cmd> > /dev/null

For example on AMD bus-cycles event is not available so now
it looks like:

$ ./perf stat -v -e bus-cycles ls > /dev/null
Error: counter 0, sys_perf_counter_open() syscall returned with -1 (Invalid argument)

Performance counter stats for 'ls':

<not counted> bus-cycles

0.006765877 seconds time elapsed.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1245757369.3776.1.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
cca03c0a Tue Jun 23 06:42:49 CDT 2009 Jaswinder Singh Rajput <jaswinder@kernel.org> perf stat: Fix verbose for perf stat

Error message should use stderr for verbose (-v), otherwise
message will be lost for:

$ ./perf stat -v <cmd> > /dev/null

For example on AMD bus-cycles event is not available so now
it looks like:

$ ./perf stat -v -e bus-cycles ls > /dev/null
Error: counter 0, sys_perf_counter_open() syscall returned with -1 (Invalid argument)

Performance counter stats for 'ls':

<not counted> bus-cycles

0.006765877 seconds time elapsed.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1245757369.3776.1.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>