s390/perf: cpum_cf: fallback to software sampling events
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Wed, 30 Jan 2013 16:51:56 +0000 (17:51 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 14 Feb 2013 14:55:15 +0000 (15:55 +0100)
commit151a0eb6c8e4398f76453c791d8fd8f8167a7517
treeffa9855aaab15c18a8f3e606b817c0341ed35283
parentbddb7ae217cea0ef722468fce823f9e19a69c561
s390/perf: cpum_cf: fallback to software sampling events

The CPU-measurement counter facility does not support sampling events
and returns -EINVAL in that case.  This return code lets the perf tool
fail.  To fall back to software sampling events, return -ENOENT instead.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/perf_cpum_cf.c