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