NetBSD/external/cddl/dtracetoolkit/dist/Proc/filebyproc.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
295 B
D
Executable File

#!/usr/sbin/dtrace -s
/*
* filebyproc.d - snoop files opened by process name. DTrace OneLiner.
*
* This is a DTrace OneLiner from the DTraceToolkit.
*
* $Id: filebyproc.d,v 1.1.1.1 2015/09/30 22:01:09 christos Exp $
*/
syscall::open*:entry { printf("%s %s", execname, copyinstr(arg0)); }