1#!/usr/sbin/dtrace -s 2/* 3 * creatbyproc.d - file creat()s by process name. DTrace OneLiner. 4 * 5 * This is a DTrace OneLiner from the DTraceToolkit. 6 * 7 * 11-Jun-2005 Brendan Gregg Created this. 8 */ 9 10syscall::open:entry /arg1 == 0x0200 | 0x0400 | 0x0001 /* O_CREAT | O_TRUNC | O_WRONLY */ / 11{ 12 printf("%s %s", execname, copyinstr(arg0)); 13} 14