projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c7e550
)
perf: Limit event refresh to sampling event
author
Franck Bui-Huu
<fbuihuu@gmail.com>
Tue, 23 Nov 2010 15:21:44 +0000
(16:21 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 26 Nov 2010 14:14:55 +0000
(15:14 +0100)
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <
1290525705
-6265-2-git-send-email-fbuihuu@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/perf_event.c
b/kernel/perf_event.c
index 880698488c9105219a006d7685a98ef2e212d245..027c4d33b4d3f0f6ec66755374830e940e8d9ea3 100644
(file)
--- a/
kernel/perf_event.c
+++ b/
kernel/perf_event.c
@@
-1073,7
+1073,7
@@
static int perf_event_refresh(struct perf_event *event, int refresh)
/*
* not supported on inherited events
*/
- if (event->attr.inherit)
+ if (event->attr.inherit
|| !is_sampling_event(event)
)
return -EINVAL;
atomic_add(refresh, &event->event_limit);