From owner-svn-src-head@FreeBSD.ORG Mon Feb 9 23:29:17 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B13ECEEB; Mon, 9 Feb 2015 23:29:17 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (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 54EE5D1; Mon, 9 Feb 2015 23:29:17 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id hm9so10060964wib.5; Mon, 09 Feb 2015 15:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0kbzzMjdq7OR9aoUARi1JJPBDFBZeP1pQYXX/o5K4z4=; b=XFkVSTT5iYIeL1OcNUMbJcqLMmrS/pC0mUuWT6L0Yg68NHSWVohg2Shezp3rvwvDEk sb+Kp4Dyn2PfSV60F4HvKaNrN8t1kxm98O7fM8eH2+wyRSzFMay10cXP2aM6Eas2QItZ 0l/9CGeOeac/tkGKZlYoFGG5LBVYlY2Ha6TfPSTaltdJTjL19gVtiRcdqEgjArBSU2dn 7lKeRMcACK8JcyswIObcPC4lHJgGeD2FFGEcA2i8T1JiA0MY372bS1LO3wHSV+aS/z+f UsixR5N5NPD23zNHliiTzVZyjlgjlBj+R7E0yyg+JN5j0ORikTmbT7aeZxIdP0kg4zpJ bv+A== MIME-Version: 1.0 X-Received: by 10.180.198.240 with SMTP id jf16mr39614372wic.27.1423524555334; Mon, 09 Feb 2015 15:29:15 -0800 (PST) Received: by 10.27.77.141 with HTTP; Mon, 9 Feb 2015 15:29:15 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Feb 2015 18:29:15 -0500 Message-ID: Subject: Re: svn commit: r278479 - in head: etc sys/kern From: Benjamin Kaduk To: Rui Paulo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Mon, 09 Feb 2015 23:29:17 -0000 On Mon, Feb 9, 2015 at 6:22 PM, Rui Paulo wrote: > On Feb 09, 2015, at 03:16 PM, Benjamin Kaduk wrote: > > > What advantage does putting this in devd have over a standalone daemon for > crash reporting? Is it just the ease of implementation to leverage the > existing infrastructure? > > > Well, I want to automatically inspect all the programs that crashed in a > given system. I don't see how you can do that with a standalone daemon. > Or maybe I didn't understand what you meant. > I think you have misunderstood what I was trying to ask. We could in principle write a new daemon, call it crash-reporterd for now, and have the kernel notify that daemon whenever any program on the system crashes. But writing the infrastructure to support that would be a bunch of work, and we already have devd set up to get notifications from the kernel, so it is much faster to implement crash reporting in devd, even though crashes in software have nothing to do with device changes. The question boils down to: is the time saved by implementing it this way worth the tradeoff of architectural purity. I don't have an opinion myself, I just want to make sure the question is considered. -Ben