Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct ring_buffer * | buffer | |
int | cpu |
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) |
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) |
Name | Describe |
---|---|
ring_buffer_reset | g_buffer_reset - reset a ring buffer*@buffer: The ring buffer to reset all cpu buffers |
tracing_reset_cpu | |
tracing_reset_online_cpus |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |