Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    6

    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.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Hi,

    There is kernel debugging available, although if not already built into your kernel, you might need to recompile it. Check out some succinctly explained techniques on kernel debugging here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •