summaryrefslogtreecommitdiff
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authorFabien Thomas <fabient@FreeBSD.org>2010-03-31 20:00:44 +0000
committerFabien Thomas <fabient@FreeBSD.org>2010-03-31 20:00:44 +0000
commit0e0314040004b01eac1e68f9dcd422cf50601a96 (patch)
tree9a9cde933eba93a80585f7be2ea10f804550b77a /sys/dev/hwpmc
parent64c12e81e2a5ffb54e5c96970188a75d7fd782f9 (diff)
Notes
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r--sys/dev/hwpmc/hwpmc_mod.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c
index d331a85eafdd..e33b431e7e34 100644
--- a/sys/dev/hwpmc/hwpmc_mod.c
+++ b/sys/dev/hwpmc/hwpmc_mod.c
@@ -3972,9 +3972,11 @@ pmc_post_callchain_callback(void)
td = curthread;
- KASSERT((td->td_pflags & TDP_CALLCHAIN) == 0,
- ("[pmc,%d] thread %p already marked for callchain capture",
- __LINE__, (void *) td));
+ /*
+ * If there is multiple PMCs for the same interrupt ignore new post
+ */
+ if (td->td_pflags & TDP_CALLCHAIN)
+ return;
/*
* Mark this thread as needing callchain capture.