Date: Fri, 03 Dec 2010 16:03:13 +0200 From: Andriy Gapon <avg@freebsd.org> To: Zhihao Yuan <lichray@gmail.com> Cc: freebsd-stable@freebsd.org, Jeremy Chadwick <freebsd@jdc.parodius.com> Subject: Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE Message-ID: <4CF8F8A1.1060300@freebsd.org> In-Reply-To: <AANLkTimsa-YM6B_272U4gjZzt1Ce05LR4sQTz_AiHJCU@mail.gmail.com> References: <20101123081244.GA38354@icarus.home.lan> <20101123082046.GA62301@compaq.yuetime> <4CEBB613.5010009@freebsd.org> <20101123131353.GA7243@icarus.home.lan> <20101123132519.GA1426@icarus.home.lan> <4CEBC155.9090706@freebsd.org> <AANLkTimsa-YM6B_272U4gjZzt1Ce05LR4sQTz_AiHJCU@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CF8F8A1.1060300>
