函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 13:01:02
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:g_buffer_reset_cpu - reset a ring buffer per CPU buffer*@buffer: The ring buffer to reset a per cpu buffer of*@cpu: The CPU buffer to be reset

函数原型:void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu)

返回类型:void

参数:

类型参数名称
struct ring_buffer *buffer
intcpu
4403  cpu_buffer等于buffers[cpu]
4406  如果非测试CPU信息则返回
4409  atomic_inc( & resize_disabled)
4410  atomic_inc( & record_disabled)
4413  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
4415  raw_spin_lock_irqsave( & serialize readers , flags)
4417  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, local_read( & committing))则转到:out
4420  r sched/core.c and kernel_lock.c: ( & lock)
4422  rb_reset_cpu(cpu_buffer)
4424  arch_spin_unlock( & lock)
4426  out :
4427  raw_spin_unlock_irqrestore( & serialize readers , flags)
4429  atomic_dec( & record_disabled)
4430  atomic_dec( & resize_disabled)
调用者
名称描述
ring_buffer_resetg_buffer_reset - reset a ring buffer*@buffer: The ring buffer to reset all cpu buffers
tracing_reset_cpu
tracing_reset_online_cpus