aboutsummaryrefslogtreecommitdiff
path: root/lib/libproc/Makefile
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2014-10-03 23:20:37 +0000
committerMark Johnston <markj@FreeBSD.org>2014-10-03 23:20:37 +0000
commit41da933c8714c30290d4301e980c4203b1c03736 (patch)
treee5d14bcbe841b9c2e8e073a1970aa1c856236b02 /lib/libproc/Makefile
parentf24c6fe478d938bbf4296cd8dd40811257de638d (diff)
downloadsrc-41da933c8714c30290d4301e980c4203b1c03736.tar.gz
src-41da933c8714c30290d4301e980c4203b1c03736.zip
Hook up support for userland CTF support in DTrace. This required some
modifications to libproc to support fetching the CTF info for a given file. With this change, dtrace(1) is able to resolve type info for function and USDT probe arguments, and function return values. In particular, the args[n] syntax should now work for referencing arguments of userland probes, provided that the requisite CTF info is available. The uctf tests pass if the test programs are compiled with CTF info. The current infrastructure around the DTrace test suite doesn't support this yet. Differential Revision: https://reviews.freebsd.org/D891 MFC after: 1 month Relnotes: yes Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=272488
Diffstat (limited to 'lib/libproc/Makefile')
-rw-r--r--lib/libproc/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libproc/Makefile b/lib/libproc/Makefile
index d665dc4e80a1..8a0f4b2a702c 100644
--- a/lib/libproc/Makefile
+++ b/lib/libproc/Makefile
@@ -25,7 +25,18 @@ LDADD+= -lsupc++
DPADD+= ${LIBSTDCPLUSPLUS}
.endif
-SHLIB_MAJOR= 2
+.if ${MK_CDDL} != "no"
+LDADD+= -lctf
+DPADD+= ${LIBCTF}
+IGNORE_PRAGMA= YES
+CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \
+ -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \
+ -I${.CURDIR}/../../sys/cddl/compat/opensolaris
+.else
+CFLAGS+= -DNO_CTF
+.endif
+
+SHLIB_MAJOR= 3
MAN=