svn commit: r235454 - head/cddl/contrib/dtracetoolkit
George V. Neville-Neil
gnn at FreeBSD.org
Mon May 14 21:58:23 UTC 2012
Author: gnn
Date: Mon May 14 21:58:22 2012
New Revision: 235454
URL: http://svn.freebsd.org/changeset/base/235454
Log:
Fix opensnoop for FreeBSD by removing probes with 64 at the end as
these are unnecessary.
Reference sh in the correct location (/bin/sh)
Modified:
head/cddl/contrib/dtracetoolkit/opensnoop
Modified: head/cddl/contrib/dtracetoolkit/opensnoop
==============================================================================
--- head/cddl/contrib/dtracetoolkit/opensnoop Mon May 14 18:06:51 2012 (r235453)
+++ head/cddl/contrib/dtracetoolkit/opensnoop Mon May 14 21:58:22 2012 (r235454)
@@ -1,4 +1,4 @@
-#!/usr/bin/sh
+#!/bin/sh
#
# opensnoop - snoop file opens as they occur.
# Written using DTrace (Solaris 10 3/05).
@@ -189,7 +189,7 @@ fi
/*
* Print open event
*/
- syscall::open:entry, syscall::open64:entry
+ syscall::open:entry
{
/* save pathname */
self->pathp = arg0;
@@ -203,7 +203,7 @@ fi
/* 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 @@ fi
/*
* Cleanup
*/
- syscall::open:return, syscall::open64:return
+ syscall::open:return
/self->ok/
{
self->pathp = 0;
More information about the svn-src-all
mailing list