Lines Matching refs:cpu_buf

50 	struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer);
52 cpu_buf->sample_lost_overflow++;
184 op_add_code(struct oprofile_cpu_buffer *cpu_buf, unsigned long backtrace,
199 if (cpu_buf->last_is_kernel != is_kernel) {
200 cpu_buf->last_is_kernel = is_kernel;
207 if (cpu_buf->last_task != task) {
208 cpu_buf->last_task = task;
237 op_add_sample(struct oprofile_cpu_buffer *cpu_buf,
262 log_sample(struct oprofile_cpu_buffer *cpu_buf, unsigned long pc,
267 cpu_buf->sample_received++;
270 cpu_buf->sample_invalid_eip++;
274 if (op_add_code(cpu_buf, backtrace, is_kernel, tsk))
277 if (op_add_sample(cpu_buf, pc, event))
283 cpu_buf->sample_lost_overflow++;
287 static inline void oprofile_begin_trace(struct oprofile_cpu_buffer *cpu_buf)
289 cpu_buf->tracing = 1;
292 static inline void oprofile_end_trace(struct oprofile_cpu_buffer *cpu_buf)
294 cpu_buf->tracing = 0;
302 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer);
309 if (!log_sample(cpu_buf, pc, backtrace, is_kernel, event, task))
316 oprofile_begin_trace(cpu_buf);
318 oprofile_end_trace(cpu_buf);
362 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer);
364 cpu_buf->sample_received++;
367 if (op_add_code(cpu_buf, 0, is_kernel, current))
383 cpu_buf->sample_lost_overflow++;
417 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer);
418 log_sample(cpu_buf, pc, 0, is_kernel, event, NULL);
423 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer);
425 if (!cpu_buf->tracing)
435 if (op_add_sample(cpu_buf, pc, 0))
440 cpu_buf->tracing = 0;
441 cpu_buf->backtrace_aborted++;