函数逻辑报告 |
Source Code:kernel\trace\ring_buffer_benchmark.c |
Create Date:2022-07-27 13:01:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:read_page
函数原型:static enum event_status read_page(int cpu)
返回类型:enum event_status
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | cpu |
| 116 | bpage等于g_buffer_alloc_read_page - allocate a page to read from buffer*@buffer: the buffer to allocate for |
| 117 | 如果是错误则返回:EVENT_DROPPED |
| 121 | 如果ret大于等于0则 |
| 124 | commit等于local_read( & commit)按位与0xfffff |
| 125 | 以i小于commit且非test_error循环 |
| 128 | TEST_ERROR() |
| 129 | 退出 |
| 132 | inc等于负1 |
| 135 | 当:type_len恒等于RINGBUF_TYPE_PADDING |
| 145 | entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from |
| 147 | TEST_ERROR() |
| 148 | 退出 |
| 150 | read自加 |
| 151 | 如果非array[0]则 |
| 152 | TEST_ERROR() |
| 153 | 退出 |
| 156 | 退出 |
| 157 | 默认 |
| 158 | entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from |
| 160 | TEST_ERROR() |
| 161 | 退出 |
| 163 | read自加 |
| 166 | 如果test_error则退出 |
| 169 | 如果inc小于等于0则 |
| 170 | TEST_ERROR() |
| 171 | 退出 |
| 177 | 如果ret小于0则返回:EVENT_DROPPED |
| 179 | 返回:EVENT_FOUND |
| 名称 | 描述 |
|---|---|
| ring_buffer_consumer |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |