aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree_trace.c
diff options
context:
space:
mode:
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;
446 446
447static int __init rcutree_trace_init(void) 447static int __init rcutree_trace_init(void)
448{ 448{
449 struct rcu_state *rsp;
449 struct dentry *retval; 450 struct dentry *retval;
451 struct dentry *rspdir;
450 452
451 rcudir = debugfs_create_dir("rcu", NULL); 453 rcudir = debugfs_create_dir("rcu", NULL);
452 if (!rcudir) 454 if (!rcudir)
453 goto free_out; 455 goto free_out;
454 456
457 for_each_rcu_flavor(rsp) {
458 rspdir = debugfs_create_dir(rsp->name, rcudir);
459 if (!rspdir)
460 goto free_out;
461 }
462
455 retval = debugfs_create_file("rcubarrier", 0444, rcudir, 463 retval = debugfs_create_file("rcubarrier", 0444, rcudir,
456 NULL, &rcubarrier_fops); 464 NULL, &rcubarrier_fops);
457 if (!retval) 465 if (!retval)