From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753823AbbEIHYH (ORCPT ); Sat, 9 May 2015 03:24:07 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:36023 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823AbbEIHYF (ORCPT ); Sat, 9 May 2015 03:24:05 -0400 Date: Sat, 9 May 2015 09:24:00 +0200 From: Ingo Molnar To: Len Brown Cc: Borislav Petkov , X86 ML , Linux PM list , "linux-kernel@vger.kernel.org" , Len Brown , Jason Baron , Linus Torvalds , Andrew Morton , Greg Kroah-Hartman Subject: Re: [PATCH 2/2] x86: speed cpu_up by quirking cpu_init_udelay Message-ID: <20150509072400.GB10106@gmail.com> References: <418898b5b9a6d76e7fbbd2af7cc988de1a5a287d.1431066425.git.len.brown@intel.com> <170f6f6e9ac4aa4d8ec1ed5000bee95463897337.1431066425.git.len.brown@intel.com> <20150508083250.GB4137@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Resending my reply with more dyn-debug folks Cc:-ed) * Len Brown wrote: > On Fri, May 8, 2015 at 4:32 AM, Borislav Petkov wrote: > > >> + pr_debug("cpu_init_udelay quirk to %d, was %d", new_udelay, init_udelay); > > > > Can we make this printk(KERN_DEBUG please? > > > > I'd like to be able to slap "debug" on the command line and not > > recompile the kernel. And no, dyndbg="file smpboot.c +p" or > > whatever the syntax is, simply doesn't scale if I want to see all > > debug messages from early boot. Ugh, so I see we have grown this gem some time ago: #if defined(CONFIG_DYNAMIC_DEBUG) /* dynamic_pr_debug() uses pr_fmt() internally so we don't need it here */ #define pr_debug(fmt, ...) \ dynamic_pr_debug(fmt, ##__VA_ARGS__) I didn't even realize it's there and it happend 6 years ago, in a very unintuitively titled commit: 346e15beb534 driver core: basic infrastructure for per-module dynamic debug messages So in what way does that title tell us that all pr_debug() calls are redirected away if CONFIG_DYNAMIC_DEBUG is enabled (which distros do)? So could we instead either add a dyndbg=all variant, or make 'debug' trigger all dynamic_pr_debug() messages? Because this redirection breaks the whole pr_*() abstraction rather fundamentally, dyndebug stealing pr_debug() and hiding debug messages when the user specifically asked for them via 'debug' is pretty nasty IMHO ... Thanks, Ingo