函数逻辑报告 |
Source Code:kernel\trace\trace_events_filter.c |
Create Date:2022-07-27 13:33:33 |
Last Modify:2022-05-22 20:19:57 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Read the filter string once to calculate the number of predicates* as well as how deep the parentheses go.* Returns:* 0 - everything is fine (err is undefined)* -1 - too many ')'* -2 - too many '('* -3 - No matching quote
函数原型:static int calc_stack(const char *str, int *parens, int *preds, int *err)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | str | |
int * | parens | |
int * | preds | |
int * | err |
1410 | bool is_pred = false |
1411 | nr_preds等于0 |
1412 | open等于1 |
1413 | last_quote等于0 |
1414 | max_open等于1 |
1415 | quote等于0 |
1418 | err等于0 |
1421 | 如果Note: isspace() must return false for %NUL-terminator (str[i])则继续下一循环 |
1423 | 如果quote则 |
1426 | 继续下一循环 |
1456 | 如果非is_pred则 |
1462 | 如果quote则 |
1463 | err等于last_quote |
1464 | 返回:MISSING_QUOTE |
1467 | 如果open不等于1则 |
1502 | 返回:0 |
名称 | 描述 |
---|---|
process_preds |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |