summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2005-08-22 02:59:51 +0000
committerjkoshy <jkoshy@FreeBSD.org>2005-08-22 02:59:51 +0000
commitb20d294c73d95b02a2b3f726973aac69b368e993 (patch)
tree02358819000c4096ba1d8816b5e9abfe4c642fb4
parent71b13ff5f6a5cabc6c58eb9a4635541cf017fce3 (diff)
downloadFreeBSD-src-b20d294c73d95b02a2b3f726973aac69b368e993.zip
FreeBSD-src-b20d294c73d95b02a2b3f726973aac69b368e993.tar.gz
Turn off sampling modes on the AMD64 till the time I can track down
the reason for the double fault seen when sampling under load. MFC after: 3 days
-rw-r--r--sys/dev/hwpmc/hwpmc_amd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c
index 6285f7f..280e80a 100644
--- a/sys/dev/hwpmc/hwpmc_amd.c
+++ b/sys/dev/hwpmc/hwpmc_amd.c
@@ -474,6 +474,11 @@ amd_allocate_pmc(int cpu, int ri, struct pmc *pm,
return 0;
}
+#if __amd64__
+ if (pd->pd_caps & PMC_CAP_INTERRUPT)
+ return EOPNOTSUPP; /* XXX avoid a processor double fault */
+#endif
+
#if DEBUG
KASSERT(pd->pd_class == amd_pmc_class,
("[amd,%d] Unknown PMC class (%d)", __LINE__, pd->pd_class));
OpenPOWER on IntegriCloud