Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 08:54:20 -0400
From:      George Neville-Neil <gnn@neville-neil.com>
To:        John Luk <john.37@gmail.com>
Cc:        freebsd-dtrace@freebsd.org
Subject:   Re: dtrace showed matched probes but nothing in output on FreeBSD 9.1-RELEASE
Message-ID:  <F394CF37-48E5-4F1F-A22F-EDF7227FEAAF@neville-neil.com>
In-Reply-To: <CAHkCX6j1H4cxeb255gdH_cLop5Lv0xJABbuma%2B835gNNq-Nshg@mail.gmail.com>
References:  <CAHkCX6j1H4cxeb255gdH_cLop5Lv0xJABbuma%2B835gNNq-Nshg@mail.gmail.com>

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

--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 <john.37@gmail.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F394CF37-48E5-4F1F-A22F-EDF7227FEAAF>