Capturing an oops from my buggy kernel module
Hey guys, this is my first post so I'll try to make it a good one!
My setup: VMWare workstation running Ubuntu (Windows host).
I'm working on a kernel module that hooks into netfilter and modifies the behavior of TCP acks (pretty vague huh?!). It works fine for one or two TCP flows but when I have ten or more flows active at one time I get a crash (or a panic, I don't have my mind wrapped around the terminology yet). The crash looks like this: everything freezes and in the right hand corner i see "Numlock on/Numlock off" flashing. The whole thing is pretty much dead
At first I tried debugging using printk. For most bugs I've seen thus far printk seems to work fine, but this one is a bit more tricky. I figured my two options here are:
1.) Capture an oops message
2.) Remote debug using kgdb
I'd like to try the OOPS message first. I realize that because the system dies I need to use a serial console to capture the message. I setup a serial console between my windows host and the Ubuntu Virtual machine.
I generated the panic again from the serial console using wget, but I did not see any OOPS displayed in the console. My question is: How can I get the OOPS to appear on the serial console? Do I have to make some changes to how OOPS messages get logged?
Thanks in advance for any help you can provide!