Lines Matching full: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) in counters_total_to_per_cpu() argument
74 return counters >> vpe_shift(); in counters_total_to_per_cpu()
77 static inline unsigned int counters_per_cpu_to_total(unsigned int counters) in counters_per_cpu_to_total() argument
79 return counters << vpe_shift(); in counters_per_cpu_to_total()
137 unsigned int counters = op_model_mipsxx_ops.num_counters; in mipsxx_reg_setup() local
141 for (i = 0; i < counters; i++) { in mipsxx_reg_setup()
166 unsigned int counters = op_model_mipsxx_ops.num_counters; in mipsxx_cpu_setup() local
171 switch (counters) { in mipsxx_cpu_setup()
190 /* Start all counters on current CPU */
193 unsigned int counters = op_model_mipsxx_ops.num_counters; in mipsxx_cpu_start() local
198 switch (counters) { in mipsxx_cpu_start()
213 /* Stop all counters on current CPU */
216 unsigned int counters = op_model_mipsxx_ops.num_counters; in mipsxx_cpu_stop() local
221 switch (counters) { in mipsxx_cpu_stop()
238 unsigned int counters = op_model_mipsxx_ops.num_counters; in mipsxx_perfcount_handler() local
246 switch (counters) { in mipsxx_perfcount_handler()
285 int counters; in n_counters() local
289 counters = 2; in n_counters()
295 counters = 4; in n_counters()
299 counters = __n_counters(); in n_counters()
302 return counters; in n_counters()
307 int counters = (int)(long)arg; in reset_counters() local
308 switch (counters) { in reset_counters()
334 int counters; in mipsxx_init() local
336 counters = n_counters(); in mipsxx_init()
337 if (counters == 0) { in mipsxx_init()
338 printk(KERN_ERR "Oprofile: CPU has no performance counters\n"); in mipsxx_init()
344 counters = counters_total_to_per_cpu(counters); in mipsxx_init()
346 on_each_cpu(reset_counters, (void *)(long)counters, 1); in mipsxx_init()
348 op_model_mipsxx_ops.num_counters = counters; in mipsxx_init()
461 int counters = op_model_mipsxx_ops.num_counters; in mipsxx_exit() local
466 counters = counters_per_cpu_to_total(counters); in mipsxx_exit()
467 on_each_cpu(reset_counters, (void *)(long)counters, 1); in mipsxx_exit()