diff options
author | Suzuki K. Poulose <[email protected]> | 2015-02-13 18:40:58 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-03-02 11:51:17 -0300 |
commit | 3b4331d9a4f2d99603c38bfcac79943b7c6c5439 (patch) | |
tree | 26fbfb1c187379aeb43da02d6218a70ec617340d /net/lapb/lapb_in.c | |
parent | c65568c5456e5216e5467e81d1e04c1f5bdd453f (diff) |
perf stat: Report unsupported events properly
Commit 1971f59 (perf stat: Use read_counter in read_counter_aggr )
broke the perf stat output for unsupported counters.
$ perf stat -v -a -C 0 -e CCI_400/config=24/ sleep 1
Warning:
CCI_400/config=24/ event is not supported by the kernel.
Performance counter stats for 'system wide':
0 CCI_400/config=24/
1.080265400 seconds time elapsed
Where it used to be :
$ perf stat -v -a -C 0 -e CCI_400/config=24/ sleep 1
Warning:
CCI_400/config=24/ event is not supported by the kernel.
Performance counter stats for 'system wide':
<not supported> CCI_400/config=24/
1.083840675 seconds time elapsed
This patch fixes the issues by checking if the counter is supported,
before reading and logging the counter value.
Signed-off-by: Suzuki K. Poulose <[email protected]>
Acked-by: David Ahern <[email protected]>
Tested-by: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions