Non-determinism and overcount on modern hardware performance counter implementations
Pin: building customized program analysis tools with dynamic instrumentation