From owner-freebsd-drivers@FreeBSD.ORG Mon Jan 30 17:32:51 2006 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B806616A420 for ; Mon, 30 Jan 2006 17:32:51 +0000 (GMT) (envelope-from bharmaji@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3227D43D45 for ; Mon, 30 Jan 2006 17:32:51 +0000 (GMT) (envelope-from bharmaji@gmail.com) Received: by wproxy.gmail.com with SMTP id 67so1261569wri for ; Mon, 30 Jan 2006 09:32:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=kduNuGce6pwMKyvdQyy+jgpepyyVsEfAluLPyydXsIMPknzkuhu+jQDGzylKT4x1VXrrNXh+SNVciHJvu6YOsCnKK/G7PJNCNknFFcK5HHRGgTjRrYnReiqk58ZTwKz3ZPOeTj8POva0X+M2ub4M+bR2i5gQ5BP4ab0jxjRb9Dc= Received: by 10.65.54.5 with SMTP id g5mr717082qbk; Mon, 30 Jan 2006 09:32:49 -0800 (PST) Received: by 10.65.124.18 with HTTP; Mon, 30 Jan 2006 09:32:49 -0800 (PST) Message-ID: <67beabb0601300932u50554f86i3b068258e013af02@mail.gmail.com> Date: Mon, 30 Jan 2006 09:32:49 -0800 From: Bharma Ji To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to profile a driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 17:32:51 -0000 I am trying to optimize a driver for performance. What are the standard way= s to profile a driver? My problem at the moment is that when I run a test and max out the CPU, then the system % is 60 and user % is 30. I wanted to find out how much tim= e is being spent in the driver(and within it, if possible in what components)= . Can this be determined and if so, how to figure this out.