[PATCH 17/20 -v5] Add marker in try_to_wake_up
From: Steven Rostedt
Date:  Wed Jan 23 2008 - 11:05:53 EST
Add markers into the wakeup code, to allow the tracer to
record wakeup timings.
Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
---
 kernel/sched.c |    4 ++++
 1 file changed, 4 insertions(+)
Index: linux-mcount.git/kernel/sched.c
===================================================================
--- linux-mcount.git.orig/kernel/sched.c	2008-01-23 10:27:28.000000000 -0500
+++ linux-mcount.git/kernel/sched.c	2008-01-23 10:27:45.000000000 -0500
@@ -1633,6 +1633,10 @@ out_set_cpu:
 
 out_activate:
 #endif /* CONFIG_SMP */
+	trace_mark(kernel_sched_wakeup,
+		   "p %p rq->curr %p",
+		   p, rq->curr);
+
 	schedstat_inc(p, se.nr_wakeups);
 	if (sync)
 		schedstat_inc(p, se.nr_wakeups_sync);
-- 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/