From owner-freebsd-dtrace@FreeBSD.ORG Sat Nov 2 03:56:50 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 70E51D29 for ; Sat, 2 Nov 2013 03:56:50 +0000 (UTC) (envelope-from john.37@gmail.com) Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 408362D25 for ; Sat, 2 Nov 2013 03:56:50 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id uy5so5350862obc.10 for ; Fri, 01 Nov 2013 20:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=gcO+eD9BEHr2IlcjRenoHvXJScuhLOH1v121VvPYkEA=; b=xuxDdYeJNPL6+TduJX+3RZ6zCWnGHKuY1vhp7z1X+osZLNwAHBSKYBd6qhyHISZEGK BWEpP9OKGN2iUuHJeVMTNGj9r4OBtUc5eo86CVgfS+EgKZBlJUEN/Bom9gVoRiJ28UwX VqUkR2QzJsTEUpcNoc2uHTtv8/Rguy8qrq1m6CQh191f9vn12Untsw2gn2FZoL9TehdC NnpUPe2tqfYbM9Mi+t0rFGc80dgrljMyvpSOVNCnx/Kg+r59pIh2Wcl1HgWdGVKloq76 38jVvmovXuGjhNCZmyxXQDhrBEhcHIIkL1fV5E4zxTwRTdWz1bQHW3doo8RlBiTzksUi TcLA== MIME-Version: 1.0 X-Received: by 10.60.44.193 with SMTP id g1mr5066156oem.47.1383364609519; Fri, 01 Nov 2013 20:56:49 -0700 (PDT) Received: by 10.60.35.74 with HTTP; Fri, 1 Nov 2013 20:56:49 -0700 (PDT) Date: Sat, 2 Nov 2013 11:56:49 +0800 Message-ID: Subject: dtrace showed matched probes but nothing in output on FreeBSD 9.1-RELEASE From: John Luk To: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset=UTF-8 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 03:56:50 -0000 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. Cheers, spin6lock