Debugging FreeBSD kernel

Hi,

I am using FB FreeBSD in a Xen environment. I am working on a feature in the kernel and I noticed that booting up of the system suddenly slows down. The system does not hang though (it does not reach the console either). I am using a multi-core multi-threaded system and I am unable to break into ddb after the threads are spawned. I was wondering if there was way to get 'top' style output in kernel when the system is booting up to check the status of the background processes.

Thanks
 
Thank you for pointing out the link. I can enable the debugger and start the kernel debugging. However I have smp enabled and I am running on multi-core machine. So even if I am able to set a break point, it doesn't stop at the console but it keeps continuing. I also suspect it's not a foreground process that's slowing it down but a background process. I am essentially looking for programmatically having "top" output in kernel code :)[ Not sure if there is any call to achieve this]

Thanks
Arvind
 
Back
Top