View Single Post

   
  #2 (permalink)  
Old 01-16-2008, 08:42 PM
pai
 
Posts: n/a
Default Re: debugging kernel module

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