Skip to content

Hardware Latency Detector (formerly SMI detector)

Jon Masters lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 4 repliesIn review

Changes since the previous version from the cover letter

- Renamed to hwlat_detector
- Followed Andrew's cleanup advice
- Rewritten the documentation

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1hwlat_detector: A system hardware latency detectorDocumentation/hwlat_detector.txt MAINTAINERS drivers/misc/Kconfig +2 more+1309 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] Hardware Latency Detector (formerly SMI detector)

Hi folks,

Please find attached my second re-write of the SMI detector, now called the Hardware Latency Detector. This is a loadable module that grabs the CPU for configurable periods of time (all under stop_machine()) and samples the TSC looking for discontinuity. If observed latencies exceed a threshold (for example caused by an System Management Interrupt or similar) then the event is recorded in a global ring_buffer, readable via debugfs.

The previous version was too x86-centric, since there is no reason one could not also use this newly renamed hwlat_detector on any supported platform with some kind of underlying firmware/virtualization issues effecting observable system latency measurements.

Thanks to akpm and others for feedback comments so far.

Changes since the previous version:

- Renamed to hwlat_detector
- Followed Andrew's cleanup advice
- Rewritten the documentation

Jon.