函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 | |
int | cpu |
4403 | cpu_buffer等于buffers[cpu] |
4406 | 如果非测试CPU信息则返回 |
4409 | atomic_inc( & resize_disabled) |
4410 | atomic_inc( & record_disabled) |
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_reset | g_buffer_reset - reset a ring buffer*@buffer: The ring buffer to reset all cpu buffers |
tracing_reset_cpu | |
tracing_reset_online_cpus |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |