From: Brian Beattie <alchemy@us.ibm.com>
To: Larry Kessler <kessler@us.ibm.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH-RFC] POSIX Event Logging, kernel 2.5.6 & 2.4.18
Date: 14 Mar 2002 11:45:40 -0800 [thread overview]
Message-ID: <1016135141.26466.22.camel@w-beattie1> (raw)
In-Reply-To: <3C8FF7C7.5CA133B0@us.ibm.com>
In-Reply-To: <3C8FF7C7.5CA133B0@us.ibm.com>
On Wed, 2002-03-13 at 17:07, Larry Kessler wrote:
> > Bernd wrote...
> > Of course it is only useful if it is not another framework because this will
> > lead to kernel clutter. So do we want to replace netlink and printk?
>
> I checked and there are nearly 41,000 calls to printk in the 2.5.6
> kernel. Getting every maintainer to change to event logging's write
> functions
> would be impossible. Instead we want to provide enhanced logging
> features
> for new and updated device drivers and other kernel code--more of a
> "slow
> migration over time" approach. We provided the feature that creates
> POSIX
> event records from printks so that System Admins, field service,
> developers
> testing and debugging their code (just to name a few) could still take
> advantage of the new tools provided with the user lib (too numerous to
> mention,
> but see the spec on the website) for handling printk messages.
>
Watching this whole event logging thing for a while, I wonder if a
slightly different approach might not be better. Instead of adding
extra kernel functionality, would it not be possible to define a text
format to messages and some SIMPLE macros, to allow printk's to generate
the desired information.
I understand about POSIX standards, but POSIX standards are not the
infallible word of of the diety of computing and sometimes are
completely bogos. While they do provide a thoughtful plan, they are not
IMHO some holy grail. for silly standards, see the recent stuff about
names for K = 10^6 vs. K= 2^10.
So if one drops strict POSIX compliamce and goes for providing the
information, it maye be possible to provide some formating guidelines
and support to printk and some log analysis tools to provide 99%
solution.
One thing to remember, is that the really hard and important part of
logging is not the part that can be legislated, or automated, it is
making sure that the correct events are reported in a accurate manner,
and this is not a one time job. This being the case, I would rather see
effort expended in rationalizing the current printk's and improving
their use, than adding some new infrastructure that may well be a
perfromance drain and might even be more prone to loss of log messages,
than the current method.
next prev parent reply other threads:[~2002-03-14 19:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-14 1:07 Larry Kessler
2002-03-14 2:32 ` Bernd Eckenfels
2002-03-14 19:45 ` Brian Beattie [this message]
2002-03-15 1:10 ` Larry Kessler
-- strict thread matches above, loose matches on Subject: below --
2002-03-15 17:57 Larry Kessler
2002-03-15 1:17 Larry Kessler
2002-03-12 22:15 Larry Kessler
2002-03-12 22:41 ` Dominik Kubla
2002-03-12 23:02 ` Larry Kessler
2002-03-13 1:10 ` Bernd Eckenfels
2002-03-13 0:33 ` Bernd Eckenfels
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=1016135141.26466.22.camel@w-beattie1 \
--to=alchemy@us.ibm.com \
--cc=kessler@us.ibm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®