函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 13:00:00 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__rb_reserve_next
函数原型:static struct ring_buffer_event *__rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer, struct rb_event_info *info)
返回类型:struct ring_buffer_event
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer | |
struct rb_event_info * | info |
2832 | tail_page等于tail_page等于READ_ONCE(write to tail ) |
2843 | 如果非tail且非ring_buffer_time_stamp_abs(buffer)则delta等于0 |
2847 | 如果此条件成立可能性小(为编译器优化)(write > BUF_PAGE_SIZE)则返回:This is the slow path, force gcc not to inline it. |
2852 | event等于__rb_page_index(tail_page, tail) |
2855 | local_inc( & ries on this page ) |
2861 | 如果非tail则 page time stamp 等于ts |
2865 | local_add(length, & entries_bytes) |
2867 | 返回:event |
名称 | 描述 |
---|---|
rb_reserve_next_event |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |