From: Jeff Garzik <jgarzik@pobox.com>
To: Tejun Heo <htejun@gmail.com>, Borislav Petkov <bbpetkov@yahoo.de>
Cc: "linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>
Subject: Re: regarding ata_msg_*()
Date: Tue, 27 Jun 2006 00:47:02 -0400 [thread overview]
Message-ID: <44A0B846.4090206@pobox.com> (raw)
In-Reply-To: <449F9427.1080806@gmail.com>
Tejun Heo wrote:
> ATA_MSG_ERR
> ATA_MSG_WARN
> ATA_MSG_INFO
> -------------> all above are enabled by default
> ATA_MSG_DEBUG
> ATA_MSG_VDEBUG
The current ATA_MSG_xxx were best-guesses, and only now, when the
conversion patches begin to be merged, do we see how well those guesses
match with reality.
I do agree that the above list matches the current code, but the
ATA_MSG_xxx and Becker schemes are aimed more at verbosity+severity
levels, than strictly severity levels.
<thinking aloud> For libata, the best mapping might be
0: critical problems (errors)
1: non-critical, recovered problems or "troubling circumstances" (warnings)
2: terse info from exceptional events (probe, hotplug)
3: more verbose info about exceptional events (IDENTIFY hex values as
shown today, sector count, features)
4: terse command-submit tracing
5: terse command-complete tracing
6: verbose hot path
7: function ENTER/EXIT tracing
Thus illustrating the general goals of (a) enabling fine-grained tracing
of specific portions of libata, (b) ordering messages in order of
severity, and (c) ordering messages by likelihood of producing tons of
log spam.
Eventually we can use blktool to turn on terse command-complete tracing
for a single SATA port, and not have to suffer the current log spam and
coarseness that results from using today's #defines.
Jeff
next prev parent reply other threads:[~2006-06-27 4:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-25 12:21 regarding ata_msg_*() Tejun Heo
2006-06-26 7:41 ` Borislav Petkov
2006-06-26 8:00 ` Tejun Heo
2006-06-26 8:34 ` Borislav Petkov
2006-06-27 3:23 ` Tejun Heo
2006-06-27 4:47 ` Jeff Garzik [this message]
2006-06-27 5:03 ` Tejun Heo
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=44A0B846.4090206@pobox.com \
--to=jgarzik@pobox.com \
--cc=bbpetkov@yahoo.de \
--cc=htejun@gmail.com \
--cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).