From patchwork Tue Oct 30 17:05:00 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: 12624 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 CEF4C23F56 for ; Tue, 30 Oct 2012 17:36:31 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 63CB2A18FF9 for ; Tue, 30 Oct 2012 17:36:31 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so762202iej.11 for ; Tue, 30 Oct 2012 10:36:30 -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=LumiBv7SEAm1PrNYsau3F0WK6MmY1+A9Mn1Tovfh8dk=; b=KUr5MSqKpgbncs1y+yuBd7MsX7pkW0iFBs5gH+OMPxMyG7kqRTNcoSHw5dk0V8RY4d ZSOGy7jNKIQ3FbNciwlMTzx0/tjejuy5F0jtDQfOf7TFO5hfji7ZKykk7s4arbWxoMGq YQ6YDJrw3LOXbmUvrYe/HFr0RLMCo69MI0Q6G6CbtTFLNO7MuuGOAfKhnv3LZLOeU+kS nCZpOsMOW/ds50fXoOgIVATd9Z39GcuB81IIfL1Wg27TdcGGZK9lpKOJLRf5rGU5hvlU h8tjq2HsMU/cV/Wg8lUxfR6ylgT0NYFcvL5Sh/nEBisaXpbtY/nrQPpJNJv5kvz3eBOG He4A== Received: by 10.50.91.195 with SMTP id cg3mr2213625igb.57.1351618590787; Tue, 30 Oct 2012 10:36:30 -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.50.67.148 with SMTP id n20csp458716igt; Tue, 30 Oct 2012 10:36:30 -0700 (PDT) Received: by 10.50.46.226 with SMTP id y2mr2173346igm.62.1351618590317; Tue, 30 Oct 2012 10:36:30 -0700 (PDT) Received: from e31.co.us.ibm.com (e31.co.us.ibm.com. [32.97.110.149]) by mx.google.com with ESMTPS id vi5si10015474igb.66.2012.10.30.10.36.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Oct 2012 10:36:30 -0700 (PDT) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.149 as permitted sender) client-ip=32.97.110.149; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.149 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Oct 2012 11:36:29 -0600 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Oct 2012 11:32:54 -0600 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id E94A13E40052 for ; Tue, 30 Oct 2012 11:32:44 -0600 (MDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9UHWUWu101238 for ; Tue, 30 Oct 2012 11:32:33 -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 q9UHVgkB028742 for ; Tue, 30 Oct 2012 11:31:43 -0600 Received: from paulmck-ThinkPad-W500 (sig-9-49-139-14.mts.ibm.com [9.49.139.14]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q9UHVbtl027815; Tue, 30 Oct 2012 11:31:38 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 71D00EBE99; Tue, 30 Oct 2012 10:05:14 -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, edumazet@google.com, darren@dvhart.com, fweisbec@gmail.com, sbw@mit.edu, patches@linaro.org, Michael Wang , "Paul E. McKenney" Subject: [PATCH tip/core/rcu 01/14] rcu: Create directory for each flavor of rcu Date: Tue, 30 Oct 2012 10:05:00 -0700 Message-Id: <1351616713-26930-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <20121030170454.GA25712@linux.vnet.ibm.com> References: <20121030170454.GA25712@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12103017-7282-0000-0000-00000E6A0009 X-Gm-Message-State: ALoCoQmvxfKAwFHO5lltkOP/i3GqARCmnOBvgVrjNX7FnjCT0u008Q0z8npvdQWmc9Jx3tdaGw9x From: Michael Wang This patch will create subdirectory according to each flavor of rcu, the new structure will be: /debugfs/rcu/ -> rsp_0 -> rsp_1 -> ... So we can go to '/debugfs/rcu/rsp_0' and get the cpu info of rsp_0 there. The flavors of RCU are currently rcu_bh, rcu_preempt, and rcu_sched. Signed-off-by: Michael Wang Signed-off-by: Paul E. McKenney --- kernel/rcutree_trace.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c index 693513b..62223a2 100644 --- a/kernel/rcutree_trace.c +++ b/kernel/rcutree_trace.c @@ -446,12 +446,20 @@ static struct dentry *rcudir; static int __init rcutree_trace_init(void) { + struct rcu_state *rsp; struct dentry *retval; + struct dentry *rspdir; rcudir = debugfs_create_dir("rcu", NULL); if (!rcudir) goto free_out; + for_each_rcu_flavor(rsp) { + rspdir = debugfs_create_dir(rsp->name, rcudir); + if (!rspdir) + goto free_out; + } + retval = debugfs_create_file("rcubarrier", 0444, rcudir, NULL, &rcubarrier_fops); if (!retval)