title: How to debug the init_module() call of a Linux kernel module?
body: <p>I am doing first steps into Linux kernel development.
  I have some code producing a <code>.ko</code> kernel module that I install with <code>insmod</code>. I would like a way to debug what happens when I install the module but I am facing some difficulties.</p>
  
  <ol>
  <li><p>I need to debug the call to <code>init_module</code>.  Is this function called when I run <code>insmode</code> ?</p></li>
  <li><p>I try to use <code>insmod "/my/url/fil.ko" -m</code> to debug what happens but each time I got error <code>-1 Unknown symbol in module</code> while in <code>/cat/log/message</code> I can see the error <code>unknown parameter -m</code></p></li>
  <li><p>Do you know if there is a way to debug with GDB?</p></li>
  </ol>