Re: looking for decent summary of kernel debugging primitives
i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just wanted to bring some sections up to date. there's one section on basic debugging that covers printk() as well as other topics from LDD3 such as printk_ratelimit(), setting the console loglevel and so on.
however, there's obviously more these days -- the "pr_"-prefixed wrappers, dev_dbg() and so on. is there a single source that covers the standard debugging routines in the kernel these days? if not, no big deal, i'll just summarize what i know of.
This may not be relevant to the question that you asked. But there are some good debugging techniques like kprobe,jprobe. There are sample programs in the kernel source under the directory samples/kprobes/. Those examples are very easy to understand and are much powerful than using printk. - Thanks, Vikram
On Mon, May 02, 2011 at 10:31:54PM +0530, Vikram Narayanan wrote:
i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just wanted to bring some sections up to date. there's one section on basic debugging that covers printk() as well as other topics from LDD3 such as printk_ratelimit(), setting the console loglevel and so on.
however, there's obviously more these days -- the "pr_"-prefixed wrappers, dev_dbg() and so on. is there a single source that covers the standard debugging routines in the kernel these days? if not, no big deal, i'll just summarize what i know of.
Don't forget the dynamic printk stuff, that's very powerful stuff that people tend to forget about. good luck, greg k-h
On Mon, 2 May 2011, Greg KH wrote:
On Mon, May 02, 2011 at 10:31:54PM +0530, Vikram Narayanan wrote:
i'm getting ready to teach a basic device drivers course in a couple weeks with someone else's courseware and i just wanted to bring some sections up to date. there's one section on basic debugging that covers printk() as well as other topics from LDD3 such as printk_ratelimit(), setting the console loglevel and so on.
however, there's obviously more these days -- the "pr_"-prefixed wrappers, dev_dbg() and so on. is there a single source that covers the standard debugging routines in the kernel these days? if not, no big deal, i'll just summarize what i know of.
Don't forget the dynamic printk stuff, that's very powerful stuff that people tend to forget about.
i'd already made a note of that. and to the earlier poster, i'm aware of other debugging tools, i was just trying to summarize the variations of simple printing/logging for now. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================
participants (3)
-
Greg KH -
Robert P. J. Day -
Vikram Narayanan