powerpc/perf: Reject EBB events which specify a sample_type
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Mar 2014 05:00:30 +0000 (16:00 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 23 Mar 2014 22:48:25 +0000 (09:48 +1100)
commit58b5fb00498ddaaa3f6582751e9eb731189ee4c8
tree211bd7f808e0c8ce824232a43d5641f0d878af65
parentc2e37a2626a7471875f3a6452b99dfd3809972b9
powerpc/perf: Reject EBB events which specify a sample_type

Although we already block EBB events which request sampling using
sample_period, technically it's possible for an event to set sample_type
but not sample_period.

Nothing terrible will happen if an EBB event does specify sample_type,
but it signals a major confusion on the part of userspace, and so we do
them the favor of rejecting it.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/core-book3s.c