Linux Device Driver example for dump_stack() to print the stack trace of module loading

One of the useful options in debugging is to print the call trace/stack trace. Linux kernel provides a function to print the stack trace: dump_stack().

Calling dump_stack() function will print the stack trace at that point.

Code:

Output:

Comments

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto