From owner-freebsd-arch@FreeBSD.ORG Fri Apr 6 07:46:12 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F48D1065672 for ; Fri, 6 Apr 2012 07:46:12 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id DAF478FC14 for ; Fri, 6 Apr 2012 07:46:11 +0000 (UTC) Received: by wibhj6 with SMTP id hj6so256717wib.13 for ; Fri, 06 Apr 2012 00:46:11 -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=NbfZIcDN9XaYtrt35OwLTQwLmVj0DHzCZS2WWNcseMg=; b=IvmVdkSZSqWPt0d4ZRyRtv0gXp1rC8FE2iKTBKrdJmSRQOWwsHvCPt4jjBkU4IcdMy S7/dTeVtbFNDdHHhln2R72kIpIhcalC4QiBfCpL5mGwmo2xXXyZSaKtOTFlBGi1sVqmg iGg7ySYzGEfnTA0pDJ2zOoZ+gt2BPriv+EgaqR0fAY5qst/ZcZgwUUq7eLIeVZ5AqXs+ Uic55KsXc0b3Hsap7rKJRG3WXKNJxyBpzA+lyJ3bPWv826+wmfrWFz6WiUYY8YEEge3r BScn4tdLAXb54v3W5JGUlVt75RrrihYLm+mXBj53irgyuOy/otlJIn4gLtUQ++5NTPQv x1Qw== Received: by 10.180.107.101 with SMTP id hb5mr9830548wib.7.1333698371019; Fri, 06 Apr 2012 00:46:11 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-088-065-061-201.pools.arcor-ip.net. [88.65.61.201]) by mx.google.com with ESMTPS id k6sm4054571wie.9.2012.04.06.00.46.09 (version=SSLv3 cipher=OTHER); Fri, 06 Apr 2012 00:46:10 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: freebsd-arch@freebsd.org Date: Fri, 6 Apr 2012 09:46:30 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201204060946.30180.bschmidt@freebsd.org> X-Gm-Message-State: ALoCoQmaksquXCweLSOVlp+mZY54jY+zHrq3JthYxmv2VnWo3z0L1/UWTpzSK+qidJk2sg2zDBGz Cc: Adrian Chadd 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: Fri, 06 Apr 2012 07:46:12 -0000 On Friday 06 April 2012 02:17:16 Adrian Chadd wrote: > Hi, > > There's a statistics library which Sam used for a variety of networking tasks: > > * wlanstats > * mwlstats > * athstats > * (npestats? What's npe?) Ethernet driver, check the xscale port. > I've fixed some issues in athstats' copy of libstatfoo which I can > port elsewhere. But I can also see scenarios where I'd like to use > this library code in future statistics utilities that I'll write. > > What I'd like to do is: > > * break out the statfoo from these and create a libstatfoo, that's > built as part of the base system; > * teach wlanstats, mwlstats, athstats to use the system provided copy > of libstatfoo; > * 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 -- Bernhard