From patchwork Mon Apr 23 16:15:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 8047 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3D04723E00 for ; Mon, 23 Apr 2012 16:17:18 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id E6442A1809D for ; Mon, 23 Apr 2012 16:17:17 +0000 (UTC) Received: by yhpp61 with SMTP id p61so7734017yhp.11 for ; Mon, 23 Apr 2012 09:17:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-content-scanned:x-cbid:x-gm-message-state; bh=EIHRsqfg1njtZXzpgJHGjUP9rmo/81bJmeEIM/G+lPo=; b=Buw/WM17GSAvddzzinftHcXu91LJ3sJKJeRMBBFgxk1alhBoi1HTKZ4AfJWKzCMBv9 cr1uBSS2hciBOkNSQe9klrI2kbYvFh0A3u0bktKwzMLs4wD2D8YV8dC9ICQc2QYaAYtP jCXkGj8hpeNiNqP5ja3zOdXlj5PGd0C+wx4c0JWBzFUIDnhb4FAAvwZGlC2NTAkgdrny VRKdVXDIf82i/a2swjiJ7JG0sRyZFiZW1GkCWENolnqd/uV/clJiH9Tjzf51KyVlvw0s Vl1rFYWNpf6fFQo5Z/fFsejHSMo9oYCRmytxjUX9fZHH8UEobRu0yWzcL+IjaHxkYZJp HNoA== Received: by 10.50.17.201 with SMTP id q9mr7155326igd.19.1335197837213; Mon, 23 Apr 2012 09:17:17 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.137.198 with SMTP id x6csp123679ibt; Mon, 23 Apr 2012 09:17:16 -0700 (PDT) Received: by 10.182.40.7 with SMTP id t7mr2142450obk.55.1335197836486; Mon, 23 Apr 2012 09:17:16 -0700 (PDT) Received: from e35.co.us.ibm.com (e35.co.us.ibm.com. [32.97.110.153]) by mx.google.com with ESMTPS id m2si8663436obd.107.2012.04.23.09.17.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Apr 2012 09:17:16 -0700 (PDT) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.153 as permitted sender) client-ip=32.97.110.153; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.153 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Apr 2012 10:17:08 -0600 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Apr 2012 10:16:36 -0600 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 8D3C53E40048; Mon, 23 Apr 2012 10:16:33 -0600 (MDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q3NGGDxF180724; Mon, 23 Apr 2012 10:16:13 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q3NGG9fx011572; Mon, 23 Apr 2012 10:16:11 -0600 Received: from paulmck-ThinkPad-W500 ([9.47.24.152]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q3NGG3c5011175; Mon, 23 Apr 2012 10:16:04 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 381FBE523C; Mon, 23 Apr 2012 09:16:03 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@polymtl.ca, josh@joshtriplett.org, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, eric.dumazet@gmail.com, darren@dvhart.com, fweisbec@gmail.com, patches@linaro.org, "Paul E. McKenney" , "Paul E. McKenney" Subject: [PATCH RFC tip/core/rcu 1/4] rcu: Add RCU_FAST_NO_HZ tracing for idle exit Date: Mon, 23 Apr 2012 09:15:58 -0700 Message-Id: <1335197761-6577-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <20120423161539.GA6467@linux.vnet.ibm.com> References: <20120423161539.GA6467@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12042316-6148-0000-0000-000005410DF2 X-Gm-Message-State: ALoCoQkLkQQ+WUqN6ekxQqHzK5qEme5rZJl/k4FTfCBSW5547qDVL46BKyAykuLHIYovTBj5bwXD From: "Paul E. McKenney" Traces of rcu_prep_idle events can be confusing because rcu_cleanup_after_idle() does no tracing. This commit therefore adds this tracing. Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney --- include/trace/events/rcu.h | 1 + kernel/rcutree_plugin.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h index 3370997..aaa55e1 100644 --- a/include/trace/events/rcu.h +++ b/include/trace/events/rcu.h @@ -292,6 +292,7 @@ TRACE_EVENT(rcu_dyntick, * "More callbacks": Still more callbacks, try again to clear them out. * "Callbacks drained": All callbacks processed, off to dyntick idle! * "Timer": Timer fired to cause CPU to continue processing callbacks. + * "Cleanup after idle": Idle exited, timer canceled. */ TRACE_EVENT(rcu_prep_idle, diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index c023464..1e561ab 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h @@ -2085,6 +2085,7 @@ static void rcu_prepare_for_idle_init(int cpu) static void rcu_cleanup_after_idle(int cpu) { hrtimer_cancel(&per_cpu(rcu_idle_gp_timer, cpu)); + trace_rcu_prep_idle("Cleanup after idle"); } /*