函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 13:00:57 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:g_buffer_read - read the next item in the ring buffer by the iterator*@iter: The ring buffer iterator*@ts: The time stamp of the event read.* This reads the next event in the ring buffer and increments the iterator.
函数原型:struct ring_buffer_event *ring_buffer_read(struct ring_buffer_iter *iter, u64 *ts)
返回类型:struct ring_buffer_event
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer_iter * | iter | |
u64 * | ts |
4311 | cpu_buffer等于cpu_buffer |
4314 | raw_spin_lock_irqsave( & serialize readers , flags) |
4315 | again : |
4316 | event等于rb_iter_peek(iter, ts) |
4320 | 如果type_len恒等于RINGBUF_TYPE_PADDING则转到:again |
4323 | rb_advance_iter(iter) |
4324 | out : |
4325 | raw_spin_unlock_irqrestore( & serialize readers , flags) |
4327 | 返回:event |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |