Can hardware performance counters be trusted?
ATOM: a system for building customized program analysis tools