Adding new option to ktrace

Scott Long scottl at samsco.org
Mon Sep 5 11:24:28 PDT 2005


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


More information about the freebsd-scsi mailing list