From owner-svn-src-head@FreeBSD.ORG Thu Feb 26 19:21:41 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5E79106568D; Thu, 26 Feb 2009 19:21:40 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from forwards1.yandex.ru (forwards1.yandex.ru [77.88.60.125]) by mx1.freebsd.org (Postfix) with ESMTP id EE5878FC2B; Thu, 26 Feb 2009 19:21:39 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from mxfront35.yandex.ru (mxfront35.yandex.ru [77.88.60.162]) by forwards1.yandex.ru (Yandex) with ESMTP id B5EE7C86D0; Thu, 26 Feb 2009 22:21:31 +0300 (MSK) Received: from mx2.freebsd.org ([69.147.83.53]:17648 "EHLO mx2.freebsd.org" smtp-auth: TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S13143583AbZBZNdz for (+ 3 others); Thu, 26 Feb 2009 16:33:55 +0300 X-Yandex-TimeMark: 1235655235 X-Yandex-Spam: 2 X-Yandex-Front: mxfront35 Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id B67171A6F7B; Thu, 26 Feb 2009 13:33:33 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 0AACE106571F; Thu, 26 Feb 2009 13:33:33 +0000 (UTC) (envelope-from owner-svn-src-all@freebsd.org) Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAAF11065679; Thu, 26 Feb 2009 13:33:18 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B4A9C8FC15; Thu, 26 Feb 2009 13:33:18 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 513C746B85; Thu, 26 Feb 2009 08:33:18 -0500 (EST) Date: Thu, 26 Feb 2009 13:33:18 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Alexander Leidinger In-Reply-To: <20090226134937.13523qtfgxc9ik7k@webmail.leidinger.net> Message-ID: References: <200902261056.n1QAuDTL025375@svn.freebsd.org> <20090226134937.13523qtfgxc9ik7k@webmail.leidinger.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-svn-src-all@freebsd.org Errors-To: owner-svn-src-all@freebsd.org Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r189063 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 19:21:50 -0000 On Thu, 26 Feb 2009, Alexander Leidinger wrote: >> A typical tracing command might be: >> >> dtrace -n 'priv:::priv_ok { trace(execname); trace(arg0);}' >> >> arg0 requires manual interpretation using /usr/include/sys/priv.h. > > Theoretically it is possible to write a little script which takes priv.h and > generates a little bit of dtrace stuff which allows to print out strings > instead of numbers. But I think this is a matter of motivation... > > I would also use printf("program: %s, priv: $d\n", execname, arg0) or > something similar with printf, but this is cosmetics. > > Should we create a repository of dtrace scripts in /usr/share or wherever? > For the linuxulator I have several scripts in my linuxulator-dtrace branch > (some more, some less useful for non-developers). I have a couple up on the wiki on the DTrace/Examples page from some callout-related profiling I was doing, but some sort of more formal library would be good. I guess the question is "how productionable do we want them to be" -- if they're just fragments then a wiki or the tools tree might be good; if it's really going to be a formal set of analysis tools with consistent interface, style, and maintained over time then usr/share would be better, but I think having consistency in approach and content would be something very much to encourage. Robert N M Watson Computer Laboratory University of Cambridge _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"