Re: [PATCH 2/2] perf: Disallow aux_output for kernel events

From: Alexander Shishkin
Date: Thu Oct 31 2019 - 02:40:35 EST


Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> writes:

> + /*
> + * Grouping is not supported for kernel events, neither is 'AUX',
> + * make sure the caller's intentions are adjusted.
> + */
> + if (attr->aux_output)
> + return -EINVAL;

Should have been ERR_PTR(-EINVAL).