summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-18 16:40:15 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-18 16:40:15 +0000
commit4d37a1230711dc61dc8ebb4094547569731e8d43 (patch)
tree8681a6c6c2642bb7f2b254a508ae3a3c1b4cc017
parentff3dd719828af56f2528b933a030e6edde6f07ca (diff)
downloadsrc-test-4d37a1230711dc61dc8ebb4094547569731e8d43.tar.gz
src-test-4d37a1230711dc61dc8ebb4094547569731e8d43.zip
Notes
-rw-r--r--etc/mtree/BSD.usr.dist4
-rw-r--r--share/Makefile1
-rw-r--r--share/dtrace/Makefile21
-rw-r--r--share/dtrace/README11
-rw-r--r--share/dtrace/toolkit/Makefile17
5 files changed, 54 insertions, 0 deletions
diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
index eb1b89b480f48..10e88f3cecea5 100644
--- a/etc/mtree/BSD.usr.dist
+++ b/etc/mtree/BSD.usr.dist
@@ -200,6 +200,10 @@
..
..
..
+ dtrace
+ toolkit
+ ..
+ ..
examples
BSD_daemon
..
diff --git a/share/Makefile b/share/Makefile
index 5ccf165930c3f..e39da7f2792e1 100644
--- a/share/Makefile
+++ b/share/Makefile
@@ -8,6 +8,7 @@
SUBDIR= ${_colldef} \
${_dict} \
${_doc} \
+ dtrace \
${_examples} \
${_i18n} \
${_man} \
diff --git a/share/dtrace/Makefile b/share/dtrace/Makefile
new file mode 100644
index 0000000000000..71f1e4eeeec92
--- /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 0000000000000..de28264193093
--- /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 0000000000000..0eb7ff21bc5c7
--- /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>