NetBSD/external/cddl/dtracetoolkit/dist/Proc/writedist.d
christos c29d517558 Import the dtrace toolkit from FreeBSD; simple scripts such as dtruss work
unmodified. For others we'll need to add the missing probes and adjust.
This is not attached to the build.
2015-09-30 22:01:06 +00:00

11 lines
280 B
D
Executable File

#!/usr/sbin/dtrace -s
/*
* writedist.d - write distribution by process name. DTrace OneLiner.
*
* This is a DTrace OneLiner from the DTraceToolkit.
*
* $Id: writedist.d,v 1.1.1.1 2015/09/30 22:01:09 christos Exp $
*/
sysinfo:::writech { @dist[execname] = quantize(arg0); }