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