Adam Leventhal wrote:
> What you can do is create a buffer to hold your real data, prepend it with
> a non-printable character, and trace the whole thing (remembering to mentally
> discard the first byte). For example:
>
> syscall::write:entry
> /execname == "cat"/
> {
> this->a = copyin(arg1, 80);
> this->p = (char *)alloca(81);
> *this->p = '\0';
> bcopy(this->a, this->p + 1, 80);
> tracemem(this->p, 81);
> }
>
> Despite this glorious work-around,
chuckle.
> please file a bug; if someone is interested
> in getting involved with DTrace development, this would be a good fix to try
> out.
Spouting off ideas: perhaps tracerawmem()?
_______________________________________________
dtrace-discuss mailing list
[email protected]