iter_start = iter; } n++; } ret = ddebug_add_module(iter_start, n, modname); if (ret) goto out_err; ddebug_init_success = 1; vpr_info("%d modules, %d entries and %d bytes in ddebug tables," " %d bytes in (readonly) verbose section\n", modct, entries, (int)( modct * sizeof(struct ddebug_table)), verbose_bytes + (int)(__stop___verbose - __start___verbose)); /* apply ddebug_query boot param, dont unload tables on err */ if (ddebug_setup_string[0] != '\0') { pr_warn("ddebug_query param name is deprecated," " change it to dyndbg\n"); ret = ddebug_exec_queries(ddebug_setup_string, NULL); if (ret < 0) pr_warn("Invalid ddebug boot param %s", ddebug_setup_string); else pr_info("%d changes by ddebug_query\n", ret); } /* now that ddebug tables are loaded, process all boot args * again to find and activate queries given in dyndbg params. * While this has already been done for known boot params, it * ignored the unknown ones (dyndbg in particular). Reusing * parse_args avoids ad-hoc parsing. This will also attempt * to activate queries for not-yet-loaded modules, which is * slightly noisy if verbose, but harmless. */ cmdline = kstrdup(saved_command_line, GFP_KERNEL); parse_args("dyndbg params", cmdline, NULL, 0, 0, 0, &ddebug_dyndbg_boot_param_cb); kfree(cmdline); return 0; out_err: ddebug_remove_all_tables(); return 0;}/* Allow early initialization for boot messages via boot param */early_initcall(dynamic_debug_init); /* Debugfs setup must be done later */fs_initcall(dynamic_debug_init_debugfs);Lines 1001–1048 of 1048. Previous lines
iter_start = iter; } n++; } ret = ddebug_add_module(iter_start, n, modname); if (ret) goto out_err; ddebug_init_success = 1; vpr_info("%d modules, %d entries and %d bytes in ddebug tables," " %d bytes in (readonly) verbose section\n", modct, entries, (int)( modct * sizeof(struct ddebug_table)), verbose_bytes + (int)(__stop___verbose - __start___verbose)); /* apply ddebug_query boot param, dont unload tables on err */ if (ddebug_setup_string[0] != '\0') { pr_warn("ddebug_query param name is deprecated," " change it to dyndbg\n"); ret = ddebug_exec_queries(ddebug_setup_string, NULL); if (ret < 0) pr_warn("Invalid ddebug boot param %s", ddebug_setup_string); else pr_info("%d changes by ddebug_query\n", ret); } /* now that ddebug tables are loaded, process all boot args * again to find and activate queries given in dyndbg params. * While this has already been done for known boot params, it * ignored the unknown ones (dyndbg in particular). Reusing * parse_args avoids ad-hoc parsing. This will also attempt * to activate queries for not-yet-loaded modules, which is * slightly noisy if verbose, but harmless. */ cmdline = kstrdup(saved_command_line, GFP_KERNEL); parse_args("dyndbg params", cmdline, NULL, 0, 0, 0, &ddebug_dyndbg_boot_param_cb); kfree(cmdline); return 0; out_err: ddebug_remove_all_tables(); return 0; } /* Allow early initialization for boot messages via boot param */ early_initcall(dynamic_debug_init); /* Debugfs setup must be done later */ fs_initcall(dynamic_debug_init_debugfs);