[dtrace-discuss] Quick quesion

陶捷 Tao Jie eulertao at gmail.com
Sun Jul 29 12:42:57 PDT 2007


mdb
DTrace is used when you know the internal structure, while MDB can show the
internal structure to you in the case of only knowing the structure name.

Another way, download a copy of the ON source code and use cscope or ggrep.


Regards,
TJ

2007/7/29, Vivek Joshi <techvbj at gmail.com>:
>
>
> Hi,
>
> How can I print the structure contents using DTrace ...
>
> For example, here is the truss output while execution of my program,
> /90:    ioctl(12, 0x04C9, 0xFE97B83C)                   = 0
> /90:    ioctl(12, 0x04C9, 0xFE97B924)                   Err#5 EIO
>
> The third field above is 'struct uscsi_cmd'. I am not sure why the
> second ioctl is failing, I want to confirm that scsi cdb is formed
> correctly in this case. How can I print this structure in parallel
> while running the program?
>
> Thanks for the inputs.
>
> Cheers,
> Vivek
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070730/a4453059/attachment.html 


More information about the dtrace-discuss mailing list