lkml.org 
[lkml]   [2004]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Print function names during do_initcall debugging
Hi Linus!

Please merge the following patch. It prints __init function names while
all calls are executed at do_initcalls().

--- a/init/main.c 23 Feb 2004 22:50:26 -0000 1.1.1.51
+++ b/init/main.c 9 Mar 2004 22:00:19 -0000
@@ -36,6 +36,7 @@
#include <linux/profile.h>
#include <linux/rcupdate.h>
#include <linux/moduleparam.h>
+#include <linux/kallsyms.h>
#include <linux/writeback.h>
#include <linux/cpu.h>
#include <linux/efi.h>
@@ -495,8 +496,10 @@
for (call = &__initcall_start; call < &__initcall_end; call++) {
char *msg;

- if (initcall_debug)
- printk("calling initcall 0x%p\n", *call);
+ if (initcall_debug) {
+ printk(KERN_DEBUG "Calling initcall 0x%p: ", *call);
+ print_symbol("%s()\n", (unsigned long) *call);
+ }

(*call)();

MfG, JBG

--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.072 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site