diff options
| author | Fabien Thomas <fabient@FreeBSD.org> | 2010-04-03 07:19:31 +0000 |
|---|---|---|
| committer | Fabien Thomas <fabient@FreeBSD.org> | 2010-04-03 07:19:31 +0000 |
| commit | 0992d9c79eb85668f76ad4f1c0b289a45cb89ec3 (patch) | |
| tree | ca45832800b7978aa13ae240ae453765bbda1cf7 /sys | |
| parent | 2bf7f0c378f99a1871847cf1d7dcc9a319724e4c (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/hwpmc/hwpmc_mod.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 3a59f17714f3..3ae2caccbfc0 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -3976,9 +3976,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. |
