Index: linux-test.git/kernel/sched.c =================================================================== --- linux-test.git.orig/kernel/sched.c +++ linux-test.git/kernel/sched.c @@ -61,6 +61,7 @@ #include #include #include +#include #include #include @@ -1925,6 +1926,8 @@ context_switch(struct rq *rq, struct tas spin_release(&rq->lock.dep_map, 1, _THIS_IP_); #endif + logdev_record_switch(prev, next); + /* Here we just switch the register state and the stack. */ switch_to(prev, next, prev);