Date: Mon, 14 May 2012 21:58:23 +0000 (UTC) From: "George V. Neville-Neil" <gnn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235454 - head/cddl/contrib/dtracetoolkit Message-ID: <201205142158.q4ELwN6s053018@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205142158.q4ELwN6s053018>