NetBSD/external/cddl/dtracetoolkit/dist/Proc/filebyproc.d

11 lines
295 B
D
Raw Normal View History

#!/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)); }