From owner-freebsd-current@FreeBSD.ORG Wed Mar 18 20:18:33 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 2765D106567C for ; Wed, 18 Mar 2009 20:18:33 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id D5D4F8FC1C for ; Wed, 18 Mar 2009 20:18:31 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: by an-out-0708.google.com with SMTP id d11so153493and.13 for ; Wed, 18 Mar 2009 13:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=Uul7iUtETxzJz8r84Lu3arWmWvILg8ko7nLG5r0XHdY=; b=rMFEqbc8rN2bMQy5wa79b2L9AfvkFdWZ47klrgUm3lY/RfDYagdO+zm9X+tv73Lnmj zEOU9zKA6YkM8BmzxupFUuhOHXN3JbfkPStTNbQ7YN7UGnb/Tod6Rxn8Zr4g4SP4emTt O/vzG5f1+9onn80xPSa6ITXA7TMet8Y7R7+zQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=eWcDEGoom5mvNDlL8eH6QIdJ5yBG2OyOynU0EvXQArKLL/rKVDHt5z1zllfRHyutuP Mr+pN5cIyQTTZuDYmK+TuH6IzpAUbA0IItRLlmOq81kFaR5UB7M1BquHriVGMyVTKzLj IfGICanRP4LCpwVTnWK3hRiCuRwZo7ly409mA= MIME-Version: 1.0 Received: by 10.100.143.14 with SMTP id q14mr1957454and.40.1237405632525; Wed, 18 Mar 2009 12:47:12 -0700 (PDT) Date: Wed, 18 Mar 2009 20:47:12 +0100 Message-ID: <4e6cba830903181247w20a30b7fme5ef0c0cd98e0755@mail.gmail.com> From: Giovanni Trematerra To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Attilio Rao , scottl@freebsd.org, trasz@freebsd.org Subject: DDB show command for CAM module 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: Wed, 18 Mar 2009 20:18:33 -0000 Hi all, during a private discussion with attilio@ he pointed me out the lack of DDB show commands for CAM/XPT layer. Eventually I come up with this patch to add some command: http://www.trematerra.net/patches/camddb.diff This patch add the following show commands to DDB: cam_sim
to inspect cam_sim type variables xpt_cam_eb [address] to inspect cam_eb type variables. whithout an address it shows the list of all busses connected. xpt_cam_et
to inspect cam_et type variables xpt_cam_ed
to inspect cam_ed type variables The patch is all but complete. Actually what I'd like to know is how useful this command could be in debugging problems related to CAM layer. This is my first try to hack FreeBSD kernel so any advice about the code especially in regard of style(9) is welcomed. Thanks for your time in reviewing my patch. -- Trematerra Giovanni