I'm trying to print out the environment from an execve call. I'm capturing this via:
syscall::exec*:entry {
printf("%i %i %s %s\n", ppid, pid, execname, copyinstr(arg0));
}
But I can't seem to convince dtrace that arg2[0]
is something that could be printed. How do I get the envp
contents in this case?