Re: [PATCH 0/2] small xhci cleanups

From: Roland Dreier
Date: Thu Mar 18 2010 - 17:50:31 EST


> "On" or "off" doesn't really help when you're trying to debug different
> parts of the driver. If you're trying to debug a command, messages
> about wrapping rings or enqueueing transfers doesn't really matter.

For this debugging stuff, you could look at using the trace events
infrastructure, which gives very fine control over what output is
enabled and overall is pretty awesome. You can look in
include/trace/events for examples, eg look at
include/trace/events/ext4.h and then look in fs/ext4 to see where
trace_ext4_xxx() functions get called.

- R.
--
Roland Dreier <rolandd@xxxxxxxxx>
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/