on 02/12/2010 00:30 Zhihao Yuan said the following:
> OK. Let's make this more clear: anyone has a working 8-2-PRERELEASE kernel 
> (amd64
> is preferred) with Dtrace supports, which can run the scripts/commands on the
> wiki? If so, please post your kernel configurations here, thanks.

Not sure about commands on the wiki, but DTrace works perfectly with my scripts.

$ uname -srm
FreeBSD 8.2-PRERELEASE amd64
It's actually built from r216118 sources.

$ dtrace -n 'fbt::sc_switch_scr:entry { printf("%p\n", args[0]); }'
works without any issues.

My kernel has the same DTrace related options as the wiki page:
options         KDTRACE_HOOKS           # all architectures - enable general
DTrace hooks
options         DDB_CTF                 # all architectures - kernel ELF linker
loads CTF data
options         KDTRACE_FRAME           # amd64-only

Here's how I built and installed the kernel:
$ make buildkernel WITH_CTF=1
$ make installkernel

KERNCONF is set my kernel's name in /etc/make.conf.

Not sure what kind of an issue prevents you from using DTrace, double-check all
your steps.
-- 
Andriy Gapon
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to