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>
This commit is contained in:
@ -1764,7 +1764,7 @@ out:
|
||||
raw_spin_unlock_irq(&ctx->lock);
|
||||
}
|
||||
|
||||
static int perf_event_refresh(struct perf_event *event, int refresh)
|
||||
int perf_event_refresh(struct perf_event *event, int refresh)
|
||||
{
|
||||
/*
|
||||
* not supported on inherited events
|
||||
@ -1777,6 +1777,7 @@ static int perf_event_refresh(struct perf_event *event, int refresh)
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(perf_event_refresh);
|
||||
|
||||
static void ctx_sched_out(struct perf_event_context *ctx,
|
||||
struct perf_cpu_context *cpuctx,
|
||||
|
Reference in New Issue
Block a user