函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dynamic_debug.c Create Date:2022-07-27 08:14:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dynamic_debug_init

函数原型:static int __init dynamic_debug_init(void)

返回类型:int

参数:

1010  const char * modname = NULL
1012  ret等于0
1013  n等于0, entries等于0, modct等于0
1014  verbose_bytes等于0
1016  如果__start___verbose恒等于__stop___verbose
1017  打印警告信息("_ddebug table is empty in a CONFIG_DYNAMIC_DEBUG build\n")
1018  返回: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 iter小于__stop___verbose循环
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  如果ret则转到:out_err
1033  n等于0
1035  iter_start等于iter
1037  n自加
1039  ret等于ddebug_add_module(iter_start, n, modname)
1040  如果ret则转到: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  如果ddebug_setup_string[0]不等于'\0'则
1050  打印警告信息("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  如果ret小于0则打印警告信息("Invalid ddebug boot param %s\n", ddebug_setup_string)
1055  否则打印信息("%d changes by ddebug_query\n", ret)
1066  cmdline等于kstrdup(saved_command_line, GFP_KERNEL)
1067  解析参数
1069  kfree(cmdline)
1070  返回:0
1072  out_err :
1073  ddebug_remove_all_tables()
1074  返回:0