|
@@ -1073,7 +1073,7 @@ static int perf_event_refresh(struct perf_event *event, int refresh)
|
|
/*
|
|
/*
|
|
* not supported on inherited events
|
|
* not supported on inherited events
|
|
*/
|
|
*/
|
|
- if (event->attr.inherit)
|
|
|
|
|
|
+ if (event->attr.inherit || !is_sampling_event(event))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
atomic_add(refresh, &event->event_limit);
|
|
atomic_add(refresh, &event->event_limit);
|