summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/Makefile
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-10-06 21:58:38 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-10-06 21:58:38 +0000
commit7c2a5d79afd81f0e773ba7ddc4fe40c4c3d62627 (patch)
tree52c11c1990eccc6a0f7281e868a447f7a337a01d /usr.bin/truss/Makefile
parentcb4dcd0eff4e6b716d70dbc789e83538ea109d30 (diff)
downloadFreeBSD-src-7c2a5d79afd81f0e773ba7ddc4fe40c4c3d62627.zip
FreeBSD-src-7c2a5d79afd81f0e773ba7ddc4fe40c4c3d62627.tar.gz
truss: Add support for utrace(2).
This uses the kdump(1) utrace support code directly until a common library is created. This allows malloc(3) tracing with MALLOC_CONF=utrace:true and rtld tracing with LD_UTRACE=1. Unknown utrace(2) data is just printed as hex. PR: 43819 [inspired by] Reviewed by: jhb MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D3819
Diffstat (limited to 'usr.bin/truss/Makefile')
-rw-r--r--usr.bin/truss/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile
index 1cd0a9c..8c78196 100644
--- a/usr.bin/truss/Makefile
+++ b/usr.bin/truss/Makefile
@@ -10,6 +10,9 @@ SRCS+= ${MACHINE_ARCH}-fbsd.c
SRCS+= ${MACHINE_CPUARCH}-fbsd.c
.endif
+.PATH: ${.CURDIR:H}/kdump
+SRCS+= utrace.c
+
CFLAGS+= -I${.CURDIR} -I.
CLEANFILES= syscalls.master syscalls.h ioctl.c
OpenPOWER on IntegriCloud