函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 13:00:10 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:g_buffer_write - write data to the buffer without reserving*@buffer: The ring buffer to write to
函数原型:int ring_buffer_write(struct ring_buffer *buffer, unsigned long length, void *data)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer * | buffer | |
unsigned long | length | |
void * | data |
3126 | preempt_disable_notrace() |
3128 | 如果atomic_read( & record_disabled)则转到:out |
3136 | cpu_buffer等于buffers[cpu] |
3138 | 如果atomic_read( & record_disabled)则转到:out |
3141 | 如果length大于Max payload is BUF_PAGE_SIZE - header (8bytes) 则转到:out |
3147 | event等于rb_reserve_next_event(buffer, cpu_buffer, length) |
3148 | 如果非event则转到:out_unlock |
3155 | rb_commit(cpu_buffer, event) |
3157 | rb_wakeups(buffer, cpu_buffer) |
3159 | ret等于0 |
3161 | out_unlock : |
3164 | out : |
3165 | preempt_enable_notrace() |
3167 | 返回:ret |
名称 | 描述 |
---|---|
__buffer_unlock_commit |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |