From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765276AbYA3VMA (ORCPT ); Wed, 30 Jan 2008 16:12:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758481AbYA3VF6 (ORCPT ); Wed, 30 Jan 2008 16:05:58 -0500 Received: from ms-smtp-01.nyroc.rr.com ([24.24.2.55]:51398 "EHLO ms-smtp-01.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758061AbYA3VFi (ORCPT ); Wed, 30 Jan 2008 16:05:38 -0500 Message-Id: <20080130210527.497782210@goodmis.org> References: <20080130210357.927754294@goodmis.org> User-Agent: quilt/0.46-1 Date: Wed, 30 Jan 2008 16:04:14 -0500 From: Steven Rostedt To: LKML Cc: Ingo Molnar , Linus Torvalds , Andrew Morton , Peter Zijlstra , Christoph Hellwig , Mathieu Desnoyers , Gregory Haskins , Arnaldo Carvalho de Melo , Thomas Gleixner , Tim Bird , Sam Ravnborg , "Frank Ch. Eigler" , Jan Kiszka , John Stultz , Arjan van de Ven , Steven Rostedt Subject: [PATCH 17/23 -v8] Add marker in try_to_wake_up Content-Disposition: inline; filename=add-markers-to-wakeup.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add markers into the wakeup code, to allow the tracer to record wakeup timings. Signed-off-by: Steven Rostedt --- kernel/sched.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: linux-mcount.git/kernel/sched.c =================================================================== --- linux-mcount.git.orig/kernel/sched.c 2008-01-30 15:26:37.000000000 -0500 +++ linux-mcount.git/kernel/sched.c 2008-01-30 15:35:02.000000000 -0500 @@ -1885,6 +1885,10 @@ static int try_to_wake_up(struct task_st 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); @@ -2026,6 +2030,10 @@ void fastcall wake_up_new_task(struct ta p->sched_class->task_new(rq, p); inc_nr_running(p, rq); } + trace_mark(kernel_sched_wakeup_new, + "p %p rq->curr %p", + p, rq->curr); + check_preempt_curr(rq, p); #ifdef CONFIG_SMP if (p->sched_class->task_wake_up) --