From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 5 17:00:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8590216A420 for ; Mon, 5 Sep 2005 17:00:13 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA96043D46 for ; Mon, 5 Sep 2005 17:00:12 +0000 (GMT) (envelope-from nikhildharashivkar@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so844148rna for ; Mon, 05 Sep 2005 10:00:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ix8Hpk8U00NVGnSxgi10nP60i+8w0BKSbkDdaiBcAVIGGiLndcgO5XJhU5fhylQ+xh1P3cEDLdtJ/0AtqEdRQbYvSpYEKUZz3oG77kJpDsfM8pMJjjv4w+iEdPDKDISd4nrL1P601GcdCGdwrO677mExUFCyqp4e1+O8yNKCkcM= Received: by 10.38.24.60 with SMTP id 60mr291127rnx; Mon, 05 Sep 2005 10:00:11 -0700 (PDT) Received: by 10.38.12.59 with HTTP; Mon, 5 Sep 2005 10:00:11 -0700 (PDT) Message-ID: <17db6d3a0509051000622868bc@mail.gmail.com> Date: Mon, 5 Sep 2005 22:30:11 +0530 From: Nikhil Dharashivkar To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: freebsd-scsi@freebsd.org Subject: Adding new option to ktrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2005 17:00:13 -0000 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 ? --=20 Thanks and Regards, Nikhil.