Function report |
Source Code:lib\dynamic_debug.c |
Create Date:2022-07-28 07:15:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Parse words[] as a ddebug query specification, which is a series* of (keyword, value) pairs chosen from these possibilities:* func <function-name>* file <full-pathname>* file <base-filename>* module <module-name>* format
Proto:static int ddebug_parse_query(char *words[], int nwords, struct ddebug_query *query, const char *modname)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | words | |
| int | nwords | |
| struct ddebug_query * | query | |
| const char * | modname |
| 324 | rc = 0 |
| 327 | If nwords % 2 != 0 Then |
| 345 | string_unescape_inplace(words[i + 1], UNESCAPE_SPACE | UNESCAPE_OCTAL | UNESCAPE_SPECIAL) |
| 352 | If first_lineno || last_lineno Then |
| 358 | If Parse a single line number. Note that the empty string ""* is treated as a special case and converted to zero, which* is later treated as a "don't care" value. < 0 Then Return -EINVAL |
| 360 | If last Then |
| 362 | If Parse a single line number. Note that the empty string ""* is treated as a special case and converted to zero, which* is later treated as a "don't care" value. < 0 Then Return -EINVAL |
| 366 | If last_lineno == 0 Then last_lineno = UINT_MAX |
| 369 | If last_lineno < first_lineno Then |
| 370 | pr_err("last-line:%d < 1st-line:%d\n", last_lineno, first_lineno) |
| 373 | Return -EINVAL |
| 375 | Else |
| 376 | last_lineno = first_lineno |
| 378 | Else |
| 385 | vpr_info_dq(query, "parsed") |
| 386 | Return 0 |
| Name | Describe |
|---|---|
| ddebug_exec_query |
| 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 |