From owner-p4-projects@FreeBSD.ORG Tue Apr 25 22:21:25 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DCAE716A41B; Tue, 25 Apr 2006 22:21:24 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8C9616A402 for ; Tue, 25 Apr 2006 22:21:24 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 845C143D6E for ; Tue, 25 Apr 2006 22:21:24 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3PMLOI3016925 for ; Tue, 25 Apr 2006 22:21:24 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3PMLOFk016919 for perforce@freebsd.org; Tue, 25 Apr 2006 22:21:24 GMT (envelope-from jb@freebsd.org) Date: Tue, 25 Apr 2006 22:21:24 GMT Message-Id: <200604252221.k3PMLOFk016919@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 96113 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2006 22:21:25 -0000 http://perforce.freebsd.org/chv.cgi?CH=96113 Change 96113 by jb@jb_freebsd2 on 2006/04/25 22:21:03 Woo-hoo we've got a trace enabled at last. Just a simple 'dtrace -n BEGIN', but that's the DTrace equivalent of getting a 'hello world' program to compile for the first time. Remember doing that? I can. Just. Now we're up to the sleep loop waiting for some feedback from the dtrace device. That means it's time for the nitty-gritties (TM). Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_work.c#6 edit Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_work.c#6 (text) ==== @@ -75,6 +75,7 @@ earliest = *((hrtime_t *)a) + interval; } +printf("%s:%s(%d):\n",__FUNCTION__,__FILE__,__LINE__); (void) pthread_mutex_lock(&dph->dph_lock); now = gethrtime(); @@ -196,7 +197,6 @@ if (err == -1 && (errno != ENOTTY || dtp->dt_vector == NULL)) return (dt_set_errno(dtp, errno)); -printf("%s: ioctl DTRACEIOC_GO\n",__FUNCTION__); if (dt_ioctl(dtp, DTRACEIOC_GO, &dtp->dt_beganon) == -1) { if (errno == EACCES) return (dt_set_errno(dtp, EDT_DESTRUCTIVE));