Fix opensnoop for FreeBSD by removing probes with 64 at the end as

these are unnecessary.

Reference sh in the correct location (/bin/sh)
This commit is contained in:
gnn 2012-05-14 21:58:22 +00:00
parent e0670ac2fd
commit 1f15977bf4

View File

@ -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;