Launch the boot tracing inside the initcall_debug area. Old printk
have not been removed to keep the old way of initcall tracing for
backward compatibility.
[ mingo@elte.hu: resolved conflicts ]
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
ktime_t t0, t1, delta;
char msgbuf[64];
int result;
ktime_t t0, t1, delta;
char msgbuf[64];
int result;
- printk("calling %pF", fn);
- printk(" @ %i\n", task_pid_nr(current));
+ it.caller = task_pid_nr(current);
+ it.func = fn;
+ printk("calling %pF @ %i\n", fn, it.caller);
if (initcall_debug) {
t1 = ktime_get();
delta = ktime_sub(t1, t0);
if (initcall_debug) {
t1 = ktime_get();
delta = ktime_sub(t1, t0);
-
- printk("initcall %pF returned %d after %Ld msecs\n",
- fn, result,
- (unsigned long long) delta.tv64 >> 20);
+ it.result = result;
+ it.duration = (unsigned long long) delta.tv64 >> 20;
+ printk("initcall %pF returned %d after %Ld msecs\n", fn,
+ result, it.duration);
+ trace_boot(&it);
smp_prepare_cpus(setup_max_cpus);
do_pre_smp_initcalls();
smp_prepare_cpus(setup_max_cpus);
do_pre_smp_initcalls();
smp_init();
sched_init_smp();
smp_init();
sched_init_smp();