diff options
author | gnn <gnn@FreeBSD.org> | 2012-05-14 21:58:22 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2012-05-14 21:58:22 +0000 |
commit | 1f15977bf4142d9d9cd9580aa91c367df5587a5e (patch) | |
tree | 7a3579f771714a75893bd3d71cbafc6efd6b7d1a /cddl | |
parent | e0670ac2fd648e0f02e63de791a7b6ac7675a4a4 (diff) | |
download | FreeBSD-src-1f15977bf4142d9d9cd9580aa91c367df5587a5e.zip FreeBSD-src-1f15977bf4142d9d9cd9580aa91c367df5587a5e.tar.gz |
Fix opensnoop for FreeBSD by removing probes with 64 at the end as
these are unnecessary.
Reference sh in the correct location (/bin/sh)
Diffstat (limited to 'cddl')
-rwxr-xr-x | cddl/contrib/dtracetoolkit/opensnoop | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cddl/contrib/dtracetoolkit/opensnoop b/cddl/contrib/dtracetoolkit/opensnoop index 5b1a89b..b8fca3e 100755 --- a/cddl/contrib/dtracetoolkit/opensnoop +++ b/cddl/contrib/dtracetoolkit/opensnoop @@ -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; |