pgjw pgjw wrote: > Hello, I'm new to dtrace, hoping someone can help me. > I'm trying to obtain an AT command that is written to a serial device > (cellular modem) by an application. > Could dtrace enable me to sniff this serial traffic to this device?
It should be able to; you should be able to interpose on the appropriate 'write' entry point to the driver and see the data being passed in. > and could anyone point me towards a resource to help me? > Maybe there is a better way to sniff this, but I can't think of it. dtrace is probably pretty good for this, but you do need to know or infer something about the driver. if you have source, look there first. if not, try "dtrace -l -m <drivername>" to see all the entry points; the right one will probably hop out at you. Then you'll have to figure out what the arguments are, which could take some experimentation; a kernel debugger can be good for that. For Solaris, for instance, the asy driver is a STREAMS driver, and has an asywput() entry point whose second arg is an mblk_t. > > thanks in advance. > > > -- > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > [email protected] _______________________________________________ dtrace-discuss mailing list [email protected]
