Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Sep 2015 20:31:08 -0400
From:      "George Neville-Neil" <gnn@neville-neil.com>
To:        "alex.burlyga.ietf alex.burlyga.ietf" <alex.burlyga.ietf@gmail.com>
Cc:        freebsd-dtrace@freebsd.org
Subject:   Re: Broken dtrace script in /usr/share/dtrace
Message-ID:  <DA1A9AD8-73DF-40B8-923C-514C11F25B35@neville-neil.com>
In-Reply-To: <CA%2BJhTNQjFXCaguomDzty3t97By50_=dY9_M_FUmQEamoMjZtyA@mail.gmail.com>
References:  <CA%2BJhTNQjFXCaguomDzty3t97By50_=dY9_M_FUmQEamoMjZtyA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3 Sep 2015, at 13:20, alex.burlyga.ietf alex.burlyga.ietf wrote:

> Wanted to show off dtrace to co-workers of mine and tried running
> /usr/share/dtrace/nfsclienttime. I got an error and was not able to
> run it. Patch bellow that fixes the issue on FreeBSD 10.
>
> Alex
>
> diff --git a/share/dtrace/nfsclienttime b/share/dtrace/nfsclienttime
> index 335f067..e7764cf 100755
> --- a/share/dtrace/nfsclienttime
> +++ b/share/dtrace/nfsclienttime
> @@ -54,13 +54,13 @@ syscall:::entry
>        self->count = 0;
> }
>
> -nfsclient:nfs3::start
> +nfscl:nfs3::start
> {
>
>        self->timestamp = timestamp;
> }
>
> -nfsclient:nfs3::done
> +nfscl:nfs3::done
> {
>
>        self->count += (timestamp - self->timestamp);


Thanks, I've applied the same fix to both nfsclienttime and nfsattrstats.

Committed revision 287544.

Best,
George



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DA1A9AD8-73DF-40B8-923C-514C11F25B35>