linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Another libata TODO item
@ 2005-08-24  6:17 Jeff Garzik
  2005-08-24  7:41 ` Christoph Hellwig
       [not found] ` <200508242304.22998.petkov@uni-muenster.de>
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Garzik @ 2005-08-24  6:17 UTC (permalink / raw)
  To: linux-ide@vger.kernel.org; +Cc: Linux Kernel


Difficulty:  beginner / intermediate

Modern network drivers have a per-NIC list of debugging messages that 
can be enabled/disabled at runtime, implemented as a bitmask named 
'msg_enable' in each driver.  VERY useful for tracing specific events 
during debugging.  grep for 'msg_enable', 'netif_msg_', and 'NETIF_MSG_'.

To make libata debugging easier and more fine-grained, we should convert 
DPRINTK/VPRINTK calls in libata to code that looks like

	if (ata_msg_xxx(ap->msg_enable))
		printk(...)

The task involves:

* reviewing net driver msg_enable usage
* reviewing original netif_msg documentation by Donald Becker, at 
(scroll down)
http://www.scyld.com/pipermail/vortex/2001-November/001426.html

* designing a sliding scale of ever-more-verbose classes of messages, 
for libata and libata drivers
* design a method by which userspace may change the per-port msg_enable 
variable in libata

* implement the sliding scale as ATA_MSG_xxx / ata_msg_xxx()
* add msg_enable to struct ata_port
* implement method of setting ap->msg_enable via userspace
* convert messages in libata-core/libata-scsi
* convert messages in each driver
* add 'debug' module option to each driver, in a manner that duplicates 
net driver module options
* test!



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-08-28  6:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24  6:17 Another libata TODO item Jeff Garzik
2005-08-24  7:41 ` Christoph Hellwig
2005-08-24  7:51   ` Jeff Garzik
2005-08-24 16:15     ` Roland Dreier
2005-08-24 16:53       ` Jeff Garzik
2005-08-24 17:19         ` Roland Dreier
2005-08-24 17:24           ` Jeff Garzik
     [not found] ` <200508242304.22998.petkov@uni-muenster.de>
2005-08-25 16:36   ` [RFC] libata debugging Borislav Petkov
2005-08-28  6:40     ` Borislav Petkov

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).