函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:07:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Consumer reader.
函数原型:static ssize_t tracing_read_pipe(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
char __user * | ubuf | |
size_t | cnt | |
loff_t * | ppos |
6108 | mutex_lock( & mutex) |
6111 | sret等于trace_seq_to_user( & The below is zeroed out in pipe_read , ubuf, cnt) |
6117 | 如果read则 |
6123 | waitagain : |
6129 | 如果trace_empty(iter)则 |
6138 | memset( & The below is zeroed out in pipe_read , 0, sizeof(structtrace_iterator) - offsetof(structtrace_iterator, seq)) |
6141 | 清空全部CPU信息 |
6143 | pos等于负1 |
6145 | trace_event_read_lock() |
6146 | trace_access_lock(cpu_file) |
6152 | 如果ret恒等于 Retry after flushing the seq 则 |
6157 | 如果ret不等于TRACE_TYPE_NO_CONSUME则trace_consume(iter) |
6171 | trace_access_unlock(cpu_file) |
6172 | trace_event_read_unlock() |
6175 | sret等于trace_seq_to_user( & The below is zeroed out in pipe_read , ubuf, cnt) |
6186 | out : |
6189 | 返回:sret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |