From owner-freebsd-dtrace@FreeBSD.ORG Sat Nov 2 13:48:15 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 27BBFF9 for ; Sat, 2 Nov 2013 13:48:15 +0000 (UTC) (envelope-from john.37@gmail.com) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E9310260C for ; Sat, 2 Nov 2013 13:48:14 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id wp18so5648920obc.15 for ; Sat, 02 Nov 2013 06:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+mpQVkwBOTU/WwBIQhj+587tOtqa7QuAqdypJ81ROG8=; b=m7oX1Cckqf3WMlOpKqVWex6hS03nUiQTNmoVt0D+84tUXDlv0xjOrclZk3up7LLIOZ L3L68QwaxBOKDeWSvWvXG5e+gJSYlpQStYvqxyxbNa8aEDTXIoOMbl/y11cC5gxTMmu3 RWw/5BzEOJzbVeJtekvJgOk9V09W1/EepG64jx3vLv/tcm//mOIOdUNuVLh8B+rsaW9l oA+c8gYflBvatZl4J8Gk9AaCAufqH6FacgalQ6pKoIAxXmPhaskCH3VujRT7uuscXbFk Eo/dawTp2a3s6eplIyW/AZxeQXfwzwA85tlwWYQHTn5TelVj+4H4Ape4OeFaew4TwXR0 hOPA== MIME-Version: 1.0 X-Received: by 10.60.40.136 with SMTP id x8mr1360282oek.49.1383400093358; Sat, 02 Nov 2013 06:48:13 -0700 (PDT) Received: by 10.60.35.74 with HTTP; Sat, 2 Nov 2013 06:48:13 -0700 (PDT) In-Reply-To: References: Date: Sat, 2 Nov 2013 21:48:13 +0800 Message-ID: Subject: Re: dtrace showed matched probes but nothing in output on FreeBSD 9.1-RELEASE From: John Luk To: George Neville-Neil Content-Type: text/plain; charset=UTF-8 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 13:48:15 -0000 gcc -g test.c, and I saw my test function name in dtrace -l|tail. 2013/11/2 George Neville-Neil : > > 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 > >