Hello.
I've updated to FreeBSD-7.1-p2 and I'm going to look at DTrace. But I have the following error after compiling new kernel according the instructions in Handbook:
I have compiled kernel with the following options:
and made [cmd=]make WITH_CTF=1 kernel KERNCONF=MyConf[/cmd]
ctfdump on /boot/kernel/kernel gives a long listing, begining with:
I've updated to FreeBSD-7.1-p2 and I'm going to look at DTrace. But I have the following error after compiling new kernel according the instructions in Handbook:
Code:
# ./hotkernel
Sampling... Hit Ctrl-C to end.
dtrace: invalid probe specifier
#pragma D option quiet
profile:::profile-1001hz
/arg0/
{
@pc[arg0] = count();
}
dtrace:::END
{
printa("%a %@d\n", @pc);
}
: "/usr/lib/dtrace/psinfo.d", line 37: syntax error near "uid_t"
I have compiled kernel with the following options:
Code:
options KDTRACE_FRAME # Ensure frames are compiled in - need it on amd64
options KDTRACE_HOOKS # Kernel DTrace hooks
options DDB_CTF # DTrace CTF.
and made [cmd=]make WITH_CTF=1 kernel KERNCONF=MyConf[/cmd]
ctfdump on /boot/kernel/kernel gives a long listing, begining with:
Code:
- CTF Header -----------------------------------------------------------------
cth_magic = 0xcff1
cth_version = 2
cth_flags = 0x01
cth_parlabel = (anon)
cth_parname = (anon)
cth_lbloff = 0
cth_objtoff = 8
cth_funcoff = 19910
cth_typeoff = 41348
cth_stroff = 41348
cth_strlen = 37
- Label Table ----------------------------------------------------------------
0 FreeBSD 7.1-RELEASE-p2 amd64 701000
- Data Objects ---------------------------------------------------------------
[0] 0 __set_sysctl_set_sym_sysctl___kern_cam (3)