22 Jun 2012 14:23
dynamic debug
Joe, Jim, Jason, Joe's conversion of mac80211 to pr_debug() was pretty much a disaster, now people have to first select what they want in Kconfig, and then still enable dynamic debug in debugfs... That doesn't make any sense at all, and requires teaching everybody new tricks, so I'm basically reverting it for now in favour of pr_info() instead of pr_debug(). I'd actually not mind using pr_debug() if it meant we could get rid of all the Kconfig symbols, but that's not possible. The biggest problem here really is that the dynamic debug infrastructure lets us enable messages at runtime, which is great, but the granularity is useless since you only have these possibilities: * module name * file name * function name * line number * format string match The module is obviously way too broad for most modules, and the others are way too fine-grained. To actually make it useful, there needs to be a "key" that you can use, e.g. in mac80211 I could do DECLARE_DYNDBG_KEY(ps); and in some C file, I'd have to do the matching DEFINE_DYNDBG_KEY(ps), similar to how tracing works.(Continue reading)
RSS Feed