函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 12:59:29 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:_handle_head_page - writer hit the head page* Returns: +1 to retry page* 0 to continue* -1 on error
函数原型:static int rb_handle_head_page(struct ring_buffer_per_cpu *cpu_buffer, struct buffer_page *tail_page, struct buffer_page *next_page)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer | |
struct buffer_page * | tail_page | |
struct buffer_page * | next_page |
1984 | entries等于rb_page_entries(next_page) |
2006 | 当:type恒等于RB_PAGE_HEAD |
2023 | 当:type恒等于RB_PAGE_UPDATE |
2028 | 退出 |
2035 | 返回:1 |
2042 | 返回:1 |
2043 | 默认 |
2045 | 返回:负1 |
2063 | rb_inc_page(cpu_buffer, & new_head) |
2065 | ret等于rb_head_page_set_head(cpu_buffer, new_head, next_page, Making the ring buffer lockless makes things tricky) |
2077 | 当:ret恒等于RB_PAGE_HEAD |
2080 | 退出 |
2081 | 默认 |
2083 | 返回:负1 |
2099 | buffer_tail_page等于READ_ONCE(write to tail ) |
2116 | 如果type恒等于RB_PAGE_HEAD则 |
2120 | 如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, ret != RB_PAGE_UPDATE)则返回:负1 |
2125 | 返回:0 |
名称 | 描述 |
---|---|
rb_move_tail | This is the slow path, force gcc not to inline it. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |