summaryrefslogtreecommitdiff
path: root/init/main.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-09-13 09:36:06 -0700
committerArjan van de Ven <arjan@linux.intel.com>2008-10-12 08:07:20 -0700
commitf9b9796ade7609cd62571d38f064e20c77d31281 (patch)
treeab108882f8bb940a4a3c2cc483223fb6791bb473 /init/main.c
parent7cc4e87f912bbefa440a51856b8d076e5d1f554a (diff)
downloadlwn-f9b9796ade7609cd62571d38f064e20c77d31281.tar.gz
lwn-f9b9796ade7609cd62571d38f064e20c77d31281.zip
Add a script to visualize the kernel boot process / time
When optimizing the kernel boot time, it's very valuable to visualize what is going on at which time. In addition, with some of the initializing going asynchronous soon, it's valuable to track/print which worker thread is executing the initialization. This patch adds a script to turn a dmesg into a SVG graph (that can be shown with tools such as InkScape, Gimp or Firefox) and a small change to the initcall code to print the PID of the thread calling the initcall (so that the script can work out the parallelism). Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index 3820323c4c84..27f6bf6108e9 100644
--- a/init/main.c
+++ b/init/main.c
@@ -708,7 +708,7 @@ int do_one_initcall(initcall_t fn)
int result;
if (initcall_debug) {
- printk("calling %pF\n", fn);
+ printk("calling %pF @ %i\n", fn, task_pid_nr(current));
t0 = ktime_get();
}