aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_trace.c
diff options
context:
space:
mode:
authorMichael Wang <wangyun@linux.vnet.ibm.com>2012-09-20 08:51:02 +0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-11-08 11:50:14 -0800
commit573bcd40d221bd6d7cebf27dee120bd242f5feb5 (patch)
treeef774ec2f2e21913963671d3a027e48c9ba33c8f /kernel/rcutree_trace.c
parentrcu: Instrument synchronize_rcu_expedited() for debugfs tracing (diff)
downloadlinux-dev-573bcd40d221bd6d7cebf27dee120bd242f5feb5.tar.xz
linux-dev-573bcd40d221bd6d7cebf27dee120bd242f5feb5.zip
rcu: Create directory for each flavor of rcu
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 <wangyun@linux.vnet.ibm.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_trace.c')
-rw-r--r--kernel/rcutree_trace.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c
index 693513bc50e6..62223a27f985 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)