diff options
author | Matt Fleming <matt@console-pimps.org> | 2010-09-27 15:22:24 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2010-10-11 04:38:13 -0400 |
commit | 3bf101ba42a1c89b5afbc7492e7647dae5e18735 (patch) | |
tree | 2501d57e827b283da1a0240630fe5988d155f07b /include/linux/perf_event.h | |
parent | 4cbe75be5c6ae86bdc7daec864eeb2dfd66f48bb (diff) |
perf: Add helper function to return number of counters
The number of counters for the registered pmu is needed in a few places
so provide a helper function that returns this number.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Tested-by: Will Deacon <will.deacon@arm.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 716f99b682c1..1a0219247183 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -849,6 +849,7 @@ extern int perf_max_events; | |||
849 | 849 | ||
850 | extern const struct pmu *hw_perf_event_init(struct perf_event *event); | 850 | extern const struct pmu *hw_perf_event_init(struct perf_event *event); |
851 | 851 | ||
852 | extern int perf_num_counters(void); | ||
852 | extern void perf_event_task_sched_in(struct task_struct *task); | 853 | extern void perf_event_task_sched_in(struct task_struct *task); |
853 | extern void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next); | 854 | extern void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next); |
854 | extern void perf_event_task_tick(struct task_struct *task); | 855 | extern void perf_event_task_tick(struct task_struct *task); |