函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 13:00:04 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:g_buffer_lock_reserve - reserve a part of the buffer*@buffer: the ring buffer to reserve from*@length: the length of the data to reserve (excluding event header)* Returns a reserved event on the ring buffer to copy directly to
函数原型:struct ring_buffer_event *ring_buffer_lock_reserve(struct ring_buffer *buffer, unsigned long length)
返回类型:struct ring_buffer_event
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer * | buffer | |
unsigned long | length |
2971 | preempt_disable_notrace() |
2973 | 如果此条件成立可能性小(为编译器优化)(atomic_read( & record_disabled))则转到:out |
2978 | 如果此条件成立可能性小(为编译器优化)(!测试CPU信息)则转到:out |
2981 | cpu_buffer等于buffers[cpu] |
2983 | 如果此条件成立可能性小(为编译器优化)(atomic_read( & record_disabled))则转到:out |
2992 | event等于rb_reserve_next_event(buffer, cpu_buffer, length) |
2993 | 如果非event则转到:out_unlock |
2996 | 返回:event |
2998 | out_unlock : |
3000 | out : |
3001 | preempt_enable_notrace() |
3002 | 返回:NULL |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |