aboutsummaryrefslogtreecommitdiff
path: root/sysutils/DTraceToolkit/files/patch-opensnoop
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/DTraceToolkit/files/patch-opensnoop')
-rw-r--r--sysutils/DTraceToolkit/files/patch-opensnoop29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/DTraceToolkit/files/patch-opensnoop b/sysutils/DTraceToolkit/files/patch-opensnoop
new file mode 100644
index 000000000000..9e09a7f45b45
--- /dev/null
+++ b/sysutils/DTraceToolkit/files/patch-opensnoop
@@ -0,0 +1,29 @@
+--- opensnoop.orig 2014-06-04 08:58:11.000000000 -0400
++++ opensnoop 2014-06-04 08:58:42.000000000 -0400
+@@ -189,7 +189,7 @@
+ /*
+ * Print open event
+ */
+- syscall::open:entry, syscall::open64:entry
++ syscall::open:entry
+ {
+ /* save pathname */
+ self->pathp = arg0;
+@@ -203,7 +203,7 @@
+ /* OPT_file is checked on return to ensure pathp is mapped */
+ }
+
+- syscall::open:return, syscall::open64:return
++ syscall::open:return
+ /self->ok && (! OPT_failonly || (int)arg0 < 0) &&
+ ((OPT_file == 0) || (OPT_file == 1 && PATHNAME == copyinstr(self->pathp)))/
+ {
+@@ -235,7 +235,7 @@
+ /*
+ * Cleanup
+ */
+- syscall::open:return, syscall::open64:return
++ syscall::open:return
+ /self->ok/
+ {
+ self->pathp = 0;