aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-21 07:50:42 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-23 06:45:19 -0500
commit95cdd2e7851cce79ab839cb0b3cbe68d7911d0f1 (patch)
treefad7723f344027dd64a1ca44d0117c3da61b75ca /include/linux/perf_counter.h
parent78b6084c907cea15bb40a564b974e072f5163781 (diff)
perfcounters: enable lowlevel pmc code to schedule counters
Allow lowlevel ->enable() op to return an error if a counter can not be added. This can be used to handle counter constraints. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 48f76d2e54c2..53af11d3767b 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -128,7 +128,7 @@ struct perf_counter;
128 * struct hw_perf_counter_ops - performance counter hw ops 128 * struct hw_perf_counter_ops - performance counter hw ops
129 */ 129 */
130struct hw_perf_counter_ops { 130struct hw_perf_counter_ops {
131 void (*enable) (struct perf_counter *counter); 131 int (*enable) (struct perf_counter *counter);
132 void (*disable) (struct perf_counter *counter); 132 void (*disable) (struct perf_counter *counter);
133 void (*read) (struct perf_counter *counter); 133 void (*read) (struct perf_counter *counter);
134}; 134};