Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 10 Sep 2002 14:58:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 10 Sep 2002 14:58:26 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:46346 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 10 Sep 2002 14:58:25 -0400 Date: Tue, 10 Sep 2002 12:03:00 -0700 (PDT) From: Linus Torvalds To: Alan Cox cc: David Brownell , Matthew Dharm , Greg KH , , Subject: Re: [linux-usb-devel] Re: [BK PATCH] USB changes for 2.5.34 In-Reply-To: <1031683480.31787.107.camel@irongate.swansea.linux.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1538 Lines: 38 On 10 Sep 2002, Alan Cox wrote: > > It drops you politely into the kernel debugger, you fix up the values > and step over it. If you want to debug with zen mind power and printk > feel free. For the rest of us BUG() is fine on SMP Ok, a show of hands.. Of the millions (whatever) of Linux machines, how many have a kernel debugger attached? Count them. In other words, if a user is faced with a dead machine with no other way to even know what BUG() triggered than to try to set up a cross debugger, just how useful is that BUG()? I claim it is pretty useless - simply because 99+% of all people won't even make a bug report in that case, they'll just push the reset button and consider Linux unreliable. In other news, the approach that shows up in the kernel logs might just eventually be noticed and acted upon (especially if the machine acts strange and kills processes). So I claim a BUG() that locks up the machine is useless. If the user can't just run ksymoops and email out the BUG message, that BUG() is _not_ fine on SMP. It has nothing to do with zen mind power or printk's. It has everything to do with the fact that a working machine is about a million times easier to debug on than a dead one, _and_ is a lot more likely to get acted upon by most users. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/