We may be running in a Virtual Machine which may not fully support
hardware performance counters. If the MPERF counter somehow ends up
at zero, return an error and fail gracefully instead of panicing.
Sponsored by: Google
Suggested by: Jim Mattson <jmattson@google.com>
Suggested by: jrtc27 (split out this part)