Skip to content

Commit

Permalink
Also capture initcall timings from module loading!
Browse files Browse the repository at this point in the history
  • Loading branch information
ahkok committed Mar 27, 2012
1 parent 5a23a21 commit 56d06c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions svg.c
Expand Up @@ -724,8 +724,13 @@ void svg_do_initcall(int count_only)

c = sscanf(l, "[%lf] initcall %s %*s %d %*s %d %*s",
&t, func, &ret, &usecs);
if (c != 4)
continue;
if (c != 4) {
/* also parse initcalls done by module loading */
c = sscanf(l, "[%lf] initcall %s %*s %*s %d %*s %d %*s",
&t, func, &ret, &usecs);
if (c != 4)
continue;
}

/* chop the +0xXX/0xXX stuff */
while(func[z] != '+')
Expand Down

0 comments on commit 56d06c7

Please sign in to comment.