perf: export perf_event_refresh() to modules
authorAvi Kivity <avi@redhat.com>
Wed, 29 Jun 2011 15:42:37 +0000 (18:42 +0300)
committerIngo Molnar <mingo@elte.hu>
Fri, 1 Jul 2011 09:06:40 +0000 (11:06 +0200)
commit26ca5c11fb45ae2b2ac7e3574b8db6b3a3c7d350
tree01f430828eaacf7ba3e0eb541f8d946f3d855696
parent0af3ac1fdb9d5c297b4b07c9e0172531d42b6716
perf: export perf_event_refresh() to modules

KVM needs one-shot samples, since a PMC programmed to -X will fire after X
events and then again after 2^40 events (i.e. variable period).

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1309362157-6596-4-git-send-email-avi@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/events/core.c