From: Michael Wang Date: Mon, 8 Oct 2012 08:59:17 +0000 (+0800) Subject: rcu: split 'rcuboost' to each flavor X-Git-Tag: next-20121029~33^2^6~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1baed69bd38c918e213519f7cdb3a5f820c1dac0;p=karo-tx-linux.git rcu: split 'rcuboost' to each flavor This patch add new 'rcuboost' to each flavor's folder, now we could use: 'cat /debugfs/rcu/rsp/rcuboost' to get the selected rsp info. Signed-off-by: Michael Wang Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c index 8b03bfbf2711..b6fd147efb1a 100644 --- a/kernel/rcutree_trace.c +++ b/kernel/rcutree_trace.c @@ -239,7 +239,7 @@ static const struct file_operations rcu_node_boost_fops = { .owner = THIS_MODULE, .open = rcu_node_boost_open, .read = seq_read, - .llseek = seq_lseek, + .llseek = no_llseek, .release = single_release, }; @@ -456,6 +456,15 @@ static int __init rcutree_trace_init(void) rspdir, rsp, &new_rcubarrier_fops); if (!retval) goto free_out; + +#ifdef CONFIG_RCU_BOOST + if (rsp == &rcu_preempt_state) { + retval = debugfs_create_file("rcuboost", 0444, + rspdir, NULL, &rcu_node_boost_fops); + if (!retval) + goto free_out; + } +#endif } retval = debugfs_create_file("rcubarrier", 0444, rcudir,