I just updated to the latest stable: ~> uname -a FreeBSD compaq.yuetime 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #1: Mon Nov 22 23:44:47 CST 2010 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 OK, a little bit better: ~> sudo dtrace -lP syscall dtrace: invalid probe specifier syscall: "/usr/lib/dtrace/psinfo.d", line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name -- which means the CTF does work, but fails to work perfectly. HELP.... On Mon, Nov 22, 2010 at 11:45 PM, Zhihao Yuan <lichray@gmail.com> wrote:> ~> uname -a > FreeBSD compaq.yuetime 8.1-STABLE FreeBSD 8.1-STABLE #0: Thu Nov 18 > 01:32:06 CST > 2010 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 > > I added the required options to the kernel config file: > > Code: > > options KDTRACE_FRAME > options KDTRACE_HOOKS > options DDB_CTF > > and compiled/installed the kernel WITH_CTF=1 successfully. > > sudo make buildkernel KERNCONF=HOUKAGO WITH_CTF=1 > sudo make installkernel KERNCONF=HOUKAGO WITH_CTF=1 > > The dtraceall is loaded, and dtrace -l works. But whenever I want to run a > dtrace command, I get something like: > > ~> sudo dtrace -lP syscall > dtrace: invalid probe specifier syscall: "/usr/lib/dtrace/psinfo.d", line > 37: syntax error near "uid_t" > > The error message looks like what you got when WITH_CTF=1 is not > presented. Any idea? > > -- > Zhihao Yuan > The best way to predict the future is to invent it. > >-- Zhihao Yuan The best way to predict the future is to invent it.
~> uname -a FreeBSD compaq.yuetime 8.1-STABLE FreeBSD 8.1-STABLE #0: Thu Nov 18 01:32:06 CST 2010 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 I added the required options to the kernel config file: Code: options KDTRACE_FRAME options KDTRACE_HOOKS options DDB_CTF and compiled/installed the kernel WITH_CTF=1 successfully. sudo make buildkernel KERNCONF=HOUKAGO WITH_CTF=1 sudo make installkernel KERNCONF=HOUKAGO WITH_CTF=1 The dtraceall is loaded, and dtrace -l works. But whenever I want to run a dtrace command, I get something like: ~> sudo dtrace -lP syscall dtrace: invalid probe specifier syscall: "/usr/lib/dtrace/psinfo.d", line 37: syntax error near "uid_t" The error message looks like what you got when WITH_CTF=1 is not presented. Any idea? -- Zhihao Yuan The best way to predict the future is to invent it.
On Mon, Nov 22, 2010 at 11:45:38PM -0600, Zhihao Yuan wrote:> ~> uname -a > FreeBSD compaq.yuetime 8.1-STABLE FreeBSD 8.1-STABLE #0: Thu Nov 18 01:32:06 > CST > 2010 root@compaq.yuetime:/usr/obj/usr/src/sys/HOUKAGO amd64 > > I added the required options to the kernel config file: > > Code: > > options KDTRACE_FRAME > options KDTRACE_HOOKS > options DDB_CTF > > and compiled/installed the kernel WITH_CTF=1 successfully. > > sudo make buildkernel KERNCONF=HOUKAGO WITH_CTF=1 > sudo make installkernel KERNCONF=HOUKAGO WITH_CTF=1 > > The dtraceall is loaded, and dtrace -l works. But whenever I want to run a > dtrace command, I get something like: > > ~> sudo dtrace -lP syscall > dtrace: invalid probe specifier syscall: "/usr/lib/dtrace/psinfo.d", line > 37: syntax error near "uid_t" > > The error message looks like what you got when WITH_CTF=1 is not presented. > Any idea?I don't know if this will help, but I followed the procedure here: http://wiki.freebsd.org/DTrace Which worked fine. See this thread for verification that the above works correctly: http://lists.freebsd.org/pipermail/freebsd-fs/2010-October/009780.html -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |