| Function report | 
| Source Code: lib\dynamic_debug.c | Create Date:2022-07-28 07:16:00 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:dynamic_debug_init
Proto:static int __init dynamic_debug_init(void)
Type:int
Parameter:Nothing
| 1010 | const char * modname = NULL | 
| 1012 | ret = 0 | 
| 1014 | verbose_bytes = 0 | 
| 1016 | If __start___verbose == __stop___verbose Then | 
| 1017 | pr_warn("_ddebug table is empty in a CONFIG_DYNAMIC_DEBUG build\n") | 
| 1018 | Return 1 | 
| 1020 | iter = __start___verbose | 
| 1021 | modname = These fields are used to drive the user interface* for selecting and displaying debug callsites. | 
| 1022 | iter_start = iter | 
| 1023 | When iter < __stop___verbose cycle | 
| 1024 | entries++ | 
| 1025 | verbose_bytes += strlen(These fields are used to drive the user interface* for selecting and displaying debug callsites.) + strlen(function) + strlen(filename) + strlen(format) | 
| 1029 | modct++ | 
| 1030 | ret = ddebug_add_module(iter_start, n, modname) | 
| 1033 | n = 0 | 
| 1034 | modname = These fields are used to drive the user interface* for selecting and displaying debug callsites. | 
| 1035 | iter_start = iter | 
| 1037 | n++ | 
| 1039 | ret = ddebug_add_module(iter_start, n, modname) | 
| 1043 | ddebug_init_success = 1 | 
| 1044 | vpr_info("%d modules, %d entries and %d bytes in ddebug tables, %d bytes in (readonly) verbose section\n", modct, entries, (int)(modct * sizeof(structddebug_table)), verbose_bytes + (int)(__stop___verbose - __start___verbose)) | 
| 1049 | If ddebug_setup_string[0] != '\0' Then | 
| 1050 | pr_warn("ddebug_query param name is deprecated, change it to dyndbg\n") | 
| 1051 | ret = handle multiple queries in query string, continue on error, returnlast error or number of matching callsites. Module name is eitherin param (for boot arg) or perhaps in query string. | 
| 1052 | If ret < 0 Then pr_warn("Invalid ddebug boot param %s\n", ddebug_setup_string) | 
| 1066 | cmdline = kstrdup(saved_command_line, GFP_KERNEL) | 
| 1070 | Return 0 | 
| 1072 | out_err : | 
| 1073 | ddebug_remove_all_tables() | 
| 1074 | Return 0 | 
| 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 |