I am developing a program which causes deadlocks. And I want Ubuntu to warn about all the deadlocks in the kernel, so I can know if my program succeeds. It's required that kernel can detect deadlocks automatically. And https://stackoverflow.com/questions/20892822/how-to-use-lockdep-feature-in-linux-kernel-for-deadlock-detection says that I should enable CONFIG_LOCKDEP and CONFIG_PROVE_LOCKING in .config
. However, CONFIG_LOCKDEP and CONFIG_PROVE_LOCKING both depend on CONFIG_DEBUG_LOCK_ALLOC. When I enable these three options and compile, it gives me this error:
Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible with the CDDL license and will prevent the module linking stage from succeeding. You must rebuild your kernel without this option enabled.
How should I solve this?
0 Answers