I am trying to debug some functions in my code. Unfortunately, gdb is not available in the system, so debugging is done, at the moment, by printk messages (it is a linux kernel driver).
There is a function being called with some parameters. I would like to know if it’s possible to know who and how called the function.
Thanks.
You can enable stack dumping to see the stack and the call trace. You can use the function dump_stack() to print the stack and the call trace on the default console.
Have a look at :