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>
This commit is contained in:
@@ -128,7 +128,7 @@ struct perf_counter;
|
||||
* struct hw_perf_counter_ops - performance counter hw ops
|
||||
*/
|
||||
struct hw_perf_counter_ops {
|
||||
void (*enable) (struct perf_counter *counter);
|
||||
int (*enable) (struct perf_counter *counter);
|
||||
void (*disable) (struct perf_counter *counter);
|
||||
void (*read) (struct perf_counter *counter);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user