c757049235
There is one known issue: Some probes will display an error message along the lines of: "Invalid address (0)" I tested this with both a simple dtrace probe and dtruss on a few different binaries on 32-bit. I only compiled 64-bit, did not run it, but I don't expect problems without the modules loaded. Volunteers are welcome. MFC after: 1 month
35 lines
494 B
Makefile
35 lines
494 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
SUBDIR= ${_dtrace} \
|
|
${_dtruss} \
|
|
${_lockstat} \
|
|
${_zdb} \
|
|
${_zhack}
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
.if ${MK_LIBTHR} != "no"
|
|
_zdb= zdb
|
|
_zhack= zhack
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
_dtrace= dtrace
|
|
_dtruss= dtruss
|
|
_lockstat= lockstat
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "mips"
|
|
_dtrace= dtrace
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc"
|
|
_dtrace= dtrace
|
|
_dtruss= dtruss
|
|
_lockstat= lockstat
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|