From owner-freebsd-stable@FreeBSD.ORG Sat Dec 4 22:23:04 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 1CF291065679; Sat, 4 Dec 2010 22:23:04 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 71BEF8FC1D; Sat, 4 Dec 2010 22:23:02 +0000 (UTC) Received: by wwf26 with SMTP id 26so6517989wwf.31 for ; Sat, 04 Dec 2010 14:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=AZpv1xUUikY8mpAfpEduF8c77XIGOMRouc7TezLb5FA=; b=t6HZlKurtyhxTVVNQAqtF2GDAHRBDMCP6+ZVhKsTJa5Ycc4Ob+P6Z4LoBHTQPnxBCS Rmaz2tj+Hsry/MQ5HWmcd3xY4NXbZfmXn5heG+bDUkTrIEaV4OT8mFC2kxYKeAsjBC/9 ueXCIRqfcuPDryT5oGcdd0wqHPoMBn6QuiYRk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OaB+OfvdaeZzLb0UAPt5Rs2maomnesKdsKPQhw6JG6ZOXp0C1dsMKR7Av1aj7f747o Cn8dVQVTdAiUh4cWLfqFPZ5FG0ALCvouR32B5gDtt9pCKdqgoqisgYWabNpnXx0DrH3v larfIL0/nzrkkDmmjJniDCAlVuU8qm0SxKBmw= MIME-Version: 1.0 Received: by 10.227.132.208 with SMTP id c16mr3827617wbt.25.1291501382106; Sat, 04 Dec 2010 14:23:02 -0800 (PST) Received: by 10.227.136.84 with HTTP; Sat, 4 Dec 2010 14:23:01 -0800 (PST) In-Reply-To: <4CFA23A7.3050604@freebsd.org> References: <20101123131353.GA7243@icarus.home.lan> <20101123132519.GA1426@icarus.home.lan> <4CEBC155.9090706@freebsd.org> <20101202002734.GA84177@icarus.home.lan> <20101202022416.GA86118@icarus.home.lan> <4CF8FDC8.7050702@freebsd.org> <4CF97D6A.7020900@freebsd.org> <4CFA23A7.3050604@freebsd.org> Date: Sat, 4 Dec 2010 16:23:01 -0600 Message-ID: From: Zhihao Yuan To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Brandon Gooch , freebsd-stable@freebsd.org, Navdeep Parhar , 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: Sat, 04 Dec 2010 22:23:04 -0000 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.... 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 to use it to trace my program. SDT may help. I need to learn more. Thanks guys... > DTrace (userland utility on FreeBSD) self-diagnostics really should be > improved. > Obscure complaints about problem in system .d files do not help at all for > a > user to understand what the actual problem could be. Sigh. > > -- > Andriy Gapon > -- Zhihao Yuan The best way to predict the future is to invent it.