powerpc/perf/hv-24x7: Fail 24x7 initcall if create_events_from_catalog() fails
authorLi Zhong <zhong@linux.vnet.ibm.com>
Mon, 13 Apr 2015 07:48:37 +0000 (15:48 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Apr 2015 03:19:15 +0000 (13:19 +1000)
commit7debc970ae7a5573ed43a1dfa242fd1a5390d21a
tree3bf20766ecf79b8d3e8a41d16bde04bd8f369d6b
parentad30cb9946515f72af5c3e89ad9de18870c1a1e7
powerpc/perf/hv-24x7: Fail 24x7 initcall if create_events_from_catalog() fails

As Michael pointed out, create_events_from_catalog() fails when we
either have:
 - a kernel bug
 - some sort of hypervisor misconfiguration
 - ENOMEM

In all the above cases, we can also fail 24x7 initcall.

For hypervisor errors, EIO is used so there is something reported
in dmesg.

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/hv-24x7.c