This is an old revision of the document!
The latency-tracker project is a kernel module designed to track latencies between two specified events. If the latency between the two events is longer than the chosen threshold, then a callback action is executed. Several specific trackers that use this approach are available via the project's GitHub (link below), such as a tracker to measure task wakeup latency and a tracker to measure how long a task has been scheduled out. The latency-tracker is designed to function quickly and correctly in highly concurrent environments and it can also be called from IRQ and NMI handlers.