DTrace Issues

Anton Yuzhaninov
Tue, 01 Nov 2011 14:00:19 -0000

On Thu, 27 Oct 2011 18:32:19, Shawn Webb wrote:
SW> #!/usr/sbin/dtrace -s
SW>
SW> #pragma D option quiet
SW>
SW> proc:::exec-success
SW> /uid == $1/
SW> {
SW>     printf("%d:%d:%s:", walltimestamp, uid, execname);
SW>     trace(curpsinfo->pr_psargs);
SW>     printf("\n");
SW> }

Dtrace port to FreeBSD is not complete

AFAIK:
 - walltimestamp is not implimented at all
 - curpsinfo->pr_psargs show only argv[0] (command name)

--
 Anton Yuzhaninov