|
@@ -245,7 +245,7 @@ try_again:
|
|
* based cpu-clock-tick sw counter, which
|
|
* based cpu-clock-tick sw counter, which
|
|
* is always available even if no PMU support:
|
|
* is always available even if no PMU support:
|
|
*/
|
|
*/
|
|
- if (attr->type == PERF_TYPE_HARDWARE
|
|
|
|
|
|
+ if (err == ENOENT && attr->type == PERF_TYPE_HARDWARE
|
|
&& attr->config == PERF_COUNT_HW_CPU_CYCLES) {
|
|
&& attr->config == PERF_COUNT_HW_CPU_CYCLES) {
|
|
|
|
|
|
if (verbose)
|
|
if (verbose)
|