how to build kernel with CTF data for DTrace?

2011-03-23 Thread Anton Yuzhaninov
On this page:
http://wiki.freebsd.org/DTrace

written, that for 9-current is sufficient to rebild kernel with this
options:

options DDB_CTF
options KDTRACE_HOOKS
makeoptions DEBUG=-g
makeoptions WITH_CTF=1

I have rebuild kernel with this options, but:
$ ctfdump -l /boot/kernel/kernel
/boot/kernel/kernel does not contain .SUNW_ctf data

Is instruction in wiki outdated?

full build log:
https://hius.citrin.ru/a/2011-03-23-buildkernel.log

FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r219710M

-- 
WBR,
 Anton Yuzhaninov

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: how to build kernel with CTF data for DTrace?

2011-03-23 Thread Bruce Cran
On Wed, 23 Mar 2011 10:23:50 + (UTC)
Anton Yuzhaninov cit...@citrin.ru wrote:

 options DDB_CTF
 options KDTRACE_HOOKS
 makeoptions DEBUG=-g
 makeoptions WITH_CTF=1
 
 I have rebuild kernel with this options, but:
 $ ctfdump -l /boot/kernel/kernel
 /boot/kernel/kernel does not contain .SUNW_ctf data
 
 Is instruction in wiki outdated?

I think you need to specify WITH_CTF=1 on the commandline, e.g.

make WITH_CTF=1 buildkernel

-- 
Bruce Cran
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: how to build kernel with CTF data for DTrace?

2011-03-23 Thread Andriy Gapon
on 23/03/2011 12:23 Anton Yuzhaninov said the following:
 On this page:
 http://wiki.freebsd.org/DTrace
 
 written, that for 9-current is sufficient to rebild kernel with this
 options:
 
 options DDB_CTF
 options KDTRACE_HOOKS
 makeoptions DEBUG=-g
 makeoptions WITH_CTF=1

Also for amd64:
options KDTRACE_FRAME

 
 I have rebuild kernel with this options, but:
 $ ctfdump -l /boot/kernel/kernel
 /boot/kernel/kernel does not contain .SUNW_ctf data
 
 Is instruction in wiki outdated?

The instructions work for me here.

 full build log:
 https://hius.citrin.ru/a/2011-03-23-buildkernel.log
 
 FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r219710M
 


-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: how to build kernel with CTF data for DTrace?

2011-03-23 Thread Andriy Gapon
on 23/03/2011 13:55 Andriy Gapon said the following:
 on 23/03/2011 12:23 Anton Yuzhaninov said the following:
 On this page:
 http://wiki.freebsd.org/DTrace

 written, that for 9-current is sufficient to rebild kernel with this
 options:

 options DDB_CTF
 options KDTRACE_HOOKS
 makeoptions DEBUG=-g
 makeoptions WITH_CTF=1
 
 Also for amd64:
 options   KDTRACE_FRAME
 

 I have rebuild kernel with this options, but:
 $ ctfdump -l /boot/kernel/kernel
 /boot/kernel/kernel does not contain .SUNW_ctf data

 Is instruction in wiki outdated?
 
 The instructions work for me here.
 
 full build log:
 https://hius.citrin.ru/a/2011-03-23-buildkernel.log

 FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r219710M

Just an idea - do you have WITHOUT_CDDL in your src.conf or something like that?

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: how to build kernel with CTF data for DTrace?

2011-03-23 Thread Anton Yuzhaninov
On Wed, 23 Mar 2011 14:08:22 +0200, Andriy Gapon wrote:
 I have rebuild kernel with this options, but:
 $ ctfdump -l /boot/kernel/kernel
 /boot/kernel/kernel does not contain .SUNW_ctf data

 FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r219710M
AG 
AG Just an idea - do you have WITHOUT_CDDL in your src.conf or something like 
that?

Thsnks, I forgot to removed WITHOUT_CDDL from src.conf

-- 
WBR,
 Anton Yuzhaninov

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: how to build kernel with CTF data for DTrace?

2011-03-23 Thread Andriy Gapon
on 23/03/2011 12:52 Bruce Cran said the following:
 On Wed, 23 Mar 2011 10:23:50 + (UTC)
 Anton Yuzhaninov cit...@citrin.ru wrote:
 
 options DDB_CTF
 options KDTRACE_HOOKS
 makeoptions DEBUG=-g
 makeoptions WITH_CTF=1

 I have rebuild kernel with this options, but:
 $ ctfdump -l /boot/kernel/kernel
 /boot/kernel/kernel does not contain .SUNW_ctf data

 Is instruction in wiki outdated?
 
 I think you need to specify WITH_CTF=1 on the commandline, e.g.
 
 make WITH_CTF=1 buildkernel

The makeoptions line above should be completely equivalent to your suggestion 
for
kernel builds.

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org