View Single Post

   
  #3 (permalink)  
Old 01-16-2008, 08:42 PM
iam.techy@gmail.com
 
Posts: n/a
Default Re: debugging kernel module

Oh, actually I got the answer for this. Sorry for not sharing that -
Starting kwdb or q4 with -m option includes my modues debug information
into the trace. Or otherwise I could even do add_module <mymod> at kwdb
prompt to add my module's information. This is provided the crash has
happened while module is loaded even if it is dynamic (static is not
really needed).

Thanks.

pai wrote:
> iam.techy@gmail.com wrote:
> > Hi,
> > I have written a DLKM module for hpux version 11i v2 (11.23). Now the
> > machine panics due to some wrong things in my module. Problem is when I
> > load the core through q4 or kwdb or kwdb -q4, I see the stack but I
> > dont see my routines in that.. it just says unknown procedure, although
> > I have compiled my module with debugging on. Following is a sample
> > stack trace I get -

>
> Use 'kcmodule' and change the module state to 'static'. Now try
> your tests to reproduce the panic. You should be able to see
> a proper stack trace in the resulting dump. I assume you already
> know how to add debug information (for data structures/unions etc)
> regarding your module, while using kwdb (see: adddebug).
>
> HTH --vishwas


Reply With Quote