]> Pileus Git - ~andy/linux/blobdiff - kernel/sched.c
Merge branches 'tracing/ftrace' and 'tracing/function-graph-tracer' into tracing...
[~andy/linux] / kernel / sched.c
index 9b1e79371c207b37c1617d3f7c0460709a3cc39b..52490bf6b884ab2ce08d0235572c241704903e57 100644 (file)
  */
 #define RUNTIME_INF    ((u64)~0ULL)
 
+DEFINE_TRACE(sched_wait_task);
+DEFINE_TRACE(sched_wakeup);
+DEFINE_TRACE(sched_wakeup_new);
+DEFINE_TRACE(sched_switch);
+DEFINE_TRACE(sched_migrate_task);
+
 #ifdef CONFIG_SMP
 /*
  * Divide a load by a sched group cpu_power : (load / sg->__cpu_power)
@@ -5895,6 +5901,7 @@ void __cpuinit init_idle(struct task_struct *idle, int cpu)
         * The idle tasks have their own, simple scheduling class:
         */
        idle->sched_class = &idle_sched_class;
+       ftrace_graph_init_task(idle);
 }
 
 /*