Date: Tue, 06 Sep 2005 00:18:18 +0530 From: "Rajesh S. Ghanekar" <rajesh_ghanekar@persistent.co.in> To: Scott Long <scottl@samsco.org> Cc: freebsd-hackers@freebsd.org, Nikhil Dharashivkar <nikhildharashivkar@gmail.com>, freebsd-scsi@freebsd.org Subject: Re: Adding new option to ktrace Message-ID: <431C92F2.9090104@persistent.co.in> In-Reply-To: <431C8D5B.7080309@samsco.org> References: <17db6d3a0509051000622868bc@mail.gmail.com> <431C8D5B.7080309@samsco.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Scott Long wrote: > 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? May be he requires how many bytes transferred (read/write) while a process is executing. I guess devstat doesn't do it from process context, it gives total IO read/writes from a device, if registred via devstat. Please correct me if I am wrong. - Rajesh > > Scott > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?431C92F2.9090104>