Linux freezes need to debug
I have a device driver that hooks into the VFS. The driver basically intercepts the VFS calls, logs them to disk and then calls the appropriate file system call.
This effectively traces the file system calls so it can then be replayed and what not.
For large calls the machine freezes. I have print statements in every method in the driver but I am not able to tell where exactly it freezes and whether is a deadlock or some other error.
My question is what is the best possible way to debug this. Can I turn on some global kernel logging? or is there a better known method of doing such kind of debugging?
Thanks in advance.