Lines Matching defs:cpu
85 b->cpu = i;
105 * Spread the work by 1 jiffy per cpu so they dont all
126 * This function prepares the cpu buffer to write a sample.
157 struct op_sample *op_cpu_buffer_read_entry(struct op_entry *entry, int cpu)
160 e = ring_buffer_consume(op_ring_buffer, cpu, NULL, NULL);
172 unsigned long op_cpu_buffer_entries(int cpu)
174 return ring_buffer_entries_cpu(op_ring_buffer, cpu);
430 * This serves to avoid cpu buffer overflow, and makes sure
434 * we guarantee this will stay on the correct cpu
440 if (b->cpu != smp_processor_id()) {
442 smp_processor_id(), b->cpu);
444 if (!cpu_online(b->cpu)) {
449 sync_buffer(b->cpu);