From owner-freebsd-dtrace@FreeBSD.ORG Sat Nov 2 12:54:21 2013 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6B6D8605 for ; Sat, 2 Nov 2013 12:54:21 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3C5642423 for ; Sat, 2 Nov 2013 12:54:21 +0000 (UTC) Received: from pool-71-167-166-95.nycmny.fios.verizon.net ([71.167.166.95]:59476 helo=new-host.home) by vps.hungerhost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VcaiZ-0001gj-RI; Sat, 02 Nov 2013 08:54:20 -0400 Content-Type: multipart/signed; boundary="Apple-Mail=_E85DF1E5-8618-48DE-A6A4-4AA3830ADCE4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1811\)) Subject: Re: dtrace showed matched probes but nothing in output on FreeBSD 9.1-RELEASE From: George Neville-Neil In-Reply-To: Date: Sat, 2 Nov 2013 08:54:20 -0400 Message-Id: References: To: John Luk X-Mailer: Apple Mail (2.1811) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com X-Get-Message-Sender-Via: vps.hungerhost.com: authenticated_id: gnn@neville-neil.com Cc: freebsd-dtrace@freebsd.org X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2013 12:54:21 -0000 --Apple-Mail=_E85DF1E5-8618-48DE-A6A4-4AA3830ADCE4 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Nov 1, 2013, at 23:56 , John Luk wrote: > Hi all, > I'm a newbie in dtrace, and I following this tutorial from Oracle: > http://docs.oracle.com/cd/E19205-01/820-4221/ to learn dtrace. In the > example of test.c and ufunc.d, I expected output like this: > > % dtrace -s ufunc.d -c ./a.out a.out > > dtrace: script 'ufunc.d' matched 5 probes > dtrace: pid 27210 has exited > > inet_makeaddr 1 > foo1 1 > foo 1 > main 1 > __fsr 1 > > > But I got this instead: > > # dtrace -s ufunc.d -c ./a.out a.out > dtrace: script 'ufunc.d' matched 5 probes > dtrace: pid 86498 has exited > > # > > My system info: > root@home:/home/spin6lock/test # dtrace -V > dtrace: Sun D 1.7 > root@home:/home/spin6lock/test # uname -a > FreeBSD 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Mon Oct 28 20:52:03 CST > 2013 root@xiangling:/usr/obj/usr/src/sys/DTRACE amd64 > > Any clues? Thanks in advanced. > How did you compile the progam to a.out? Best, George --Apple-Mail=_E85DF1E5-8618-48DE-A6A4-4AA3830ADCE4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlJ09fwACgkQYdh2wUQKM9LIawCg1IF4GGnpuNKbiLRvdGCYYEGB aHUAmgMrRdovDrCxaA9NtNu6JWv7M7nR =H8rI -----END PGP SIGNATURE----- --Apple-Mail=_E85DF1E5-8618-48DE-A6A4-4AA3830ADCE4--