How to get a Linux Kernel Backtrace

You can get a Linux kernel backtrace by adding the call

dump_stack();

at the required location in the code.