Difference between revisions of "Debugging by printing"
From eLinux.org
Peter Huewe (Talk | contribs) (Added note to get started.) |
Peter Huewe (Talk | contribs) (added some ideas/material) |
||
| Line 1: | Line 1: | ||
| + | ---- | ||
'''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 [[User:Peter_Huewe|me]] | '''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 [[User:Peter_Huewe|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 | ||
| + | |||
| + | Examples - maybe use example module. | ||
| + | |||
| + | |||
| + | References | ||
| + | Linux Kernel Development 3rd Edition | ||
| + | Essential Device Drivers | ||
| + | |||
| + | |||
| + | Links: | ||
| + | http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/printk-formats.txt;hb=HEAD | ||
| + | http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/dynamic-debug-howto.txt;hb=HEAD | ||
Revision as of 19:39, 14 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
Examples - maybe use example module.
References
Linux Kernel Development 3rd Edition
Essential Device Drivers
Links:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/printk-formats.txt;hb=HEAD
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/dynamic-debug-howto.txt;hb=HEAD