Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules/dtrace/lockstat Evil hack to ensure dtrace locks...



details:   https://anonhg.NetBSD.org/src/rev/e895afc7c994
branches:  trunk
changeset: 810670:e895afc7c994
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Sep 10 19:57:48 2015 +0000

description:
Evil hack to ensure dtrace lockstat module builds on arm.

diffstat:

 sys/modules/dtrace/lockstat/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r d46095cf178e -r e895afc7c994 sys/modules/dtrace/lockstat/Makefile
--- a/sys/modules/dtrace/lockstat/Makefile      Thu Sep 10 19:56:13 2015 +0000
+++ b/sys/modules/dtrace/lockstat/Makefile      Thu Sep 10 19:57:48 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2015/03/08 04:15:22 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2015/09/10 19:57:48 riz Exp $
 
 .include "../../Makefile.inc"
 
@@ -10,5 +10,8 @@
 CPPFLAGS+=     -I${NETBSDSRCDIR}/external/cddl/osnet/sys
 CPPFLAGS+=     -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
 CPPFLAGS+=     -DKDTRACE_HOOKS
+.if (!empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*))
+CPPFLAGS+=     -D__HAVE_CPU_COUNTER
+.endif
 
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index