summaryrefslogtreecommitdiff
path: root/cddl/contrib/dtracetoolkit/Proc/writedist.d
diff options
context:
space:
mode:
Diffstat (limited to 'cddl/contrib/dtracetoolkit/Proc/writedist.d')
-rwxr-xr-xcddl/contrib/dtracetoolkit/Proc/writedist.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/cddl/contrib/dtracetoolkit/Proc/writedist.d b/cddl/contrib/dtracetoolkit/Proc/writedist.d
new file mode 100755
index 000000000000..099c2525b6c6
--- /dev/null
+++ b/cddl/contrib/dtracetoolkit/Proc/writedist.d
@@ -0,0 +1,10 @@
+#!/usr/sbin/dtrace -s
+/*
+ * writedist.d - write distribution by process name. DTrace OneLiner.
+ *
+ * This is a DTrace OneLiner from the DTraceToolkit.
+ *
+ * $Id: writedist.d 3 2007-08-01 10:50:08Z brendan $
+ */
+
+sysinfo:::writech { @dist[execname] = quantize(arg0); }