Issue
I have a kernel with KDB compiled in. I can trigger it using /proc/sysrq-trigger
and all, but I would like to be able to enter KDB explicitly from the kernel code without having to ressort to a kernel panic which will mess my system up. Something like:
if (interesting_condition)
enter_kdb();
Is there a similar function in the kernel or a better way to trigger KDB from it than doing a page fault?
Solution
KDB_ENTER()
As simple as that.
Answered By - ugoren Answer Checked By - Terry (WPSolving Volunteer)