Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304925
b: refs/heads/master
c: 028d455
h: refs/heads/master
i:
  304923: 2c7ce0e
v: v3
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed May 9, 2012
1 parent f2a7e1f commit d15288d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04480d01105324dc5b77ca3fbdf85037a7d80dbb
refs/heads/master: 028d455b12719a48b1c4b51ce07a074135726f8f
8 changes: 6 additions & 2 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,13 @@ static void perf_record__open(struct perf_record *rec)
/*
* If it's cycles then fall back to hrtimer
* based cpu-clock-tick sw counter, which
* is always available even if no PMU support:
* is always available even if no PMU support.
*
* PPC returns ENXIO until 2.6.37 (behavior changed
* with commit b0a873e).
*/
if (err == ENOENT && attr->type == PERF_TYPE_HARDWARE
if ((err == ENOENT || err == ENXIO)
&& attr->type == PERF_TYPE_HARDWARE
&& attr->config == PERF_COUNT_HW_CPU_CYCLES) {

if (verbose)
Expand Down

0 comments on commit d15288d

Please sign in to comment.