The /usr/share/dtrace/toolkit/hotcpu script has '/usr/bin/perl' as its interpreter. Of course, Perl is no longer in the Base System, so this should probably be changed to something like '/usr/bin/env perl'.
There isn't a hotcpu dtrace script in the tree. Granted, there are a number of
DTrace scripts in cddl/... that still reference /usr/bin/perl, but this wasn't one
of them (and Mark fixed a few on head).
% find . -name \*hotcpu\*
% git log -n 1
Author: glebius <glebius@FreeBSD.org>
Date: Thu Jan 14 22:48:13 2016 +0000
Approved by: so
svn path=/releng/10.2/; revision=294052
I beg your pardon, I miss-typed hotcpu instead of hotkernel, which is the correct.
But I can see that you have already gone further, many thanks!
The DTrace toolkit was removed from the base system and moved to ports (sysutils/dtrace-toolkit). I see that the shebangs have been fixed in the meantime, all scripts us #!/usr/local/bin/perl.