Re: kernel 100% CPU

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Sun, 03 Sep 2023 13:50:57 UTC
On 03/09/2023 09:01, Juraj Lutter wrote:
> … The script mjg@ provided is not a shell script.
>
> The script filename is “script.d” where you should put the
> above-mentioned DTrace script (without the "dtrace -s script.d -o out” line).


Thanks, I guess that I'm still doing something wrong:


root@mowa219-gjp4-8570p-freebsd:/home/grahamperrin/Documents/IT/BSD/FreeBSD/kernel-cpu 
# time dtrace -s script.d -o /tmp/out
dtrace: script 'script.d' matched 4 probes
^C0.246u 4.049s 27:25.70 0.2%   14+91k 261+0io 274pf+0w
root@mowa219-gjp4-8570p-freebsd:/home/grahamperrin/Documents/IT/BSD/FreeBSD/kernel-cpu 
# cat /tmp/out

CPU     ID                    FUNCTION:NAME
   3      2                             :END

root@mowa219-gjp4-8570p-freebsd:/home/grahamperrin/Documents/IT/BSD/FreeBSD/kernel-cpu 
#