From owner-svn-src-head@FreeBSD.ORG Sat Feb 28 00:38:38 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5783E2A for ; Sat, 28 Feb 2015 00:38:38 +0000 (UTC) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) (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 7B1B9324 for ; Sat, 28 Feb 2015 00:38:38 +0000 (UTC) Received: by pabrd3 with SMTP id rd3so26682569pab.4 for ; Fri, 27 Feb 2015 16:38:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=4ujlYWUewkfPCxdG1RVawEpQl5IQq/JqzWzCNFu9/vs=; b=HNXNR1Ae5uDwKJXqyFlx+SrAjV7mfb7CYObAoxF6sf4jUUw0pBaXEBEwo0CMlpFGJJ 382ajnTPCNEfr6BxTo1jvMG/J01bGjRLMDXEOyMz2RLGIZvh3Hu5+RjYiIGaaJ4EMBi3 Z4u8hAf5jeuiotdm9bzp7FJOzWU7n00geJH8onjpnZi+44JPWs2LD/uaTmQZ4FTpFade sXevX4nzU4EL4pC6kOFI+r3/RwE3v4KfTllRYsH1+xrHWm7R0bOPyhhNRUcVnoE7PuAR NXzXn/HPKfMDIUt8ztg9KWAaF46H7iy5dfp/+JJPMT9pjSmIFUXGIKfUhZsM5ucIgRzR Lr9w== X-Gm-Message-State: ALoCoQmDIoy3KSWmmBaOdzf4eXixQN9Y2xUmGmKgQPGD/2UjbzzFIN7GQqxyVdM/xmTZwbESh2Xm X-Received: by 10.70.92.164 with SMTP id cn4mr28132993pdb.110.1425083912530; Fri, 27 Feb 2015 16:38:32 -0800 (PST) Received: from [10.64.26.6] ([69.53.236.236]) by mx.google.com with ESMTPSA id kn4sm5070227pab.48.2015.02.27.16.38.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Feb 2015 16:38:31 -0800 (PST) Sender: Warner Losh Subject: Re: svn commit: r278479 - in head: etc sys/kern Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C4BCE6EA-6C89-4D7F-8249-5F997F17975B"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b5 From: Warner Losh In-Reply-To: <1516483.e0EXgdk9ur@ralph.baldwin.cx> Date: Fri, 27 Feb 2015 17:38:29 -0700 Message-Id: References: <201502092313.t19NDpoS083043@svn.freebsd.org> <1516483.e0EXgdk9ur@ralph.baldwin.cx> To: John Baldwin X-Mailer: Apple Mail (2.2070.6) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Rui Paulo X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list 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: Sat, 28 Feb 2015 00:38:38 -0000 --Apple-Mail=_C4BCE6EA-6C89-4D7F-8249-5F997F17975B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 [[ I know I=E2=80=99m a little behind=E2=80=A6 ]] > On Feb 10, 2015, at 7:16 AM, John Baldwin wrote: >=20 > On Monday, February 09, 2015 11:13:51 PM Rui Paulo wrote: >> Author: rpaulo >> Date: Mon Feb 9 23:13:50 2015 >> New Revision: 278479 >> URL: https://svnweb.freebsd.org/changeset/base/278479 >>=20 >> Log: >> Notify devd(8) when a process crashed. >>=20 >> This change implements a notification (via devctl) to userland when >> the kernel produces coredumps after a process has crashed. >> devd can then run a specific command to produce a human readable = crash >> report. The command is most usually a helper that runs gdb/lldb >> commands on the file/coredump pair. It's possible to use this >> functionality for implementing automatic generation of crash = reports. >>=20 >> devd(8) will be notified of the full path of the binary that crashed = and >> the full path of the coredump file. >=20 > I think this is a very useful feature and I think this is fine to be = in the > tree as-is for now. My only note is that this is a bit of feature = creep for > devd (this isn't a device notification, this is a system event = notification). devd was always envisioned as being a system event notification thing. It just started out life doing newbus events. It=E2=80=99s been growing = these sorts of notifications for quite some time. > As such, I think it might be worth thinking if we (collectively) want = to think > about having a separate framework at all for system event = notification. You > could possibly publish other interesting events this way. For = example, Isilon > currently has a patch to log(9) Witness LORs. I personally think it's = a bit > hackish and potentially unreliable. A much nicer interface if you = want to > capture such things would be to publish an event for each logged LOR = instead. > Machine checks are another example of something that might be nice to = publish > (though you could possibly make the case that those would not be = inappropriate > to publish via devd since actual hardware is involved). Disk and PCI = errors > are another class of thing that it would be nice to publish in an = easier to > programmaticaly parse manner. I=E2=80=99d love to see this. Though it might mean we=E2=80=99d need to implement some kind of = filtering for the redistribution port that devd has. Warner --Apple-Mail=_C4BCE6EA-6C89-4D7F-8249-5F997F17975B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJU8Q4FAAoJEGwc0Sh9sBEAypQP/iIz2IzrE2dSYGarwpW3Ge4E mSOnlV6GcGPZ6azV8ZbcTwmVn6NxMOCN8xeJ1jwrk92Ol9WdSFtkmkq8htK6mcez +6gESABhKe5j2G/dkNB5PZLnX26PjVs3A784zi9bFl0aLXpYI9wCnGzcEw20Fo6G +KbcpFqKeTaU3bgtGKHgYSeQ1A6cB/CDrpWoEa5yNx3yCAqLkBlk3FTzm9QYpQZ9 rsAKf1RV3LKdGSJ7R+Qa2rqN9mlF2mInT4Avh/uuA4OjsXc8Nvz642yk22JWbAmn Ykue70e6fDnI7VW4Ll9mbWP7n1f9BEMgomQNc0HLEWbi9w4dm2lPkKRDMWljULX8 zBE4eNeiZNcn8s6rgarARL6yCXYlg5SbdCTtj1ttiLENB4a1ofLlRv5FYTxUP1qQ t4SPaghxkKHKr4fer9JIRsllrCzUE9gUSmEJ1K7gsuPfey9+4M6woPRzG1vCtbkq hnweLPe3HXUtIgW+dPPlyTTRdCxIJ/vBJt5W8ylVT+jemh/8g543MMoeERlDksok MvpsTvM4qLnS6FoUastGQNlwJRKLuoKslLCspVPaakAgt1zGoPmZDWnGIpbNtrWL PYP0NvrevS1Ms0AUNBaJW5exGx0Mkutv0zhW1oE5Z1OLlVufYipRLO8963uXZN2r SXcmKZ7mBMd4FoErf+dM =+/rd -----END PGP SIGNATURE----- --Apple-Mail=_C4BCE6EA-6C89-4D7F-8249-5F997F17975B--