Broken dtrace script in /usr/share/dtrace
George Neville-Neil
gnn at neville-neil.com
Tue Sep 8 00:31:20 UTC 2015
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
More information about the freebsd-dtrace
mailing list