From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755599Ab3JJIFL (ORCPT ); Thu, 10 Oct 2013 04:05:11 -0400 Received: from mail-ea0-f181.google.com ([209.85.215.181]:52549 "EHLO mail-ea0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755285Ab3JJIFG (ORCPT ); Thu, 10 Oct 2013 04:05:06 -0400 Date: Thu, 10 Oct 2013 10:05:01 +0200 From: Ingo Molnar To: "Paul E. McKenney" Cc: Peter Zijlstra , Ingo Molnar , Oleg Nesterov , Linus Torvalds , Thomas Gleixner , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/16] sched/wait: Collapse __wait_event macros -v5 Message-ID: <20131010080501.GA18481@gmail.com> References: <20131008095927.GS3081@twins.programming.kicks-ass.net> <20131008102331.GB8852@gmail.com> <20131008141657.GW5790@linux.vnet.ibm.com> <20131008194718.GD7315@gmail.com> <20131008204056.GR5790@linux.vnet.ibm.com> <20131009032843.GA12970@linux.vnet.ibm.com> <20131009033502.GA14017@linux.vnet.ibm.com> <20131009060806.GC7664@gmail.com> <20131009142123.GT5790@linux.vnet.ibm.com> <20131010025904.GA4891@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131010025904.GA4891@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Paul E. McKenney wrote: > And it now builds, boots, and passes short rcutorture tests, updated > patch below. > > One side-effect is the boot parameters, namely that what used to be > rcutree.blimit=10 is now simply tree.blimit=10. Not a problem for me, I > just made my test scripts probe the source tree and generate the > corresponding format. But is there some straightforward way to get the > name of the "rcu" directory involved? The obvious approach of > "rcu.tree.blimit=10" does not work -- the kernel happily ignores any > such parameter. Hm, that boot option parser attitude is a bit sad - more structure to boot parameters is IMHO a Good Thing. Does it accept : rcu/tree/blimit=10 rcu/tree.blimit=10 type of structure perhaps? > > It looks like I should be able to do something like the following in > kernel/rcu/tree.c to get back the old parameter names: > > MODULE_ALIAS("rcutree"); > #ifdef MODULE_PARAM_PREFIX > #undef MODULE_PARAM_PREFIX > #endif > #define MODULE_PARAM_PREFIX "rcutree." Yeah. ( To keep it simple, the undef should be unnecessary, it's not like anyone can slip in a MODULE_PARAM_PREFIX without you noticing, right? ) > And similarly for rcu/update.c and rcu/torture.c. > > In fact, it looks like I could make rcu/update.c also use either the > "rcutree." or "rcutiny." prefix, depending on which was being built. > > Any thoughts, cautions, or suggestions? Still looks nice to me! Thanks, Ingo