| Function report | 
| Source Code: kernel\trace\trace_events_filter.c | Create Date:2022-07-28 12:25:16 | 
| Last Modify:2022-05-22 20:19:57 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:static int calc_stack(const char *str, int *parens, int *preds, int *err)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | If Note: isspace() must return false for %NUL-terminator (str[i]) Then Continue | 
| 1423 | If quote Then | 
| 1426 | Continue | 
| 1456 | If Not is_pred Then | 
| 1462 | If quote Then | 
| 1463 | err = last_quote | 
| 1464 | Return MISSING_QUOTE | 
| 1467 | If open != 1 Then | 
| 1502 | Return 0 | 
| Name | Describe | 
|---|---|
| process_preds | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |