From owner-freebsd-dtrace@FreeBSD.ORG Sun Sep 15 19:28:07 2013 Return-Path: Delivered-To: dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C2AD096B for ; Sun, 15 Sep 2013 19:28:07 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm27-vm2.bullet.mail.ne1.yahoo.com (nm27-vm2.bullet.mail.ne1.yahoo.com [98.138.91.215]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 65EF62181 for ; Sun, 15 Sep 2013 19:28:03 +0000 (UTC) Received: from [98.138.90.56] by nm27.bullet.mail.ne1.yahoo.com with NNFMP; 15 Sep 2013 19:27:57 -0000 Received: from [98.138.226.127] by tm9.bullet.mail.ne1.yahoo.com with NNFMP; 15 Sep 2013 19:27:57 -0000 Received: from [127.0.0.1] by smtp206.mail.ne1.yahoo.com with NNFMP; 15 Sep 2013 19:27:57 -0000 X-Yahoo-Newman-Id: 595644.52995.bm@smtp206.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: IMKO9fQVM1nMbVjf8hnjdVmEAlgaMWXtmTataSZwXlH_zyn UsPlMly5FqJ0yQ9LzYag3jDbCwYuAH88ayCOOz4Q0rJRa6OlrlrpvqUFna9j sdqNL3fYtTVYBCo9WexXzqJE2lGDx0tsSLNvJdQFuUgulB2DasSK2pQULPWw jjvlFXAy35GEwkGF7xHHe4nQHSrJ2NcyqmdnDdklyPsE_8inhygkItflCn46 3s8ftWKXFJbttrm.PEC9kgokzp5OMjNtiQqQem0XoPlZ_ksqodzZOgBz4JYo W1h1cVhMdMKRuKwj..Q6wvORqaHyniCjpVSZQrQOr8Stya1ZVynziXxBGfLc O_8oYG4gsYb7wgF5aZysootzNYe1HSPcb5p7tNjauvLhTih1IhhvhP.B3la9 88djMxu4Kc1.aPDlPRLHQo0a1lLZ3JGmaHPNi_NvZWOWVdiBdB5cCyNlPI8M hHgTbiJhINE2pKYeabfkZhxOt9yPam6qcXG.7X0yLHvgGmcwqxByKnLcDzXG JwsJItMQwcRo9y0KV0UQ35jOGOZ6i2peOut6kVs4r8csLDY6PM1mWErFVRsm 1PstLIDgal3gxvrYfqPotkV_KZLAqImdy0meNBfxevyIGrWosGgDknyEFk9A eIvWNeFFq7ZbcxZ9f X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with ) by smtp206.mail.ne1.yahoo.com with SMTP; 15 Sep 2013 12:27:57 -0700 PDT Message-ID: <52360A3E.40804@FreeBSD.org> Date: Sun, 15 Sep 2013 14:27:58 -0500 From: Pedro Giffuni Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: dtrace@FreeBSD.org Subject: vmem(9) use in Dtrace Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 15 Sep 2013 19:28:07 -0000 Hi; Just noticed this, in the old DtraceTODO wiki: https://wiki.freebsd.org/DTraceTODO There is mention of some use that Dtrace makes of Solaris's vmem allocator, specifically vmem_create(), vmem_destroy(), vmem_alloc(), and vmem_free(). These functions (not exact but similar ones) have been brought to FreeBSD 10 (r252330). According to opengrok we may just have to uncomment some Solaris code in sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c This would reduce differences with the Solaris code but it has to be examined carefully as I think John Birrell had already solved the issue by providing the resource id's natively (kmem). Just thought I would point it out ... It may be that it is not worth spending too much time on it since the existing code should just work. Pedro.