From owner-freebsd-arch@FreeBSD.ORG Wed Sep 30 23:39:10 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50F86106566B for ; Wed, 30 Sep 2009 23:39:10 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184]) by mx1.freebsd.org (Postfix) with ESMTP id 0B31A8FC19 for ; Wed, 30 Sep 2009 23:39:09 +0000 (UTC) Received: by yxe14 with SMTP id 14so909265yxe.7 for ; Wed, 30 Sep 2009 16:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=nMSFrLJI5355aDbOWNfVw3dcNiRHgzziX67KIcSlLOw=; b=vdIvjF87CsH2qh2X+nUvpLtAbP/QtwI5WyE8JS4BFKw/YruxbZxkUKt+/tar+hiPaj Vtdw9VDi7B3FiAn5bLU/Lqc3+A1y1Hg/qhsiARxPASJtUju9m+RU6l0CgK0688V7z7f0 t4uBLUJfqJitAH7cyQSnGXfkEIiWbfwOZ0XeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GqXBVFt7zSmhbxl4hTdAKZc4M+RSwZTxtBb0W0wlQmtS4PNBP8iRn5BQFKMO1ZlSbE RwYut2HZYioOU6Typv/7rSHHu09CNppZ2mVWE2/vSS3PyxLlT3YSx95cAONyTYOd2fx6 F2OL6OAMd1FpXozxL81F5O/j1dHP1wkfY+n6c= MIME-Version: 1.0 Received: by 10.101.164.9 with SMTP id r9mr390475ano.125.1254352131473; Wed, 30 Sep 2009 16:08:51 -0700 (PDT) In-Reply-To: <200909301732.20589.jhb@freebsd.org> References: <200909301732.20589.jhb@freebsd.org> Date: Wed, 30 Sep 2009 16:08:51 -0700 Message-ID: <2a41acea0909301608o6d0a832fref104ebfbcb0d71f@mail.gmail.com> From: Jack Vogel To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: arch@freebsd.org Subject: Re: Interrupt Descriptions X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2009 23:39:10 -0000 Good job John, will make my test department very happy :) Once this is in CURRENT I will make changes to the ixgbe driver to use it also. Jack On Wed, Sep 30, 2009 at 2:32 PM, John Baldwin wrote: > A few folks have asked recently for the ability to add descriptive strings > to > registered interrupt handlers. This is especially true since the advent of > MSI with multiple interrupts per device. I hacked up a prototype today > that > adds a new 'bus_describe_intr()' that takes the IRQ resource, the void * > cookie returned by bus_setup_intr() and var args description and appends > that > to the interrupt name in the thread and vmstat -i info. The current patch > only has the MI bits and the MD bits for amd64 as well as a sample change > to > the igb(4) driver. > > The patch is at http://www.FreeBSD.org/~jhb/patches/intr_describe.patch > . > > An example from this patch is: > > > vmstat -i > interrupt total rate > irq1: atkbd0 8 0 > irq4: uart0 751 5 > irq6: fdc0 6 0 > irq14: ata0 36 0 > irq20: uhci0 20 0 > irq23: uhci3 ehci0 2 0 > irq28: mpt0 1661 11 > irq256: igb0:tx 0 880 6 > irq257: igb0:rx 0 1098 7 > irq258: igb0:link 3 0 > irq259: igb1:tx 0 1 0 > irq260: igb1:rx 0 134 0 > irq261: igb1:link 3 0 > > -- > John Baldwin > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >