You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The perf_event_mmap_page structure permits direct access to hardware performance monitoring counters, via the index field, protected by a sequence lock. We could use this to provide extremely light-weight measurement APIs.
(I have never tried this, but @eddybsays they're going to try it out.)
The text was updated successfully, but these errors were encountered:
tl;dr: SeqLock code like that shown in the rdpmc example code on the perf_event_open man page, use non-atomic speculative racing loads, which are UB in Rust. They'll need to become atomic reads, at least.
The
perf_event_mmap_page
structure permits direct access to hardware performance monitoring counters, via theindex
field, protected by a sequence lock. We could use this to provide extremely light-weight measurement APIs.(I have never tried this, but @eddyb says they're going to try it out.)
The text was updated successfully, but these errors were encountered: