Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304056
b: refs/heads/master
c: 4107692
h: refs/heads/master
v: v3
  • Loading branch information
Jim Cromie authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent 4c282ad commit 4679884
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af442399fcf378a21ffe924b182f6d9ee70001ca
refs/heads/master: 4107692760db8160a65347f7bb2fa7fa7bf9b0d1
12 changes: 11 additions & 1 deletion trunk/lib/dynamic_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,8 @@ static int __init dynamic_debug_init(void)
const char *modname = NULL;
char *cmdline;
int ret = 0;
int n = 0;
int n = 0, entries = 0, modct = 0;
int verbose_bytes = 0;

if (__start___verbose == __stop___verbose) {
pr_warn("_ddebug table is empty in a "
Expand All @@ -981,7 +982,12 @@ static int __init dynamic_debug_init(void)
modname = iter->modname;
iter_start = iter;
for (; iter < __stop___verbose; iter++) {
entries++;
verbose_bytes += strlen(iter->modname) + strlen(iter->function)
+ strlen(iter->filename) + strlen(iter->format);

if (strcmp(modname, iter->modname)) {
modct++;
ret = ddebug_add_module(iter_start, n, modname);
if (ret)
goto out_err;
Expand All @@ -996,6 +1002,10 @@ static int __init dynamic_debug_init(void)
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') {
Expand Down

0 comments on commit 4679884

Please sign in to comment.