From: Will Deacon <will.deacon@arm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Jan Kara <jack@suse.cz>,
"mm-commits@vger.kernel.org" <mm-commits@vger.kernel.org>,
"peterz@infradead.org" <peterz@infradead.org>,
"kay@vrfy.org" <kay@vrfy.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: + printk-print-initial-logbuf-contents-before-re-enabling-interrupts.patch added to -mm tree
Date: Wed, 7 May 2014 10:58:50 +0100 [thread overview]
Message-ID: <20140507095850.GC18456@arm.com> (raw)
In-Reply-To: <20140506150553.a12959fd71d83eddcb4b325d@linux-foundation.org>
On Tue, May 06, 2014 at 11:05:53PM +0100, Andrew Morton wrote:
> On Tue, 6 May 2014 14:12:34 +0100 Will Deacon <will.deacon@arm.com> wrote:
> > > > > My opinion is that when you are printing from each and every interrupt
> > > > > which happens so often, then you have a problem and disabling IRQs in
> > > > > printk so that your interrupt doesn't happen that often seems like a poor
> > > > > solution to me. You could as well just ratelimit your debug messages,
> > > > > couldn't you?
> > > >
> > > > My use-case was basically using printk as a debug trace during early boot
> > > > when bringing up Linux on a new CPU core. I don't think ratelimiting would
> > > > be the right thing there, since I really did want as many messages to
> > > > reach the console as possible (which is also why I wrote this patch, not
> > > > just the other one in the series).
> > > OK, I understand. It just seems wrong to me to throttle all interrupts on
> > > the cpu while doing printing just because someone might be doing debug
> > > printing from the interrupt. Sure it's fine as a debug hack but on a
> > > production machine that seems rather counterproductive.
> >
> > Perhaps, but the one time I *really* want printk to be reliable is when I'm
> > using it to debug a problem.
>
> If you're debugging a problem, you're able to alter printk! So perhaps
> one way out of this is some developer-only ifdef to robustify printk
> for particular usage patterns.
Possibly, but I fear we'd incur the wrath of Alan after reading that other
thread. Having a CONFIG_ option or similar to control the amount of printing
we do is very similar to the command-line option Jan proposed in his series.
So, sadly, I think we may as well drop this patch for the time being. The
second patch in the series still applies fine without it and means we can
at least detect when we're dropping messages.
Will
next prev parent reply other threads:[~2014-05-07 9:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 21:22 + printk-print-initial-logbuf-contents-before-re-enabling-interrupts.patch added to -mm tree akpm
2014-05-02 22:46 ` Jan Kara
2014-05-06 12:06 ` Will Deacon
2014-05-06 12:29 ` Jan Kara
2014-05-06 13:12 ` Will Deacon
2014-05-06 13:50 ` Peter Zijlstra
2014-05-06 14:00 ` Jan Kara
2014-05-06 15:00 ` Will Deacon
2014-05-06 20:00 ` Jan Kara
2014-05-07 9:46 ` Will Deacon
2014-05-06 22:05 ` Andrew Morton
2014-05-06 22:05 ` Andrew Morton
2014-05-07 9:58 ` Will Deacon [this message]
2014-05-07 16:41 ` One Thousand Gnomes
2014-05-08 14:34 ` Will Deacon
2014-05-12 17:15 ` Jan Kara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140507095850.GC18456@arm.com \
--to=will.deacon@arm.com \
--cc=akpm@linux-foundation.org \
--cc=jack@suse.cz \
--cc=kay@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.