summaryrefslogtreecommitdiff
path: root/Examples/woof_example.txt
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
commit055173dba4a263acf10325a49eebf82915369ed2 (patch)
treeaec2772e8855e6dbaea6d8136ed0c47bcb825dee /Examples/woof_example.txt
parent87c8f7aa3a46118212b99f0d58b18aa93c06b02a (diff)
Notes
Diffstat (limited to 'Examples/woof_example.txt')
-rw-r--r--Examples/woof_example.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/Examples/woof_example.txt b/Examples/woof_example.txt
new file mode 100644
index 000000000000..dc8152728114
--- /dev/null
+++ b/Examples/woof_example.txt
@@ -0,0 +1,28 @@
+The following explains how to demonstrate the woof.d DTrace script.
+
+This script is only useful if you have an audio device, /dev/audio. To test
+audio, you can run:
+
+ $ audioplay /usr/share/audio/samples/au/sample.au
+
+The volume can be adjusted from a few tools, including,
+
+ $ /usr/dt/bin/sdtaudiocontrol
+
+...
+
+woof.d will bark whenever a new process is created. In order to demonstrate
+it, first run the following:
+
+ # ./woof.d &
+
+You have now installed the dog (if the dog becomes a nusience, you are
+allowed to kill it). Now compare the difference between these recursive
+grep commands:
+
+ $ find /etc -type f -exec grep localhost {} \;
+
+ $ find /etc -type f -exec grep localhost {} +
+
+The first find command is the "bad way", the second is the "good way". You
+will hear for yourself why this is the case.