[PATCH] perf: Extend attr check to allow also dynamically generated
From: Robert Richter
Date: Tue Jul 05 2011 - 05:47:33 EST
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