[dtrace-discuss] timewarping with walltimestamp

Richard L. Hamilton rlhamil at smart.net
Fri Dec 21 03:00:04 PST 2007


[...]
> That, however, doesn't really help in solving the
>  problem that I have
> n my hands -- how do I determine the lifetime of the
> process that
> was started before the D script? Granted, I'm not a
> kernel developer
> so it could be that there's such a way and I would
> love to be educated
> on what it is.

Is curpsinfo->pr_start of any use (assuming I read the docs right, never
tried this)?   You may have to convert it to something more useful,
i.e. multiply the tv_sec by a billion and then add the tv_nsec.
See proc(4) for more info on struct psinfo (aka psinfo_t).


--
This message posted from opensolaris.org


More information about the dtrace-discuss mailing list