Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
on 04/12/2010 04:28 Zhihao Yuan said the following: My world and kernel are sync. Is it possible that the dtrace-enabled kernel must be compiled with '-g'? It shouldn't be a requirement. But please try. DTrace (userland utility on FreeBSD) self-diagnostics really should be improved. Obscure complaints about problem in system .d files do not help at all for a user to understand what the actual problem could be. Sigh. -- 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
From: Zhihao Yuan lich...@gmail.com Subject: Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE My world and kernel are sync. Is it possible that the dtrace-enabled kernel must be compiled with '-g'? On Fri, Dec 3, 2010 at 5:29 PM, Andriy Gapon a...@freebsd.org wrote: I suppose that you have some problem with either your local environment or following the procedures. Most of all, I still suspect that your world and your kernel are out of sync. Changed CFLAGS? -Reko ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Sat, Dec 4, 2010 at 5:19 AM, Andriy Gapon a...@freebsd.org wrote: on 04/12/2010 04:28 Zhihao Yuan said the following: My world and kernel are sync. Is it possible that the dtrace-enabled kernel must be compiled with '-g'? It shouldn't be a requirement. But please try. HAHAHAHA! It matters Not KBD, not DDB, only the DEBUG=-g option. It seems like DTrace requires the symbols inside a kernel/program. Well, now my DTrace works perfectly, and the examples on the wiki also work. The next step is to try to use it to trace my program. SDT may help. I need to learn more. Thanks guys... DTrace (userland utility on FreeBSD) self-diagnostics really should be improved. Obscure complaints about problem in system .d files do not help at all for a user to understand what the actual problem could be. Sigh. -- Andriy Gapon -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
on 05/12/2010 00:23 Zhihao Yuan said the following: HAHAHAHA! It matters Not KBD, not DDB, only the DEBUG=-g option. It seems like DTrace requires the symbols inside a kernel/program. Well, now my DTrace works perfectly, and the examples on the wiki also work. The next step is to try to use it to trace my program. SDT may help. I need to learn more. Thanks guys... Interesting, thank you very much for the investigation and report! And your persistence too! :) I will try to find time to investigate why this requirement has arisen or if it has always been present, just not documented. If it can be removed, then good; otherwise I will update the documentation at least. -- 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Sat, Dec 4, 2010 at 5:19 AM, Andriy Gapon a...@freebsd.org wrote: on 04/12/2010 04:28 Zhihao Yuan said the following: My world and kernel are sync. Is it possible that the dtrace-enabled kernel must be compiled with '-g'? It shouldn't be a requirement. But please try. DTrace (userland utility on FreeBSD) self-diagnostics really should be improved. Obscure complaints about problem in system .d files do not help at all for a user to understand what the actual problem could be. Sigh. -- Andriy Gapon Yes... I hope the coming 8.2-RELEASE can have these 3 providers http://wiki.freebsd.org/DTrace/userland especially the pid provider. :( So far, we can only trace some system calls used by a userland program, which may bot be that helpful. -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
on 02/12/2010 04:24 Jeremy Chadwick said the following: On Wed, Dec 01, 2010 at 08:21:21PM -0600, Zhihao Yuan wrote: ctfdump -S /boot/kernel/kernel works, my system has CTF configured. But I don't have either options KDB or options DDB I guess these has nothing to do with Dtrace, at least KDB is just a totally different module. Am I right? Correct; KDB/DDB shouldn't have anything to do with this. Yes. But it might - by accident/bug. -- 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
I added these options, KDB DDB to my KERNCONF, but Dtrace still does not work, and the commands your shown fail on my system, too. Can you send a copy of your KERNCONF to us? On Fri, Dec 3, 2010 at 8:25 AM, Andriy Gapon a...@freebsd.org wrote: on 02/12/2010 04:24 Jeremy Chadwick said the following: On Wed, Dec 01, 2010 at 08:21:21PM -0600, Zhihao Yuan wrote: ctfdump -S /boot/kernel/kernel works, my system has CTF configured. But I don't have either options KDB or options DDB I guess these has nothing to do with Dtrace, at least KDB is just a totally different module. Am I right? Correct; KDB/DDB shouldn't have anything to do with this. Yes. But it might - by accident/bug. -- Andriy Gapon -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
on 03/12/2010 21:53 Zhihao Yuan said the following: I added these options, KDB DDB to my KERNCONF, but Dtrace still does not work, and the commands your shown fail on my system, too. Can you send a copy of your KERNCONF to us? I can, but I don't think that I have any magic in it. I suppose that you have some problem with either your local environment or following the procedures. Most of all, I still suspect that your world and your kernel are out of sync. -- 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
My world and kernel are sync. Is it possible that the dtrace-enabled kernel must be compiled with '-g'? On Fri, Dec 3, 2010 at 5:29 PM, Andriy Gapon a...@freebsd.org wrote: on 03/12/2010 21:53 Zhihao Yuan said the following: I added these options, KDB DDB to my KERNCONF, but Dtrace still does not work, and the commands your shown fail on my system, too. Can you send a copy of your KERNCONF to us? I can, but I don't think that I have any magic in it. I suppose that you have some problem with either your local environment or following the procedures. Most of all, I still suspect that your world and your kernel are out of sync. -- Andriy Gapon -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
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. On Tue, Nov 23, 2010 at 7:27 AM, Andriy Gapon a...@freebsd.org wrote: on 23/11/2010 15:25 Jeremy Chadwick said the following: On Tue, Nov 23, 2010 at 05:13:53AM -0800, Jeremy Chadwick wrote: On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). The same question. FWIW, I can reproduce his problem when following the procedure outlined in the Wiki. As a workaround I tried adding WITH_CTF=true to /etc/src.conf and rebuilding + reinstalling world + reboot, to no avail. I'm rebuilding the kernel now to see if that makes a difference after the above workaround. Nope, no go. icarus# kldload dtraceall icarus# dtrace -lP syscall dtrace: invalid probe specifier syscall: /usr/lib/dtrace/psinfo.d, line 37: syntax error near uid_t icarus# ls -l /boot/kernel/kernel -r-xr-xr-x 1 root wheel 7180261 Nov 23 05:16 /boot/kernel/kernel icarus# ls -l /usr/lib/dtrace total 32 -r--r--r-- 1 root wheel 8608 Nov 23 05:09 drti.o -r--r--r-- 1 root wheel 6910 Nov 23 05:09 errno.d -r--r--r-- 1 root wheel 3196 Nov 23 05:09 psinfo.d -r--r--r-- 1 root wheel 3597 Nov 23 05:09 regs_x86.d -r--r--r-- 1 root wheel 3121 Nov 23 05:09 signal.d -r--r--r-- 1 root wheel 2019 Nov 23 05:09 unistd.d icarus# vim /usr/lib/dtrace/psinfo.d ... 31 typedef struct psinfo { 32 int pr_nlwp;/* number of threads */ 33 pid_t pr_pid; /* unique process id */ 34 pid_t pr_ppid;/* process id of parent */ 35 pid_t pr_pgid;/* pid of process group leader */ 36 pid_t pr_sid; /* session id */ 37 uid_t pr_uid; /* real user id */ 38 uid_t pr_euid;/* effective user id */ 39 gid_t pr_gid; /* real group id */ 40 gid_t pr_egid;/* effective group id */ -- 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 -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan lich...@gmail.com wrote: 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. I have an i386 system working: FreeBSD d820.flick.local 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #2 r216091: Wed Dec 1 18:06:20 CST 2010 r...@d820.flick.local:/usr/obj/usr/src/sys/D820 i386 Just built the kernel and ran through some tests on the DTrace wiki page. Incidentally, I had a tough time on my system running HEAD built with clang. DTrace simply would not run properly until I built the kernel with the base gcc. It was as if the kernel and userland were not in sync, no matter what I tried (even netstat didn't work). Maybe you need to clean EVERYTHING, checkout a clean source tree (if you've been mucking around in there), and rebuild and install kernel and world. I wish I could help more, but I'm still just a newb in a lot of respects... -Brandon ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Wed, Dec 01, 2010 at 06:22:40PM -0600, Brandon Gooch wrote: On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan lich...@gmail.com wrote: 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. I have an i386 system working: [snip] Can you please try the command the OP originally provided? See command here: http://lists.freebsd.org/pipermail/freebsd-stable/2010-November/060216.html -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Wed, Dec 1, 2010 at 6:27 PM, Jeremy Chadwick free...@jdc.parodius.com wrote: On Wed, Dec 01, 2010 at 06:22:40PM -0600, Brandon Gooch wrote: On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan lich...@gmail.com wrote: 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. I have an i386 system working: [snip] Can you please try the command the OP originally provided? See command here: http://lists.freebsd.org/pipermail/freebsd-stable/2010-November/060216.html d820# dtrace -lP syscall | head ID PROVIDERMODULE FUNCTION NAME 17syscall syscall entry 18syscall syscall return 19syscallexit entry 20syscallexit return 21syscallfork entry 22syscallfork return 23syscallread entry 24syscallread return 25syscall write entry The error the OP received from the above command was pretty much exactly what I was seeing when I attempting to use DTrace on my HEAD system, built with clang. Same error, at least this part: /usr/lib/dtrace/psinfo.d, line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name I was running simply 'dtrace -l' to list all probes... -Brandon ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
I guess such an error has nothing to do with the difference between compilers... I assumed that you used similar KERNCONF on your two systems. So, a hypothesis is: Dtrace does not work correctly on amd64. On Wed, Dec 1, 2010 at 6:37 PM, Brandon Gooch jamesbrandongo...@gmail.comwrote: On Wed, Dec 1, 2010 at 6:27 PM, Jeremy Chadwick free...@jdc.parodius.com wrote: On Wed, Dec 01, 2010 at 06:22:40PM -0600, Brandon Gooch wrote: On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan lich...@gmail.com wrote: 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. I have an i386 system working: [snip] Can you please try the command the OP originally provided? See command here: http://lists.freebsd.org/pipermail/freebsd-stable/2010-November/060216.html d820# dtrace -lP syscall | head ID PROVIDERMODULE FUNCTION NAME 17syscall syscall entry 18syscall syscall return 19syscallexit entry 20syscallexit return 21syscallfork entry 22syscallfork return 23syscallread entry 24syscallread return 25syscall write entry The error the OP received from the above command was pretty much exactly what I was seeing when I attempting to use DTrace on my HEAD system, built with clang. Same error, at least this part: /usr/lib/dtrace/psinfo.d, line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name I was running simply 'dtrace -l' to list all probes... -Brandon -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Wed, Dec 1, 2010 at 7:37 PM, Zhihao Yuan lich...@gmail.com wrote: I guess such an error has nothing to do with the difference between compilers... I assumed that you used similar KERNCONF on your two systems. So, a hypothesis is: Dtrace does not work correctly on amd64. I should have mentioned that I do have DTrace sort of working on my HEAD system (amd64), just strange terminal behavior now (CTRL-C doesn't allow a running script to produce any output -- pkill dtrace works however...). I just found this, which seems to indicate that you may be on to something: http://forums.freebsd.org/showthread.php?t=19028 What does your kernel config look like? How about /etc/make.conf and /etc/src.conf? Maybe looking at the contents of these files will shed some light... -Brandon ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Wed, Dec 1, 2010 at 5:37 PM, Zhihao Yuan lich...@gmail.com wrote: I guess such an error has nothing to do with the difference between compilers... I assumed that you used similar KERNCONF on your two systems. So, a hypothesis is: Dtrace does not work correctly on amd64. It works just fine for me. I built my amd64 kernel a week or so back with this KERNCONF: include GENERIC ident DWARF options KDTRACE_FRAME options KDTRACE_HOOKS options KDB options DDB options DDB_CTF Can you check with ctfdump if you objects actually have CTF information in them? Something like this: # ctfdump -S /boot/kernel/kernel # ctfdump /boot/kernel/kernel | grep ... Regards, Navdeep On Wed, Dec 1, 2010 at 6:37 PM, Brandon Gooch jamesbrandongo...@gmail.comwrote: On Wed, Dec 1, 2010 at 6:27 PM, Jeremy Chadwick free...@jdc.parodius.com wrote: On Wed, Dec 01, 2010 at 06:22:40PM -0600, Brandon Gooch wrote: On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan lich...@gmail.com wrote: 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. I have an i386 system working: [snip] Can you please try the command the OP originally provided? See command here: http://lists.freebsd.org/pipermail/freebsd-stable/2010-November/060216.html d820# dtrace -lP syscall | head ID PROVIDER MODULE FUNCTION NAME 17 syscall syscall entry 18 syscall syscall return 19 syscall exit entry 20 syscall exit return 21 syscall fork entry 22 syscall fork return 23 syscall read entry 24 syscall read return 25 syscall write entry The error the OP received from the above command was pretty much exactly what I was seeing when I attempting to use DTrace on my HEAD system, built with clang. Same error, at least this part: /usr/lib/dtrace/psinfo.d, line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name I was running simply 'dtrace -l' to list all probes... -Brandon -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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 ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
ctfdump -S /boot/kernel/kernel works, my system has CTF configured. But I don't have either options KDB or options DDB I guess these has nothing to do with Dtrace, at least KDB is just a totally different module. Am I right? On Wed, Dec 1, 2010 at 7:47 PM, Navdeep Parhar npar...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:37 PM, Zhihao Yuan lich...@gmail.com wrote: I guess such an error has nothing to do with the difference between compilers... I assumed that you used similar KERNCONF on your two systems. So, a hypothesis is: Dtrace does not work correctly on amd64. It works just fine for me. I built my amd64 kernel a week or so back with this KERNCONF: include GENERIC ident DWARF options KDTRACE_FRAME options KDTRACE_HOOKS options KDB options DDB options DDB_CTF Can you check with ctfdump if you objects actually have CTF information in them? Something like this: # ctfdump -S /boot/kernel/kernel # ctfdump /boot/kernel/kernel | grep ... Regards, Navdeep On Wed, Dec 1, 2010 at 6:37 PM, Brandon Gooch jamesbrandongo...@gmail.comwrote: On Wed, Dec 1, 2010 at 6:27 PM, Jeremy Chadwick free...@jdc.parodius.com wrote: On Wed, Dec 01, 2010 at 06:22:40PM -0600, Brandon Gooch wrote: On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan lich...@gmail.com wrote: 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. I have an i386 system working: [snip] Can you please try the command the OP originally provided? See command here: http://lists.freebsd.org/pipermail/freebsd-stable/2010-November/060216.html d820# dtrace -lP syscall | head ID PROVIDERMODULE FUNCTION NAME 17syscall syscall entry 18syscall syscall return 19syscallexit entry 20syscallexit return 21syscallfork entry 22syscallfork return 23syscallread entry 24syscallread return 25syscall write entry The error the OP received from the above command was pretty much exactly what I was seeing when I attempting to use DTrace on my HEAD system, built with clang. Same error, at least this part: /usr/lib/dtrace/psinfo.d, line 88: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name I was running simply 'dtrace -l' to list all probes... -Brandon -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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 -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Wed, Dec 01, 2010 at 08:21:21PM -0600, Zhihao Yuan wrote: ctfdump -S /boot/kernel/kernel works, my system has CTF configured. But I don't have either options KDB or options DDB I guess these has nothing to do with Dtrace, at least KDB is just a totally different module. Am I right? Correct; KDB/DDB shouldn't have anything to do with this. -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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
Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. On Tue, Nov 23, 2010 at 12:29 AM, Jeremy Chadwick free...@jdc.parodius.comwrote: 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 r...@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 j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | -- Zhihao Yuan The best way to predict the future is to invent it. - End forwarded message - -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. On Tue, Nov 23, 2010 at 12:29 AM, Jeremy Chadwick free...@jdc.parodius.comwrote: 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 r...@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 j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | -- Zhihao Yuan The best way to predict the future is to invent it. - End forwarded message - -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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 -- Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. -- let focus = 'computing' in here: http://let-in.blogspot.com (let (me Program!)): http://lichray.blogspot.com cpu HAMMER ident HOUKAGO # To statically compile in device wiring instead of /boot/device.hints hints GENERIC.hints # Default places to look for devices. # Use the following to compile in values accessible to the kernel # through getenv() (or kenv(1) in userland). The format of the file # is 'variable=value', see kenv(1) # # env GENERIC.env #makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET# InterNETworking options INET6 # IPv6 communications protocols options NETGRAPH# Graph based kernel networking subsystem options SCTP# Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories #optionsUFS_GJOURNAL# Enable gjournal-based UFS journaling #optionsMD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFSLOCKD# Network Lock Manager #optionsNFS_ROOT# NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options LIBICONV# Preload iconv options MSDOSFS_ICONV # MSDOS Filesystem with iconv support options EXT2FS # Ext2/3 Filesystem options CD9660 # ISO
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). -- 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). FWIW, I can reproduce his problem when following the procedure outlined in the Wiki. As a workaround I tried adding WITH_CTF=true to /etc/src.conf and rebuilding + reinstalling world + reboot, to no avail. I'm rebuilding the kernel now to see if that makes a difference after the above workaround. -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Tue, Nov 23, 2010 at 05:13:53AM -0800, Jeremy Chadwick wrote: On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). FWIW, I can reproduce his problem when following the procedure outlined in the Wiki. As a workaround I tried adding WITH_CTF=true to /etc/src.conf and rebuilding + reinstalling world + reboot, to no avail. I'm rebuilding the kernel now to see if that makes a difference after the above workaround. Nope, no go. icarus# kldload dtraceall icarus# dtrace -lP syscall dtrace: invalid probe specifier syscall: /usr/lib/dtrace/psinfo.d, line 37: syntax error near uid_t icarus# ls -l /boot/kernel/kernel -r-xr-xr-x 1 root wheel 7180261 Nov 23 05:16 /boot/kernel/kernel icarus# ls -l /usr/lib/dtrace total 32 -r--r--r-- 1 root wheel 8608 Nov 23 05:09 drti.o -r--r--r-- 1 root wheel 6910 Nov 23 05:09 errno.d -r--r--r-- 1 root wheel 3196 Nov 23 05:09 psinfo.d -r--r--r-- 1 root wheel 3597 Nov 23 05:09 regs_x86.d -r--r--r-- 1 root wheel 3121 Nov 23 05:09 signal.d -r--r--r-- 1 root wheel 2019 Nov 23 05:09 unistd.d icarus# vim /usr/lib/dtrace/psinfo.d ... 31 typedef struct psinfo { 32 int pr_nlwp;/* number of threads */ 33 pid_t pr_pid; /* unique process id */ 34 pid_t pr_ppid;/* process id of parent */ 35 pid_t pr_pgid;/* pid of process group leader */ 36 pid_t pr_sid; /* session id */ 37 uid_t pr_uid; /* real user id */ 38 uid_t pr_euid;/* effective user id */ 39 gid_t pr_gid; /* real group id */ 40 gid_t pr_egid;/* effective group id */ -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
on 23/11/2010 15:25 Jeremy Chadwick said the following: On Tue, Nov 23, 2010 at 05:13:53AM -0800, Jeremy Chadwick wrote: On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). The same question. FWIW, I can reproduce his problem when following the procedure outlined in the Wiki. As a workaround I tried adding WITH_CTF=true to /etc/src.conf and rebuilding + reinstalling world + reboot, to no avail. I'm rebuilding the kernel now to see if that makes a difference after the above workaround. Nope, no go. icarus# kldload dtraceall icarus# dtrace -lP syscall dtrace: invalid probe specifier syscall: /usr/lib/dtrace/psinfo.d, line 37: syntax error near uid_t icarus# ls -l /boot/kernel/kernel -r-xr-xr-x 1 root wheel 7180261 Nov 23 05:16 /boot/kernel/kernel icarus# ls -l /usr/lib/dtrace total 32 -r--r--r-- 1 root wheel 8608 Nov 23 05:09 drti.o -r--r--r-- 1 root wheel 6910 Nov 23 05:09 errno.d -r--r--r-- 1 root wheel 3196 Nov 23 05:09 psinfo.d -r--r--r-- 1 root wheel 3597 Nov 23 05:09 regs_x86.d -r--r--r-- 1 root wheel 3121 Nov 23 05:09 signal.d -r--r--r-- 1 root wheel 2019 Nov 23 05:09 unistd.d icarus# vim /usr/lib/dtrace/psinfo.d ... 31 typedef struct psinfo { 32 int pr_nlwp;/* number of threads */ 33 pid_t pr_pid; /* unique process id */ 34 pid_t pr_ppid;/* process id of parent */ 35 pid_t pr_pgid;/* pid of process group leader */ 36 pid_t pr_sid; /* session id */ 37 uid_t pr_uid; /* real user id */ 38 uid_t pr_euid;/* effective user id */ 39 gid_t pr_gid; /* real group id */ 40 gid_t pr_egid;/* effective group id */ -- 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
Quoting Jeremy Chadwick free...@jdc.parodius.com (from Tue, 23 Nov 2010 05:13:53 -0800): On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). FWIW, I can reproduce his problem when following the procedure outlined in the Wiki. As a workaround I tried adding WITH_CTF=true to /etc/src.conf and WITH_CTF for makeoptions is only supported on 9-current (don't remember the exact rev). The text there tells to use WITH_CTF=1 for the buildkernel, but the example does not use it (it should for 8.x, it shouldn't need to for an approriate rev. of 9-current). The text that it will not work in make.conf/src.conf is valid for 8.x, but not (at least it shouldn't) for an appropriate versions of 9-current. Bye, Alexander. -- For people who like that kind of book, that is the kind of book they will like. http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
Does the WITH_CTF=1 works for the buildworld? And, what should I do now? On Tue, Nov 23, 2010 at 7:51 AM, Alexander Leidinger alexan...@leidinger.net wrote: Quoting Jeremy Chadwick free...@jdc.parodius.com (from Tue, 23 Nov 2010 05:13:53 -0800): On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). FWIW, I can reproduce his problem when following the procedure outlined in the Wiki. As a workaround I tried adding WITH_CTF=true to /etc/src.conf and WITH_CTF for makeoptions is only supported on 9-current (don't remember the exact rev). The text there tells to use WITH_CTF=1 for the buildkernel, but the example does not use it (it should for 8.x, it shouldn't need to for an approriate rev. of 9-current). The text that it will not work in make.conf/src.conf is valid for 8.x, but not (at least it shouldn't) for an appropriate versions of 9-current. Bye, Alexander. -- For people who like that kind of book, that is the kind of book they will like. http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ 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 -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Tue, Nov 23, 2010 at 02:40:56PM -0600, Zhihao Yuan wrote: Does the WITH_CTF=1 works for the buildworld? And, what should I do now? On Tue, Nov 23, 2010 at 7:51 AM, Alexander Leidinger alexan...@leidinger.net wrote: Quoting Jeremy Chadwick free...@jdc.parodius.com (from Tue, 23 Nov 2010 05:13:53 -0800): On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: on 23/11/2010 10:20 Zhihao Yuan said the following: Attach my kernel configuration here, just in case. On 00:12 Tue 23 Nov, Jeremy Chadwick wrote: Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan lich...@gmail.com - From: Zhihao Yuan lich...@gmail.com To: Jeremy Chadwick free...@jdc.parodius.com Date: Tue, 23 Nov 2010 01:18:57 -0600 Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE I followed the instructions, but still can not run any D-scripts. All scripts shows the error message that I just posted. Are the installed world and the installed kernel in sync? (Built from the same state of source code). FWIW, I can reproduce his problem when following the procedure outlined in the Wiki. As a workaround I tried adding WITH_CTF=true to /etc/src.conf and WITH_CTF for makeoptions is only supported on 9-current (don't remember the exact rev). The text there tells to use WITH_CTF=1 for the buildkernel, but the example does not use it (it should for 8.x, it shouldn't need to for an approriate rev. of 9-current). The text that it will not work in make.conf/src.conf is valid for 8.x, but not (at least it shouldn't) for an appropriate versions of 9-current. My interpretation of what Alexander wrote is this: On RELENG_8, the WITH_CTF=1 parameter must be specified manually on the command-line during the buildworld/installworld and buildkernel/installkernel phases, and cannot be put into /etc/src.conf or /etc/make.conf. E.g.: make buildworld WITH_CTF=1 make buildkernel WITH_CTF=1 make installkernel WITH_CTF=1 make installworld WITH_CTF=1 I'm sure one (or more) of these is superfluous, but someone needs to state up front what exactly the proper procedure is. The makeoptions WITH_CTF=1 kernel configuration option doesn't appear to work on RELENG_8, and I can confirm that WITH_CTF=true in /etc/src.conf might do something but it doesn't fix the problem reported originally. Someone should also probably update the Wiki to reflect what does work properly on RELENG_8 and have a separate section for CURRENT/9. -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
on 23/11/2010 22:45 Jeremy Chadwick said the following: make buildkernel WITH_CTF=1 I believe the above to be necessary and sufficient part (for using DTrace on kernel). -- 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
That's what I have done. I did not used WITH_CTF=1 on buildworld. Anyway, I;m using it to rebuild the world, which takes some time. On Tue, Nov 23, 2010 at 2:48 PM, Andriy Gapon a...@freebsd.org wrote: on 23/11/2010 22:45 Jeremy Chadwick said the following: make buildkernel WITH_CTF=1 I believe the above to be necessary and sufficient part (for using DTrace on kernel). -- Andriy Gapon -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
Can not rebuild kernel. As you known, I installed the latest kernel last night. This afternoon, I installed the latest 'world', which makes the 'world' and the kernel a little bit de-synchronized. And, I found that the devd can not be started, s I tried to build the kernel again. Here I met the biggest problem: I can not rebuild the kernel now! For each time the make process stopped at stage 2.3, and gives me a core dump finally. What's wrong? On Tue, Nov 23, 2010 at 2:52 PM, Zhihao Yuan lich...@gmail.com wrote: That's what I have done. I did not used WITH_CTF=1 on buildworld. Anyway, I;m using it to rebuild the world, which takes some time. On Tue, Nov 23, 2010 at 2:48 PM, Andriy Gapon a...@freebsd.org wrote: on 23/11/2010 22:45 Jeremy Chadwick said the following: make buildkernel WITH_CTF=1 I believe the above to be necessary and sufficient part (for using DTrace on kernel). -- Andriy Gapon -- 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. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
As I posted in another email, the gcc crashes in latest RELENG_8. Another explanation is that buildworld WITH_CTF=1 can crashes the gcc. I overwrote the gcc with the version in 8.1_RELEASE, and I'm rebuilding everything. I just want to know whether I'm supposed to be able to use Dtrace just with a CTF-enabled kernel. And, if so, what should I do to make it actually works. Thanks... guys. On Tue, Nov 23, 2010 at 4:50 PM, Zhihao Yuan lich...@gmail.com wrote: Can not rebuild kernel. As you known, I installed the latest kernel last night. This afternoon, I installed the latest 'world', which makes the 'world' and the kernel a little bit de-synchronized. And, I found that the devd can not be started, s I tried to build the kernel again. Here I met the biggest problem: I can not rebuild the kernel now! For each time the make process stopped at stage 2.3, and gives me a core dump finally. What's wrong? On Tue, Nov 23, 2010 at 2:52 PM, Zhihao Yuan lich...@gmail.com wrote: That's what I have done. I did not used WITH_CTF=1 on buildworld. Anyway, I;m using it to rebuild the world, which takes some time. On Tue, Nov 23, 2010 at 2:48 PM, Andriy Gapon a...@freebsd.org wrote: on 23/11/2010 22:45 Jeremy Chadwick said the following: make buildkernel WITH_CTF=1 I believe the above to be necessary and sufficient part (for using DTrace on kernel). -- Andriy Gapon -- 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. -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
On Tue, Nov 23, 2010 at 10:20:52PM -0600, Zhihao Yuan wrote: As I posted in another email, the gcc crashes in latest RELENG_8. Another explanation is that buildworld WITH_CTF=1 can crashes the gcc. I overwrote the gcc with the version in 8.1_RELEASE, and I'm rebuilding everything. I just want to know whether I'm supposed to be able to use Dtrace just with a CTF-enabled kernel. And, if so, what should I do to make it actually works. Thanks... guys. On Tue, Nov 23, 2010 at 4:50 PM, Zhihao Yuan lich...@gmail.com wrote: Can not rebuild kernel. As you known, I installed the latest kernel last night. This afternoon, I installed the latest 'world', which makes the 'world' and the kernel a little bit de-synchronized. And, I found that the devd can not be started, s I tried to build the kernel again. Here I met the biggest problem: I can not rebuild the kernel now! For each time the make process stopped at stage 2.3, and gives me a core dump finally. What's wrong? On Tue, Nov 23, 2010 at 2:52 PM, Zhihao Yuan lich...@gmail.com wrote: That's what I have done. I did not used WITH_CTF=1 on buildworld. Anyway, I;m using it to rebuild the world, which takes some time. On Tue, Nov 23, 2010 at 2:48 PM, Andriy Gapon a...@freebsd.org wrote: on 23/11/2010 22:45 Jeremy Chadwick said the following: make buildkernel WITH_CTF=1 I believe the above to be necessary and sufficient part (for using DTrace on kernel). I don't have this problem (re: gcc crashing on buildworld, with or without WITH_CTF=1). If gcc is crashing with signal 11: http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#SIGNAL11 Kindly requested: please apply some focus to a single issue or start separate threads for the problems you're experiencing (though I understand how some can be related to one another). So far there's been 3 or 4 separate topics/items mentioned during the course of this thread (how to get DTrace working, problems with devd, and now gcc crashing), and it's becoming more and more difficult to follow what's going on. -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ 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
Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE
I'm sorry, I'm not going to split the topics. So here is the current status: built kernel WITH_CTF and build world without CTF (I assume CTF is just a kernel feature). And the problem is exactly the same as I posted before, say line 88 staff. And, there are many people who have the same problem. Is it caused by some other options in our KERNCONF? Or it just does not work on some platforms On Tue, Nov 23, 2010 at 11:28 PM, Jeremy Chadwick free...@jdc.parodius.comwrote: On Tue, Nov 23, 2010 at 10:20:52PM -0600, Zhihao Yuan wrote: As I posted in another email, the gcc crashes in latest RELENG_8. Another explanation is that buildworld WITH_CTF=1 can crashes the gcc. I overwrote the gcc with the version in 8.1_RELEASE, and I'm rebuilding everything. I just want to know whether I'm supposed to be able to use Dtrace just with a CTF-enabled kernel. And, if so, what should I do to make it actually works. Thanks... guys. On Tue, Nov 23, 2010 at 4:50 PM, Zhihao Yuan lich...@gmail.com wrote: Can not rebuild kernel. As you known, I installed the latest kernel last night. This afternoon, I installed the latest 'world', which makes the 'world' and the kernel a little bit de-synchronized. And, I found that the devd can not be started, s I tried to build the kernel again. Here I met the biggest problem: I can not rebuild the kernel now! For each time the make process stopped at stage 2.3, and gives me a core dump finally. What's wrong? On Tue, Nov 23, 2010 at 2:52 PM, Zhihao Yuan lich...@gmail.com wrote: That's what I have done. I did not used WITH_CTF=1 on buildworld. Anyway, I;m using it to rebuild the world, which takes some time. On Tue, Nov 23, 2010 at 2:48 PM, Andriy Gapon a...@freebsd.org wrote: on 23/11/2010 22:45 Jeremy Chadwick said the following: make buildkernel WITH_CTF=1 I believe the above to be necessary and sufficient part (for using DTrace on kernel). I don't have this problem (re: gcc crashing on buildworld, with or without WITH_CTF=1). If gcc is crashing with signal 11: http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#SIGNAL11 Kindly requested: please apply some focus to a single issue or start separate threads for the problems you're experiencing (though I understand how some can be related to one another). So far there's been 3 or 4 separate topics/items mentioned during the course of this thread (how to get DTrace working, problems with devd, and now gcc crashing), and it's becoming more and more difficult to follow what's going on. -- | Jeremy Chadwick j...@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | -- Zhihao Yuan The best way to predict the future is to invent it. ___ 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