aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-09-13 12:36:06 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:38:46 -0400
commitaa5d9151f745b6ee6a236a1f109118034277eb92 (patch)
tree3b0660685ba60cf2401e70eba4572ed2691c817d /init/main.c
parent1b7ae37c030a9fbbb5ebbf5d7bbfd7208cf805b7 (diff)
tracing/fastboot: 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 the fastboot asynchronous initcall level, it's very valuable to see which initcall gets run where and when. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index ded1fae965ab..16abba05c826 100644
--- a/init/main.c
+++ b/init/main.c
@@ -711,7 +711,8 @@ int do_one_initcall(initcall_t fn)
711 int result; 711 int result;
712 712
713 if (initcall_debug) { 713 if (initcall_debug) {
714 printk("calling %pF\n", fn); 714 printk("calling %pF", fn);
715 printk(" @ %i\n", task_pid_nr(current));
715 t0 = ktime_get(); 716 t0 = ktime_get();
716 } 717 }
717 718