Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:dynamic_debug_init

Proto:static int __init dynamic_debug_init(void)

Type:int

Parameter:Nothing

1010  const char * modname = NULL
1012  ret = 0
1013  n = 0 , entries = 0 , modct = 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++
1031  If ret Then Go to out_err
1033  n = 0
1035  iter_start = iter
1037  n++
1039  ret = ddebug_add_module(iter_start, n, modname)
1040  If ret Then Go to out_err
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)
1055  Else pr_info("%d changes by ddebug_query\n", ret)
1066  cmdline = kstrdup(saved_command_line, GFP_KERNEL)
1067  Args looks like "foo=bar,bar2 baz=fuz wiz".
1069  kfree(cmdline)
1070  Return 0
1072  out_err :
1073  ddebug_remove_all_tables()
1074  Return 0