From owner-freebsd-current@FreeBSD.ORG Thu Jun 14 04:33:09 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEBC4106566B for ; Thu, 14 Jun 2012 04:33:09 +0000 (UTC) (envelope-from rgoodfel@eecs.wsu.edu) Received: from mx0b-0007b301.pphosted.com (mx0b-0007b301.pphosted.com [67.231.152.34]) by mx1.freebsd.org (Postfix) with ESMTP id 832A68FC16 for ; Thu, 14 Jun 2012 04:33:09 +0000 (UTC) Received: from pps.filterd (m0000696 [127.0.0.1]) by mx0b-0007b301.pphosted.com (8.14.4/8.14.4) with SMTP id q5E4TwHA012138 for ; Wed, 13 Jun 2012 21:33:03 -0700 Received: from zmail1.eecs.wsu.edu (zmail1.eecs.wsu.edu [69.166.54.48]) by mx0b-0007b301.pphosted.com with ESMTP id 15f2wmrxxr-1 for ; Wed, 13 Jun 2012 21:33:03 -0700 Received: from [128.9.184.199] (unknown [128.9.184.199]) by zmail1.eecs.wsu.edu (Postfix) with ESMTPSA id 9344C66D20A for ; Wed, 13 Jun 2012 21:33:02 -0700 (PDT) From: Ryan Goodfellow Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Jun 2012 21:33:01 -0700 Message-Id: <5D6510D5-A8B3-41D9-B175-15FA680AF7F2@eecs.wsu.edu> To: freebsd-current@freebsd.org Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855, 1.0.260, 0.0.0000 definitions=2012-06-14_01:2012-06-13, 2012-06-14, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1206130364 Subject: DTrace broken on 9.0-Release? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 04:33:09 -0000 Hi FreeBSD community, Today I downloaded and installed FreeBSD 9.0-RELEASE and followed the = directions from to get DTrace up and = running. The output of DTrace instrumenting a simple program, however, = is not correct. The program is as follows: // test.cc #include int main(void) { for(int i =3D 0; i < 5; i++) { malloc(47); } } then compiling and running DTrace as follows: g++ test.cc -o test dtrace -n 'pid$target::malloc:entry{ }' -c ./test The correct output for this example is something to the tune of: dtrace: description 'pid$target::malloc:entry' matched 2 probes dtrace: pid 95236 has exited CPU ID FUNCTION:NAME 0 188748 malloc:entry=20 0 188748 malloc:entry=20 0 188748 malloc:entry=20 0 188748 malloc:entry=20 0 188748 malloc:entry=20 (this from a machine with the same code running DTrace) The DTrace session should also make an immediate exit on completion. On = FreeBSD I have the following CPU ID FUNCTION:NAME 2 42213 malloc:entry=20 and the execution does either not exit on it's own or hangs, it requires = a ctrl-c. I followed the instructions from the FreeBSD site exactly, compiling and = installing the custom kernel. I used both clang++ and g++ for = compilation with the same result. The system has even completely hung = on other attempts. Is DTrace not something that should be relied upon in FreeBSD? I have = also tried this on the latest 10-CURRENT build with the same result. Thanks Ryan G=