I'm attempting to display the contents of the data buffer from the
putmsg system call using dtrace. This is on sparc, with the 32-bit
executable and 64-bit kernel. Here's my last try, but it only
complains about a null pointer in the `trace' statement:
struct strbuf {
int maxlen;
int len;
char *buf;
};
self struct strbuf *x;
syscall::putmsg:entry
/pid != $pid/
{
self->x = copyin(arg2, sizeof(struct strbuf));
trace(copyinstr(self->x->buf));
}
What's the proper way to display the buffer? I have read the
400-page manual.
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-