diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2012-06-15 02:31:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-06-18 06:13:20 -0400 |
commit | 4b4969b14490a4f65b572b8f180164181104b5e1 (patch) | |
tree | b7319d7695639b79d21fbc190feca46f526ae454 /arch/x86/kernel/cpu/perf_event.h | |
parent | d1ece0998eeb7b6543044f32b7d9bcbaf6dc294a (diff) |
perf: Export perf_assign_events()
Export perf_assign_events() so the uncore code can use it to
schedule events.
Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1339741902-8449-2-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event.h')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.h b/arch/x86/kernel/cpu/perf_event.h index 3df3de9452a9..83238f2a12b2 100644 --- a/arch/x86/kernel/cpu/perf_event.h +++ b/arch/x86/kernel/cpu/perf_event.h | |||
@@ -481,6 +481,8 @@ static inline void __x86_pmu_enable_event(struct hw_perf_event *hwc, | |||
481 | 481 | ||
482 | void x86_pmu_enable_all(int added); | 482 | void x86_pmu_enable_all(int added); |
483 | 483 | ||
484 | int perf_assign_events(struct event_constraint **constraints, int n, | ||
485 | int wmin, int wmax, int *assign); | ||
484 | int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign); | 486 | int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign); |
485 | 487 | ||
486 | void x86_pmu_stop(struct perf_event *event, int flags); | 488 | void x86_pmu_stop(struct perf_event *event, int flags); |