[PATCH] perf: Extend attr check to allow also dynamically generatedtypes

From: Robert Richter
Date: Tue Jul 05 2011 - 06:54:01 EST


(resent with fixed subject)

On 04.07.11 19:59:27, Robert Richter wrote:
> (Btw, current kernel code does not support dynamically allocated pmu
> types due to a check in perf_copy_attr():
>
> if (attr->type >= PERF_TYPE_MAX)
> return -EINVAL;
> )

Below a fix for this.

-Robert