Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-04 Thread Zhihao Yuan
On Sat, Dec 4, 2010 at 5:19 AM, Andriy Gapon 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 util

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-04 Thread Andriy Gapon
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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-04 Thread Zhihao Yuan
On Sat, Dec 4, 2010 at 5:19 AM, Andriy Gapon 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.

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-04 Thread Reko Turja
From: "Zhihao Yuan" 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 wrote: I suppose that you have some

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-04 Thread Andriy Gapon
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. Obscu

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-03 Thread Zhihao Yuan
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 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,

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-03 Thread Andriy Gapon
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 supp

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-03 Thread Zhihao Yuan
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 wrote: > on 02/12/2010 04:24 Jeremy Chadwick said the following: > > On We

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-03 Thread Andriy Gapon
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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-03 Thread Andriy Gapon
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 ab

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Jeremy Chadwick
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?

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Zhihao Yuan
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 wrote: > On Wed, Dec 1,

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Navdeep Parhar
On Wed, Dec 1, 2010 at 5:37 PM, Zhihao Yuan 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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Brandon Gooch
On Wed, Dec 1, 2010 at 7:37 PM, Zhihao Yuan 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 h

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Zhihao Yuan
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 wrote: > On Wed, Dec 1, 2010 at 6:27 PM, Jerem

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Brandon Gooch
On Wed, Dec 1, 2010 at 6:27 PM, Jeremy Chadwick 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 wrote: >> > OK. Let's make this more clear: anyone has a working 8-2-PRERELEASE kernel >> > (amd64 is preferred) with Dtrace suppo

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Jeremy Chadwick
On Wed, Dec 01, 2010 at 06:22:40PM -0600, Brandon Gooch wrote: > On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan 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 s

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Brandon Gooch
On Wed, Dec 1, 2010 at 4:30 PM, Zhihao Yuan 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 i3

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-12-01 Thread Zhihao Yuan
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 wrote: > on 23/11/2010 1

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Zhihao Yuan
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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Jeremy Chadwick
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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Zhihao Yuan
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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Zhihao Yuan
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 bi

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Zhihao Yuan
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 wrote: > on 23/11/2010 22:45 Jeremy Chadwick said the following: > > make buildkernel WITH_CTF=1 > > I believe the abo

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Andriy Gapon
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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Jeremy Chadwick
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 (from Tue, 23 Nov 2010 > > 05:13:53 -

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Zhihao Yuan
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 (from Tue, 23 Nov 2010 > 05:13:53 -0800): > > On Tue, Nov 23, 2010 at 02:39:47PM +0200, Andriy Gapon wrote: >

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Alexander Leidinger
Quoting Jeremy Chadwick (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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Andriy Gapon
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.

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Jeremy Chadwick
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:

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Jeremy Chadwick
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

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Andriy Gapon
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 - >>

Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Zhihao Yuan
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 - > > > From: Zhihao Yuan > > To: Jeremy Chadwick > > Date: Tu

Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE

2010-11-23 Thread Jeremy Chadwick
Forwarding back to the mailing list since the OP didn't CC it on his reply to me. - Forwarded message from Zhihao Yuan - > From: Zhihao Yuan > To: Jeremy Chadwick > Date: Tue, 23 Nov 2010 01:18:57 -0600 > Subject: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE > > I followed the instruc