Add marker into context_switch to record the prev and next tasks. Signed-off-by: Steven Rostedt --- kernel/sched.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-mcount.git/kernel/sched.c =================================================================== --- linux-mcount.git.orig/kernel/sched.c 2008-01-23 10:26:11.000000000 -0500 +++ linux-mcount.git/kernel/sched.c 2008-01-23 10:27:25.000000000 -0500 @@ -1933,6 +1933,8 @@ context_switch(struct rq *rq, struct tas struct mm_struct *mm, *oldmm; prepare_task_switch(rq, prev, next); + trace_mark(kernel_sched_schedule, + "prev %p next %p", prev, next); mm = next->mm; oldmm = prev->active_mm; /* -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/