Open DasIch opened 8 years ago
We should consider using hardware performance counters for this. They're not accessible on OS X (without turning off SIP and compiling an Intel kernel extension) but Linux has an API (perf_event_open
) that could be used.
The current implementation is implemented to avoid timing and cache based side-channels to the best of my knowledge. Unfortunately there are no tests for this at all.
It would be great to find a way to give some guarantees using automated tests for this.