Lines Matching refs:cpu
58 inline static int need_wakeup(uint cpu, struct _oprof_data * data) in need_wakeup() argument
60 return data->nextbuf >= (data->buf_size - data->buf_watermark) && !oprof_ready[cpu]; in need_wakeup()
69 inline static void evict_op_entry(uint cpu, struct _oprof_data * data, long irq_enabled) in evict_op_entry() argument
72 if (likely(!need_wakeup(cpu, data))) in evict_op_entry()
103 oprof_ready[cpu] = 1; in evict_op_entry()
117 void op_do_profile(uint cpu, long eip, long irq_enabled, int ctr) in op_do_profile() argument
119 struct _oprof_data * data = &oprof_data[cpu]; in op_do_profile()
127 evict_op_entry(cpu, data, irq_enabled); in op_do_profile()
135 static void stop_cpu_perfctr(int cpu) in stop_cpu_perfctr() argument
138 int_ops->stop_cpu(cpu); in stop_cpu_perfctr()
141 static void start_cpu_perfctr(int cpu) in start_cpu_perfctr() argument
144 int_ops->start_cpu(cpu); in start_cpu_perfctr()
338 int cpu; in oprof_read() local
343 for (cpu = 0; cpu < smp_num_cpus; ++cpu) { in oprof_read()
344 if (oprof_data[cpu].nextbuf) { in oprof_read()
345 cpu_buffer_waiting = cpu; in oprof_read()
346 oprof_ready[cpu] = 2; in oprof_read()
351 if (cpu == smp_num_cpus) in oprof_read()
640 uint cpu; in get_nr_interrupts() local
650 for (cpu = 0 ; cpu < smp_num_cpus; cpu++) { in get_nr_interrupts()
651 sysctl.nr_interrupts += oprof_data[cpu].nr_irq; in get_nr_interrupts()
652 oprof_data[cpu].nr_irq = 0; in get_nr_interrupts()
663 uint cpu; in get_nr_buffer_overflow() local
671 for (cpu = 0 ; cpu < smp_num_cpus; cpu++) { in get_nr_buffer_overflow()
672 sysctl.nr_buffer_overflow += oprof_data[cpu].nr_buffer_overflow; in get_nr_buffer_overflow()
673 oprof_data[cpu].nr_buffer_overflow = 0; in get_nr_buffer_overflow()
695 uint cpu; in do_actual_dump() local
697 for (cpu = 0 ; cpu < smp_num_cpus; cpu++) in do_actual_dump()
698 oprof_ready[cpu] = 2; in do_actual_dump()