From: Matt Mackall <mpm@selenic.com>
To: Keith Owens <kaos@ocs.com.au>
Cc: Jeff Moyer <jmoyer@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] teach netconsole how to do syslog
Date: Fri, 25 Jun 2004 22:48:39 -0500 [thread overview]
Message-ID: <20040626034838.GF25826@waste.org> (raw)
In-Reply-To: <25929.1088216806@ocs3.ocs.com.au>
On Sat, Jun 26, 2004 at 12:26:46PM +1000, Keith Owens wrote:
> On Fri, 25 Jun 2004 14:11:01 -0500,
> Matt Mackall <mpm@selenic.com> wrote:
> >Yep, we get one UDP packet per printk currently, which works for most
> >things, but not everything. This could be changed to a buffered
> >approach, but that breaks one of my favorite debugging techniques -
> >adding an alphabet soup of single-character printks to trace tricky
> >call paths.
> >
> >So we could add a __printk that doesn't flush to outputs for stuff
> >like the above, or just live with it.
>
> Other way round. Keep printk as is and use a buffered approach for
> printk over netconsole. netconsole gets complete lines which is what
> you want 99.9% of the time. Add __printk or printk_unbuffered for the
> .1% of debugging output that really wants unbuffered output.
I think it's a bit too radical. The only user who cares is netconsole,
and then only when fed to syslogd. Using a client like netcat, the
current behavior is what you want. So while I think this might have
been the way to do it in the first place, changing the behavior of
every printk in the system in a way that might prevent information
from making it to the console in a crash seems like much more trouble
than removing the flush for the few cases that want to do multiple
printks per line and are making a minor mess with syslog. The
non-flushing __printk approach let's us choose when and where we want
to remove flushes.
But my current position is "just live with it".
--
Mathematics is the supreme nostalgia of our time.
prev parent reply other threads:[~2004-06-26 3:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-25 17:57 [patch] teach netconsole how to do syslog Jeff Moyer
2004-06-25 18:39 ` Matt Mackall
2004-06-25 18:47 ` Jeff Moyer
2004-06-25 19:11 ` Matt Mackall
2004-06-26 2:26 ` Keith Owens
2004-06-26 3:48 ` Matt Mackall [this message]
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=20040626034838.GF25826@waste.org \
--to=mpm@selenic.com \
--cc=jmoyer@redhat.com \
--cc=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.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.