From owner-freebsd-arch@FreeBSD.ORG Sat Apr 7 09:37:23 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4EAA4106566C for ; Sat, 7 Apr 2012 09:37:23 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id C783B8FC12 for ; Sat, 7 Apr 2012 09:37:22 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so2769423wgb.31 for ; Sat, 07 Apr 2012 02:37:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=x/+Dmj1cdBUBWwUjX/crRZADfKhkCI01ejwfawVlXg4=; b=nSmfZHCyt5xJvm/X9Blb5FoNBACSyhemauoyCL6ulIsYqglxnyE/AUQuFDaiY6/RoT 0DKlk2Ia1FJWbsoUnCBphI2vEZIccl4vsmj7aYEScMNzuwNKiU4c6MvDRJJAx9S6DOLa dCIhGHnOH4PQSR8nF2HTG5vQ/KRJgiZcfOo2UGEqNraHPgybU00U/h+K1X+mxFsMKoxt naXCQ4AJ/ZodN66d0XYtl7BnVlRW7OSRjNxoVMMc1QOwJX2qOO0+dTUuBma76HnZJ+Fc Mc3PrhrXKUQB2AG5rDB+ABIgwwNYtsEZgxaCRN7EYnp7nXfs+rqNjljAexY824yo1vKN cUaA== Received: by 10.180.103.35 with SMTP id ft3mr2160412wib.0.1333791441453; Sat, 07 Apr 2012 02:37:21 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-088-067-219-111.pools.arcor-ip.net. [88.67.219.111]) by mx.google.com with ESMTPS id 17sm14469523wis.0.2012.04.07.02.37.19 (version=SSLv3 cipher=OTHER); Sat, 07 Apr 2012 02:37:20 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Adrian Chadd Date: Sat, 7 Apr 2012 11:37:40 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <201204060946.30180.bschmidt@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204071137.40785.bschmidt@freebsd.org> X-Gm-Message-State: ALoCoQmf/bRXoLsr/mLDrhFkDhE4Ho1QX0AlSrn0pEmjz1EnRMdhHdDZnGUX6UZK1YGgbVZZ9HaL Cc: freebsd-arch@freebsd.org Subject: Re: [RFC] break out 'statfoo' from wlanstats/athstats into a shared library 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: Sat, 07 Apr 2012 09:37:23 -0000 On Friday 06 April 2012 19:38:03 Adrian Chadd wrote: > On 6 April 2012 00:46, Bernhard Schmidt wrote: > > >> * (npestats? What's npe?) > > > > Ethernet driver, check the xscale port. > > Hm, whyw asn't that ever folded into -HEAD? head/sys/arm/xscale/ixp425/if_npe.c > >> * migrate wlanstats out from tools into the base system. > >> > >> Does anyone have any particular reason not to do this? > > > > What I'd always wanted to see is wlanstats' -i being extended to > > recognize not just wlanN, as in > > > > wlanstats -i wlan0 (teh default) > > wlanstats -i wlan1 > > wlanstats -i ath0 > > wlanstats -i mwl0 > > The trouble is finding a representation of the ioctl statistics that > is portable enough to use like this. > > ath0/mwl0 don't export the same statistics by any means; and the > athstats tool uses a couple of ioctl APIs (one for HAL, one for ath) > to fetch statistics. Oh no, I didn't mean to display the same stats, just that the tools are merged and not scattered around the tree. > FWIW, I'm about to extend the athstats tool and HAL diagnostic API to > include more detailed interrupt statistics. This will help when > diagnosing mis-behaving bus hardware. > > > Adrian > -- Bernhard