Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334653
b: refs/heads/master
c: 20b279d
h: refs/heads/master
i:
  334651: 37a9d9d
v: v3
  • Loading branch information
Peter Zijlstra authored and Arnaldo Carvalho de Melo committed Oct 16, 2012
1 parent 5557ae0 commit 9d5a2aa
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: 1342798cc13e3b48d9b5738f0c8fa812ccea8101
refs/heads/master: 20b279ddb38ca42f8863cec07b4d45ec24589f13
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ int x86_setup_perfctr(struct perf_event *event)
/* BTS is currently only allowed for user-mode. */
if (!attr->exclude_kernel)
return -EOPNOTSUPP;

if (!attr->exclude_guest)
return -EOPNOTSUPP;
}

hwc->config |= config;
Expand Down Expand Up @@ -380,6 +383,9 @@ int x86_pmu_hw_config(struct perf_event *event)
if (event->attr.precise_ip) {
int precise = 0;

if (!event->attr.exclude_guest)
return -EOPNOTSUPP;

/* Support for constant skid */
if (x86_pmu.pebs_active && !x86_pmu.pebs_broken) {
precise++;
Expand Down

0 comments on commit 9d5a2aa

Please sign in to comment.