summaryrefslogtreecommitdiffstats
path: root/share/dtrace
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2012-05-18 16:40:15 +0000
committergnn <gnn@FreeBSD.org>2012-05-18 16:40:15 +0000
commita20823e0697f4717b9c26b0f5aaa723dd2d82f23 (patch)
tree8681a6c6c2642bb7f2b254a508ae3a3c1b4cc017 /share/dtrace
parent8187b8f230e8f0fbfe561a60975a0ca698a0d439 (diff)
downloadFreeBSD-src-a20823e0697f4717b9c26b0f5aaa723dd2d82f23.zip
FreeBSD-src-a20823e0697f4717b9c26b0f5aaa723dd2d82f23.tar.gz
Add support for our own DTrace scripts and those from the DTraceToolkit
to the build system. FreeBSD written scripts are stored in src/share and the toolkit scripts are brought from the cddl directory into a working tree via install. MFC after: 2 weeks
Diffstat (limited to 'share/dtrace')
-rw-r--r--share/dtrace/Makefile21
-rw-r--r--share/dtrace/README11
-rw-r--r--share/dtrace/toolkit/Makefile17
3 files changed, 49 insertions, 0 deletions
diff --git a/share/dtrace/Makefile b/share/dtrace/Makefile
new file mode 100644
index 0000000..71f1e4e
--- /dev/null
+++ b/share/dtrace/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+#
+# Hand installing our scripts and optionally (based on MK_CDDL) installing
+# the DTraceToolkit.
+#
+
+.include <bsd.own.mk>
+
+SUBDIR= ${_toolkit}
+
+.if ${MK_CDDL} != "no"
+_toolkit= toolkit
+.endif
+
+SCRIPTS= nfsclienttime
+
+SCRIPTSDIR= ${SHAREDIR}/dtrace/
+
+NO_OBJ=
+
+.include <bsd.prog.mk>
diff --git a/share/dtrace/README b/share/dtrace/README
new file mode 100644
index 0000000..de28264
--- /dev/null
+++ b/share/dtrace/README
@@ -0,0 +1,11 @@
+$FreeBSD$
+
+This directory contains scripts for use with the DTrace system. The
+toolkit/ directory contains the latest vendor import of Brendan
+Gregg's DTRaceToolkit while all the other files and directories
+contain code generated by the FreeBSD Project for use with DTrace on
+FreeBSD.
+
+NOTE: Do not add new scripts to the DTraceToolkit contained in this
+directory. New DTraceToolkit scripts should be send to the maintainer
+of the toolkit and then brought back into FreeBSD via future vendor imports.
diff --git a/share/dtrace/toolkit/Makefile b/share/dtrace/toolkit/Makefile
new file mode 100644
index 0000000..0eb7ff2
--- /dev/null
+++ b/share/dtrace/toolkit/Makefile
@@ -0,0 +1,17 @@
+#$FreeBSD$
+#
+# Install scripts from the DTraceToolkit
+#
+DTRACETOOLKIT= ../../../cddl/contrib/dtracetoolkit
+
+SCRIPTS= ${DTRACETOOLKIT}/execsnoop \
+ ${DTRACETOOLKIT}/hotuser \
+ ${DTRACETOOLKIT}/hotkernel \
+ ${DTRACETOOLKIT}/opensnoop \
+ ${DTRACETOOLKIT}/procsystime \
+
+SCRIPTSDIR= ${SHAREDIR}/dtrace/toolkit
+
+NO_OBJ=
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud