From owner-freebsd-current@freebsd.org Tue Dec 20 03:35:02 2016 Return-Path: Delivered-To: freebsd-current@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 C4AE0C89F31; Tue, 20 Dec 2016 03:35:02 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.allbsd.org", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32D9F18F3; Tue, 20 Dec 2016 03:35:02 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail-d.allbsd.org (p2027-ipbf1605funabasi.chiba.ocn.ne.jp [123.225.191.27]) (authenticated bits=56) by mail.allbsd.org (8.15.2/8.15.2) with ESMTPSA id uBK3YaFN038795 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) (Client CN "/OU=GT07882699/OU=See+20www.rapidssl.com/resources/cps+20+28c+2915/OU=Domain+20Control+20Validated+20-+20RapidSSL+28R+29/CN=*.allbsd.org", Issuer "/C=US/O=GeoTrust+20Inc./CN=RapidSSL+20SHA256+20CA+20-+20G3"); Tue, 20 Dec 2016 12:34:56 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from alph.allbsd.org (alph.allbsd.org [192.168.0.10]) by mail-d.allbsd.org (8.15.2/8.15.2) with ESMTPS id uBK3XLg4054650 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 20 Dec 2016 12:33:21 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.15.2/8.15.2) with ESMTPA id uBK3XKZW054647; Tue, 20 Dec 2016 12:33:20 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 20 Dec 2016 12:25:35 +0900 (JST) Message-Id: <20161220.122535.1576963544479470984.hrs@allbsd.org> To: adrian.chadd@gmail.com Cc: jkh@mail.turbofuzz.com, freebsd-current@freebsd.org, freebsd-arch@freebsd.org Subject: Re: RFC: DTrace probes for debugging or testing in userland programs From: Hiroki Sato In-Reply-To: References: X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_Dec_20_12_25_35_2016_644)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.4.3 (mail.allbsd.org [133.31.130.32]); Tue, 20 Dec 2016 12:34:58 +0900 (JST) X-Spam-Status: No, score=-100.0 required=13.0 tests=CONTENT_TYPE_PRESENT, ISO2022JP_BODY,QENCPTR1,USER_IN_WHITELIST autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gatekeeper.allbsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 03:35:02 -0000 ----Security_Multipart(Tue_Dec_20_12_25_35_2016_644)-- Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Adrian Chadd wrote in : ad> On 19 December 2016 at 16:04, Jordan Hubbard wrote: ad> > ad> > On Dec 19, 2016, at 12:27 PM, Adrian Chadd wrote: ad> > ad> > So although I like the sentiment, I don't think using dtrace for ad> > program logging is the right answer. I like what apple did to wrap ad> > the program logging stuff so people didn't just write their own ad> > libraries (hi!) and so there's a unified-ish way to interact with ad> > apple programs. I think we could do with that. ad> > ad> > ad> > Thanks! ad> > ad> > We did a number of other things with ASL (Apple System Logger) which I miss ad> > very much today and would hope to see in any FreeBSD equivalent: ad> > ad> > 1. We structured all log data into dictionaries, so every application and/or ad> > subsystem within that application can add its own “tags” without squashing ad> > other key information. This also unified the character encoding format, so ad> > some applications were no longer logging in ISO-Latin1, others in UTF-8 and ad> > yet others in SHIFT-JIS. ad> > ad> > 2. There’s also a logging database, as one of the many possible “output ad> > sinks”, so searches / queries are fast (and there’s an API for querying and ad> > managing its contents). ad> > ad> > 3. We added client-side and server side logging filters, so you can “crank ad> > an application up” or shut its mouth without having to make any code ad> > changes. ad> > ad> > 4. It’s all thread-safe. ad> ad> Hm. Where's the ASL source hiding? I'm kinda hoping it's light weight ad> enough to port over without porting a lot of other stuff, but I am ad> also afraid it's Apple.. :) libsystem_asl at https://opensource.apple.com/source/syslog/syslog-349.1.1/? -- Hiroki ----Security_Multipart(Tue_Dec_20_12_25_35_2016_644)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlhYpK8ACgkQTyzT2CeTzy2kJwCfYkyJnpYZOf0GTVbZ8+Xh5KVl lTEAoNYNo1b/5iU4qq5urKLk7QoYBtQh =fl23 -----END PGP SIGNATURE----- ----Security_Multipart(Tue_Dec_20_12_25_35_2016_644)----