函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:04:06 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:race_get_user - reads the user input string separated by space* (matched by isspace(ch))* For each string found the 'struct trace_parser' is updated,* and the function returns.* Returns number of bytes read.* See kernel/trace/trace
函数原型:int trace_get_user(struct trace_parser *parser, const char __user *ubuf, size_t cnt, loff_t *ppos)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct trace_parser * | parser | |
| const char __user * | ubuf | |
| size_t | cnt | |
| loff_t * | ppos |
| 1424 | read等于0 |
| 1427 | 如果非ppos则trace_parser_clear(parser) |
| 1430 | ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(ch, ubuf++) |
| 1434 | read自加 |
| 1435 | cnt自减 |
| 1441 | 如果非cont则 |
| 1444 | ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(ch, ubuf++) |
| 1447 | read自加 |
| 1448 | cnt自减 |
| 1451 | idx等于0 |
| 1465 | 否则 |
| 1469 | ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(ch, ubuf++) |
| 1472 | read自加 |
| 1473 | cnt自减 |
| 1485 | 否则 |
| 1493 | out : |
| 1494 | 返回:ret |
| 名称 | 描述 |
|---|---|
| trace_pid_write | |
| ftrace_event_write |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |