From owner-freebsd-current@FreeBSD.ORG Thu Jun 12 22:04:08 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52C261065676 for ; Thu, 12 Jun 2008 22:04:08 +0000 (UTC) (envelope-from trebestie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id CF0E48FC15 for ; Thu, 12 Jun 2008 22:04:07 +0000 (UTC) (envelope-from trebestie@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so3118990fgb.35 for ; Thu, 12 Jun 2008 15:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4A1R8b0Ea1j6EAVbemhdg6C095/0+yB3DxPpuit4tqc=; b=HOFgtxyZ693EiKUIo+YGG1dT1s/nwKkfrr98/IxWksa0243E8EMxzISTLuuq5Bwxw8 d09wsSpDmW/YNR06Wc9lZxxl3lwLNe/xo5k/MiRVJgOGAraJ5RxUHw/yoQ5NlkhFaobc 41QG7Rl4AyoBpiWCBU/y+D3qTNdcWmZd/XHm0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=O+3qnzRy4tpmYrY7ZKjwWD0dl1BN9lNpgmMeF4m+LrkeA9i4MVqMf6yxq8oMlayfGH TUGc1Z+e/AXuEO8FkuG0ewmku/LSbv4YYocSDgA+kLnXYvCtKEes1AFKBCR3a4tdYtH9 0TXXFSbiRjS3M9TOhewdi9o3atVpT/stsx/AM= Received: by 10.86.59.18 with SMTP id h18mr2985678fga.67.1213306730536; Thu, 12 Jun 2008 14:38:50 -0700 (PDT) Received: by 10.86.68.11 with HTTP; Thu, 12 Jun 2008 14:38:50 -0700 (PDT) Message-ID: <83e5fb980806121438m1e627af9vf9ab294ca56206eb@mail.gmail.com> Date: Thu, 12 Jun 2008 23:38:50 +0200 From: "Diego Depaoli" To: current@freebsd.org, "John Birrell" In-Reply-To: <20080611051257.GA51683@what-creek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080611051257.GA51683@what-creek.com> Cc: Subject: Re: Getting started with DTrace in FreeBSD-current (a.k.a. 8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 22:04:08 -0000 2008/6/11 John Birrell : > > It's been a few weeks now since I committed DTrace support to current. I'm curious... impact over performances? > > To start using DTrace to trace stuff in the kernel (userland tracing > isn't supported yet), here's what you need to do: > > 1. Grab the latest current sources for the entire src tree. > 2. Do a 'make buildworld' of those sources on either a -current system > or a releng7 system. > 3. Add 'options KDTRACE_HOOKS' and 'options DDB_CTF' to your kernel > config file (on i386 or amd64; users of other arches can go watch > a movie instead). > 4. Do a 'make WITH_CTF=1 buildkernel && make installkernel' Done, but I get this error MAKE=make sh /usr/src/sys/conf/newvers.sh GENERIC cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror vers.c linking kernel.debug subr_kdb.o(.text+0x650): In function `kdb_enter': : multiple definition of `kdb_enter' kern_dtrace.o(.text+0x1e0): first defined here ld: Warning: size of symbol `kdb_enter' changed from 34 in kern_dtrace.o to 70 in subr_kdb.o *** Error code 1 Stop in /usr/obj/usr/src/sys/NEWK. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. NEWK=GENERIC without debugging uname -a FreeBSD 8.0-CURRENT #3: Sun Jun 8 23:23:55 CEST 2008 i386 thanks in advance -- Diego Depaoli