Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169743
b: refs/heads/master
c: bfd4511
h: refs/heads/master
i:
  169741: 18f3c4f
  169739: 4b2fa52
  169735: 38e16d1
  169727: bee6342
v: v3
  • Loading branch information
Simon Kaempflein authored and Ingo Molnar committed Nov 23, 2009
1 parent 7e63ed5 commit c81cc14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81516c5fc83a13a1d12f466aa7e14f5fd62a63ce
refs/heads/master: bfd451184d80301d1ae970b1ebffde1e9c6240f9
6 changes: 6 additions & 0 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ static void create_counter(int counter, int cpu, pid_t pid)
printf("\n");
error("perfcounter syscall returned with %d (%s)\n",
fd[nr_cpu][counter], strerror(err));

#if defined(__i386__) || defined(__x86_64__)
if (attr->type == PERF_TYPE_HARDWARE && err == EOPNOTSUPP)
die("No hardware sampling interrupt available. No APIC? If so then you can boot the kernel with the \"lapic\" boot parameter to force-enable it.\n");
#endif

die("No CONFIG_PERF_EVENTS=y kernel support configured?\n");
exit(-1);
}
Expand Down

0 comments on commit c81cc14

Please sign in to comment.