From owner-freebsd-current@FreeBSD.ORG Fri Nov 6 14:43:07 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6CD4106566B; Fri, 6 Nov 2009 14:43:07 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 1115C8FC14; Fri, 6 Nov 2009 14:43:06 +0000 (UTC) Received: by fxm27 with SMTP id 27so250203fxm.3 for ; Fri, 06 Nov 2009 06:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=5SvhB21QZLPmS/sXStyhEVIOv6R/UckiBQbr0rqBE38=; b=sENFJQgbwoDL2cQcUzoUX1L5T9kL3Z526bGBZMFPKyNGirRt7vikC10uOU5M+MTg1B KAJiV8718aPa3sLZ3uAfpWsqlD6IQZBtW7QZ1BqYG9z10mOxBFMkzKVcwBBAs72eNjMh kDLjfFx00upvvbOh69djWdGB3eE1qWssxxlwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=M7dpVMjcaUeu+dBY+vBmra59EHuLqAeohnWF8Kk58WOMtTf8rZ0/fJmndmhh11qs2v Xa0YqJx0KTxjmSMrzzYKL+Bjs92QU8Wmoqw5MBHEJgQwcltBDxYAt4noky/CyxqfQT5V c8GXiOjMdtEdApp2Mr+EEjso686+TzbAk/dGM= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.223.7.21 with SMTP id b21mr601668fab.104.1257518585910; Fri, 06 Nov 2009 06:43:05 -0800 (PST) Date: Fri, 6 Nov 2009 15:43:05 +0100 X-Google-Sender-Auth: 75aa04608c45c92f Message-ID: <3bbf2fe10911060643g60079e31y7679b32dac670fd8@mail.gmail.com> From: Attilio Rao To: freebsd-current@freebsd.org, Ed Maste , Scott Long , gibbs@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: Subject: [PATCH] Adding sysctl for errors statistics to ahd(4) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2009 14:43:07 -0000 This patch introduces some mechanisms for collecting informations on errors frequency and debugging (and relative sysctls for printing them out) for the ahd(4) driver: http://www.freebsd.org/~attilio/Sandvine/STABLE_8/ahd/ahd-current2.diff The usage of array for sysctls is a bit too paranoid but it allows for further extendibility of the code and doesn't loose of cleaness. This code has been contributed back by Sandvine Incorporated with some cleanups. Please review. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein