Lines Matching refs:cpu_buf
48 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer); in oprofile_cpu_buffer_inc_smpl_lost() local
50 cpu_buf->sample_lost_overflow++; in oprofile_cpu_buffer_inc_smpl_lost()
182 op_add_code(struct oprofile_cpu_buffer *cpu_buf, unsigned long backtrace, in op_add_code() argument
197 if (cpu_buf->last_is_kernel != is_kernel) { in op_add_code()
198 cpu_buf->last_is_kernel = is_kernel; in op_add_code()
205 if (cpu_buf->last_task != task) { in op_add_code()
206 cpu_buf->last_task = task; in op_add_code()
235 op_add_sample(struct oprofile_cpu_buffer *cpu_buf, in op_add_sample() argument
260 log_sample(struct oprofile_cpu_buffer *cpu_buf, unsigned long pc, in log_sample() argument
265 cpu_buf->sample_received++; in log_sample()
268 cpu_buf->sample_invalid_eip++; in log_sample()
272 if (op_add_code(cpu_buf, backtrace, is_kernel, tsk)) in log_sample()
275 if (op_add_sample(cpu_buf, pc, event)) in log_sample()
281 cpu_buf->sample_lost_overflow++; in log_sample()
285 static inline void oprofile_begin_trace(struct oprofile_cpu_buffer *cpu_buf) in oprofile_begin_trace() argument
287 cpu_buf->tracing = 1; in oprofile_begin_trace()
290 static inline void oprofile_end_trace(struct oprofile_cpu_buffer *cpu_buf) in oprofile_end_trace() argument
292 cpu_buf->tracing = 0; in oprofile_end_trace()
300 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer); in __oprofile_add_ext_sample() local
307 if (!log_sample(cpu_buf, pc, backtrace, is_kernel, event, task)) in __oprofile_add_ext_sample()
314 oprofile_begin_trace(cpu_buf); in __oprofile_add_ext_sample()
316 oprofile_end_trace(cpu_buf); in __oprofile_add_ext_sample()
360 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer); in oprofile_write_reserve() local
362 cpu_buf->sample_received++; in oprofile_write_reserve()
365 if (op_add_code(cpu_buf, 0, is_kernel, current)) in oprofile_write_reserve()
381 cpu_buf->sample_lost_overflow++; in oprofile_write_reserve()
415 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer); in oprofile_add_pc() local
416 log_sample(cpu_buf, pc, 0, is_kernel, event, NULL); in oprofile_add_pc()
421 struct oprofile_cpu_buffer *cpu_buf = this_cpu_ptr(&op_cpu_buffer); in oprofile_add_trace() local
423 if (!cpu_buf->tracing) in oprofile_add_trace()
433 if (op_add_sample(cpu_buf, pc, 0)) in oprofile_add_trace()
438 cpu_buf->tracing = 0; in oprofile_add_trace()
439 cpu_buf->backtrace_aborted++; in oprofile_add_trace()