aboutsummaryrefslogtreecommitdiff
path: root/Proc/creatbyproc.d
diff options
context:
space:
mode:
Diffstat (limited to 'Proc/creatbyproc.d')
-rwxr-xr-xProc/creatbyproc.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/Proc/creatbyproc.d b/Proc/creatbyproc.d
new file mode 100755
index 000000000000..23e1f5459484
--- /dev/null
+++ b/Proc/creatbyproc.d
@@ -0,0 +1,10 @@
+#!/usr/sbin/dtrace -s
+/*
+ * creatbyproc.d - file creat()s by process name. DTrace OneLiner.
+ *
+ * This is a DTrace OneLiner from the DTraceToolkit.
+ *
+ * $Id: creatbyproc.d 3 2007-08-01 10:50:08Z brendan $
+ */
+
+syscall::creat*:entry { printf("%s %s", execname, copyinstr(arg0)); }