Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:55:31
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu)

Type:void

Parameter:

TypeParameterName
struct ring_buffer *buffer
intcpu
4403  cpu_buffer = buffers[cpu]
4406  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return
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  If uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, local_read( & committing)) Then Go to 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)
Caller
NameDescribe
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