函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 12:59:32 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rb_reset_tail
函数原型:static inline void rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer, unsigned long tail, struct rb_event_info *info)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer | |
unsigned long | tail | |
struct rb_event_info * | info |
2140 | 如果tail大于等于BUF_PAGE_SIZE则 |
2146 | 如果tail恒等于BUF_PAGE_SIZE则al end of data 等于0 |
2149 | local_sub(length, & dex for next write ) |
2150 | 返回 |
2153 | event等于__rb_page_index(tail_page, tail) |
2156 | local_add(BUF_PAGE_SIZE - tail, & entries_bytes) |
2163 | al end of data 等于tail |
2176 | 如果tail大于BUF_PAGE_SIZE减wo 32bit words 则 |
2188 | array[0]等于BUF_PAGE_SIZE减tail减RB_EVNT_HDR_SIZE |
2189 | type_len等于RINGBUF_TYPE_PADDING |
2191 | time_delta等于1 |
2194 | length等于tail加length减BUF_PAGE_SIZE |
2195 | local_sub(length, & dex for next write ) |
名称 | 描述 |
---|---|
rb_move_tail | This is the slow path, force gcc not to inline it. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |