From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 5 18:24:28 2005 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BE1616A41F; Mon, 5 Sep 2005 18:24:28 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0FB243D48; Mon, 5 Sep 2005 18:24:27 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j85IOQ2b017816; Mon, 5 Sep 2005 12:24:26 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <431C8D5B.7080309@samsco.org> Date: Mon, 05 Sep 2005 12:24:27 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikhil Dharashivkar References: <17db6d3a0509051000622868bc@mail.gmail.com> In-Reply-To: <17db6d3a0509051000622868bc@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 18:24:28 -0000 Nikhil Dharashivkar wrote: > Hi, > i want to hack the ktrace system call. Basically, I want to monitor > scsi disk IO through dastrategy() routine. > It seems that kern_ktrace.c implements different functions for > ktrace options like -tc / -ti ... etc (see man page). So, is it > possible to add new option for disk IO with new structure object > containing disk io information which will be pass to > ktr_submittrequest thr' ktr_request structure. > Will data will be written correctly in ktrace.out and will > kdump analyze that ? > > > What are you trying to monitor? Would the existing devstat interface work? Scott