From owner-freebsd-dtrace@FreeBSD.ORG Fri Oct 24 05:08:19 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5F13A4D for ; Fri, 24 Oct 2014 05:08:19 +0000 (UTC) Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com [IPv6:2607:f8b0:400e:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC27667A for ; Fri, 24 Oct 2014 05:08:19 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id r10so814473pdi.2 for ; Thu, 23 Oct 2014 22:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=/A5U83gmTm0TDbLI6ENdRJC4Vtkx6kCglgoqJwiAO1U=; b=PuZX35uLDsysfhyRwAdGB5bgSrUNb+ORpPCS8sBefZuP8wajYKsmSd/fy2IJH9sHTE u1vodlFJJobs48Sy5pxJFE0Y52NyRP1xMCQS8jLUbWasr3XQ08xC3cKu80FJya5z6pVZ Z7Fw+zhvGTWrgaUIJ2IUsfNPlD3fJD2sb7bvuhU4bFIgOHbS9TkEYHo9PElze+9B3Yp/ YIpJr8G8yh5/A1O9e1P1RNzX+8uwo7QOV1dhtg2RrrQVx0A3YM6bpzgjxTL+qGaGYMDV oL8J2+VZYPU9o+zUsa3tCVNSKZqjIoZu6OnbKbH/AYAK+dGbv2WvKo3GImhssM6n3E2J 2Y+A== X-Received: by 10.68.101.98 with SMTP id ff2mr2347419pbb.74.1414127299254; Thu, 23 Oct 2014 22:08:19 -0700 (PDT) Received: from raichu ([198.244.104.6]) by mx.google.com with ESMTPSA id gz11sm2890840pbd.20.2014.10.23.22.08.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Oct 2014 22:08:18 -0700 (PDT) Sender: Mark Johnston Date: Thu, 23 Oct 2014 22:08:04 -0700 From: Mark Johnston To: "Eugene M. Zheganin" Subject: Re: ufunc() doesn't work Message-ID: <20141024050804.GA25182@raichu> References: <5449D69C.6090009@norma.perm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5449D69C.6090009@norma.perm.ru> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-dtrace@freebsd.org X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 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: Fri, 24 Oct 2014 05:08:20 -0000 On Fri, Oct 24, 2014 at 10:33:32AM +0600, Eugene M. Zheganin wrote: > Hi. > > I'm new to dtrace and I test various examples while learning, but it > seems to me that I miss something. This example doesn't work on FreeBSD: > > dtrace -n 'profile-97/arg1/ { @[ufunc(arg1)] = count(); }' > > although it works fine on Solaris. As I understand, ufunc() is some kine > of core function, not the stuff brought by some provider that is > probably missing on FreeBSD. Why doesn't this work ? I use it on FreeBSD > 10.0-STABLE r261282. Hi, The ufunc function (as well as umod and sym) is available on HEAD but not in stable/10. I'll merge the change as soon as I've verified that it builds. Thanks for pointing this out. -Mark