Finding CPU cycles with PMU registers