From patchwork Tue Oct 30 17:05:10 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: 12623 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 5C44C242FB 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 E55EAA18543 for ; Tue, 30 Oct 2012 17:36:30 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so762191iej.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=LPJkzbRdyxfFQH7RP04o/Frj394rUGRTHNns/SZmnzE=; b=NTsZKujaDgc/J4dVtxssdFvkfpMnhI1nEZdFs4QtApqAERHQ7cc0bVuoqd2JKdOoVn B7NfNLiVzQrUlT0EpoDMd1a/d1MdK8vpOeYdvOyKmo7msKv2gvrdmupFrCMdisHV0Biq Q7310hrgRFmqjL/doPbiMdTFg6Smp2H7ZlJSY09gXTkga2hcu0wjL65zm3ZAnvv0TA9t CJJFtHJw+4PfOk6Re1zu6OjBox3Flvq4mynrec2r3AipfIOOXL/SNMWWmiwcUhk8flwm IvoqXFXluDAwVBJjvRcbxckzP04xmDA4rsy2lL1jqQeFfIvEZ4WA0xP87an9BIq1HGp9 6V2w== Received: by 10.50.152.137 with SMTP id uy9mr2177772igb.62.1351618590319; 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 n20csp458711igt; Tue, 30 Oct 2012 10:36:30 -0700 (PDT) Received: by 10.50.184.165 with SMTP id ev5mr2260532igc.32.1351618589843; Tue, 30 Oct 2012 10:36:29 -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 ng8si1350260icb.42.2012.10.30.10.36.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Oct 2012 10:36:29 -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:28 -0600 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) 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 d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 100811FF0026 for ; Tue, 30 Oct 2012 11:32:47 -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 q9UHWUlF208564 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 q9UHVbAx027737 for ; Tue, 30 Oct 2012 11:31:38 -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 q9UHVZRA027426; Tue, 30 Oct 2012 11:31:36 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 4ABEBEBEE2; Tue, 30 Oct 2012 10:05:15 -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 11/14] rcu: split 'rcugp' to each flavor Date: Tue, 30 Oct 2012 10:05:10 -0700 Message-Id: <1351616713-26930-11-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1351616713-26930-1-git-send-email-paulmck@linux.vnet.ibm.com> References: <20121030170454.GA25712@linux.vnet.ibm.com> <1351616713-26930-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12103017-7282-0000-0000-00000E6A0007 X-Gm-Message-State: ALoCoQlmnX6S/HD3bmKs7NHhe0N+vhQXqpUVM91XO97j4U/0TZOuo0jv1RdmzP3b29smhQ10rXFe From: Michael Wang This patch add new 'rcugp' to each flavor's folder, now we could use: 'cat /debugfs/rcu/rsp/rcugp' to get the selected rsp info. Signed-off-by: Michael Wang Signed-off-by: Paul E. McKenney --- kernel/rcutree_trace.c | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c index b6fd147..bbfb6e2 100644 --- a/kernel/rcutree_trace.c +++ b/kernel/rcutree_trace.c @@ -357,6 +357,26 @@ static const struct file_operations rcugp_fops = { .release = single_release, }; +static int new_show_rcugp(struct seq_file *m, void *v) +{ + struct rcu_state *rsp = (struct rcu_state *)m->private; + show_one_rcugp(m, rsp); + return 0; +} + +static int new_rcugp_open(struct inode *inode, struct file *file) +{ + return single_open(file, new_show_rcugp, inode->i_private); +} + +static const struct file_operations new_rcugp_fops = { + .owner = THIS_MODULE, + .open = new_rcugp_open, + .read = seq_read, + .llseek = no_llseek, + .release = seq_release, +}; + static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp) { if (!rdp->beenonline) @@ -465,6 +485,12 @@ static int __init rcutree_trace_init(void) goto free_out; } #endif + + retval = debugfs_create_file("rcugp", 0444, + rspdir, rsp, &new_rcugp_fops); + if (!retval) + goto free_out; + } retval = debugfs_create_file("rcubarrier", 0444, rcudir,