Difference between revisions of "Debugging by printing"

From eLinux.org
Jump to: navigation, search
Line 20: Line 20:
== References ==
== References ==
* Linux Kernel Development 3rd Edition
* [[Linux Kernel Development - by Robert Love|Linux Kernel Development]],  Robert Love, 3rd Edition, Chapter 18 Debugging
* Essential Device Drivers
* Essential Device Drivers

Revision as of 14:52, 15 June 2011

Note: This article is currently only a draft and is a part of a series of articles I'm going to publish the next few months - if you want to contribute to it, please feel free to. However it would be nice if you could coordinate your efforts with me

What this article will be about - ideas

  • printk format
  • Debug/log levels - dmesg -n /proc/sys/kernel/printk
  • printk_ratelimited
  • dynamic debug, pr_debug and dev_dbg
  • pr_warn and family - see printk.h for details
  • early_printk
  • printascii, printch and printhex (on ARM only?)
  • /dev/kmsg
  • Examples - maybe use example module.


External links