From owner-freebsd-stable@FreeBSD.ORG Fri Dec 3 14:03:23 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACEEA1065697 for ; Fri, 3 Dec 2010 14:03:23 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E99018FC1A for ; Fri, 3 Dec 2010 14:03:22 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA26204; Fri, 03 Dec 2010 16:03:14 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4CF8F8A1.1060300@freebsd.org> Date: Fri, 03 Dec 2010 16:03:13 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Zhihao Yuan References: <20101123081244.GA38354@icarus.home.lan> <20101123082046.GA62301@compaq.yuetime> <4CEBB613.5010009@freebsd.org> <20101123131353.GA7243@icarus.home.lan> <20101123132519.GA1426@icarus.home.lan> <4CEBC155.9090706@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Jeremy Chadwick Subject: Re: Fwd: Re: Fail to use Dtrace on FreeBSD 8.1-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2010 14:03:23 -0000 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