From owner-freebsd-dtrace@FreeBSD.ORG Fri Oct 24 17:54:38 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20F27F9A for ; Fri, 24 Oct 2014 17:54:38 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (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 B11D574A for ; Fri, 24 Oct 2014 17:54:37 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id q5so1902569wiv.11 for ; Fri, 24 Oct 2014 10:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=QIDcI/zPgU+aoq3O2/1kq4l6GlZjTZZed4iRjD11Cgs=; b=IepXoGkP9ShGBZTMXdyYC2o8wjLvfMwginVSes8WIvxT1LXgz9uh8+jvoK5iwqkm++ Bo0VR9vPJG3HoJMIJ/vp69wRcsa+JfyVf+2amqKyUbUgNhAEfXTAok4zR6BEAFLcLW3y U3VQXPWPjkioCirK3ToDIJIPdZBE7r3akMIvPpfbQlUk71AWOBiaNnhfHXQcU6GBPnN4 u0Kf4iZUSFMshaWJrFFuCjH54/Az9au1re0RZNnrDqEGLiL1Vi8lY289DSDzXf5VY13J LO+4xIWYQ7PUrDJrhSM9moDbYH/d9iP5vxRS9QcIzIVwBpJshPAGQOCeqyEW3myBAeVs Yy+g== MIME-Version: 1.0 X-Received: by 10.180.39.65 with SMTP id n1mr5634282wik.13.1414173276061; Fri, 24 Oct 2014 10:54:36 -0700 (PDT) Sender: markjdb@gmail.com Received: by 10.194.18.241 with HTTP; Fri, 24 Oct 2014 10:54:35 -0700 (PDT) In-Reply-To: <20141024050804.GA25182@raichu> References: <5449D69C.6090009@norma.perm.ru> <20141024050804.GA25182@raichu> Date: Fri, 24 Oct 2014 10:54:35 -0700 X-Google-Sender-Auth: ah62pfd5DY1GSaoNccG61co350g Message-ID: Subject: Re: ufunc() doesn't work From: Mark Johnston To: "Eugene M. Zheganin" Content-Type: text/plain; charset=UTF-8 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 17:54:38 -0000 On Thu, Oct 23, 2014 at 10:08 PM, Mark Johnston wrote: > 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. ufunc() is available in stable/10 as of r273595.