svn commit: r296885 - head/sys/mips/mips
Maxim Sobolev
sobomax at FreeBSD.org
Tue Mar 15 01:17:40 UTC 2016
Author: sobomax
Date: Tue Mar 15 01:17:38 2016
New Revision: 296885
URL: https://svnweb.freebsd.org/changeset/base/296885
Log:
Fix build with HWPMC_HOOKS enabled.
Modified:
head/sys/mips/mips/mips_pic.c
Modified: head/sys/mips/mips/mips_pic.c
==============================================================================
--- head/sys/mips/mips/mips_pic.c Tue Mar 15 00:24:50 2016 (r296884)
+++ head/sys/mips/mips/mips_pic.c Tue Mar 15 01:17:38 2016 (r296885)
@@ -48,6 +48,8 @@ __FBSDID("$FreeBSD$");
#include <sys/mutex.h>
#include <sys/smp.h>
#include <sys/sched.h>
+#include <sys/pmc.h>
+#include <sys/pmckern.h>
#include <machine/bus.h>
#include <machine/hwfunc.h>
@@ -217,8 +219,11 @@ mips_pic_intr(void *arg)
KASSERT(i == 0, ("all interrupts handled"));
#ifdef HWPMC_HOOKS
- if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN))
+ if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN)) {
+ struct trapframe *tf = PCPU_GET(curthread)->td_intr_frame;
+
pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, tf);
+ }
#endif
return (FILTER_HANDLED);
}
More information about the svn-src-all
mailing list