Broken dtrace script in /usr/share/dtrace

alex.burlyga.ietf alex.burlyga.ietf alex.burlyga.ietf at gmail.com
Thu Sep 3 17:20:49 UTC 2015


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


More information about the freebsd-dtrace mailing list