CONFIG_DEBUG_HARD_LOCKS is cool but ruins real-time guarantees
When CONFIG_DEBUG_HARD_LOCKS is enabled, the lock dependency engine
(CONFIG_LOCKDEP) which helps in tracking down deadlocks and other
locking-related issues is also enabled for Dovetail’s hard
locks,
which underpins most of the serialization mechanisms the EVL core
uses.
This is nice as it has the lock validator monitor the hard spinlocks
EVL uses too. However, this comes with a high price latency-wise:
seeing hundreds of microseconds spent in the validator with hard
interrupts off from time to time is not uncommon. Running the latency
monitoring utility (aka latmus) which is part of libevl in this
configuration should give you pretty ugly numbers.
In short, it is fine enabling CONFIG_DEBUG_HARD_LOCKS for debugging
some locking pattern in EVL, but you won’t be able to meet real-time
requirements at the same time in such configuration.
Last modified: Wed, 25 Nov 2026 18:51:17 +0100