函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:06:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:tracing_open
函数原型:static int tracing_open(struct inode *inode, struct file *file)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | inode | |
struct file * | file |
4355 | ret等于tracing_check_open_get_tr(tr) |
4360 | 如果f_mode按位与le is open for writing 且f_flags按位与O_TRUNC则 |
4361 | cpu等于Should be used after trace_array_get(), trace_types_lock* ensures that i_cdev was already initialized. |
4362 | trace_buf等于trace_buffer |
4371 | 否则tracing_reset_cpu(trace_buf, cpu) |
4375 | 如果f_mode按位与le is open for reading 则 |
4376 | iter等于__tracing_open(inode, file, false) |
4379 | 否则如果trace_flags按位与TRACE_ITER_LATENCY_FMT则iter_flags或等于TRACE_FILE_LAT_FMT |
4386 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |