From owner-freebsd-dtrace@freebsd.org Wed May 11 17:27:50 2016 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00AE0B37AD9; Wed, 11 May 2016 17:27:50 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C6FC91142; Wed, 11 May 2016 17:27:49 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x244.google.com with SMTP id g132so4229594pfb.3; Wed, 11 May 2016 10:27:49 -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-disposition:in-reply-to:user-agent; bh=O4NVponpbYrPkyEYTKUNZUnjM78ZicTJFj0UuLyEc78=; b=ZnFsxGBw92tjJVA8XuL57byVjhcJiKaWYn5oxJ3sKFAUsZD33s5K4hUpEGSm/a3on9 kCTS8k240mPmfOIYDgrj4HY1dNGEuBih4M5b8islyRU+bSLDENL92CKxbucJqodv7V8I KSmX30WmQXDePgQ9KP9kc9beKkQ5U+Y9Nhb9WAA2pQf1edMWUIMCp+v3TEJwWOklXnnP DsyN7es5pCDykVzsOZQw5I5eNuSvOOgMKqBX/dJGC/KZQ9iDu0JR1zxU1/kU4e8i+GKi BVAzIxdvgT5y9twTlAbMvVrq+l7ZiWKXi2pRC3I6qrvnTGSou9P2qUk3J3lHIsq/+7TU wD2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=O4NVponpbYrPkyEYTKUNZUnjM78ZicTJFj0UuLyEc78=; b=Z8dACpksHdKtCenh844SjK+BGxA67/kL0DPSMeQZVrV021+G94ajeFlFFh1WOG120E X9198D4KLxfA8heZUfGB+1ZkcflfepoBZspna0Gi0cJeqXpKBn7PuBv/3rMRnI3IdmPx RMy1yDvFcEVd2Sq95slKcny2YwuLYR6QH5VblX4WUoZsyUkFfVm/iHzQsTjQipBOzKBn 6EJCZETprjddvjGEDrGUHlsaWSLDRbcy8rjr2noZ770q5qaaeQynJwiI7kP000u985+Q ztSRc8HMs0mz+BJuuBJtEZ8nop0nooTecgV4CICkHeJgxty44ymPMTlq9z36HNdPJy2j dy9Q== X-Gm-Message-State: AOPr4FUNAatQ9fYxjOpb2oNNaqqTHrnopR7D2cxEIW7m68u4XsF4EFJ3KVguaaUaSqqMEg== X-Received: by 10.98.53.6 with SMTP id c6mr6767933pfa.89.1462987669502; Wed, 11 May 2016 10:27:49 -0700 (PDT) Received: from wkstn-mjohnston.west.isilon.com (c-76-104-201-218.hsd1.wa.comcast.net. [76.104.201.218]) by smtp.gmail.com with ESMTPSA id s23sm13577881pfj.86.2016.05.11.10.27.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2016 10:27:49 -0700 (PDT) Sender: Mark Johnston Date: Wed, 11 May 2016 10:31:34 -0700 From: Mark Johnston To: Doug Rabson Cc: FreeBSD Current , freebsd-dtrace@freebsd.org Subject: Re: plockstat Message-ID: <20160511173134.GC76917@wkstn-mjohnston.west.isilon.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 11 May 2016 17:27:50 -0000 On Mon, May 09, 2016 at 11:11:33AM +0100, Doug Rabson wrote: > Is plockstat supposed to work on FreeBSD? I'm running FreeBSD-current and > when I try it, I get: > > plockstat: failed to compile program: probe description > plockstat65047:::rw-block does not match any probes > > Any ideas what to try next? Unfortunately, the plockstat probes have not been implemented in libthr, so there's nothing for plockstat(1) to use. I think it should probably be disconnected from the build until that's addressed. One of my colleagues at Isilon has done a proof-of-concept implementation of plockstat-like probes. It uses the support in share/mk for adding USDT probes, so the integration is pretty simple: one just adds the .d script containing provider definitions to SRCS. The patch is here: https://people.freebsd.org/~markj/patches/isi_plockstat.diff I just extracted it from an internal repo; some work may be needed for it to apply to head/. There's a bit more work needed to integrate USDT probes into the source tree. dtrace -G has problems with incremental rebuilds that would need to be fixed first. However, it works fine otherwise - the DTrace test suite build creates a number of programs containing USDT probes. -Mark