How to use lockdep feature in linux kernel for deadlock detection

前端 未结 2 730
野性不改
野性不改 2020-12-03 14:50

I have a linux kernel driver and a user app that interacts with it. The kernel driver has a deadlock in it. I came accross this feature in the linux kernel called \"lockdep\

2条回答
  •  无人及你
    2020-12-03 15:47

    There is not much to it – the lockdep code will simply print a description of the situation and a stack backtrace to the kernel log when it encounters a locking sequence that potentially deadlocks. You just have to watch your kernel output (via dmesg or serial line or whatever you use).

    The lockdep code debugs only locks, it can not warn you about deadlocks that arise from something else.

提交回复
热议问题