Lines Matching defs:counters
28 * XLR has only one set of counters per core. Designate the
45 * The number of bits to shift to convert between counters per core and
46 * counters per VPE. There is no reasonable interface atm to obtain the
72 static inline unsigned int counters_total_to_per_cpu(unsigned int counters)
74 return counters >> vpe_shift();
77 static inline unsigned int counters_per_cpu_to_total(unsigned int counters)
79 return counters << vpe_shift();
137 unsigned int counters = op_model_mipsxx_ops.num_counters;
141 for (i = 0; i < counters; i++) {
166 unsigned int counters = op_model_mipsxx_ops.num_counters;
171 switch (counters) {
190 /* Start all counters on current CPU */
193 unsigned int counters = op_model_mipsxx_ops.num_counters;
198 switch (counters) {
213 /* Stop all counters on current CPU */
216 unsigned int counters = op_model_mipsxx_ops.num_counters;
221 switch (counters) {
238 unsigned int counters = op_model_mipsxx_ops.num_counters;
246 switch (counters) {
285 int counters;
289 counters = 2;
295 counters = 4;
299 counters = __n_counters();
302 return counters;
307 int counters = (int)(long)arg;
308 switch (counters) {
334 int counters;
336 counters = n_counters();
337 if (counters == 0) {
338 printk(KERN_ERR "Oprofile: CPU has no performance counters\n");
344 counters = counters_total_to_per_cpu(counters);
346 on_each_cpu(reset_counters, (void *)(long)counters, 1);
348 op_model_mipsxx_ops.num_counters = counters;
461 int counters = op_model_mipsxx_ops.num_counters;
466 counters = counters_per_cpu_to_total(counters);
467 on_each_cpu(reset_counters, (void *)(long)counters, 1);