Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2010 18:41:47 -0500
From:      Weihang Wang <weihang@vt.edu>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Got an error: Unknown option "DDB_CTF"
Message-ID:  <47405515-D6EF-4B80-B020-0C93987EBA29@vt.edu>
In-Reply-To: <20101122213155.GC58734@dan.emsphone.com>
References:  <CB053608-596F-4326-81AF-1905DDFABBBC@vt.edu> <20101122170806.GA58734@dan.emsphone.com> <B21BB9CA-D6E6-4F80-9021-940BA0B07497@vt.edu> <20101122213155.GC58734@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Thanks again. The transport protocol is not implemented by me, but I =
need to run this protocol to see the behavior of this protocol. So now I =
have no idea about the implementation of the transport protocol and =
don't know whether it could run on later versions than FreeBSD 6.0. I =
guess what I could do now is try to see whether this protocol could work =
on FreeBSD later version (8.1 or later?? ). If it works, then everything =
is fine. If not, maybe I have to find other instrumenting tools instead =
of DTrace.
Thank you so much.

Best,
W.Wang



On Nov 22, 2010, at 4:31 PM, Dan Nelson wrote:

> In the last episode (Nov 22), Weihang Wang said:
>> On Nov 22, 2010, at 12:08 PM, Dan Nelson wrote:
>>> In the last episode (Nov 22), Weihang Wang said:
>>>> I am a totally newbie to FreeBSD. I am building a custom kernel =
based
>>>> on FreeBSD 6.0 kernel (I have to use this version cause I need to =
run
>>>> an application which is only available for FreeBSD 6.0).  I conform =
to
>>>> the handbook to add the following lines in kernel configuration =
file to
>>>> enable DTrace support:
>>>>=20
>>>> options	KDTRACE_FRAME
>>>> options	KDTRACE_HOOKS
>>>> options	DDB_CTF
>>>> makeoptions WITH_CTF=3D1
>>>>=20
>>>> Then I use the following commands to recompile my kernel and =
install
>>>> this new kernel:
>>>>=20
>>>> make buildkernel KERNCONF=3DKERNELNAME
>>>> make installkernel KERNCONF=3DKERNELNAME
>>>>=20
>>>> The compiling process encounters an error: Unknown option =
"DDB_CTF", I
>>>> have no idea how to fix this?
>>>=20
>>> Just remove all references to CTF; that's for Dtrace support, which =
doesn't
>>> exist in the 6.* branch.
>>>=20
>>> You might also want to try running your application on FreeBSD 8.1 =
after
>>> installing the misc/compat6x package.  Backwards binary =
compatibility
>>> support is very good.
>>=20
>> Thank you so much for your help. But I am still concerned about the
>> backward compatibility.  First I have to use DTrace to instrument the
>> kernel to do performance analysis.  At the same time, the program I =
need
>> to build on the FreeBSD is a kind of transport protocol, which is =
based on
>> the FreeBSD 6.0.  The transport protocol may change the network stack =
of
>> the kernel networking system, so I do not know whether this would =
work.=20
>> Hope to hear from you.  Thank you very much.
>=20
> If your program includes kernel modifications and the modifications =
only
> apply cleanly to FreeBSD 6, then you may be stuck unless you can port =
the
> changes to a newer version of FreeBSD.  DTrace support for the kernel =
went
> into FreeBSD 7.1, and DTrace for user processes will be in 9.0 (with
> backports to 8.2 and 7.4 later).
>=20
> If your program implements its transport protocol completely in =
userland (by
> opening raw sockets for example), then it will probably run on FreeBSD =
8.1.
>=20
> --=20
> 	Dan Nelson
> 	dnelson@allantgroup.com
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47405515-D6EF-4B80-B020-0C93987EBA29>