Commit 2e939d1d authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ingo Molnar

perf: Limit event refresh to sampling event

Signed-off-by: default avatarFranck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1290525705-6265-2-git-send-email-fbuihuu@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 6c7e550f
...@@ -1073,7 +1073,7 @@ static int perf_event_refresh(struct perf_event *event, int refresh) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment